Update in_product_since for assigned_ips

assigned_ips has been backported to creedence.

Signed-off-by: John Else <john.else@citrix.com>
Remove Re_str

Signed-off-by: John Else <john.else@citrix.com>
CA-112324: Check destination SR's connectivity during VM migration.
Signed-off-by: Ravi Pandey <ravi.pandey@citrix.com>
Merge pull request #1556 from ravippandey/CA-112324

CA-112324: Check destination SR's connectivity during VM migration.
Remove xiu branch of vncterm-wrapper

xiu has been gone a long time.

Signed-off-by: John Else <john.else@citrix.com>
Fix vncterm path for buildroot

Signed-off-by: John Else <john.else@citrix.com>
Fix vncterm path for 64-bit XenServer

Signed-off-by: John Else <john.else@citrix.com>
Serialise unit tests

There seems to be a race in OUnit. Serialising the tests adds less than
a second to the run time, which I think we can live with for now.

Signed-off-by: John Else <john.else@citrix.com>
Merge pull request #1872 from johnelse/serialise-tests

Serialise unit tests
Merge pull request #1868 from johnelse/fix-vncterm-wrapper

CA-141578: Fix paths in vncterm-wrapper
Merge pull request #1840 from johnelse/vhd-tool-update-fallout

vhd-tool update fallout
CA-108189: Prevent timeouts when collecting bugtools

Prevent timeouts when collecting bugtools by increasing the timeout for
the xenopsd bugtool plugin from 60 seconds to 600 seconds.  Since it
took about 200 seconds for 460 VMs, 600 seconds should be enough for
very large hosts.

Signed-off-by: Ross Lagerwall <ross.lagerwall@citrix.com>
CA-141474: Don't retry migrate if VM didn't acknowledge shutdown

Signed-off-by: Euan Harris <euan.harris@citrix.com>
Merge pull request #1879 from euanh/CA141474-trunk

CA-141474: Don't retry migrate if VM didn't acknowledge shutdown
CP-9366: Use HVM feature-flags instead of checking PV drivers.

Changes:
* xapi_vm_lifecycle check_operation_error uses the flags to check
  whether we can perform a given operation.
* In xapi_host.ml the pre-evacuation check no longer checks for PV
  drivers to learn whether a VM can be migrated.  It was already
  calling Xapi_vm_lifecycle.check_operation_error.
* Appropriate errors are defined: one for each of three features.
* Datamodel refers to a new error instead of vm_missing_pv_drivers.

Related work not done:
* Datamodel has some operations that should mention the new errors.
  They should have mentioned vm_missing_pv_drivers in the past, so
  even now we are no worse off than before.

Signed-off-by: Thomas Sanders <thomas.sanders@citrix.com>

Conflicts:
	ocaml/xapi/xapi_vm_lifecycle.ml
CP-9366: Update VM-metrics "other"

Now when qemu writes a feature-flag into the control node, xapi will
notice and so will trigger the existing code that can copy those entries
into the "other" vm guest metrics parameter.

To make that work, when checking whether the guest metrics should really
be updated, now we go ahead even if only the "other" map has changed.

Signed-off-by: Thomas Sanders <thomas.sanders@citrix.com>
Signed-off-by: Rob Hoes <rob.hoes@citrix.com>

Conflicts:
	ocaml/xenops/xenops_server_xen.ml
CP-9366: Allow vCPU hotplug for HVM (if feature-vcpu-hotplug is set).

Removed code that raises an Unimplemented exception unconditionally
for hvm guests when attempting vCPU hotplug.
This allows the existing code that decides based on the feature-flag
to work properly.

Signed-off-by: Thomas Sanders <thomas.sanders@citrix.com>
Signed-off-by: Rob Hoes <rob.hoes@citrix.com>

Conflicts:
	ocaml/xenops/xenops_server_xen.ml
Merge pull request #1894 from robhoes/hvmlinux

CP-9366: Use HVM feature-flags instead of checking PV drivers
CA-143944: Allow suspend when PV drivers are present (as before)

A few commits ago, we made a change to allow suspending based on the presence of
the "feature-suspend" key. Unfortunately, the Windows guest agent only writes
this key on startup and not on resume, so that xapi refuses any suspend request
after a resume (and probably after migration). As a workaround, we re-add the
old-style check, where the presence of the PV-drivers implies that all features
are enabled.

Signed-off-by: Rob Hoes <rob.hoes@citrix.com>
Merge pull request #1896 from robhoes/pvdrivers-master

CA-143944: Allow suspend when PV drivers are present (as before)