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

Method ceph

qa/tasks/ceph_manager.py:1660–1669  ·  view source on GitHub ↗

Simple Ceph admin command wrapper around run_cluster_cmd.

(self, cmd, **kwargs)

Source from the content-addressed store, hash-verified

1658 log.info("config epoch is %d", self.ctx.conf_epoch)
1659
1660 def ceph(self, cmd, **kwargs):
1661 """
1662 Simple Ceph admin command wrapper around run_cluster_cmd.
1663 """
1664
1665 kwargs.pop('args', None)
1666 args = shlex.split(cmd)
1667 stdout = kwargs.pop('stdout', StringIO())
1668 stderr = kwargs.pop('stderr', StringIO())
1669 return self.run_cluster_cmd(args=args, stdout=stdout, stderr=stderr, **kwargs)
1670
1671 def run_cluster_cmd(self, **kwargs):
1672 """

Callers 5

save_conf_epochMethod · 0.95
test_maybe_reonnectMethod · 0.80
testMethod · 0.80
_remove_poolMethod · 0.80
rmMethod · 0.80

Calls 3

run_cluster_cmdMethod · 0.95
popMethod · 0.45
splitMethod · 0.45

Tested by 2

test_maybe_reonnectMethod · 0.64
testMethod · 0.64