Bug #42096

Updated by Patrick Donnelly over 3 years ago

[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/", line 924, in _handle_command
return self.handle_command(inbuf, cmd)
File "/home/rraja/git/ceph/src/pybind/mgr/volumes/", line 187, in handle_command
return handler(inbuf, cmd)
File "/home/rraja/git/ceph/src/pybind/mgr/volumes/", 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/", line 353, in conn_wrapper
result = func(self, fs_h, **kwargs)
File "/home/rraja/git/ceph/src/pybind/mgr/volumes/fs/", line 448, in create_subvolume_snapshot
sv.create_subvolume_snapshot(spec, snapname)
File "/home/rraja/git/ceph/src/pybind/mgr/volumes/fs/", 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/", line 93, in make_subvol_snap_path
return os.path.join(self.subvolume_path, snapdir, snapname)
File "/usr/lib64/python3.7/", line 94, in join
genericpath._check_arg_types('join', a, *p)
File "/usr/lib64/python3.7/", 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