Include subvolume group name along with subvolume name in the pool
namepsace string for the subvolume. IOW, include it in the string that
serves as the value of the extended attribute
"ceph.dir.layout.pool_namespace", which is set for a subvolume during
its creation.
Right now, due to not including it, two different subvolumes with same
name but located in different subvolume groups undesirably end up in the
same namespace.
Fixes: https://tracker.ceph.com/issues/70668
Signed-off-by: Rishabh Dave <ridave@redhat.com>
@property
def namespace(self):
- return "{0}{1}".format(self.vol_spec.fs_namespace, self.subvolname)
+ return f'{self.vol_spec.fs_namespace}_{self.group.groupname}_{self.subvolname}'
@property
def group_name(self):