]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
mgr/volumes: Preserve existing caps while authorize/deauthorize auth-id
authorKotresh HR <khiremat@redhat.com>
Tue, 15 Dec 2020 12:01:54 +0000 (17:31 +0530)
committerKotresh HR <khiremat@redhat.com>
Wed, 13 Jan 2021 12:58:17 +0000 (18:28 +0530)
commit2dece3be081fe572455d6b634e38a663d1643dc8
treedc7643e5424d14247b737eb475a755288b97c8b7
parentc02890404e47a5a95c5cc16b699306045d586c7f
mgr/volumes: Preserve existing caps while authorize/deauthorize auth-id

Authorize/Deauthorize used to overwrite the caps of auth-id which would
end up deleting existing caps. This patch fixes the same by retaining
the existing caps by appending or deleting the new caps as needed.

Fixes: https://tracker.ceph.com/issues/44931
Signed-off-by: Kotresh HR <khiremat@redhat.com>
src/pybind/mgr/volumes/fs/operations/access.py