]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
mgr/volumes: Fix clone uid/gid mismatch
authorKotresh HR <khiremat@redhat.com>
Thu, 10 Feb 2022 05:34:41 +0000 (11:04 +0530)
committerKotresh HR <khiremat@redhat.com>
Thu, 10 Feb 2022 09:46:22 +0000 (15:16 +0530)
commitb3c9e6b50cf4264538e4c41d19e7ebb8b2900c3a
tree482c49e332b73cba2ae1b37ef052bc05f1a19076
parent97c2760d10f1583a47d2dcd3ae1936e95fe79a86
mgr/volumes: Fix clone uid/gid mismatch

This is the regression caused by commit 18b85c53a.
The 'set_attrs' function sets the uid/gid of the
group to the subvolume if uid/gid is not passed.
The attrs of the clone should match the source
snapshot. Hence, don't use the 'set_attrs'
function to set only the quota attrs for the
clone.

Fixes: https://tracker.ceph.com/issues/54066
Signed-off-by: Kotresh HR <khiremat@redhat.com>
src/pybind/mgr/volumes/fs/async_cloner.py