microceph icon indicating copy to clipboard operation
microceph copied to clipboard

Troubles creating subvolume group in a cephfs mirroring environment

Open UtkarshBhatthere opened this issue 4 months ago • 1 comments

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

  1. Install 2 node (primary-secondary) clusters.
  2. Create volume "vol" on both sites
  3. Enable cephfs-mirror daemon primary site.
  4. Enable "mirroring" mgr module and enable snapshot mirroring on "vol"
  5. Mount "vol" on primary and create multiple directories.
  6. Enable snapshot mirroring for the said directories.
  7. 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

UtkarshBhatthere avatar Aug 14 '25 08:08 UtkarshBhatthere

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