fix ssh command

This commit is contained in:
Chris MacNaughton
2019-11-08 08:59:40 +08:00
parent 6c817e5942
commit d97b6a77c4

View File

@@ -93,6 +93,7 @@ write_files:
mount_path = share.export_locations[0]
openstack_utils.ssh_command(
username, fip_1, 'instance-1',
'sudo mount -t nfs -o nfsvers=4.1,proto=tcp {} /mnt/ceph && '
'echo "test" | sudo tee /mnt/ceph/test'.format(
mount_path),
@@ -100,6 +101,7 @@ write_files:
# Read that file on instance_2
openstack_utils.ssh_command(
username, fip_2, 'instance-2',
'sudo /bin/mount -t nfs -o nfsvers=4.1,proto=tcp {} /mnt/ceph'
.format(mount_path),
password=password, privkey=privkey, verify=verify_setup)