From a77b24219c2d808003f7bf95468e442e12691b4c Mon Sep 17 00:00:00 2001 From: "John L. Villalovos" Date: Thu, 17 Mar 2016 09:25:50 -0700 Subject: [PATCH] Don't depend on existing file perm for qemu hook For defensive purposes, lets make sure the hooks/qemu file is set to be executable. Rather than relying on the source file permissions. Change-Id: I2130adea4855f6e989dd8fb995cb830db76ba2a1 --- devstack/lib/ironic | 1 + 1 file changed, 1 insertion(+) diff --git a/devstack/lib/ironic b/devstack/lib/ironic index 9417648bf95..beb651610c4 100644 --- a/devstack/lib/ironic +++ b/devstack/lib/ironic @@ -601,6 +601,7 @@ function setup_qemu_log_hook { # Copy the qemu hook to the right directory sudo cp $IRONIC_DEVSTACK_FILES_DIR/hooks/qemu $IRONIC_LIBVIRT_HOOKS_PATH/qemu + sudo chmod -v +x $IRONIC_LIBVIRT_HOOKS_PATH/qemu sudo sed -e " s|%LOG_DIR%|$IRONIC_VM_LOG_DIR|g; " -i $IRONIC_LIBVIRT_HOOKS_PATH/qemu