Bug 467660 - virDomainLookupByUUIDString fail after virDomainDestroy
Summary: virDomainLookupByUUIDString fail after virDomainDestroy
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: libvirt
Version: 5.1
Hardware: ia64
OS: Linux
medium
medium
Target Milestone: rc
: ---
Assignee: Daniel Veillard
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-10-20 03:26 UTC by Chunyang Liu
Modified: 2009-12-16 12:31 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-12-16 12:31:05 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Chunyang Liu 2008-10-20 03:26:40 UTC
Description of problem:

if i want to use virDomainLookupByUUIDString to get a domain object immediately after virDomainDestroy, it failed with message "internal error domain information incomplete, missing domid".

But if i wait for a while such as sleep(6) after virDomainDestroy, then virDomainLookupByUUIDString success.


Version-Release number of selected component (if applicable):


How reproducible:
just call virDomainLookupByUUIDString immediately after virDomainDestroy.

Steps to Reproduce:
1.
2.
3.
  
Actual results:
virDomainLookupByUUIDString return NULL.

Expected results:
return a valid domain object.

Additional info:

Comment 1 Daniel Berrangé 2009-10-29 16:48:06 UTC
This is probably a race condition in XenD in the way it cleans up domains. After destroying it, there is a short window in which information may still be visible. This is what's causing the error message from libvirt. I'm not sure we can fix this problem

Comment 2 Daniel Veillard 2009-12-16 12:31:05 UTC
This is more than one year old now, and it's not a good idea to keep this
in the current state.

Closing as WONT FIX, as the complexity of the Xen stack here means
it's unlikely we could ever get something close to an atomic operation
unfortunately

Daniel


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