]> git.apps.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>
Fri, 19 Feb 2021 11:07:52 +0000 (16:37 +0530)
commitdee03c8d5c0b86cf51865090bec203419a3008a9
tree4b9322eaf57cdb1a24ab4811f16d877478024352
parent739ee79095a5b075a9d42593d45c1ea88d59e95b
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>
qa/tasks/cephfs/test_volume_client.py
src/pybind/ceph_volume_client.py