ManilaShares.create_share_and_access_from_vm throwing PermissionError
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Rally |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
I'm trying to run this scenario in my OSP 16.1 with Ceph backend.
ManilaShares.
-
args:
size: 1
share_type: "default"
flavor:
name: "m1.small"
image:
name: "^centos7"
username: "centos"
runner:
type: "constant"
times: 2
context:
quotas:
manila:
shares: -1
users:
tenants: 2
network:
- "9.9.9.9"
sla:
max: 0
I'm using centos7 image to boot the servers. Running the script over _run_command is throwing permission Error
ScriptError: Script execution failed: Error running command {'script_inline': 'cloud-init status -w;sudo mount -t nfs -o nfsvers=
mnt || exit 1;sudo touch /mnt/testfile || exit 2', 'interpreter': '/bin/bash'}. Error 1: Traceback (most recent call last):
File "/usr/bin/
load_
File "/usr/lib/
get_
File "/usr/lib/
ret = func(*args, **kwargs)
File "/usr/lib/
init.read_cfg()
File "/usr/lib/
self._cfg = self._read_
File "/usr/lib/
return merger.cfg
File "/usr/lib/
self._cfg = self._read_cfg()
File "/usr/lib/
cfgs.
File "/usr/lib/
except PermissionError:
NameError: global name 'PermissionError' is not defined
I was able to fix the issue after providing sudo permission https:/
sudo cloud-init status -w;
Changed in rally: | |
status: | New → In Progress |
Submitted the fix https:/ /review. opendev. org/c/openstack /rally- openstack/ +/824521