Don't believe the result of Bindings.get_status if dev has no carrier

Signed-off-by: Vincent Bernardoff <vincent.bernardoff@ocamlpro.com>
CA-75697: Disallow VBD.create during VM migration

All manner of bad things happen if a VBD is created during a VM's migration, and such new VBDs bypass the checks that would normally happen before a migrate can start.

This patch raises an "other operation in progress" error if you try to create a VBD on a VM that's in the middle of a migration.

Example output:

  # xe vbd-create vdi-uuid=<vdi> vm-uuid=efc5e680-21a1-b0b5-7787-a49fe4ebec34 device=autodetect
  Another operation involving the object is currently in progress
  class: VM
  object: efc5e680-21a1-b0b5-7787-a49fe4ebec34 (demo)
  <extra>: pool_migrate

Signed-off-by: Jonathan Davies <jonathan.davies@citrix.com>
CA-83260: Raise API error when attaching RO disk VBD to HVM guest

Signed-off-by: Jonathan Davies <jonathan.davies@citrix.com>
CA-84354: SXM fails when VM has snapshot

We weren't clearing the vdi_info.sm_config map when we created a new VDI on the
remote host for the snapshot VDI. The sm_config map still had the
host_OpaqueRef:... field, which caused blktap2.py to think that the VDI was
already attached and activated, when in fact it wasn't. We now clear the
sm_config map (although it is unclear whether clearing it is better than just
filtering the host_OpaqueRef key).

Signed-off-by: Mike McClurg <mike.mcclurg@citrix.com>
CA-71001: set xs-network-uuids on CHIN/tunnel ovs bridges

If the xs-network-uuids key on the bridge is not set correctly,
the controller is not able to create the tunnel ports.

Signed-off-by: Rob Hoes <rob.hoes@citrix.com>
CA-84344: Cleanup: rename "vm'" to "vm_uuid"

Signed-off-by: Jon Ludlam <jonathan.ludlam@eu.citrix.com>
CA-84344: Add some more detail to the xn vbd-list command

Signed-off-by: Jon Ludlam <jonathan.ludlam@eu.citrix.com>
CA-84344: Add a new fist point after the VDIs have been remapped

Signed-off-by: Jon Ludlam <jonathan.ludlam@eu.citrix.com>
CA-84344: Roll back the changes to the VM's VDIs when the memory transfer fails

Signed-off-by: Jon Ludlam <jonathan.ludlam@eu.citrix.com>
CA-85224: ensure qemu watch "cancel paths" are unique per qemu instance

Rather than determining the path based solely on the domain containing
the qemu, use both the qemu domain and the guest domain id.

This avoids two concurrent suspend/resumes from cancelling each other
by accident (!)

Signed-off-by: David Scott <dave.scott@eu.citrix.com>
Merge commit 'b3b2c768cdd8cd784aedc4deac50aedbe6760229'
Merge commit '941dab3debc7b35dca8f86642f057269521c2cd7'
Merge commit '64e730a274c0450e7eef580ceffddeb05ef6dc97'
Merge commit '3ca9c21862414fd4b91f489857f3e53e9c7f4f56'
Merge commit '1c0c9c59f90f43bec478962b12ee3efcea4c71c5'
Merge commit '018563d88f7d147c76d919c98a19c7217822b994'
Don't believe the result of Bindings.get_status if dev has no carrier, more efficient

Signed-off-by: Vincent Bernardoff <vincent.bernardoff@ocamlpro.com>
CA-86833: Cannot delete VM if RRD daemon is not running in DOM0

This patch puts a try-catch-log wrapper around the relevant call from xapi
to xcp-rrdd.

Signed-off-by: Rok Strniša <rok.strnisa@citrix.com>
Merge commit '8c73b68b13c7b4cb86236f7a04157b12aa81004c'
Merge commit 'c3f4a73f4db92107688117e4b059480b443ba9c8'