Bug 605841 - libvirt confused by removal and creation of vm with same name
Summary: libvirt confused by removal and creation of vm with same name
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: libvirt
Version: 13
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Daniel Veillard
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-06-18 22:30 UTC by Roland McGrath
Modified: 2011-06-10 17:46 UTC (History)
9 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-06-10 17:46:35 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Roland McGrath 2010-06-18 22:30:32 UTC
Description of problem:


Version-Release number of selected component (if applicable):
virt-manager-0.8.4-1.fc13.noarch
python-virtinst-0.500.3-1.fc13.noarch
libvirt-0.7.7-4.fc13.x86_64

How reproducible:
100%

Steps to Reproduce:
1.In virt-manager, GUI, create a new VM with the wizard.
  I used an NFS install of Fedora 13 for x86_64.
  Pick name "bugtest3", leave all other defaults until wizard step 5.
2.In step 5, select "Customize configuration before install" checkbox
3.In configuration editor, select Memory and type 2048 in "Maximum Allocation" box, then hit "Finish install" button.
4.After GUI anaconda starts up in the VM, hit "force off" menu item.
5.Close viewer window.
6.Delete VM with context menu in manager window, and select "Delete associated storage" checkbox, submit.
7.Repeat from step 1 with everything entered identically in the wizard.
  
Actual results:
virt-manager pops up error window with backtrace shown below.
The VM is actually started running correctly, but virt-manager doesn't see it.
If I manually disconnect/reconnect to hypervisor, it sees the new VM.


Expected results:
No error, new VM displayed normally.


Additional info:

Unable to complete install '<class 'libvirt.libvirtError'> Domain not found: no domain with matching uuid '42418b5c-ffb3-5bb6-2818-08c243db157c'
Traceback (most recent call last):
  File "/usr/share/virt-manager/virtManager/create.py", line 1562, in do_install
    self.conn.tick(noStatsUpdate=True)
  File "/usr/share/virt-manager/virtManager/connection.py", line 1445, in tick
    self.vms, self.activeUUIDs) = self._update_vms()
  File "/usr/share/virt-manager/virtManager/connection.py", line 1404, in _update_vms
    vm = vmmDomain(self.config, self, rawvm, uuid)
  File "/usr/share/virt-manager/virtManager/domain.py", line 1177, in __init__
    self._update_status()
  File "/usr/share/virt-manager/virtManager/domain.py", line 1902, in _update_status
    info = self.get_info()
  File "/usr/share/virt-manager/virtManager/domain.py", line 1212, in get_info
    return self._backend.info()
  File "/usr/lib64/python2.6/site-packages/libvirt.py", line 649, in info
    if ret is None: raise libvirtError ('virDomainGetInfo() failed', dom=self)
libvirtError: Domain not found: no domain with matching uuid '42418b5c-ffb3-5bb6-2818-08c243db157c'
'

Comment 1 Roland McGrath 2010-06-18 22:31:46 UTC
Oh, forgot to mention, this virt-manager is started as root (under sudo in a normal user GNOME session).  The only connection is qemu:///system, the qemu:///session connection was deleted first.

Comment 2 Cole Robinson 2010-11-17 23:22:16 UTC
I'm pretty sure this boils down to an issue with libvirt caching domain objects which are keyed by name rather than UUID. I know danpb has a patch series upstream that will eventually address this. Reassigning to libvirt

Comment 3 Bug Zapper 2011-06-02 10:19:05 UTC
This message is a reminder that Fedora 13 is nearing its end of life.
Approximately 30 (thirty) days from now Fedora will stop maintaining
and issuing updates for Fedora 13.  It is Fedora's policy to close all
bug reports from releases that are no longer maintained.  At that time
this bug will be closed as WONTFIX if it remains open with a Fedora 
'version' of '13'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version prior to Fedora 13's end of life.

Bug Reporter: Thank you for reporting this issue and we are sorry that 
we may not be able to fix it before Fedora 13 is end of life.  If you 
would still like to see this bug fixed and are able to reproduce it 
against a later version of Fedora please change the 'version' of this 
bug to the applicable version.  If you are unable to change the version, 
please add a comment here and someone will do it for you.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events.  Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

The process we are following is described here: 
http://fedoraproject.org/wiki/BugZappers/HouseKeeping

Comment 4 Cole Robinson 2011-06-10 17:46:35 UTC
This is fixed in F15 IIRC, so closing as CURRENTRELEASE. The hash table refactoring is unlikely to be backported to f14


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