log.info("Killing PID {0} ({1})".format(pid, cmdline))
remote.run(args=["kill", "-9", pid], check_status=False)
+
def find_kernel_mounts(ctx):
nodes = {}
log.info('Looking for kernel mounts to handle...')
proc.wait()
+def remove_configuration_files(remotes):
+ """
+ Goes through a list of commonly used configuration files used for testing
+ that should not be left behind.
+
+ For example, sometimes ceph-deploy may be configured via
+ ``~/.cephdeploy.conf`` to alter how it handles installation by specifying
+ a default section in its config with custom locations.
+ """
+
+ nodes = {}
+
+ for remote in remotes:
+ proc = remote.run(
+ args=[
+ 'rm', '-f', '/home/ubuntu/.cephdeploy.conf'
+ ],
+ wait=False,
+ )
+ nodes[remote.name] = proc
+
+ for name, proc in nodes.iteritems():
+ log.info('removing temporary configuration files on %s', name)
+ proc.wait()
+
+
def synch_clocks(remotes):
nodes = {}
for remote in remotes: