From 6c817e5942eb85b822bda76737f48a70533f3977 Mon Sep 17 00:00:00 2001 From: Chris MacNaughton Date: Thu, 7 Nov 2019 20:42:41 +0800 Subject: [PATCH] move getting share locations to later --- zaza/openstack/charm_tests/manila_ganesha/tests.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/zaza/openstack/charm_tests/manila_ganesha/tests.py b/zaza/openstack/charm_tests/manila_ganesha/tests.py index 3353517..9b9287f 100644 --- a/zaza/openstack/charm_tests/manila_ganesha/tests.py +++ b/zaza/openstack/charm_tests/manila_ganesha/tests.py @@ -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(