Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 869474 - Error occurs when select a bridge network created by libvirt in virt-manager
Error occurs when select a bridge network created by libvirt in virt-manager
Status: CLOSED ERRATA
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: virt-manager (Show other bugs)
6.4
Unspecified Unspecified
medium Severity medium
: rc
: ---
Assigned To: Martin Kletzander
Virtualization Bugs
:
: 951943 (view as bug list)
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2012-10-23 22:48 EDT by hongming
Modified: 2013-11-21 15:38 EST (History)
11 users (show)

See Also:
Fixed In Version: virt-manager-0.9.0-19.el6
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2013-11-21 15:38:26 EST
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2013:1646 normal SHIPPED_LIVE virt-manager bug fix update 2013-11-20 16:53:27 EST

  None (edit)
Description hongming 2012-10-23 22:48:48 EDT
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:
Comment 2 Martin Kletzander 2013-04-11 10:13:08 EDT
Could you try to reproduce that on virt-manager-0.9.5-1 (latest version at this point)?  Thanks.
Comment 3 hongming 2013-04-12 03:42:31 EDT
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 ?
Comment 4 Martin Kletzander 2013-05-28 11:34:04 EDT
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.
Comment 5 Martin Kletzander 2013-05-29 12:19:10 EDT
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.
Comment 6 hongming 2013-05-29 22:31:17 EDT
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.
Comment 9 Martin Kletzander 2013-07-16 01:01:33 EDT
*** Bug 951943 has been marked as a duplicate of this bug. ***
Comment 12 hyao@redhat.com 2013-08-06 06:04:14 EDT
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.
Comment 13 errata-xmlrpc 2013-11-21 15:38:26 EST
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

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