Bug 696686

Summary: traceback when attempting tochange NIC device model
Product: [Fedora] Fedora Reporter: James Laska <jlaska>
Component: python-virtinstAssignee: Cole Robinson <crobinso>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 15CC: berrange, crobinso, dkovalsk, fischer.d.r, greenrd, hbrock, jforbes, jturner, virt-maint
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: python-virtinst-0.600.1-1.fc15 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-02-14 09:03:00 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
virsh dumpxml $guest none

Description James Laska 2011-04-14 15:56:26 UTC
Description of problem:

traceback when attempting tochange NIC device model

Version-Release number of selected component (if applicable):
 * virt-manager-0.8.7-3.fc15.noarch

How reproducible:


Steps to Reproduce:
1. In an existing guest, attempt to change the Device model to e1000 for an existing virtual NIC

  
Actual results:

Traceback (most recent call last):
  File "/usr/share/virt-manager/virtManager/details.py", line 2010, in _change_config_helper
    func(*args)
  File "/usr/share/virt-manager/virtManager/domain.py", line 430, in define_network_source
    return self._redefine_device(change, devobj)
  File "/usr/share/virt-manager/virtManager/domain.py", line 245, in _redefine_device
    return cb(dev)
  File "/usr/share/virt-manager/virtManager/domain.py", line 427, in change
    editdev.source = None
  File "/usr/lib/python2.7/site-packages/virtinst/VirtualNetworkInterface.py", line 201, in set_source
    self.bridge = newsource
  File "/usr/lib/python2.7/site-packages/virtinst/XMLBuilderDomain.py", line 299, in new_setter
    node = _build_xpath_node(self._xml_node, usexpath)
  File "/usr/lib/python2.7/site-packages/virtinst/XMLBuilderDomain.py", line 107, in _build_xpath_node
    nodelist = xpath.split("/")
AttributeError: 'NoneType' object has no attribute 'split'


Expected results:


Additional info:

Comment 1 James Laska 2011-04-14 17:17:07 UTC
Created attachment 492174 [details]
virsh dumpxml $guest

Comment 2 David R. Fischer 2011-05-06 03:00:55 UTC
(In reply to comment #1)
> Created attachment 492174 [details]
> virsh dumpxml $guest

Comment 3 Cole Robinson 2011-06-28 16:21:38 UTC
*** Bug 714596 has been marked as a duplicate of this bug. ***

Comment 4 Cole Robinson 2011-07-13 16:59:42 UTC
Okay, turns out this was a virtinst issue, fixed upstream now:

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

Comment 5 Fedora Update System 2012-02-01 16:54:35 UTC
python-virtinst-0.600.1-1.fc15 has been submitted as an update for Fedora 15.
https://admin.fedoraproject.org/updates/python-virtinst-0.600.1-1.fc15

Comment 6 Fedora Update System 2012-02-02 17:24:34 UTC
Package python-virtinst-0.600.1-1.fc15:
* should fix your issue,
* was pushed to the Fedora 15 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing python-virtinst-0.600.1-1.fc15'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2012-1178/python-virtinst-0.600.1-1.fc15
then log in and leave karma (feedback).

Comment 7 Fedora Update System 2012-02-14 09:03:00 UTC
python-virtinst-0.600.1-1.fc15 has been pushed to the Fedora 15 stable repository.  If problems still persist, please make note of it in this bug report.