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

Method find_remote

qa/tasks/ceph_manager.py:1924–1935  ·  view source on GitHub ↗

Get the Remote for the host where a particular service runs. :param service_type: 'mds', 'osd', 'client' :param service_id: The second part of a role, e.g. '0' for the role 'client.0' :return: a Remote instance for the host where the

(self, service_type, service_id)

Source from the content-addressed store, hash-verified

1922 return self.admin_socket('osd', osd_id, command, check_status, timeout, stdout)
1923
1924 def find_remote(self, service_type, service_id):
1925 """
1926 Get the Remote for the host where a particular service runs.
1927
1928 :param service_type: 'mds', 'osd', 'client'
1929 :param service_id: The second part of a role, e.g. '0' for
1930 the role 'client.0'
1931 :return: a Remote instance for the host where the
1932 requested role is placed
1933 """
1934 return get_remote(self.ctx, self.cluster,
1935 service_type, service_id)
1936
1937 def admin_socket(self, service_type, service_id,
1938 command, check_status=True, timeout=0, stdout=None):

Callers 15

admin_socketMethod · 0.95
kill_osdMethod · 0.95
revive_osdMethod · 0.95
kill_monMethod · 0.95
revive_monMethod · 0.95
revive_mgrMethod · 0.95
taskFunction · 0.95
kill_osdMethod · 0.45
run_objectstore_toolMethod · 0.45
dump_ops_all_ranksMethod · 0.45
get_mds_hostnamesMethod · 0.45

Calls 1

get_remoteFunction · 0.90