CA-89303: A slave without master cannot bring up its management interface.

It should not try to query the DB, since the master is not accessible.

This commit fixes the problem introduces by the fix for CA-87787,
commit: 8d0adadf54911e7b6a645ca1ca2fdb241f65ad3e

Signed-off-by: Jerome Maloberti <jerome.maloberti@citrix.com>
Merge pull request #919 from jeromemaloberti/CA-89303-lcm

CA-89303: A slave without master cannot bring up its management interfac...
Revert pull request 919, accidentally committed too soon

Signed-off-by: Jon Ludlam <jonathan.ludlam@eu.citrix.com>
Merge pull request #926 from jonludlam/revert-pull-request-919

Revert pull request 919, accidentally committed too soon
CA-93613: Balance memory raises an exception if squeezed is stopped

Signed-off-by: Jerome Maloberti <jerome.maloberti@citrix.com>
Allow alternative implementations of the device-model and domain builder (aka xenguest)

To use an alternative device model, first put a new executable in

  /opt/xensource/alternatives/device-model/name

and then set VM.platform:device-model=name

To use an alternative xenguest, first put a new executable in

  /opt/xensource/alternatives/xenguest/name

and then set VM.platform:xenguest=name

Signed-off-by: David Scott <dave.scott@eu.citrix.com>
Avoid fs special characters being interpretted in platform:{device-model,xenguest}

We list the contents of the alternatives/ directory, and insist that
the requested option is physically present in the directory.

Signed-off-by: David Scott <dave.scott@eu.citrix.com>
Merge pull request #931 from jeromemaloberti/CP-3776-lcm

CP-3776: Implement platform:device-model and platform:xen-guest path overrides
Merge pull request #930 from jeromemaloberti/CA-93613-lcm

CA-93613: Balance_memory raises an exception if squeezed is stopped
CA-89303: A slave without master cannot bring up its management interface.

It should not try to query the DB, since the master is not accessible.

This commit fixes the problem introduces by the fix for CA-87787,
commit: 8d0adadf54911e7b6a645ca1ca2fdb241f65ad3e

Signed-off-by: Jerome Maloberti <jerome.maloberti@citrix.com>
Merge pull request #944 from jeromemaloberti/CA-89303-lcm2

CA-89303: A slave without master cannot bring up its management interfac...
Whitespace: Xapi_pv_drivers_version.of_drivers_version.

$ camlp4o -printer o -no_comments ocaml/xapi/xapi_pv_driver_version.ml | md5sum
5605b59b4dae1e43796c0b158ae99dcd  -
$ git checkout HEAD^
$ camlp4o -printer o -no_comments ocaml/xapi/xapi_pv_driver_version.ml | md5sum
5605b59b4dae1e43796c0b158ae99dcd  -

Signed-off-by: John Else <john.else@citrix.com>
CA-89023: Fix PV tools OS type detection.

Using the /drivers/xenvbd xenstore key to flag that a guest is Windows
is problematic, since:

1. This key goes away after suspend/resume or migrate, so cannot be
   relied upon to mark PV tools as out of date after a rolling pool upgrade.
2. This key isn't written at all by the Tampa PV drivers.

Instead, we now check that /data/os_distro equals "windows" - this value is
hardcoded in the windows guest agent.

Signed-off-by: John Else <john.else@citrix.com>
Revert "CA-89303: A slave without master cannot bring up its management interface."

This reverts commit 273cc21d457211b862de6fd3eec323802cc21284.
Merge pull request #951 from johnelse/ca-89303-revert-again

TAMPA-LCM: Revert "CA-89303: A slave without master cannot bring up its management interface"
Merge pull request #950 from johnelse/ca-89023-tampa-lcm

TAMPA-LCM: CA-89023: Fix PV tools OS type detection.