import argparse
import yaml
+from orchestra import run
+
def parse_args():
from teuthology.run import config_file
from teuthology.run import MergeConfig
return args
def shutdown_daemons(ctx, log):
- from orchestra import run
nodes = {}
for remote in ctx.cluster.remotes.iterkeys():
proc = remote.run(
proc.exitstatus.get()
def find_kernel_mounts(ctx, log):
- from orchestra import run
nodes = {}
log.info('Looking for kernel mounts to handle...')
for remote in ctx.cluster.remotes.iterkeys():
properly we should be able to just do a forced unmount,
but that doesn't seem to be working, so you should reboot instead
"""
- from orchestra import run
nodes = {}
for remote in kernel_mounts:
log.info('clearing kernel mount from %s', remote.name)
reconnect(ctx, 300) #allow 5 minutes for the reboots
def remove_testing_tree(ctx, log):
- from orchestra import run
nodes = {}
for remote in ctx.cluster.remotes.iterkeys():
proc = remote.run(
log.info('Grabbing cluster log from %s %s...' % (mon0_remote,
firstmon))
dest = os.path.join(ctx.archive, 'ceph.log')
- proc = mon0_remote.run(
+ mon0_remote.run(
args = [
'cat',
'--',
from cStringIO import StringIO
import logging
-import socket
-import time
from teuthology import misc as teuthology
-from orchestra import connection, run
+from orchestra import run
log = logging.getLogger(__name__)
import logging
-import threading
import os
from orchestra import run
-import teuthology.misc as teuthology
import time
import gevent
log.debug('created files to lock')
# now actually run the locktests
- spawnwait = 0
for op in config:
if not isinstance(op, dict):
assert isinstance(op, int) or isinstance(op, float)
log.info("sleeping for {sleep} seconds".format(sleep=op))
time.sleep(op)
- spawnwait = 0
continue
greenlet = gevent.spawn(lock_one, op, ctx)
lock_procs.append((greenlet, op))