MCPcopy Create free account
hub / github.com/ceph/ceph / get_keyring

Method get_keyring

qa/tasks/ceph_manager.py:1724–1738  ·  view source on GitHub ↗

Return keyring for the given client. :param client_id: str :return keyring: str

(self, client_id)

Source from the content-addressed store, hash-verified

1722 return self.run_cluster_cmd(**kwargs).exitstatus
1723
1724 def get_keyring(self, client_id):
1725 """
1726 Return keyring for the given client.
1727
1728 :param client_id: str
1729 :return keyring: str
1730 """
1731 if client_id.find('client.') != -1:
1732 client_id = client_id.replace('client.', '')
1733
1734 keyring = self.run_cluster_cmd(args=f'auth get client.{client_id}',
1735 stdout=StringIO()).stdout.getvalue()
1736
1737 assert isinstance(keyring, str) and keyring != ''
1738 return keyring
1739
1740 def run_ceph_w(self, watch_channel=None):
1741 """

Calls 3

run_cluster_cmdMethod · 0.95
findMethod · 0.45
replaceMethod · 0.45