From b85f9d73c1be03ebcd6ce55eb654e53c2fc4837c Mon Sep 17 00:00:00 2001 From: Ian Wienand Date: Thu, 2 May 2013 12:02:22 +1000 Subject: [PATCH] Ensure correct polkit config written for RHEL6 Ensure the correct polkit config is written for RHEL6, or nova-cpu will fail to start with libvirt permission errors Change-Id: I871ef4e03157883db15be41222b7338765fbb843 --- lib/nova | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/nova b/lib/nova index f28094e7a1..3a59681ba6 100644 --- a/lib/nova +++ b/lib/nova @@ -297,7 +297,7 @@ EOF if is_fedora || is_suse; then - if is_fedora && [[ "$os_RELEASE" -le "17" ]]; then + if is_fedora && [[ $DISTRO =~ (rhel6) || "$os_RELEASE" -le "17" ]]; then sudo bash -c 'cat </etc/polkit-1/localauthority/50-local.d/50-libvirt-remote-access.pkla [libvirt Management Access] Identity=unix-group:libvirtd