Fix exec of cloud-init at CreateShareAndAccessFromVM

This patch fixes the permission for running the cloud-init status -w command in
ManilaShares.create_share_and_access_from_vm scenario

Closes-Bug: #1957763
Change-Id: I1ee65073031558b4c6f3b989e8e8c99f5df2c096
This commit is contained in:
Asma Syed Hameed 2022-01-13 15:36:17 +05:30 committed by Andrey Kurilin
parent d7b091728b
commit ac4df967f9

View File

@ -124,7 +124,7 @@ class CreateShareAndAccessFromVM(utils.ManilaScenario, vm_utils.VMScenario):
**kwargs)
self._allow_access_share(share, "ip", fip["ip"], "rw")
mount_opt = "-t nfs -o nfsvers=4.1,proto=tcp"
script = f"cloud-init status -w;" \
script = f"sudo cloud-init status -w;" \
f"sudo mount {mount_opt} {location[0]} /mnt || exit 1;" \
f"sudo touch /mnt/testfile || exit 2"