]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
pybind/ceph_volume_client: Update the 'volumes' key to 'subvolumes' in auth metadata...
authorKotresh HR <khiremat@redhat.com>
Mon, 15 Feb 2021 16:26:51 +0000 (21:56 +0530)
committerKotresh HR <khiremat@redhat.com>
Mon, 8 Mar 2021 08:30:28 +0000 (14:00 +0530)
commit3e324df5fa736ce72eb034763706a191233154ad
tree895fa81b2ee086d4006bf7028ee6f6234e117414
parent943a5082b9668ecda66345afdb61599e82d280b7
pybind/ceph_volume_client: Update the 'volumes' key to 'subvolumes' in auth metadata file

The older auth metadata files before nautilus release stores
the authorized subvolumes using the 'volumes' key. As the
notion of 'subvolumes' brought in by mgr/volumes, it makes
sense to use 'subvolumes' key. This patch would be tranparently
update 'volumes' key 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/49294
Signed-off-by: Kotresh HR <khiremat@redhat.com>
(cherry picked from commit dee03c8d5c0b86cf51865090bec203419a3008a9)
qa/tasks/cephfs/test_volume_client.py
src/pybind/ceph_volume_client.py