microceph
microceph copied to clipboard
Troubles creating subvolume group in a cephfs mirroring environment
I have tried to reproduce this in a fresh and basic environment but it worked fine, so it probably has to do with cephfs-mirroring being enabled on the volume. I will add more information if this occurs again.
Reproduce
- Install 2 node (primary-secondary) clusters.
- Create volume "vol" on both sites
- Enable
cephfs-mirrordaemon primary site. - Enable "mirroring" mgr module and enable snapshot mirroring on "vol"
- Mount "vol" on primary and create multiple directories.
- Enable snapshot mirroring for the said directories.
- Create a subvolume group for volume "vol" --> FAILURE
# ceph fs subvolumegroup create vol openstack
Error EINVAL: Traceback (most recent call last):
File "/usr/share/ceph/mgr/mgr_module.py", line 1908, in _handle_command
return self.handle_command(inbuf, cmd)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/share/ceph/mgr/volumes/module.py", line 653, in handle_command
return handler(inbuf, cmd)
^^^^^^^^^^^^^^^^^^^
File "/usr/share/ceph/mgr/volumes/module.py", line 38, in wrap
return f(self, inbuf, cmd)
^^^^^^^^^^^^^^^^^^^
File "/usr/share/ceph/mgr/volumes/module.py", line 687, in _cmd_fs_subvolumegroup_create
return self.vc.create_subvolume_group(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/share/ceph/mgr/volumes/fs/volume.py", line 1018, in create_subvolume_group
set_group_attrs(fs_handle, group.path, attrs)
File "/usr/share/ceph/mgr/volumes/fs/operations/group.py", line 190, in set_group_attrs
pool = get_ancestor_xattr(fs, path, "ceph.dir.layout.pool")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/share/ceph/mgr/volumes/fs/fs_util.py", line 199, in get_ancestor_xattr
return fs.getxattr(path, attr).decode('utf-8')
^^^^^^^^^^^^^^^^^^^^^^^
File "cephfs.pyx", line 1709, in cephfs.LibCephFS.getxattr
File "cephfs.pyx", line 232, in cephfs.make_ex
TypeError: Charset.__init__() takes from 1 to 2 positional arguments but 3 were given
Thank you for reporting your feedback to us!
The internal ticket has been created: https://warthogs.atlassian.net/browse/CEPH-1430.
This message was autogenerated