CP-4148:Ensure that the default behaviour for emulated monitor is null
Signed-off-by: Akshay Ramani <akshay.ramani@citrix.com>
Revert "CA-108916: add call to V6rpc.get_current_edition API"

This reverts commit 04f4d921c9d657f928fb4768abc390095b1418cc.
CA-113278: This commit was causing many testcases to fail. Reverting the commit for now till we figure out a better way to fix the original problem.

Signed-off-by: Akshay <akshay.ramani@citrix.com>
Correct /sys path for iovirt plugin.
Signed-off-by: Siddharth Vinothkumar <siddharth.vinothkumar@citrix.com>
CA-99034: Fix unit for DS:memory_internal_free.
Signed-off-by: Siddharth Vinothkumar <siddharth.vinothkumar@citrix.com>
Fix XenAPI.py on python2.7

This fix was made by Mike Mcclurg here:

https://bugs.launchpad.net/xcp/+bug/917913

Signed-off-by: David Scott <dave.scott@eu.citrix.com>
Merge pull request #1471 from djs55/python2.7

Fix XenAPI.py on python2.7
CA-114777: Revert "Fix XenAPI.py on python2.7"

Unfortunately python2.4 doesn't work with this fix.

This reverts commit 7cd259574198123e9152db4a483bae54eed15c95.

Signed-off-by: John Else <john.else@citrix.com>
Merge pull request #1473 from johnelse/ca-114777

Revert "Fix XenAPI.py on python2.7"
CA-110947: Revert "Remove a modprobe warning in new systems."

This breaks switching to the bridge networking backend - this change
means /etc/modprobe.d/blacklist-bridge is not deleted when switching
to bridge, so after the host reboots it can't load the ethernet
bridging kernel module and networking is totally broken.

This reverts commit 37eee6eff0ce3fb4a0185e6f4aa03094c0668844.

Signed-off-by: John Else <john.else@citrix.com>
Merge pull request #1472 from johnelse/ca-110947

Revert "Remove a modprobe warning in new systems."
Merge pull request #1458 from akshayramani/CA-113278

Revert "CA-108916: add call to V6rpc.get_current_edition API"
Merge pull request #1465 from siddharthv/CA-99034

Fix unit for DS:memory_internal_free.
Merge pull request #1450 from akshayramani/CP-4148

CP-4148:Ensure that the default behaviour for emulated monitor is null
CA-109854: Don't include memory overhead when creating a VM.

Xen will add the memory overhead on top of the value xenopsd requests.
This change prevents maxmem continuously increasing over repeated
migrations.

Signed-off-by: John Else <john.else@citrix.com>
CA-113392: Fix PBD password-secret lifecycle

When creating an SR, if there are any secrets in the device-config then they
are duplicated and a unique one is used for each PBD creation.

However, XenCenter's "Repair SR" feature creates new PBDs directly, copying the
device-config field from existing ones. This bypasses the secret-duplication
which is in the SR-create code path.

This patch pushes the secret-duplication logic down to the PBD creation which
solves the XenCenter issue pending a revised design of the secret datamodel.
Also the master is no-longer special cased for the same reason. This has the
added benefit of making secret creation/destruction entirely symmetrical: the
secrets created with PBDs are destroyed when the PBD is destroyed and the
secrets created manually must be destroyed manually.

XenCenter should now be updated to tidy up after itself: if it chooses to
create secrets around passwords used in SR creation, then they should be
destroyed in a finally block after the SR creation is complete. This is safe
since all PBDs will have duplicated the secret.

Note this patch applies (as the previous semantics did) to any key in device
config ending in '_secret'. The ones used by the SM backends are
'password_secret' and 'chappassword_secret'.

Signed-off-by: Si Beaumont <simon.beaumont@citrix.com>
Ignore xenops-cli autogen code from ocamllex/yacc

Remove autogenerated files from git, have make rule clean them up and add them
to .gitignore.

Signed-off-by: Si Beaumont <simon.beaumont@citrix.com>
Merge pull request #1488 from simonjbeaumont/ignore-autogen

Ignore xenops-cli autogen code from ocamllex/yacc
Fix typo

Signed-off-by: John Else <john.else@citrix.com>
Merge pull request #1490 from johnelse/augusta-typo

Fix typo
Merge pull request #1486 from johnelse/ca-109854

Don't include memory overhead when creating a VM.