]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.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>
Fri, 25 Feb 2022 10:07:23 +0000 (15:37 +0530)
commit4c35c51505f6e2e3606f68b0ab7aa4ced773293c
tree96d3619c7eb340b465fb3c50385e31dcf0f4d84e
parent664c71e6a39dea543621d63dcee25cb639578915
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