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
--
"La perfection est atteinte non quand il ne reste rien a ajouter, mais
quand il ne reste rien a enlever." (Antoine de Saint-Exupery)