]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mgr/volumes: Fix clone uid/gid mismatch 45205/head
authorKotresh HR <khiremat@redhat.com>
Thu, 10 Feb 2022 05:34:41 +0000 (11:04 +0530)
committerKotresh HR <khiremat@redhat.com>
Wed, 16 Mar 2022 06:47:22 +0000 (12:17 +0530)
commit4b2aff8033ac621d3eb14f3c3c8245ab4ad9ed58
tree639961beded9d0cacab7cdfa97edb6f867264444
parent0f790add5721a43de07acc2087a183810fff7e87
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>
(cherry picked from commit b3c9e6b50cf4264538e4c41d19e7ebb8b2900c3a)
src/pybind/mgr/volumes/fs/async_cloner.py