[Libvir] uuid of newly created domain

Vadim Zaliva lord at crocodile.org
Mon Mar 31 22:53:09 UTC 2008


On Mar 31, 2008, at 11:40, Vadim Zaliva wrote:
> I am trying to track down the problem.


OK, I have been able to reproduce the problem, is C, without Ruby.  
Attached is source code
and XML file. Here is a sample output:

Attempt 0:
define
Domain defined with UUID 714b96db-a6b4-a4ea-ad58-39e4b44575c0
lookup by UUID 714b96db-a6b4-a4ea-ad58-39e4b44575c0
Lookup found domain with UUID 714b96db-a6b4-a4ea-ad58-39e4b44575c0
undefine

Attempt 1:
define
Domain defined with UUID 714b96db-a6b4-a4ea-ad58-39e4b44575c0
lookup by UUID 714b96db-a6b4-a4ea-ad58-39e4b44575c0
libvir: Xen Daemon error : GET operation failed:
Failed to lookup by UUID string domain

As you can see, it works OK first time, but the second time, returns  
the same UUID, lookup on which fails.
The reason it fails is that the actual UUID is different second time:

virsh # dominfo sample-domain-lord
Id:             -
Name:           sample-domain-lord
UUID:           b6eba85c-0f21-f79e-0607-1211d3fb4e36
OS Type:        linux
State:          shut off
CPU(s):         1
Max memory:     262144 kB
Used memory:    262144 kB

I am not sure if I can fix that myself.

Sincerely,
Vadim

-------------- next part --------------
A non-text attachment was scrubbed...
Name: domtest.c
Type: application/octet-stream
Size: 2034 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20080331/dcd99eab/attachment-0001.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sample_domain.xml
Type: text/xml
Size: 619 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20080331/dcd99eab/attachment-0001.xml>
-------------- next part --------------


--
"La perfection est atteinte non quand il ne reste rien a ajouter, mais
quand il ne reste rien a enlever."  (Antoine de Saint-Exupery)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 1607 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20080331/dcd99eab/attachment-0001.p7s>


More information about the libvir-list mailing list