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 1024700 - Feature state attribute of off in the virtual image descriptor doesn't work.
Summary: Feature state attribute of off in the virtual image descriptor doesn't work.
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: python-virtinst
Version: 6.5
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: rc
: ---
Assignee: Giuseppe Scrivano
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On:
Blocks: 1024703
TreeView+ depends on / blocked
 
Reported: 2013-10-30 09:38 UTC by hyao@redhat.com
Modified: 2014-10-14 06:24 UTC (History)
9 users (show)

Fixed In Version: python-virtinst-0.600.0-20.el6
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 1024703 (view as bug list)
Environment:
Last Closed: 2014-10-14 06:24:00 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2014:1444 0 normal SHIPPED_LIVE python-virtinst bug fix and enhancement update 2014-10-14 01:05:50 UTC

Description hyao@redhat.com 2013-10-30 09:38:42 UTC
Description
Feature state attribute of off in the virtual image descriptor doesn't work.
Version:
# rpm -qa python-virtinst libvirt
python-virtinst-0.600.0-18.el6.noarch
libvirt-0.10.2-29.el6.x86_64


How reproducible:
100%

Steps to Reproduce:
1.Prepare a virtual image XML descriptor file with feature acpi and apic state off included.
# cat image.xml
<image>
<name>do1</name>
<domain>
<boot type="hvm">
<guest>
<arch>x86_64</arch>
<feature>
    <acpi state="off"/>
    <apic state="off"/>
</feature>
</guest>
<os>
...
</image>

2. Create a virtual machine from image.xml
#virt-image  image.xml

3. Check the domain configuration file
# virsh dumpxml do1
<domain type='kvm' id='88'>
  <name>do1</name>
  <uuid>0fb9974d-05e4-a326-d5d4-be768e644278</uuid>
  <memory unit='KiB'>262144</memory>
  <currentMemory unit='KiB'>262144</currentMemory>
  <vcpu placement='static'>1</vcpu>
  <os>
    <type arch='x86_64' machine='rhel6.5.0'>hvm</type>
    <boot dev='hd'/>
  </os>
  <features>
    <acpi/>
    <apic/>
    <pae/>
  </features>
  <clock offset='utc'/>
  <on_poweroff>destroy</on_poweroff>
  <on_reboot>restart</on_reboot>
....


4. Check the feature description in manual.
#man 5 virt-image
...
           The features element indicates whether certain platform features should be on or off. Currently, the platform
           features are pae, acpi, and apic. They can be turned on or off by giving a state attribute of either "on" or "off".
           When a feature is mentioned in the features element, it defaults to "on".

5. Destroy and undefine the domain do1. Turn off the feature by  --noapic and --noacpi options.
# virt-image --noapic --noacpi image.xml
Creating guest do1...
Creating domain...                                       |    0 B     00:00    

# virsh dumpxml do1
<domain type='kvm' id='89'>
  <name>do1</name>
  <uuid>9e1b44a0-a97e-b395-eaf8-2662c474475f</uuid>
  <memory unit='KiB'>262144</memory>
  <currentMemory unit='KiB'>262144</currentMemory>
  <vcpu placement='static'>1</vcpu>
  <os>
    <type arch='x86_64' machine='rhel6.5.0'>hvm</type>
    <boot dev='hd'/>
  </os>
  <features>
    <pae/>
  </features>


Actual results:
State attribute of off in the virtual image descriptor doesn't work for virt-image, and --noapic and --noacpi options work well.

Expected results:
According to the description in the manual 5, state attribute of off in the virtual image descriptor doesn't work for virt-image

Additional info:

Comment 2 Giuseppe Scrivano 2014-01-29 12:13:07 UTC
it seems to me like a problem in the documentation.

Patch proposed upstream: https://www.redhat.com/archives/virt-tools-list/2014-January/msg00226.html

Comment 6 zhoujunqin 2014-05-06 09:08:20 UTC
Reproduce with package:
virt-manager-0.9.0-19.el6.x86_64
python-virtinst-0.600.0-18.el6.noarch

Verified with package:
python-virtinst-0.600.0-20.el6.noarch
virt-manager-0.9.0-20.el6.x86_64

steps:

# man 5 virt-image
...
           The features element indicates whether certain platform features should be on or off. Currently, the
           platform features are pae, acpi, and apic. Omitting a togglable feature tag turns it off.
...

Since this bug is a problem in the documentation and has been fixed in latest version,do not mention state="on|off" for features,marked as verified.

Comment 7 errata-xmlrpc 2014-10-14 06:24:00 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-2014-1444.html


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