Bug 488731 - Python exception provisioning new guest
Summary: Python exception provisioning new guest
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: python-virtinst
Version: rawhide
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Daniel Berrangé
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-03-05 14:38 UTC by Daniel Berrangé
Modified: 2009-03-05 15:23 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-03-05 15:23:46 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Daniel Berrangé 2009-03-05 14:38:37 UTC
Description of problem:
# virt-install --ram 300 --location http://support-uk.fab.redhat.com/mrepo/www/f10-i386/disc1/ --hvm --vnc --noautoconsole --name demo --file /var/lib/libvirt/images/demo.img --file-size 1
ERROR    local variable 'cache' referenced before assignment
Traceback (most recent call last):
  File "/usr/sbin/virt-install", line 779, in <module>
    main()
  File "/usr/sbin/virt-install", line 600, in main
    options.sparse, options.nodisks, guest, ishvm, conn)
  File "/usr/sbin/virt-install", line 243, in get_disks
    is_file_path), disk, size)
  File "/usr/sbin/virt-install", line 243, in <lambda>
    is_file_path), disk, size)
  File "/usr/sbin/virt-install", line 195, in get_disk
    driverCache=cache)


Version-Release number of selected component (if applicable):
python-virtinst-0.400.2-1.fc11.noarch

How reproducible:
Always

Steps to Reproduce:
1. virt-install --ram 300 --location http://support-uk.fab.redhat.com/mrepo/www/f10-i386/disc1/ --hvm --vnc --noautoconsole --name demo --file /var/lib/libvirt/images/demo.img --file-size 1
2.
3.
  
Actual results:


Expected results:


Additional info:

Comment 1 Cole Robinson 2009-03-05 15:23:46 UTC
Damn. I wish pylint would have caught this, but then again I wish _I_ caught this.

Fixed in python-virtinst-0.400.2-3.fc11. Closing as RAWHIDE.


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