[libvirt] [PATCH] xen-xs: fix uuid of renamed domain

Eric Blake eblake at redhat.com
Fri Aug 24 15:51:04 UTC 2012


On 08/24/2012 06:58 AM, Philipp Hahn wrote:
> When the XenStore tdb lives persistently and is not cleared between host
> reboots, Xend (version 3.4 and 4.1) re-creates the domain information
> located in XenStore below /vm/$UUID. (According to the xen-3.2-commit
> hg265950e3df69 to fix a problem when locally migrating a domain to the
> host itself.)
> 
> When doing so a version number is added to the UUID separated by one
> dash, which confuses xenStoreDomainIntroduced(): It iterates over all
> domains and tries to lookup all inactive domains using
> xenStoreDomainGetUUID(), which fails if the running domain is renamed:
> virUUIDParse() fails to parse the versioned UUID and the domain is
> flagged as missing. When this happens the function delays .2s and
> re-tries 20 times again, multiplied by the number of renamed VMs.
>   14:48:38.878: 4285: debug : xenStoreDomainIntroduced:1354 : Some domains were missing, trying again

> The patch adds truncation of the UUID as read from the XenStore path
> before passing it to virUUIDParse().
> 
> The same issue is reported at
> <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=666135>
> 
> Signed-off-by: Philipp Hahn <hahn at univention.de>
> ---
>  src/xen/xs_internal.c |    5 ++++-
>  1 files changed, 4 insertions(+), 1 deletions(-)

ACK and pushed.

-- 
Eric Blake   eblake at redhat.com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 620 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20120824/b50d20c0/attachment-0001.sig>


More information about the libvir-list mailing list