"""
import contextlib
import logging
-import proc_thrasher
+import six
from teuthology.orchestra import run
+from teuthology.task import proc_thrasher
log = logging.getLogger(__name__)
remotes = []
for role in config.get('clients', ['client.0']):
- assert isinstance(role, basestring)
+ assert isinstance(role, six.string_types)
PREFIX = 'client.'
assert role.startswith(PREFIX)
id_ = role[len(PREFIX):]
- (remote,) = ctx.cluster.only(role).remotes.iterkeys()
+ (remote,) = ctx.cluster.only(role).remotes.keys()
remotes.append(remote)
args =['CEPH_CLIENT_ID={id_}'.format(id_=id_),
yield
finally:
log.info('joining watch_notify_stress')
- for i in testwatch.itervalues():
+ for i in testwatch.values():
i.join()