Bug 869474
| Summary: | Error occurs when select a bridge network created by libvirt in virt-manager | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 6 | Reporter: | hongming <honzhang> |
| Component: | virt-manager | Assignee: | Martin Kletzander <mkletzan> |
| Status: | CLOSED ERRATA | QA Contact: | Virtualization Bugs <virt-bugs> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 6.4 | CC: | acathrow, cwei, dallan, honzhang, hyao, lcui, mjenner, mkletzan, mzhan, tzheng, vchepkov |
| Target Milestone: | rc | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| 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 20:38:26 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
hongming
2012-10-24 02:48:48 UTC
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 |