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 728423 - [virt-manager]Error dialog pop-up when change Disk bus on Customize configuration window
Summary: [virt-manager]Error dialog pop-up when change Disk bus on Customize configura...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: python-virtinst
Version: 6.2
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: rc
: ---
Assignee: Cole Robinson
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-08-05 05:25 UTC by zhe peng
Modified: 2011-12-06 16:17 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
No description necessary
Clone Of:
Environment:
Last Closed: 2011-12-06 16:17:08 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2011:1643 0 normal SHIPPED_LIVE python-virtinst bug fix and enhancement update 2011-12-06 00:50:36 UTC

Description zhe peng 2011-08-05 05:25:59 UTC
Description of problem:
before install,in customize configuration window, change storage disk bus will pop-up error msg.

Version-Release number of selected component (if applicable):
virt-manager-0.9.0-5.el6
libvirt-0.9.4-1.el6

How reproducible:
always

Steps to Reproduce:
1.create a new virtual machine,
create a disk image on hard drive in Step 4.
2.in Step 5 ,click "Customize configuration before install",then click finish
3.in new window,select a storage in left panel
4.in Advanced options,change Disk bus to "Virtio" or "IDE"
5.click "apply" button
  
Actual results:
a dialog pop-up with error msg.
Details msg:
Error changing VM configuration: 'NoneType' object has no attribute 'xpathEval'

Traceback (most recent call last):
  File "/usr/share/virt-manager/virtManager/details.py", line 2317, in _change_config_helper
    func(*args)
  File "/usr/share/virt-manager/virtManager/domain.py", line 574, in define_disk_bus
    return self._redefine_device(change, devobj)
  File "/usr/share/virt-manager/virtManager/domain.py", line 307, in _redefine_device
    return cb(dev)
  File "/usr/share/virt-manager/virtManager/domain.py", line 570, in change
    editdev.address.clear()
  File "/usr/lib/python2.6/site-packages/virtinst/VirtualDevice.py", line 173, in clear
    self._remove_child_xpath("./address")
  File "/usr/lib/python2.6/site-packages/virtinst/XMLBuilderDomain.py", line 458, in _remove_child_xpath
    _remove_xpath_node(self._xml_ctx, xpath, dofree=False)
  File "/usr/lib/python2.6/site-packages/virtinst/XMLBuilderDomain.py", line 186, in _remove_xpath_node
    node = _get_xpath_node(ctx, curxpath)
  File "/usr/lib/python2.6/site-packages/virtinst/XMLBuilderDomain.py", line 71, in _get_xpath_node
    node = ctx.xpathEval(xpath)
AttributeError: 'NoneType' object has no attribute 'xpathEval'


Expected results:
can set disk bus w/o error

Additional info:
this issue not occur on virt-manager-0.8.6-4.el6,so it's a regression bug.

Comment 3 Cole Robinson 2011-08-29 17:13:11 UTC
Actually a virtinst bug, fixed upstream:

http://git.fedorahosted.org/git?p=python-virtinst.git;a=commit;h=061668208fa6cd8f45cf66dd921a56386de3f3b5

Comment 4 Cole Robinson 2011-08-30 19:08:58 UTC
Fixed in python-virtinst-0.600.0-3.el6

Comment 7 zhe peng 2011-09-02 05:58:59 UTC
verify with:
ibvirt-0.9.4-7.el6
qemu-kvm-0.12.1.2-2.184.el6
kernel-2.6.32-191.el6
virt-manager-0.9.0-6.el6
python-virtinst-0.600.0-3.el6

1.create a new virtual machine,
create a disk image on hard drive in Step 4.
2.in Step 5 ,click "Customize configuration before install",then click finish
3.in new window,select a storage in left panel
4.in Advanced options,change Disk bus to "Virtio" or "IDE"
5.click "apply" button

the Disk bus can be set without error. the bug fixed.
verification passed.

Comment 8 Cole Robinson 2011-11-07 16:54:07 UTC
    Technical note added. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    New Contents:
No description necessary

Comment 9 errata-xmlrpc 2011-12-06 16:17:08 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-2011-1643.html


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