On 05/09/2011 02:48 AM, Jim Thomas wrote:
> Package: virt-manager
> Version: 0.8.7-1
> Severity: normal
> 
> This looks similar to https://bugzilla.redhat.com/show_bug.cgi?id=696686
> 
> When changing "source device" or "device model" of a nic, I get an error
> and a traceback, and I am unable to change either of these settings.
> 
> Regards, Jim
> 
> 
> When changing source device from "Host device eth4 (Bridge 'br0')" to
> "Virtual network 'default' NAT (inactive)":
> 
>   Error changing VM configuration: 'NoneType' object has no attribute 'split'
> 
>   Details:
>   Traceback (most recent call last):
>   File "/usr/share/virt-manager/virtManager/details.py", line 1973, in 
> _change_config_helper
>     func(*args)
>   File "/usr/share/virt-manager/virtManager/domain.py", line 428, in 
> define_network_source
>     return self._redefine_device(change, devobj)
>   File "/usr/share/virt-manager/virtManager/domain.py", line 243, in 
> _redefine_device
>     return cb(dev)
>   File "/usr/share/virt-manager/virtManager/domain.py", line 425, in change
>     editdev.source = None
>   File "/usr/lib/pymodules/python2.6/virtinst/VirtualNetworkInterface.py", 
> line 201, in set_source
>     self.bridge = newsource
>   File "/usr/lib/pymodules/python2.6/virtinst/XMLBuilderDomain.py", line 299, 
> in new_setter
>     node = _build_xpath_node(self._xml_node, usexpath)
>   File "/usr/lib/pymodules/python2.6/virtinst/XMLBuilderDomain.py", line 107, 
> in _build_xpath_node
>     nodelist = xpath.split("/")
> AttributeError: 'NoneType' object has no attribute 'split'
> 
> 
> When changing device model from virtio to pcnet:
> 
>   Error changing VM configuration: Virtual network 'default' has not been 
> started.
> 
>   Details:
>   Traceback (most recent call last):
>   File "/usr/share/virt-manager/virtManager/details.py", line 1973, in 
> _change_config_helper
>     func(*args)
>   File "/usr/share/virt-manager/virtManager/domain.py", line 428, in 
> define_network_source
>     return self._redefine_device(change, devobj)
>   File "/usr/share/virt-manager/virtManager/domain.py", line 243, in 
> _redefine_device
>     return cb(dev)
>   File "/usr/share/virt-manager/virtManager/domain.py", line 427, in change
>     editdev.source = newsource
>   File "/usr/lib/pymodules/python2.6/virtinst/VirtualNetworkInterface.py", 
> line 199, in set_source
>     self.network = newsource
>   File "/usr/lib/pymodules/python2.6/virtinst/XMLBuilderDomain.py", line 262, 
> in new_setter
>     fset(self, val, *args, **kwargs)
>   File "/usr/lib/pymodules/python2.6/virtinst/VirtualNetworkInterface.py", 
> line 248, in set_network
>     "started.") % newnet)
> ValueError: Virtual network 'default' has not been started.
> 

Was fixed upstream here:

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

Also in current virtinst release.



-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to