libvirt tries to label RBD and other network disks

Bug #949428 reported by Paul Collins
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
libvirt (Ubuntu)
Fix Released
Medium
Serge Hallyn

Bug Description

Trying to attach an RBD to a running qemu-kvm domain results in the following error:

2012-03-04 21:45:47.443+0000: 7562: error : virSecurityDACRestoreSecurityFileLabel:143 : cannot resolve symlink rbd/vol1:id=crunchberry: No such file or directory
2012-03-04 21:45:47.736+0000: 7562: warning : qemuDomainAttachPciDiskDevice:287 : Unable to restore security label on rbd/vol1:id=crunchberry

Upstream commit 20e1233c31e3150d259073c523077acdccb5d419 addresses this (attached, for reference) and appears to have been released with libvirt 0.9.9. I have tested it locally on top of 0.9.8-2ubuntu10 with an RBD-capable qemu-kvm, and dynamically adding an RBD to a running domain now succeeds.

Please consider importing this change.

Related branches

Revision history for this message
Paul Collins (pjdc) wrote :
Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "security: don't try to label network disks" of this bug report has been identified as being a patch. The ubuntu-reviewers team has been subscribed to the bug report so that they can review the patch. In the event that this is in fact not a patch you can resolve this situation by removing the tag 'patch' from the bug report and editing the attachment so that it is not flagged as a patch. Additionally, if you are member of the ubuntu-reviewers team please also unsubscribe the team from this bug report.

[This is an automated message performed by a Launchpad user owned by Brian Murray. Please contact him regarding any issues with the action taken in this bug report.]

tags: added: patch
Revision history for this message
Serge Hallyn (serge-hallyn) wrote :

Thanks for pointing out this patch. I will cherrypick it.

Changed in libvirt (Ubuntu):
assignee: nobody → Serge Hallyn (serge-hallyn)
importance: Undecided → Medium
status: New → In Progress
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package libvirt - 0.9.8-2ubuntu13

---------------
libvirt (0.9.8-2ubuntu13) precise; urgency=low

  * ubuntu/skip-labelling-network-disks.patch: don't try to label network
    drives with apparmor. It fails. (LP: #949428)
 -- Serge Hallyn <email address hidden> Mon, 12 Mar 2012 14:20:05 -0500

Changed in libvirt (Ubuntu):
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.