]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
pybind/ceph_volume_client: Fix auth-metadata file recovery
authorKotresh HR <khiremat@redhat.com>
Fri, 19 Feb 2021 11:08:31 +0000 (16:38 +0530)
committerKotresh HR <khiremat@redhat.com>
Fri, 19 Feb 2021 11:09:41 +0000 (16:39 +0530)
Fixes: https://tracker.ceph.com/issues/49294
Signed-off-by: Kotresh HR <khiremat@redhat.com>
src/pybind/ceph_volume_client.py

index 393d0033acdbec5cc629ba39d0f1b7d75b7d0b22..0253bbb353f74f50f0d13a00b5574711532b1633 100644 (file)
@@ -380,6 +380,8 @@ class CephFSVolumeClient(object):
                 # VMeta update looks clean. Ceph auth update must have been
                 # clean.
                 if vol_meta['auths'][auth_id] == want_auth:
+                    auth_meta['subvolumes'][volume]['dirty'] = False
+                    self._auth_metadata_set(auth_id, auth_meta)
                     continue
 
                 readonly = access_level == 'r'