Project

General

Profile

Actions

Bug #42096

closed

mgr/volumes: creating subvolume and subvolume group snapshot fails

Added by Ramana Raja over 4 years ago. Updated over 4 years ago.

Status:
Resolved
Priority:
Urgent
Assignee:
Category:
-
Target version:
% Done:

0%

Source:
Development
Tags:
Backport:
nautilus
Regression:
No
Severity:
2 - major
Reviewed:
Affected Versions:
ceph-qa-suite:
Component(FS):
mgr/volumes
Labels (FS):
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

[rraja@bzn build]$ ./bin/ceph fs subvolume create a subvol00

[rraja@bzn build]$ ./bin/ceph fs subvolume snapshot create a subvol00 snap00

Error EINVAL: Traceback (most recent call last):
  File "/home/rraja/git/ceph/src/pybind/mgr/mgr_module.py", line 924, in _handle_command
    return self.handle_command(inbuf, cmd)
  File "/home/rraja/git/ceph/src/pybind/mgr/volumes/module.py", line 187, in handle_command
    return handler(inbuf, cmd)
  File "/home/rraja/git/ceph/src/pybind/mgr/volumes/module.py", line 262, in _cmd_fs_subvolume_snapshot_create
    group_name=cmd.get('group_name', None))
  File "/home/rraja/git/ceph/src/pybind/mgr/volumes/fs/volume.py", line 353, in conn_wrapper
    result = func(self, fs_h, **kwargs)
  File "/home/rraja/git/ceph/src/pybind/mgr/volumes/fs/volume.py", line 448, in create_subvolume_snapshot
    sv.create_subvolume_snapshot(spec, snapname)
  File "/home/rraja/git/ceph/src/pybind/mgr/volumes/fs/subvolume.py", line 276, in create_subvolume_snapshot
    snappath = spec.make_subvol_snap_path(self.rados.conf_get('client_snapdir'), snapname)
  File "/home/rraja/git/ceph/src/pybind/mgr/volumes/fs/subvolspec.py", line 93, in make_subvol_snap_path
    return os.path.join(self.subvolume_path, snapdir, snapname)
  File "/usr/lib64/python3.7/posixpath.py", line 94, in join
    genericpath._check_arg_types('join', a, *p)
  File "/usr/lib64/python3.7/genericpath.py", line 151, in _check_arg_types
    raise TypeError("Can't mix strings and bytes in path components") from None
TypeError: Can't mix strings and bytes in path components

Related issues 1 (0 open1 closed)

Copied to CephFS - Backport #42180: nautilus: mgr/volumes: creating subvolume and subvolume group snapshot failsResolvedJos CollinActions
Actions #1

Updated by Ramana Raja over 4 years ago

  • Component(FS) mgr/volumes added
Actions #2

Updated by Patrick Donnelly over 4 years ago

  • Description updated (diff)
  • Assignee set to Ramana Raja
  • Target version set to v15.0.0
  • Start date deleted (09/30/2019)
  • Source set to Development
  • Backport set to nautilus
Actions #3

Updated by Ramana Raja over 4 years ago

  • Status changed from In Progress to Fix Under Review
  • Pull request ID set to 30654
  • Affected Versions v14.2.3, v14.2.4 added
Actions #4

Updated by Jos Collin over 4 years ago

  • Status changed from Fix Under Review to Pending Backport
Actions #5

Updated by Nathan Cutler over 4 years ago

  • Copied to Backport #42180: nautilus: mgr/volumes: creating subvolume and subvolume group snapshot fails added
Actions #6

Updated by Nathan Cutler over 4 years ago

  • Status changed from Pending Backport to Resolved

While running with --resolve-parent, the script "backport-create-issue" noticed that all backports of this issue are in status "Resolved" or "Rejected".

Actions

Also available in: Atom PDF