Bug 978264

Summary: Error refreshing hardware page: unsupported operand type(s) for /: 'NoneType' and 'int'
Product: [Fedora] Fedora Reporter: Jan Stodola <jstodola>
Component: python-virtinstAssignee: Cole Robinson <crobinso>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: 18CC: berrange, crobinso, hbrock, jforbes, virt-maint
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: python-virtinst-0.600.4-2.fc18 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-07-10 01:33:10 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 Jan Stodola 2013-06-26 08:36:38 UTC
Description of problem:

Error refreshing hardware page: unsupported operand type(s) for /: 'NoneType' and 'int'

Traceback (most recent call last):
  File "/usr/share/virt-manager/virtManager/details.py", line 1307, in hw_selected
    self.refresh_disk_page()
  File "/usr/share/virt-manager/virtManager/details.py", line 2905, in refresh_disk_page
    iotune_read_bytes_sec = disk.iotune_read_bytes_sec / 1024
TypeError: unsupported operand type(s) for /: 'NoneType' and 'int'


Version-Release number of selected component (if applicable):
virt-manager-0.9.5-1.fc18.noarch

How reproducible:
always

Steps to Reproduce:
1. start virt-manager
2. create new virtual machine, select "Network Install (HTTP, FTP or NFS)"
3. enter install URL (URL to RHEL-6.4 was entered)
4. do not modify RAM/CPU (1024 MB / 1 CPU)
5. let virt-manager to create a disk image, use default values
6. check "Customize configuration before install" and click on "Finish"
7. Select disk (labeled as "Disk 1")

Actual results:
error message with traceback

Expected results:
disk configuration can be modified

Comment 1 Cole Robinson 2013-06-26 14:17:41 UTC
This is fixed upstream:

commit 21858615b509f04ba0702e2f69f89225c322eb8c
Author: Cole Robinson <crobinso>
Date:   Sat Apr 20 18:37:34 2013 -0400

    Fix accessing disk page in virt-manager 'customize before install'

Comment 2 Fedora Update System 2013-06-29 00:59:38 UTC
python-virtinst-0.600.4-2.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/python-virtinst-0.600.4-2.fc18

Comment 3 Fedora Update System 2013-07-01 01:40:58 UTC
Package python-virtinst-0.600.4-2.fc18:
* should fix your issue,
* was pushed to the Fedora 18 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing python-virtinst-0.600.4-2.fc18'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2013-12006/python-virtinst-0.600.4-2.fc18
then log in and leave karma (feedback).

Comment 4 Jan Stodola 2013-07-02 07:05:17 UTC
No longer able to reproduce with python-virtinst-0.600.4-2.fc18.
Thanks, moving to VERIFIED.

Comment 5 Fedora Update System 2013-07-10 01:33:10 UTC
python-virtinst-0.600.4-2.fc18 has been pushed to the Fedora 18 stable repository.  If problems still persist, please make note of it in this bug report.