xe console should not be hidden command

Signed-off-by: Mike McClurg <mike.mcclurg@citrix.com>
CA-97883: Wrap the fstat call in an exception handler

We can get an exception when we're fstatting a file that's larger
than is representable in a signed 32-bit integer (ie., 2 gigs).
If this happens, it's clearly not a socket, so don't bother setting
the TCP timeout parameters.

This patch is actually a bit more defensive, and ignores any
exception thrown here.

Signed-off-by: Jon Ludlam <jonathan.ludlam@eu.citrix.com>
CP-2190 for PR-1221: monitor memory_free_kib instead of memory_total_kib

Also fix an Exception string.

Signed-off-by: Thomas Sanders <thomas.sanders@citrix.com>
Fixed the description of memory_total_kib rrd datasource.
It is memory "in the host", not "in use".

Signed-off-by: Thomas Sanders <thomas.sanders@citrix.com>
CA-89875: RRDD skips reading "/local/domain/0/data/meminfo_free"
Merge pull request #989 from jonludlam/CA-97883

CA-97883: Wrap the fstat call in an exception handler
Merge pull request #992 from siddharthv/CA-89875

CA-89875: RRDD skips reading "/local/domain/0/data/meminfo_free"
Merge pull request #991 from thomassa/pr1221

CP-2190 for PR-1221: fix memory monitoring
XOP-229: Make xenopsd using keep_alive.

Signed-off-by: Jerome Maloberti <jerome.maloberti@citrix.com>
XOP-229: Make rrd_updates uses keep_alive=true.

Signed-off-by: Jerome Maloberti <jerome.maloberti@citrix.com>
CA-98535: Fix VDI.create

The other_config, shareable, tags and xenstore_data fields are now set
to their correct values when creating a VDI.

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

$ camlp4o -printer o -no_comments ocaml/xapi/xapi_srl | md5sum
7760aa8c3f302bc5ebca565b2c83b483  -
$ git checkout HEAD^
$ camlp4o -printer o -no_comments ocaml/xapi/xapi_sr.ml | md5sum
7760aa8c3f302bc5ebca565b2c83b483  -

Signed-off-by: John Else <john.else@citrix.com>
CA-98633: Raise SR_UUID_EXISTS in SR.introduce if an SR with the same UUID already exists.

Signed-off-by: John Else <john.else@citrix.com>
CA-74544: Associate a username with the sessions xapi passes to SM backends.

This will appear in the audit log. Formatting is consistent with the
"__dom0__vmpr" username associated with the session passed to the VMPR
plugin.

Signed-off-by: John Else <john.else@citrix.com>
PR-1510: LACP timeout, aggregator/actor parameters settable

LACP timeout, aggregator/actor parameters are now settable through XenAPI and
CLI. New bond parameters are lacp-time, lacp-aggregator-key and lacp-actor-key.

Signed-off-by: Mike McClurg <mike.mcclurg@citrix.com>
Refactor Network_utils.Ovs to functorize vsctl commands for testing

Signed-off-by: Mike McClurg <mike.mcclurg@citrix.com>
PR-1510: add unit tests for LACP params setting

Signed-off-by: Mike McClurg <mike.mcclurg@citrix.com>
PR-1510: bond parameters either have defaults or are omitted

Signed-off-by: Mike McClurg <mike.mcclurg@citrix.com>
PR-1510: More test cases

Signed-off-by: Mike McClurg <mike.mcclurg@citrix.com>
XOP-261: Revert.

    XOP-261: Reinstate the server on 127.0.0.1 when no management
    interface is defined

    XOP-261/CA-96936: Remove Xapi_mgmt_iface.rebind
    Since the management interface is listening in IPv6 automatically if
    available.

    XAPI-261/CA-96936: Make himn_only more general
    To also manage the case of a localhost server.

    XOP-261/CA-96936: Prevent multiple starts of localhost server

    XOP-261/CA-96936: Issue a warning in case of multiple starts of HIMN server

Reverted since it broke TC-16120.

Signed-off-by: Jerome Maloberti <jerome.maloberti@citrix.com>