nova/plugins/xenserver/xenapi
John Garbutt d65ca49990 xenapi: deal with reboots while talking to agent
The latest version of the agent has started changing the hostname
through the official windows APIs, when resetnetwork is called. This
means a reboot might happen after resetnetwork.

A reboot happens when polling for the version. Until now we wait for the
call timeout, before fetching the new dom id. This change ensures that
if we spot a reboot, the plugin exits early rather than keeping polling
the wrong dom id.

Turns out its best to wait for the dom_id to change, before trying
to poll the agent again. Once the dom_id in xenapi has been updated,
the xenstore keys are always in place.

Trying too early leads to lots of reboot detections because we are
retrying with the old dom_id. XenServer continues to return the old
dom_id for a little while after the reboot.

Closes-Bug: #1370999

Change-Id: Id0bf5b64f2b271d162db5bbce50167ab1f665c87
2014-09-26 14:57:05 +01:00
..
etc/xapi.d/plugins xenapi: deal with reboots while talking to agent 2014-09-26 14:57:05 +01:00
README Remove xenapi rpm building code 2013-10-15 14:38:40 -07:00

This directory contains files that are required for the XenAPI support.
They should be installed in the XenServer / Xen Cloud Platform dom0.

If you install them manually, you will need to ensure that the newly
added files are executable. You can do this by running the following
command (from dom0):

chmod a+x /etc/xapi.d/plugins/*