CP-5169: Updated paths to use xen-api-sdk.git instead of api-bindings.hg.

Signed-off-by: Konstantina Chremmou <konstantina.chremmou@citrix.com>
CA-93914: No longer setting params in sm_config on lvoiscsi SR create

For some reason (unknown) the CIM layer was setting a number of sm_config
params, presumably to get around historical issues. The SM layer however
expects these kvps to only be used by itself, and so can get confused.

The fact that the CIM layer was setting the devserial, meant that when SM
went to check if the device existed (on the basis of checking devserial's)
it determined that someone had already added the disk (because it checks
itself too).

Despite this perhaps being unwise, the CIM layer should not touch sm_config,
and given we are not sure why it ever needed too - I'm removing this code.

(Note that due to a bug in the bindings, we have be ingoring passing this
param on for a considerable time anyway).

Signed-off-by: Rob Dobson <rob@rdobson.co.uk>
Merge pull request #1 from rdobson/ca-93914

CA-93914: No longer setting params in sm_config on lvoiscsi SR create
CP-5839: Fixing up RPM build to use a src tarball an ensure spec file is in good shape for new RPM tool version.

Signed-off-by: Rob Dobson <rob@rdobson.co.uk>
Reconfigure correctly source files.

Force installing new files.
Use autoreconf which manage all libtool/autoconf chain automatically.

Signed-off-by: Frediano Ziglio <frediano.ziglio@citrix.com>
Merge pull request #2 from rdobson/rpm_fixes

CP-5839: Fixing up RPM build to use a src tarball an ensure spec file is...
Merge pull request #3 from freddy77/build_fixes

Reconfigure correctly source files.
Merge git://hg/carbon/trunk/xs-cim
CA-118036: Revert allocations of string_string maps to be the empty list.

There seems to have been a reason why allocation of empty sets for parameters
like other_config and VCPUs_params were allocated with a single item (as opposed
to no zero items).

With a recent update to the XenAPI xml-rpc parsing library, it has been discovered
that this non-zero initialisation has lead to an empty member being defined
as part of the dictionary:

<member>
    <name>VCPUs_params</name>
    <value>
        <struct>
            <member>
                <name/>
                <value><string/></value>
            </member>
        </struct>
    <value>
</member>

The (new) xml-parsing library (understandably) does not know how to handle
this unamed member, and raises an exception.

This patch fixes the instances where we call an initialisation on a
string_string map to make sure we don't pre-allocate a map with an empty
value.

Signed-off-by: Rob Dobson <rob@rdobson.co.uk>
Merge pull request #4 from rdobson/ca-118036

CA-118036: Revert allocations of string_string maps to be the empty list
CP-7112: disabling warnings as errors in build process.

Signed-off-by: Frediano Ziglio <frediano.ziglio@citrix.com>
Reviewed-by: Rob Dobson <rob@rdobson.co.uk>
CP-7112: Moving XS_CIM_RPM_TMP_DIR.

Signed-off-by: Frediano Ziglio <frediano.ziglio@citrix.com>
Reviewed-by: Rob Dobson <rob@rdobson.co.uk>
CP-7112: Protect yyliineno definition based on the version of YY_FLEX being used.

When building with a newer version of YY_FLEX the parameter is initialised for us. Use
the version info about YY_FLEX to maintain setting this variable with older versions
of YY_FLEX.

Signed-off-by: Rob Dobson <rob@rdobson.co.uk>
Signed-off-by: Frediano Ziglio <frediano.ziglio@citrix.com>
CP-7112: Updating spec file to move build contents over to %{buildroot} where it is expected.

Signed-off-by: Rob Dobson <rob@rdobson.co.uk>
Signed-off-by: Frediano Ziglio <frediano.ziglio@citrix.com>
Merge pull request #5 from rdobson/centos_6.4_fixes

Centos 6.4 fixes
CP-6958 - Compile as 64bit.
CA-135188: Cache the Host CN name.

In order to improve performance, use a other_config key to cache the result of obtaining a host CN from a XAPI plugin call. This is OK as the host CN should not change once the host has been installed (embedded in the XAPI SSL cert).

Also update the cert management script to clear the CN from other_config when it is updated by the user.
CA-135188: Do not make calls to XAPI for '' or NULL references.

VBDs for empty disk drives may have an empty VDI ref ''. We should detect this before calling out to XAPI.
Merge pull request #6 from rdobson/SCTX-1739

Cache host CN in other_config to improve enumeration performance for multi-host deployments.
CA-136275: Making the snapshot import instruction execution code more robust to failure.

Signed-off-by: Rob Dobson <rob.dobson@citrix.com>