[new] New ocaml lib 'rrd-client' in order to move rrd2csv and RRDD plugins out of the xen-api repository
[fix] Fixing rrd-client compilation (a var was forgotten while merging)
Update to the Xen-4.2 interface (deactived by #ifdefs)

We now have:
 * configurable xenstore and console backend domids
 * incrementable VM generation counts

This is all disabled by #ifdef XENGUEST_4_2 for now.

Signed-off-by: David Scott <dave.scott@eu.citrix.com>
If Xenctrl.domain_set_mmap_limit fails, log and continue

For an undiagnosed reason, this fails on xen-4.2

Signed-off-by: David Scott <dave.scott@eu.citrix.com>
[build] Adding RPM packaging information for the rrd-client library
CA-89978: Fix restoration of database from temporary restore file.

- Delete the temporary restore file after using it to populate the
  database - if we don't do this then xapi will use the restore file
  again the next time it starts up.

- Perform the initial database flush to the global list of database
  connections in all cases; don't flush to the restore database file
  if it's being used.

Signed-off-by: John Else <john.else@citrix.com>
CA-89978: Log the location(s) from which we're attempting to read the db.

Signed-off-by: John Else <john.else@citrix.com>
CP-3638: Remove now redundant code from various source files in rrdd and xapi.

Signed-off-by: Rok Strniša <rok.strnisa@citrix.com>
Install xapi-rrd-devel package into PACKAGES.main as well.

RRD plugin framework should be installed by default for post-Tampa releases.

Signed-off-by: Rok Strniša <rok.strnisa@citrix.com>
CA-86869: Don't list snapshots when listing custom templates.

print-custom-templates is used by xe-backup-metadata so that it can then
backup metadata of all custom templates. xapi explicitly blocks exporting
the metadata of snapshots, so there's no reason for
print-custom-templates to include snapshots.

Signed-off-by: John Else <john.else@citrix.com>
Merge commit 'f8ade9e4ffe84806c8e6a49240f5f55526c80b22'
CP-3657: Update alert priorities

* Reversed the meaning of mail-min-priority config key, and renamed it
mail-max-priority.

* Removed priority checking from Xapi_vmpp.

* Updated priority checking in mail-alarm.

* Updated comments to reflect XenCenter usage.
CA-74343: Fix HA on VLANs

The recent change to not automatically plug VLANs on host boot (for
scalability reasons), led the HA code to believe that VMs on VLANs
were not agile, even if they were.

It turns out that the agility check for networking is too strict.
Currently, xapi only considers a VM agile if all its networks
1. have PIFs on all enabled hosts, AND
2. have all those PIFs attached/plugged.

This is too strict, because a PIF can always be plugged, unless it is
a bond slave, and xapi automatically plugs a PIF when it is needed by a
VM.

Therefore, the agility check was changed to require that a VM's networks
1. have PIFs on all enabled hosts, AND
2. none of those PIFs are bond slaves.

Signed-off-by: Rob Hoes <rob.hoes@citrix.com>
Dynamically compute python site-packages directory

This allow to compile and use even if you have newer version of python

Signed-off-by: Frediano Ziglio <frediano.ziglio@citrix.com>
Merge pull request #845 from djs55/xen-4.2-safe-to-merge
Merge pull request #856 from rokstrnisa/CP-3638
Use is_valid_ref rather than comparing with Ref.null

Signed-off-by: Rob Hoes <rob.hoes@citrix.com>
Merge pull request #870 from robhoes/ca74343
CA-91927: Reduce the frequency of VM.allowed_operations updates.

When xapi receives a VM update from xenopsd, allowed_operations should
only be updated if a VM field which could affect the allowed_operations
was changed.

Signed-off-by: John Else <john.else@citrix.com>
Whitespace: Xapi_vdi.check_operation_error

$ camlp4o -printer o -no_comments ocaml/xapi/xapi_vdi| md5sum
089dfa0d238d159793ae1bd7e172d0d5  -
$ git checkout HEAD^
$ camlp4o -printer o -no_comments ocaml/xapi/xapi_vdi.ml | md5sum
089dfa0d238d159793ae1bd7e172d0d5  -

Signed-off-by: John Else <john.else@citrix.com>