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 869474 - Error occurs when select a bridge network created by libvirt in virt-manager
Summary: Error occurs when select a bridge network created by libvirt in virt-manager
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: virt-manager
Version: 6.4
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: rc
: ---
Assignee: Martin Kletzander
QA Contact: Virtualization Bugs
URL:
Whiteboard:
: 951943 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-10-24 02:48 UTC by hongming
Modified: 2013-11-21 20:38 UTC (History)
11 users (show)

Fixed In Version: virt-manager-0.9.0-19.el6
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-11-21 20:38:26 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2013:1646 0 normal SHIPPED_LIVE virt-manager bug fix update 2013-11-20 21:53:27 UTC

Description hongming 2012-10-24 02:48:48 UTC
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 14:13:08 UTC
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 07:42:31 UTC
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 15:34:04 UTC
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 16:19:10 UTC
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-30 02:31:17 UTC
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 05:01:33 UTC
*** Bug 951943 has been marked as a duplicate of this bug. ***

Comment 12 hyao@redhat.com 2013-08-06 10:04:14 UTC
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 20:38:26 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-2013-1646.html


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