Skip to content

Commit

Permalink
mgr/cephadm: fix keyring when updating caps
Browse files Browse the repository at this point in the history
Signed-off-by: Sage Weil <[email protected]>
  • Loading branch information
liewegas authored and rzarzynski committed Sep 12, 2022
1 parent 9fc4dc1 commit be9020a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/pybind/mgr/cephadm/services/cephadmservice.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,14 @@ def get_keyring_with_caps(self, entity: AuthEntity, caps: List[str]) -> str:
})
if err:
self.mgr.log.warning(f"Unable to update caps for {entity}")

# get keyring anyway
ret, keyring, err = self.mgr.mon_command({
'prefix': 'auth get',
'entity': entity,
})
if err:
self.mgr.log.warning(f"Unable to fetch keyring for {entity}")
return keyring

def _inventory_get_fqdn(self, hostname: str) -> str:
Expand Down

0 comments on commit be9020a

Please sign in to comment.