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

Function shell

qa/tasks/ceph_manager.py:39–54  ·  view source on GitHub ↗
(ctx, cluster_name, remote, args, name=None, **kwargs)

Source from the content-addressed store, hash-verified

37
38# this is for cephadm clusters
39def shell(ctx, cluster_name, remote, args, name=None, **kwargs):
40 extra_args = []
41 if name:
42 extra_args = ['-n', name]
43 return remote.run(
44 args=[
45 'sudo',
46 ctx.cephadm,
47 '--image', ctx.ceph[cluster_name].image,
48 'shell',
49 ] + extra_args + [
50 '--fsid', ctx.ceph[cluster_name].fsid,
51 '--',
52 ] + args,
53 **kwargs
54 )
55
56# this is for rook clusters
57def toolbox(ctx, cluster_name, args, **kwargs):

Callers 4

run_cluster_cmdMethod · 0.70
admin_socketMethod · 0.70

Calls 1

runMethod · 0.45

Tested by

no test coverage detected