On 03/11/2016 11:34 AM, Jean-Pierre Ribeauville wrote:
Hi,
When retrieving KVM Host UUID via virsh getcapabilities() or via
ovirt Python SDK ( by using obj.get_id() ), then both UUIDs are not
identical .
(FYI, Guest UUIDs retrieved via both ways , i.e.
virDomainGetUUIDString() or python ovirt sdk , are identical.)
Did I miss something ?
This is normal, and expected. The host exists before it is added to the
oVirt system, and already has an identifier. When it is added to the
oVirt system it gets a new identifier assigned, for tracking it in the
oVirt database. Those two identifiers are different.
On the other hand virtual machines are created by the oVirt system. It
assign them an identifier for tracking in the oVirt database, and it
happens to use the same identifier when asking libvirt to create the
virtual machine.
Anyhow, you should not rely on these identifiers being the same, or
different, as it is an implementation detail that may change in the future.
Is there any specific thing you are trying to achieve? If you share it
we may be able to suggest a different approach.
--
Dirección Comercial: C/Jose Bardasano Baos, 9, Edif. Gorbea 3, planta
3ºD, 28016 Madrid, Spain
Inscrita en el Reg. Mercantil de Madrid – C.I.F. B82657941 - Red Hat S.L.