Bug 872814

Summary: VM cannot handle prefix= in a IPv4 definition
Product: [Fedora] Fedora Reporter: Gene Czarcinski <gczarcinski>
Component: virt-managerAssignee: Cole Robinson <crobinso>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 17CC: berrange, crobinso, hbrock, jforbes, virt-maint
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-01-06 18:07:06 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 Gene Czarcinski 2012-11-03 13:48:03 UTC
Description of problem:
When prefix= (e.g., prefix='24') in a IPv4 definition instead of netmask=, 

Version-Release number of selected component (if applicable):
virt-manager-0.9.4-2

How reproducible:
Using virsh, add or change a virtual network definition to use prefix = instead of netmask=

Actual results:
See below [results from running virt-manager --debug --no-fork

Expected results:
Things work the same as if netmask was specified

Additional info:

2012-11-03 07:22:53,803 (host:513): 'NoneType' object has no attribute 'split'
Traceback (most recent call last):
  File "/usr/share/virt-manager/virtManager/host.py", line 511, in net_selected
    self.populate_net_state(net)
  File "/usr/share/virt-manager/virtManager/host.py", line 544, in populate_net_state
    network = net.get_ipv4_network()
  File "/usr/share/virt-manager/virtManager/network.py", line 105, 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'

Comment 1 Cole Robinson 2012-12-17 19:49:49 UTC
Thanks Gene, fixed upstream now.

Comment 2 Fedora Update System 2012-12-17 20:10:42 UTC
virt-manager-0.9.4-3.fc17 has been submitted as an update for Fedora 17.
https://admin.fedoraproject.org/updates/virt-manager-0.9.4-3.fc17

Comment 3 Fedora Update System 2013-01-03 07:27:49 UTC
virt-manager-0.9.4-3.fc17 has been pushed to the Fedora 17 stable repository.  If problems still persist, please make note of it in this bug report.