move getting share locations to later

This commit is contained in:
Chris MacNaughton
2019-11-07 20:42:41 +08:00
parent d016777c77
commit 6c817e5942

View File

@@ -63,7 +63,6 @@ write_files:
share = self.manila_client.shares.create(
share_type='cephfsnfstype', name='cephnfsshare1',
share_proto="nfs", size=1)
mount_path = share.export_locations[0]
# Spawn Servers
instance_1 = guest.launch_instance(
@@ -91,6 +90,8 @@ write_files:
status = stdout.channel.recv_exit_status()
self.assertEqual(status, 0)
mount_path = share.export_locations[0]
openstack_utils.ssh_command(
'sudo mount -t nfs -o nfsvers=4.1,proto=tcp {} /mnt/ceph && '
'echo "test" | sudo tee /mnt/ceph/test'.format(