libvirt "Authorization requires authentication but no agent is available" error on Fedora 18

Bug #1086784 reported by Mark McLoughlin
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
devstack
Fix Released
Undecided
Sunil Thaha

Bug Description

With latest devstack on Fedora 18, nova-compute was failing to start up and giving this error:

  libvirtError: authentication failed: Authorization requires authentication but no agent is available.

In order to configure PolicyKit to allow nova-compute running as 'markmc' to connect to libvirtd, I had to do add this file to /etc/polkit-1/rules.d/50-libvirt-markmc.rules:

 polkit.addRule(function(action, subject) {
     if (action.id == "org.libvirt.unix.manage" &&
         subject.user == "markmc") {
         return polkit.Result.YES;
     }
 });

Tags: fedora
Sunil Thaha (sthaha)
Changed in devstack:
assignee: nobody → Sunil Thaha (sthaha)
Sunil Thaha (sthaha)
Changed in devstack:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to devstack (master)

Reviewed: https://review.openstack.org/20108
Committed: http://github.com/openstack-dev/devstack/commit/a534e0bf1a1ec0abc1d1f673af1b70fbf8239350
Submitter: Jenkins
Branch: master

commit a534e0bf1a1ec0abc1d1f673af1b70fbf8239350
Author: Sunil Thaha <email address hidden>
Date: Mon Jan 21 17:00:50 2013 +1000

    Fixes nova-compute failing to start on Fedora 18

    Fixes bug #1086784
    Adds a rule to the policy-kit allowing the stack user to manage libvirt

    Change-Id: I6e9c0106c932f5f5f5c5c18ff79ac81a050c4599

Changed in devstack:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.