RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 928879 - RHEL-6.4: migration is failing: libvirtError: XML error: missing security model when using multiple labels
Summary: RHEL-6.4: migration is failing: libvirtError: XML error: missing security mod...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: libvirt
Version: 6.4
Hardware: x86_64
OS: Linux
urgent
urgent
Target Milestone: rc
: ---
Assignee: Michal Privoznik
QA Contact: Virtualization Bugs
URL:
Whiteboard:
: 928874 928876 (view as bug list)
Depends On: 923946
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-03-28 16:46 UTC by Chris Pelland
Modified: 2013-04-09 10:39 UTC (History)
20 users (show)

Fixed In Version: libvirt-0.10.2-18.el6_4.3
Doc Type: Bug Fix
Doc Text:
When SELinux was disabled on a host, or the qemu driver was configured not to use it, and the domain XML configuration contained an explicit seclabel option, the code parsed the seclabel option, but ignored it later on when it was generating labels on domain start, and created a new and empty seclabel entry [seclabeltype='none'/]. Consequently, a migration between two hosts running Red Hat Enterprise Linux 6.4 failed with the following error message: libvirtError: XML error: missing security model when using multiple labels With this update, if a seclabel entry already exists, a new one is no longer created, and the migration works as expected in the described scenario
Clone Of:
Environment:
Last Closed: 2013-04-09 10:39:44 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
bug.xml in /var/run/libvirt/qemu/ (5.86 KB, text/plain)
2013-04-02 08:50 UTC, weizhang
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2013:0725 0 normal SHIPPED_LIVE libvirt bug fix update 2013-04-09 14:38:50 UTC

Description Chris Pelland 2013-03-28 16:46:00 UTC
This bug has been copied from bug #923946 and has been proposed
to be backported to 6.4 z-stream (EUS).

Comment 6 Jiri Denemark 2013-03-29 15:17:30 UTC
*** Bug 928874 has been marked as a duplicate of this bug. ***

Comment 7 Jiri Denemark 2013-03-29 15:17:44 UTC
*** Bug 928876 has been marked as a duplicate of this bug. ***

Comment 9 weizhang 2013-04-01 07:42:45 UTC
problem still can be reproduced on
qemu-kvm-rhev-0.12.1.2-2.355.el6_4.2.x86_64
libvirt-0.10.2-18.el6_4.3.x86_64
kernel-2.6.32-358.2.1.el6.x86_64

steps are in https://bugzilla.redhat.com/show_bug.cgi?id=923946#c5

Comment 10 Jiri Denemark 2013-04-02 07:19:39 UTC
Oh, it's actually even worse then what it was before. The domain does not even start, that is, the scenario fails in step 3:

1. set security_driver = "none" in /etc/libvirt/qemu.conf (or alternatively disable SELinux on the host)
2. restart libvirtd service (or the host in case the alternative route in step 1 was chosen)
3. start a domain which contains <seclabel type='dynamic' model='selinux' relabel='yes'/> in its XML configuration
4. managedsave DOM
5. start DOM

Comment 11 weizhang 2013-04-02 08:04:00 UTC
(In reply to comment #10)
> Oh, it's actually even worse then what it was before. The domain does not
> even start, that is, the scenario fails in step 3:
> 

I can start the guest in step 3, the situation on my test is just the same as in old version.

Comment 12 weizhang 2013-04-02 08:35:32 UTC
(In reply to comment #10)
> Oh, it's actually even worse then what it was before. The domain does not
> even start, that is, the scenario fails in step 3:
> 
> 1. set security_driver = "none" in /etc/libvirt/qemu.conf (or alternatively
> disable SELinux on the host)
> 2. restart libvirtd service (or the host in case the alternative route in
> step 1 was chosen)
> 3. start a domain which contains <seclabel type='dynamic' model='selinux'
> relabel='yes'/> in its XML configuration
> 4. managedsave DOM
> 5. start DOM

Sorry for not describing so clear, with Jiri's step, in steps 5, guest can be started successfully, but if on step4 instead I restart libvirtd, the domain disappears from virsh list

Comment 13 weizhang 2013-04-02 08:50:01 UTC
Created attachment 730663 [details]
bug.xml in /var/run/libvirt/qemu/

Comment 14 Jiri Denemark 2013-04-02 09:02:34 UTC
(In reply to comment #10)
> Oh, it's actually even worse then what it was before. The domain does not
> even start, that is, the scenario fails in step 3.

This is wrong. I forgot to run virsh managedsave-remove DOM after reproducing the issue with the old package. In other words, I can confirm comment 12. The managedsave scenario works (this package fixes it) but the libvirtd restart scenario still does not work.

Comment 15 Michal Privoznik 2013-04-02 09:58:35 UTC
This is not a regression IMO. I've just tested 6.3 and it doesn't work there neither. In fact, I think a bug summary is not corresponding to the description itself. Those are two separate bugs: 1st 6.4.z migration not working, 2nd domain disappearing after libvirtd restart. The first it fixed. The second I can reproduce even on upstream.

Comment 16 Michal Privoznik 2013-04-02 10:14:35 UTC
As I've said in the parent bug and comment 15 the summary does not correspond to the description. I've reported a separate bug 947387 for issue summary describes. Moreover, I am moving this to ON_QA then.

Comment 17 weizhang 2013-04-03 02:55:00 UTC
According to comment 16

Verify pass on 
libvirt-0.10.2-18.el6_4.3.x86_64
qemu-kvm-rhev-0.12.1.2-2.355.el6_4.2.x86_64
kernel-2.6.32-358.2.1.el6.x86_64

with steps in comment 10
Start guest on step 5 can succeed

Comment 19 errata-xmlrpc 2013-04-09 10:39:44 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHBA-2013-0725.html


Note You need to log in before you can comment on or make changes to this bug.