]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mgr/volumes: Fix subvoume snapshot clone failure
authorKotresh HR <khiremat@redhat.com>
Wed, 12 Jan 2022 09:31:53 +0000 (15:01 +0530)
committerKotresh HR <khiremat@redhat.com>
Mon, 17 Jan 2022 06:44:20 +0000 (12:14 +0530)
commit18b85c53af36d89a8c53b40cfc44fe06816a9733
tree65fded95ed770a5bb9b628338a401686bae293af
parent29ad638773715c92a0c77f10731bd69167e4ce80
mgr/volumes: Fix subvoume snapshot clone failure

Problem:
The subvolume snapshot clone fails if the quota on the source
has exceeded. Since the quota is not strictly enforced at the
byte range, this is a possibility.

Cause:
The quota on the clone is set prior to copying the data
from the source. Hence the quota mostly get enforced before
copying the entire data from the source resulting in the
clone failure.

Solution:
Enforce quota on the clone after the data is copied.

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