CP-4498: Added relaxed check mode to allow iSCSI SRs during XSM

Signed-off-by: Bob Ball bob.ball@citrix.com
CP-4498: Added comment to ensure mode is not enabled by an accidental refactor

Signed-off-by: Bob Ball bob.ball@citrix.com
CP-4500: Added handler skeleton for /export_raw_vdi

Signed-off-by: Si Beaumont <simon.beaumont@citrix.com>
CP-4500: Move helper functions to shared import/export code

Moved some functions in import_raw_vdi.ml into shared module importexport.ml
ready for implementing export_raw_vdi:

    * return_302_redirect
    * vdi_of_req

Signed-off-by: Si Beaumont <simon.beaumont@citrix.com>
CP-4500: Implemented export_raw_vdi.

This can be called via HTTP at <host>/export_raw_vdi?vdi=<vdi-uuid> using, for
example, curl and is the counterpart to import_raw_vdi.

Signed-off-by: Si Beaumont <simon.beaumont@citrix.com>
CP-4500: Fixed typo post review

Signed-off-by: Si Beaumont <simon.beaumont@citrix.com>
CP-4277: Allow unsigned patches to be installable

This is controlled by the presence of the hotfix file's sha1sum
in the FIST-point "allowed_unsigned_patches".

Signed-off-by: Rob Hoes <rob.hoes@citrix.com>
CA-103189: Add optional params to pool-apply-edition

Signed-off-by: John Else <john.else@citrix.com>
CA-103189: Re-use some CLI parameter extraction code

Signed-off-by: John Else <john.else@citrix.com>
CA-103189: Refactor host-apply-edition

host-apply-edition sets the specified license server address and port in
the host's license_server field, and rolls these back to the original
value if the server is out of license or unreachable.

This patch extracts the rollback logic out of the main implementation so
it can be used by pool-apply-edition.

Signed-off-by: John Else <john.else@citrix.com>
CA-103189: Use license server params in pool-apply-edition

Signed-off-by: John Else <john.else@citrix.com>
Change Pool.apply_edition logic

Pool.apply_edition should always try to apply the edition to all hosts
in pool, even if some of them already have the edition being applied.

Signed-off-by: John Else <john.else@citrix.com>
Log this error as an error rather than debug

Signed-off-by: John Else <john.else@citrix.com>
XOP-311, SCTX-942, CA-88975: Modifications for VM Shutdown
	First attempt to perform a clean_shutdown
	If clean_shutdown fails, then perform a hard_shutdown

Signed-off-by: Siddharth Vinothkumar <siddharth.vinothkumar@citrix.com>
Adding warn level logging when unable to perform clean_shutdown

Signed-off-by: Siddharth Vinothkumar <siddharth.vinothkumar@citrix.com>
XOP-311: Printing exception along with warn level log.
Also set in_product_since to clearwater.

Signed-off-by: Siddharth Vinothkumar <siddharth.vinothkumar@citrix.com>
XOP-311: Moving up update_vbd_operations and update_vif_operations in
message_forwarding.ml
Signed-off-by: Siddharth Vinothkumar <siddharth.vinothkumar@citrix.com>
Correcting merge build errors
Signed-off-by: Siddharth Vinothkumar <siddharth.vinothkumar@citrix.com>
CA-105250: Altering get_bridge_name_vswitch() to work correctly with VLANs.

VLAN-tagged networks/ports are connected to a "fake bridge" device.
Most ovs-* commands will not work with a fake bridge
device, so this function needs to return the true parent bridge
device name, not the fake bridge.  Otherwise, subsequent calls
in this script to configure port locking via ovs-ofctl will
(silently) fail, and port locking will not activate.

Signed-off-by: Kevin Tower <ktower@towerfamily.org>
CP-4465 contribution: reduce logging of low-value messages
 * log less in block_device_io.action_writedelta
 * shorten a common log line in xapi_session.ml

Signed-off-by: Thomas Sanders <thomas.sanders@citrix.com>
Signed-off-by: Jerome Maloberti <jerome.maloberti@citrix.com>