]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mgr/volumes: Avoid trashing retained subvolume on create errors
authorShyamsundar Ranganathan <srangana@redhat.com>
Thu, 16 Jul 2020 01:03:58 +0000 (21:03 -0400)
committerShyamsundar Ranganathan <srangana@redhat.com>
Mon, 10 Aug 2020 18:14:40 +0000 (14:14 -0400)
commite6c8f930ef1a1b8e3813607758ebff8cbbd1a692
tree74a7c398bd2f1ec5e8dcdbc1c4f1b39127c773c1
parent847fba5730e330049b773a710016793ede602568
mgr/volumes: Avoid trashing retained subvolume on create errors

On any create or create_clone errors the entire subvolume was being
removed. This should be conditional and remove only the incarnation
if the subvolume was in the retained state.

Signed-off-by: Shyamsundar Ranganathan <srangana@redhat.com>
src/pybind/mgr/volumes/fs/operations/versions/subvolume_v2.py