virt-manager gets confused when adding and deleting guest with same name

Bug #219023 reported by Jamie Strandboge
2
Affects Status Importance Assigned to Milestone
virt-manager (Fedora)
Fix Released
Low
virt-manager (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: virt-manager

If I add a new vm called 'foo', and click Finish in virt-manager, the vm is created fine. If I destroy it, then delete it, the vm is removed fine. However, if I then try to create a new vm named 'foo', when I click Finish, a dialog quickly pops up then goes away, then the final dialog with 'Finish' is displayed. Clicking 'Finish' results in an error saying it is already running. The vm is not listed in virt-manager, but the vm is running. Closing virt-manager and opening it again 'resets' virt-manager, and it sees the added, running vm.

Revision history for this message
Jamie Strandboge (jdstrand) wrote :
Download full text (3.1 KiB)

Additional information:

Versions of packages virt-manager depends on:
ii libatk1.0-0 1.22.0-0ubuntu1 The ATK accessibility toolkit
ii libc6 2.7-10ubuntu3 GNU C Library: Shared libraries
ii libcairo2 1.6.0-0ubuntu1 The Cairo 2D vector graphics libra
ii libffi4 4.2.3-2ubuntu7 Foreign Function Interface library
ii libglib2.0-0 2.16.3-1 The GLib library of C routines
ii libgtk2.0-0 2.12.9-2ubuntu2 The GTK+ graphical user interface
ii libpango1.0-0 1.20.1-1 Layout and rendering of internatio
ii librsvg2-common 2.22.2-2 SAX-based renderer library for SVG
ii python-dbus 0.82.4-1ubuntu1 simple interprocess messaging syst
ii python-glade2 2.12.1-0ubuntu1 GTK+ bindings: Glade support
ii python-gnome2 2.22.0-0ubuntu1 Python bindings for the GNOME desk
ii python-gtk-vnc 0.3.4-ubuntu1~ppa1 A VNC viewer widget for GTK+ (pyth
ii python-gtk2 2.12.1-0ubuntu1 Python bindings for the GTK+ widge
ii python-libvirt 0.4.0-2ubuntu8 libvirt python bindings
ii python-urlgrabber 3.1.0-4 A high-level cross-protocol url-gr
ii python-virtinst 0.300.2-0ubuntu3 program and library to install vir
ii python-vte 1:0.16.13-1ubuntu1 Python bindings for the VTE widget
ii python2.5 2.5.2-2ubuntu3 An interactive high-level object-o

Versions of packages virt-manager recommends:
ii hal 0.5.11~rc2-1ubuntu6 Hardware Abstraction Layer

Also, when clicking 'Delete', sometimes get:
libvir: QEMU error :
libvir: QEMU error :
libvir: Domain error : invalid domain pointer in virDomainGetID
libvir: Domain error : invalid domain pointer in virDomainGetName
libvir: Domain error : invalid domain pointer in virDomainGetID
Traceback (most recent call last):
  File "/usr/share/virt-manager/virtManager/console.py", line 393, in retry_login
    self.try_login()
  File "/usr/share/virt-manager/virtManager/console.py", line 435, in try_login
    if self.vm.get_id() < 0:
  File "/usr/share/virt-manager/virtManager/domain.py", line 83, in get_id
    return self.vm.ID()
AttributeError: 'NoneType' object has no attribute 'ID'

But after creating a new machine with the same name as the one just deleted, clicking 'Finish' yields:
libvir: QEMU error :
libvir: QEMU error :
libvir: QEMU error : no domain with matching uuid
Traceback (most recent call last):
  File "/usr/share/virt-manager/virtManager/create.py", line 601, in finish
    self.connection.tick(noStatsUpdate=True)
  File "/usr/share/virt-manager/virtManager/connection.py", line 616, in tick
    vm = vmmDomain(self.config, self, rawvm, uuid)
  File "/usr/share/virt-manager/virtManager/domain.py", line 48, in __init__
    self._update_status()
  File "/usr/share/virt-manager/virtManager/domain.py", line 147, in _update_status
    info = self.vm.info()
  File "/usr/lib/python2.5/site-packages/libvirt.py", line 446, in info
    if ret is None: raise libvirtError ('virDomainGetInfo() failed', dom=self)
libvirt.libvirtError: virDomainGetInfo() failed no domain with matc...

Read more...

Revision history for this message
In , Jens (jens-redhat-bugs) wrote :

Description of problem:
If I install a guest under virt-manager and then delete it and install another
guest under the same name in virt-manager: the console for the new guest refuses
to appear. Workaround is to quit virt-manager and start it again and voila.

How reproducible:
every time

Steps to Reproduce:
1. install a guest OS (call it "rawhide1")
2. later delete rawhide1 from virt-manager
3. try to reinstall "rawhide1" as a new guest

Actual results:
3. Press Finish in install setup does not bring up console window for rawhide1
 (I think it flashes up and then disappears.) Pressing Finish again and a message
  appears saying it is already running.

Expected results:
3. new console to appear normally

Additional info:
It is annoying having to restart virt-manager for this.

Changed in virt-manager:
status: Unknown → Confirmed
Revision history for this message
In , Cole (cole-redhat-bugs) wrote :

*** Bug 453009 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Jens (jens-redhat-bugs) wrote :

I think this may be fixed in 0.6.1 or earlier.

Changed in virt-manager:
status: Confirmed → In Progress
Revision history for this message
In , Mark (mark-redhat-bugs) wrote :

Okay, this was filed against F9, but since it's fixed in rawhide and easy to work around, I'm closing the bug. Thanks Jens.

Changed in virt-manager (Fedora):
status: In Progress → Fix Released
Revision history for this message
Jamie Strandboge (jdstrand) wrote :

Marking Fix Released as this was fixed in 0.6.1 per Fedora bug.

Changed in virt-manager (Ubuntu):
status: New → Fix Released
Changed in virt-manager (Fedora):
importance: Unknown → Low
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.