Analogous to raw_cluster_command, but instead
of calling blocking CLI command we're invoking
the -w mode.
Signed-off-by: John Spray <john.spray@redhat.com>
)
return proc.exitstatus
+ def run_ceph_w(self):
+ """
+ Execute "ceph -w" in the background with stdout connected to a StringIO,
+ and return the RemoteProcess.
+ """
+ return self.controller.run(args=["sudo", "daemon-helper", "kill", "ceph", "-w"],
+ wait=False, stdout=StringIO(), stdin=run.PIPE)
+
def do_rados(self, remote, cmd):
"""
Execute a remote rados command.
"""
return LocalRemote()
+ def run_ceph_w(self):
+ proc = self.controller.run(["./ceph", "-w"], wait=False, stdout=StringIO())
+ return proc
+
def raw_cluster_cmd(self, *args):
"""
args like ["osd", "dump"}