From 0b57f5609e0ca882c2829b1515337c51d35db8cb Mon Sep 17 00:00:00 2001 From: Julia Kreger Date: Tue, 18 Feb 2025 10:59:41 -0800 Subject: [PATCH] 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 --- devstack/lib/ironic | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/devstack/lib/ironic b/devstack/lib/ironic index 1034ec08ca..a8904e3275 100644 --- a/devstack/lib/ironic +++ b/devstack/lib/ironic @@ -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