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

Method admin_socket

qa/tasks/ceph_manager.py:1937–1984  ·  view source on GitHub ↗

Remotely start up ceph specifying the admin socket :param command: a list of words to use as the command to the admin socket

(self, service_type, service_id,
                     command, check_status=True, timeout=0, stdout=None)

Source from the content-addressed store, hash-verified

1935 service_type, service_id)
1936
1937 def admin_socket(self, service_type, service_id,
1938 command, check_status=True, timeout=0, stdout=None):
1939 """
1940 Remotely start up ceph specifying the admin socket
1941 :param command: a list of words to use as the command
1942 to the admin socket
1943 """
1944 if stdout is None:
1945 stdout = StringIO()
1946
1947 remote = self.find_remote(service_type, service_id)
1948
1949 if self.cephadm:
1950 return shell(
1951 self.ctx, self.cluster, remote,
1952 args=[
1953 'ceph', 'daemon', '%s.%s' % (service_type, service_id),
1954 ] + command,
1955 stdout=stdout,
1956 wait=True,
1957 check_status=check_status,
1958 )
1959 if self.rook:
1960 assert False, 'not implemented'
1961
1962 args = [
1963 'sudo',
1964 'adjust-ulimits',
1965 'ceph-coverage',
1966 f'{self.testdir}/archive/coverage',
1967 'timeout',
1968 str(timeout),
1969 'ceph',
1970 '--cluster',
1971 self.cluster,
1972 '--admin-daemon',
1973 '/var/run/ceph/{cluster}-{type}.{id}.asok'.format(
1974 cluster=self.cluster,
1975 type=service_type,
1976 id=service_id),
1977 ]
1978 args.extend(command)
1979 return remote.run(
1980 args=args,
1981 stdout=stdout,
1982 wait=True,
1983 check_status=check_status
1984 )
1985
1986 def objectstore_tool(self, pool, options, args, **kwargs):
1987 return ObjectStoreTool(self, pool, **kwargs).run(options, args)

Callers 3

osd_admin_socketMethod · 0.95
wait_run_admin_socketMethod · 0.95
endMethod · 0.45

Calls 5

find_remoteMethod · 0.95
extendMethod · 0.80
shellFunction · 0.70
formatMethod · 0.45
runMethod · 0.45

Tested by

no test coverage detected