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 593162 - Fail to save guest with manually setting a static security label
Summary: Fail to save guest with manually setting a static security label
Keywords:
Status: CLOSED DUPLICATE of bug 588562
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: libvirt
Version: 6.0
Hardware: All
OS: Linux
low
medium
Target Milestone: rc
: ---
Assignee: Daniel Veillard
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-05-18 02:39 UTC by Johnny Liu
Modified: 2010-06-08 12:21 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-06-08 12:21:14 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Johnny Liu 2010-05-18 02:39:50 UTC
Description of problem:
When trying to save a guest with manually setting a static security label, the following error is seen:
error: Failed to save domain demo to /tmp/dd.save
error: operation failed: Migration unexpectedly failed


Version-Release number of selected component (if applicable):
libvirt-0.8.1-4.el6.x86_64
qemu-kvm-0.12.1.2-2.53.el6.x86_64
# uname -a
Linux dhcp-66-70-178.nay.redhat.com 2.6.32-25.el6.x86_64 #1 SMP Mon May 10 17:30:22 EDT 2010 x86_64 x86_64 x86_64 GNU/Linux
# rpm -qa|grep selinux
libselinux-utils-2.0.90-3.el6.x86_64
libselinux-python-2.0.90-3.el6.x86_64
selinux-policy-3.7.19-15.el6.noarch
libselinux-2.0.90-3.el6.x86_64
selinux-policy-targeted-3.7.19-15.el6.noarch


How reproducible:
Always

Steps to Reproduce:
1. Install a refresh os with RHEL6.0-20100512 nightly build, and Selinux is enforcing
# getenforce 
Enforcing
2. Manually set a static security label for guest:
# virsh dumpxml demo
...
  <seclabel type='static' model='selinux'>
    <label>system_u:system_r:svirt_t:s0:c100,c200</label>
  </seclabel>
...
3. Chang context of the guest image:
# chcon system_u:object_r:svirt_image_t:s0:c100,c200 /var/lib/libvirt/images/demo.img
  
4. Start the guest.
# virsh start demo
5. Save the guest.
# virsh save demo /tmp/dd.save

Actual results:
Fail to save the guest, the following error is thrown:
# virsh save demo /tmp/dd.save
error: Failed to save domain demo to /tmp/dd.save
error: operation failed: Migration unexpectedly failed


Expected results:
Save the guest successfully.

Additional info:

Comment 2 RHEL Program Management 2010-06-07 16:00:12 UTC
This request was evaluated by Red Hat Product Management for inclusion in a Red
Hat Enterprise Linux major release.  Product Management has requested further
review of this request by Red Hat Engineering, for potential inclusion in a Red
Hat Enterprise Linux Major release.  This request is not yet committed for
inclusion.

Comment 3 Daniel Berrangé 2010-06-08 12:21:14 UTC
This is already fixed in 0.8.1-5.el6 as per bug 588562

*** This bug has been marked as a duplicate of bug 588562 ***


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