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)
| 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): |