Bug 339061 - Adding CDROM drive fails 'global name 'libvirtError' is not defined'
Adding CDROM drive fails 'global name 'libvirtError' is not defined'
Status: CLOSED ERRATA
Product: Fedora
Classification: Fedora
Component: virt-manager (Show other bugs)
rawhide
All Linux
medium Severity medium
: ---
: ---
Assigned To: Cole Robinson
Fedora Extras Quality Assurance
http://hg.et.redhat.com/virt/applicat...
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2007-10-18 22:21 EDT by Andrew Bartlett
Modified: 2008-01-22 10:52 EST (History)
2 users (show)

See Also:
Fixed In Version: 0.5.3-1.fc8
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2008-01-22 10:52:28 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:


Attachments (Terms of Use)

  None (edit)
Description Andrew Bartlett 2007-10-18 22:21:35 EDT
Description of problem:
Adding a CDROM drive to an existing image fails with

Version-Release number of selected component (if applicable):
libvirt-0.3.3-2.fc8
virt-manager-0.5.2-2.fc8

How reproducible:
Every time

Steps to Reproduce:
1. Install qemu based virtual machine (using boot CDROM for debian)
2. Stop the install
3. Re-add CDROM with 'Hadware -> Add -> Storage -> select image -> select CDROM
  
Actual results:

Message with 
'global name 'libvirtError' is not defined'

Unable to complete install '<type 'exceptions.NameError'> global name
'libvirtError' is not defined
Traceback (most recent call last):
  File "/usr/share/virt-manager/virtManager/addhardware.py", line 530, in add_device
    self.vm.add_device(xml)
  File "/usr/share/virt-manager/virtManager/domain.py", line 684, in add_device
    except libvirtError, e:
NameError: global name 'libvirtError' is not defined
'

Expected results:
Add the CDROM to qemu/kvm

Additional info:
Comment 1 Andrew Bartlett 2007-10-18 22:31:35 EDT
I'm pretty sure this is:

http://hg.et.redhat.com/virt/applications/virt-manager--devel?cs=58c46220f2df
Comment 2 Andrew Bartlett 2007-10-24 21:16:17 EDT
Indeed, this patch fixed the issue.  How do i get that patch into Fedora for
Fedora 8?
Comment 3 Cole Robinson 2007-12-04 11:11:13 EST
A new version of virt-manager will need to be tagged, then pushed to Fedora.
I'll close the bug when the new version is pushed.
Comment 4 Fedora Update System 2008-01-11 17:23:31 EST
virt-manager-0.5.3-1.fc8 has been pushed to the Fedora 8 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update virt-manager'
Comment 5 Andrew Bartlett 2008-01-20 20:00:01 EST
Looks good to me. 
Comment 6 Fedora Update System 2008-01-22 10:52:12 EST
virt-manager-0.5.3-1.fc8 has been pushed to the Fedora 8 stable repository.  If problems still persist, please make note of it in this bug report.

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