From ac4df967f9a0f56d77c12e831fd10a3767baadd6 Mon Sep 17 00:00:00 2001 From: Asma Syed Hameed Date: Thu, 13 Jan 2022 15:36:17 +0530 Subject: [PATCH] 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 --- rally_openstack/task/scenarios/manila/shares.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rally_openstack/task/scenarios/manila/shares.py b/rally_openstack/task/scenarios/manila/shares.py index 30260117..1b4f2062 100644 --- a/rally_openstack/task/scenarios/manila/shares.py +++ b/rally_openstack/task/scenarios/manila/shares.py @@ -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"