centos devstack support: fix VM permissions
When running the devstack plugin on Centos, the default libvirt artifact permissions on the filesystem prevents libvirt from launching UEFI VMs. This allows for the VM to be able to launch. Change-Id: I04fcc86175e90e6ca024a44841f4f05bcb5b1f63
This commit is contained in:
parent
676b8c69ac
commit
0b57f5609e
@ -2256,6 +2256,13 @@ function create_bridge_and_vms {
|
||||
local log_arg=""
|
||||
fi
|
||||
|
||||
if [ -x /etc/redhat-release ]; then
|
||||
# We're on a rhel-ey distro, and default permissions
|
||||
# restrict other users from reading these artifacts by
|
||||
# default which prevents VMs from launching.
|
||||
sudo chmod +r /var/lib/libvirt/images
|
||||
fi
|
||||
|
||||
local vbmc_port=$IRONIC_VBMC_PORT_RANGE_START
|
||||
local pdu_outlet=$IRONIC_VPDU_PORT_RANGE_START
|
||||
local vm_name
|
||||
|
Loading…
x
Reference in New Issue
Block a user