]> 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>
Wed, 13 Jan 2021 12:58:17 +0000 (18:28 +0530)
commit5f32eb15918657bcf1f73025fbb3adf0cc06317e
tree3b451f39f86a70fe8a09e195ed8d1a5f21077cc3
parent713270d1869e2370b674b1a4bc6f6a37023a5917
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>
src/pybind/mgr/volumes/fs/operations/versions/subvolume_v1.py