from_remote.run(
args=['ceph', 'auth', 'get-or-create', key_name],
stdout=key_stringio)
+ key_stringio.seek(0)
misc.sudo_write_file(to_remote, dest_path,
key_stringio, owner=owner)
keys = [
cinder_key_stringio = StringIO()
ceph_node.run(args=['ceph', 'auth', 'get-key', 'client.cinder'],
stdout=cinder_key_stringio)
+ cinder_key_stringio.seek(0)
cinder_key = cinder_key_stringio.read().strip()
uuid_stringio = StringIO()
devstack_node.run(args=['uuidgen'], stdout=uuid_stringio)
+ uuid_stringio.seek(0)
uuid = uuid_stringio.read().strip()
secret_path = '/tmp/secret.xml'
parser.read_file(config_stream, filename=config_name)
parser.update(update_dict)
out_stream = StringIO()
+ out_stream.seek(0)
parser.write(out_stream)
return out_stream