]> git.apps.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>
Thu, 25 Feb 2021 07:36:55 +0000 (13:06 +0530)
Fixes: https://tracker.ceph.com/issues/49294
Signed-off-by: Kotresh HR <khiremat@redhat.com>
(cherry picked from commit 99cdfdad59175a19bc06859e69301ca0478a2db4)

src/pybind/ceph_volume_client.py

index aa3b8413bbdcd555135ac1f7a7463587d972e76d..ae3185b1d1794d79349956a314abd934c98fd2a3 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'