CA-105903: vbd-unplug --force works regardless of surprise-remove state

This is just acknowledging the changes that were introduced in Tampa, and not a
change in behaviour since Tampa.

Signed-off-by: Mike McClurg <mike.mcclurg@citrix.com>
CA-107107: enable backtraces in xenopsd

Signed-off-by: Rob Hoes <rob.hoes@citrix.com>
CA-98606: Reduce impact of duplicated base_mirror key

There's a rather fundamental race in the SMAPIv1 backends with
the storage motion code. Fortunately the race only really affects
a cosmetic issue - whether VDIs temporarily show up in the GUI
while storage motion is going on. The bug exhibits as the
VDI of the VM containing a 'base_mirror' key in the sm_config
field.

Unfortunately this problem becomes worse when a subsequent SXM
operation is attempted - at this point the operation will fail
as we try to put a new base_mirror key in, getting a Duplicate_key
error.

This changeset fixes this such that we simply overwrite the
existing key. This doesn't change the cosmetic problem that the
VDIs will be missing from the GUI, but it does mean you can now
migrate the VM again.

Additionally this changeset fixes more minor problems:

- on cancelling an SXM operation the base_mirror key was left
- the existence of more than one blob on a VM caused the migration
  to fail
- the blobs couldn't be sent anyway due to missing the content-length
  header in the HTTP PUT operation.

Signed-off-by: Jon Ludlam <jonathan.ludlam@eu.citrix.com>
CA-92842: revert change of timeout when squeezing domains

Introduced probably accidentally in c/s c533d1ec

Signed-off-by: Jon Ludlam <jonathan.ludlam@eu.citrix.com>
CA-110973: Use more efficient db backup when on the pool master

Signed-off-by: Jon Ludlam <jonathan.ludlam@eu.citrix.com>
Fix bash_completion for "xe host-cpu-info".
Merge pull request #1696 from johnelse/trunk-major-defect-backports-1

First wave of major defect fixes backported from trunk