Red Hat Bugzilla – Bug 869474
Error occurs when select a bridge network created by libvirt in virt-manager
Last modified: 2013-11-21 15:38:26 EST
Description of problem: Error occurs when select a bridge network created by libvirt in virt-manager. The following error occurs. Error selecting network: 'None Type' object has no attribute 'split' Version-Release number of selected component (if applicable): virt-manager-0.9.0-15.el6.x86_64 How reproducible: 100% Steps to Reproduce: 1. Open virt-manager, select one connection --> Host Details --> Virtual Networks 2. Select the network created by libvirt. The following error occurs. Error selecting network: 'None Type' object has no attribute 'split' Actual results: virt-manager can't display the details and configuration of network created by libvirt Expected results: The network created by libvirt should be displayed fine. Additional info:
Could you try to reproduce that on virt-manager-0.9.5-1 (latest version at this point)? Thanks.
I can't reproduce it using virt-manager-0.9.5-1.el7.noarch. but it is rhel7 version ,the bug is filed for rhel6. Do we need to clone the bug to rhel7 ?
No need to clone, I just wanted to know whether it's fixed in newer version by any chance, thanks. But working on this now, I can't reproduce it with virt-manager-0.9.0-18.el6.x86_64, could you try that with the '--debug' parameter and post the output here? In the meantime, I'll try to downgrade here and reproduce it as well. Thanks, Martin.
Still works for me with all the versions. I'll be able to do more with the log from the time it was reproduced. Thanks.
Hi Martin I still can reproduce it in virt-manager-0.9.0-18.el6.x86_64 and virt-manager-0.9.0-15.el6.x86_64. Detailed steps as follows 1. create a bridge named br0. # cat /etc/sysconfig/network-scripts/ifcfg-eth0 DEVICE=eth0 ONBOOT=yes BRIDGE=br0 # cat /etc/sysconfig/network-scripts/ifcfg-br0 DEVICE=br0 TYPE=Bridge BOOTPROTO=dhcp ONBOOT=yes DELAY=0 2. # service NetworkManager stop # service network restart 3. # service libvirtd restart 4.define a network via libvirt # virsh net-dumpxml bridge-test <network> <name>bridge-test</name> <uuid>2387ed67-23a4-47d4-8227-fa6b0f861760</uuid> <forward mode='bridge'/> <bridge name='br0' /> </network> 5. #service libvirtd restart 6.virt-manager -> locahost connnection -> right-click "details" -> Select the "bridge-test" 2013-05-29 22:20:13,539 (connection:578): Connection managed save support: True 2013-05-29 22:20:13,571 (connection:160): Using libvirt API for netdev enumeration 2013-05-29 22:20:13,571 (connection:200): Using libvirt API for mediadev enumeration 2013-05-29 22:20:17,028 (host:512): 'NoneType' object has no attribute 'split' Traceback (most recent call last): File "/usr/share/virt-manager/virtManager/host.py", line 510, in net_selected self.populate_net_state(net) File "/usr/share/virt-manager/virtManager/host.py", line 543, in populate_net_state network = net.get_ipv4_network() File "/usr/share/virt-manager/virtManager/network.py", line 103, in get_ipv4_network netmask = IP(netmaskStr) File "/usr/share/virt-manager/virtManager/IPy.py", line 143, in __init__ x = data.split('-') AttributeError: 'NoneType' object has no attribute 'split' 2013-05-29 22:20:17,030 (host:512): 'NoneType' object has no attribute 'split' Traceback (most recent call last): File "/usr/share/virt-manager/virtManager/host.py", line 510, in net_selected self.populate_net_state(net) File "/usr/share/virt-manager/virtManager/host.py", line 543, in populate_net_state network = net.get_ipv4_network() File "/usr/share/virt-manager/virtManager/network.py", line 103, in get_ipv4_network netmask = IP(netmaskStr) File "/usr/share/virt-manager/virtManager/IPy.py", line 143, in __init__ x = data.split('-') AttributeError: 'NoneType' object has no attribute 'split' 2013-05-29 22:20:17,163 (engine:471): window counter incremented to 2 2013-05-29 22:20:22,395 (host:512): 'NoneType' object has no attribute 'split' Traceback (most recent call last): File "/usr/share/virt-manager/virtManager/host.py", line 510, in net_selected self.populate_net_state(net) File "/usr/share/virt-manager/virtManager/host.py", line 543, in populate_net_state network = net.get_ipv4_network() File "/usr/share/virt-manager/virtManager/network.py", line 103, in get_ipv4_network netmask = IP(netmaskStr) File "/usr/share/virt-manager/virtManager/IPy.py", line 143, in __init__ x = data.split('-') AttributeError: 'NoneType' object has no attribute 'split' 2013-05-29 22:20:24,177 (host:512): 'NoneType' object has no attribute 'split' Traceback (most recent call last): File "/usr/share/virt-manager/virtManager/host.py", line 510, in net_selected self.populate_net_state(net) File "/usr/share/virt-manager/virtManager/host.py", line 543, in populate_net_state network = net.get_ipv4_network() File "/usr/share/virt-manager/virtManager/network.py", line 103, in get_ipv4_network netmask = IP(netmaskStr) File "/usr/share/virt-manager/virtManager/IPy.py", line 143, in __init__ x = data.split('-') AttributeError: 'NoneType' object has no attribute 'split' 2013-05-29 22:20:30,876 (engine:550): Exiting app normally.
*** Bug 951943 has been marked as a duplicate of this bug. ***
I can reproduce the bug with virt-manager-0.9.0-14.el6.x86_64 Steps: 1. Open virt-manager, select one connection --> Host Details --> Virtual Networks 2. Select the network created by libvirt. The following error occurs. Error selecting network: 'None Type' object has no attribute 'split' Verified Version: virt-manager-0.9.0-19.el6.x86_64 Steps: 1. Open virt-manager, select one connection --> Host Details --> Virtual Networks 2. Select the network created by libvirt. No error occurs.
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-2013-1646.html