Project

General

Profile

Bug #42096

Updated by Patrick Donnelly 6 months ago

<pre>
[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
</pre>

Back