CA-95722:Prevent migration of VM's onto hosts that are in maintenance mode.
Signed-off-by: Akshay Ramani <akshay.ramani@citrix.com>
Fix indent
Signed-off-by: Akshay Ramani <akshay.ramani@citrix.com>
Merge pull request #1365 from akshayramani/CA-95722.a

CA-95722:Prevent migration of VM's onto hosts that are in maintenance mo...
Use more modern upstream libraries.

* Remove Fhs.vardir - this is now /var/lib/xcp
* Use Xenstore library from ocaml-xenstore
* Use Xenctrl library from ocaml-xen-lowlevel-libs
* Syslog -> Syslog_transitional to avoid conflict with upstream package
* Fix ocamldoc to work with Ocaml 4.00.1
* Use upstream rpclib instead of xen-api-libs fork
* Remove some unused code
* Remove some instances of xiu checks

Signed-off-by: Jon Ludlam <jonathan.ludlam@eu.citrix.com>
Signed-off-by: Si Beaumont <simon.beaumont@citrix.com>
Respond to comments on PR#1376

Signed-off-by: Jon Ludlam <jonathan.ludlam@eu.citrix.com>
Merge pull request #1376 from jonludlam/ea-1254-unified

Use more modern upstream libraries.
CA-111637: Fix a datarace on VMs cleanups after a host crash.

If the host comes back, it will execute db_sync and try to update the
DB too.

Signed-off-by: Jerome Maloberti <jerome.maloberti@citrix.com>
CA-111637: Fix a data race on the status of live hosts.

Signed-off-by: Jerome Maloberti <jerome.maloberti@citrix.com>
CA-111637: Change PBD.plug to be a master only operation.

Signed-off-by: Jerome Maloberti <jerome.maloberti@citrix.com>
CA-111637: Excludes Control Domain VMs from clean ups after host crash.

Signed-off-by: Jerome Maloberti <jerome.maloberti@citrix.com>
CA-111637: Remove set_live in pool.hello in HA.

Signed-off-by: Jerome Maloberti <jerome.maloberti@citrix.com>
CA-111637: Reorder Hosts and VMs recovery after a host crash in HA.

Signed-off-by: Jerome Maloberti <jerome.maloberti@citrix.com>