Bug 518100

Summary: Xen driver does not update domain ID after starting a persistent domain
Product: [Fedora] Fedora Reporter: Daniel Berrangé <berrange>
Component: libvirtAssignee: Daniel Veillard <veillard>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: rawhideCC: berrange, clalance, crobinso, itamar, markmc, veillard, virt-maint, xen-maint
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-09-15 10:40:10 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Daniel Berrangé 2009-08-18 21:24:14 UTC
Description of problem:
The libvirt-tck fails on test domain/060, due to domain ID not being updated

/usr/share/libvirt-tck/tests/domain/060-persistent-lifecycle.t ....... 
1..9
# Defining an inactive domain config
ok 1 - defined persistent domain config
# Undefining inactive domain config
# Checking that persistent domain has gone away
ok 2 - NO_DOMAIN error raised from missing domain
# Defining inactive domain config again
ok 3 - defined persistent domain config
# Starting inactive domain config
not ok 4 - running domain has an ID > 0

#   Failed test 'running domain has an ID > 0'
#   at /usr/share/libvirt-tck/tests/domain/060-persistent-lifecycle.t line 63.
# Trying another domain lookup by name
ok 5 - the running domain object
ok 6 - running domain has an ID > 0
# Destroying the running domain
# Checking there is still an inactive domain config
ok 7 - the inactive domain object
ok 8 - inactive domain has an ID == -1
# Undefining the inactive domain config
ok 9 - NO_DOMAIN error raised from missing domain
# Looks like you failed 1 test of 9.
Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/9 subtests 


Version-Release number of selected component (if applicable):
libvirt-0.7.0-4.fc12.x86_64

How reproducible:
Always

Steps to Reproduce:
1. # libvirt-tck  -t /usr/share/libvirt-tck/tests/domain/060-persistent-lifecycle.t -v
2.
3.
  
Actual results:
Fails

Expected results:
Passes

Additional info:

Comment 1 Mark McLoughlin 2009-08-19 07:45:17 UTC
think it makes sense to track this one upstream since F12 doesn't have dom0 support?

Comment 2 Daniel Berrangé 2009-08-19 09:46:04 UTC
Actually my goal is that libvirt in F12 be sufficiently functional for someone to drop in the community provided Dom0 kernels and still work. So I do want to track this for F12.

Comment 3 Daniel Berrangé 2009-09-15 10:40:10 UTC
Fix upstream and now in rawhide

http://libvirt.org/git/?p=libvirt.git;a=commit;h=96f0ee85d25ae27685470f5ccca0368a7a1d40df