images = [(role, None) for role in config]
testdir = teuthology.get_testdir(ctx)
+ passphrase_file = '{tdir}/passphrase'.format(tdir=testdir)
for role, properties in images:
if properties is None:
properties = {}
remote.run(args=args)
if encryption_format != 'none':
- passphrase_file = '{tdir}/passphrase'.format(tdir=testdir)
remote.run(
args=[
'echo',
yield
finally:
log.info('Deleting rbd images...')
+ remote.run(args=['rm', '-f', passphrase_file])
for role, properties in images:
if properties is None:
properties = {}
yield
finally:
log.info('Unmapping rbd devices...')
+ remote.run(args=['rm', '-f', passphrase_file])
for role, properties in role_images:
if not device_path.get(role):
continue