]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr/volumes: Update the 'volumes' key to 'subvolumes' in auth metadata file
authorKotresh HR <khiremat@redhat.com>
Tue, 5 Jan 2021 12:55:54 +0000 (18:25 +0530)
committerKotresh HR <khiremat@redhat.com>
Fri, 5 Feb 2021 18:26:08 +0000 (23:56 +0530)
commitb280c882dae6acfa04fc9203ccc4f48fa1726a37
tree849c47d78a1eb6e2d1dc3a9ab86476b44d6103ad
parent89cb03b870d5b337c67d5d09e6c1645bd180d795
mgr/volumes: Update the 'volumes' key to 'subvolumes' in auth metadata file

The older auth metadata files created by CephVolumeClient stores the
authorized subvolumes using the 'volumes' key as the notion of
'subvolumes' brought in by mgr/volumes. Hence, this would be tranparently
updated to 'subvolumes' and newer auth metadata files would store them
with 'subvolumes' key.

Also fails the deauthorize if the auth-id doesn't exist.

Fixes: https://tracker.ceph.com/issues/44931
Signed-off-by: Kotresh HR <khiremat@redhat.com>
(cherry picked from commit 5f32eb15918657bcf1f73025fbb3adf0cc06317e)
src/pybind/mgr/volumes/fs/operations/versions/subvolume_v1.py