]> xenbits.xensource.com Git - xcp/xen-api.git/log
xcp/xen-api.git
14 years agoCA-43645: add applies_to:vm_ref to the vmpp snapshot task other-config
Marcus Granado [Tue, 12 Oct 2010 09:55:04 +0000 (10:55 +0100)]
CA-43645: add applies_to:vm_ref to the vmpp snapshot task other-config

XenCenter uses this key to show the task in the vm_ref's log.

Signed-off-by: Marcus Granado <marcus.granado@eu.citrix.com>
14 years agoCA-41772: copy rbac_static.csv to /opt/xensource/debug in dom0
Marcus Granado [Tue, 12 Oct 2010 09:54:36 +0000 (10:54 +0100)]
CA-41772: copy rbac_static.csv to /opt/xensource/debug in dom0

Signed-off-by: Marcus Granado <marcus.granado@eu.citrix.com>
14 years agoCA-27648: xe does not show the tags fields --- FIXED.
Rok Strnisa [Tue, 12 Oct 2010 09:54:04 +0000 (10:54 +0100)]
CA-27648: xe does not show the tags fields --- FIXED.

Added the ability to read and write tags on pool, host, network, VM, SR, and
VDI through the CLI. For each corresponding function, the patch adds four
lines of the general form:

make_field ~name:"tags"
~get:(fun () -> String.concat ", " (x ()).API.xxx_tags)
~get_set:(fun () -> (x ()).API.xxx_tags)
~add_to_set:(fun tag -> Client.Xxx.add_tags rpc session_id xx tag)
~remove_from_set:(fun tag -> Client.Xxx.remove_tags rpc session_id xx tag) ();

The patch also includes code re-indentation for the functions involved.

It appears as if much of this file could be auto-generated.

Signed-off-by: Rok Strnisa <rok.strnisa@citrix.com>
14 years agoPR-1031: update comment in api-messages
Marcus Granado [Tue, 12 Oct 2010 09:53:23 +0000 (10:53 +0100)]
PR-1031: update comment in api-messages

Signed-off-by: Marcus Granado <marcus.granado@eu.citrix.com>
14 years agoCP-1914: Record some extra build-time information in Host.software_version ("product_...
David Scott [Tue, 12 Oct 2010 09:53:03 +0000 (10:53 +0100)]
CP-1914: Record some extra build-time information in Host.software_version ("product_version_text" and "product_version_text_short" -- useful for UIs to display rather than raw version numbers)

Signed-off-by: David Scott <dave.scott@eu.citrix.com>
14 years agoCA-43574
Matthias Goergens [Tue, 12 Oct 2010 09:52:34 +0000 (10:52 +0100)]
CA-43574

The build-number that xapi displays for a host now comes from
/etx/xensource-inventory instead of the branded in build-number, when
xapi is build.  The former behaviour lead to discrepancies.

Signed-off-by: Matthias Goergens <matthias.goergens@citrix.com>
14 years agoCA-41317: Error message if a host doesn't power on is poor --- FIXED.
Rok Strnisa [Tue, 12 Oct 2010 09:51:55 +0000 (10:51 +0100)]
CA-41317: Error message if a host doesn't power on is poor --- FIXED.

Changed the error message to something more reasonable, although keeping it
of "internal" type.

Signed-off-by: Rok Strnisa <rok.strnisa@citrix.com>
14 years agoCA-44022: HOST_SYNC_DATA_FAILED message needs to be restored --- FIXED.
Rok Strnisa [Tue, 12 Oct 2010 09:51:05 +0000 (10:51 +0100)]
CA-44022: HOST_SYNC_DATA_FAILED message needs to be restored --- FIXED.

Signed-off-by: Rok Strnisa <rok.strnisa@citrix.com>
14 years agoCA-44714: Semantics of "xe vm-export" with the metadata option is not as documented...
Rok Strnisa [Tue, 12 Oct 2010 09:50:42 +0000 (10:50 +0100)]
CA-44714: Semantics of "xe vm-export" with the metadata option is not as documented --- FIXED.

Consistent requirement for boolean parameters to be specified with true or false.

The patch includes refactoring of cli_operations.ml, which makes consistent
use of two simple functions for extracting information from parameters instead
of the previous 10 complicated ways.

Signed-off-by: Rok Strnisa <rok.strnisa@citrix.com>
Review by Matthias: Changes look good.  But indentation in
get_bool_param is as horrible as in the rest of cli_operations.ml.

After-review changes: The horrible indentation (2 spaces) of get_bool_param has
has been corrected (into 1 tab).

14 years agoCA-25812: OEM Dell: Error message should be clearer during pool-join command. --...
Rok Strnisa [Tue, 12 Oct 2010 09:49:32 +0000 (10:49 +0100)]
CA-25812: OEM Dell: Error message should be clearer during pool-join command. --- FIXED.

We now distinguish between "calling pool_join on self" and "calling pool_join
when already in a pool".

Signed-off-by: Rok Strnisa <rok.strnisa@citrix.com>
14 years agoCA-33568: Perfmon plugin creates unused socket --- FIXED.
Rok Strnisa [Tue, 12 Oct 2010 09:46:36 +0000 (10:46 +0100)]
CA-33568: Perfmon plugin creates unused socket --- FIXED.

Removed a line that is not used anywhere.

Signed-off-by: Rok Strnisa <rok.strnisa@citrix.com>
14 years agoCA-38158: Bogus "SR not shared properly" warning --- FIXED.
Rok Strnisa [Tue, 12 Oct 2010 09:45:49 +0000 (10:45 +0100)]
CA-38158: Bogus "SR not shared properly" warning --- FIXED.

Signed-off-by: Rok Strnisa <rok.strnisa@citrix.com>
14 years agoCA-26863: correct error message when pool connection fails --- FIXED.
Rok Strnisa [Tue, 12 Oct 2010 09:45:03 +0000 (10:45 +0100)]
CA-26863: correct error message when pool connection fails --- FIXED.

I only added these two lines:
 | Stunnel.Stunnel_error msg ->
     internal_error, [ "Connection failed: " ^ (String.lowercase msg) ^ "." ]

The rest is fixing whitespace.

Note that calling "lowercase" on "msg" does not lose information, since all
error messages in Stunnel are fixed strings. It makes the output nicer.

Signed-off-by: Rok Strnisa <rok.strnisa@citrix.com>
14 years agoCA-30239: CLI help command returns non-zero --- FIXED.
Rok Strnisa [Tue, 12 Oct 2010 09:44:20 +0000 (10:44 +0100)]
CA-30239: CLI help command returns non-zero --- FIXED.

Signed-off-by: Rok Strnisa <rok.strnisa@citrix.com>
14 years agoCA-43645: show VMPR snapshots in task list in xencenter
Marcus Granado [Tue, 12 Oct 2010 09:44:04 +0000 (10:44 +0100)]
CA-43645: show VMPR snapshots in task list in xencenter

Signed-off-by: Marcus Granado <marcus.granado@eu.citrix.com>
14 years agoCA-37224: Email Alerts have misleading statements --- FIXED.
Rok Strnisa [Tue, 12 Oct 2010 09:43:33 +0000 (10:43 +0100)]
CA-37224: Email Alerts have misleading statements --- FIXED.

Signed-off-by: Rok Strnisa <rok.strnisa@citrix.com>
14 years agoPR-1031: use 7 as XAPI default for backup retention value
Marcus Granado [Tue, 12 Oct 2010 09:43:02 +0000 (10:43 +0100)]
PR-1031: use 7 as XAPI default for backup retention value

Signed-off-by: Marcus Granado <marcus.granado@eu.citrix.com>
14 years agoCP-1833: fix check for lsu vmpr during snapshot in slaves
Marcus Granado [Tue, 12 Oct 2010 09:41:58 +0000 (10:41 +0100)]
CP-1833: fix check for lsu vmpr during snapshot in slaves

Signed-off-by: Marcus Granado <marcus.granado@eu.citrix.com>
14 years agoImproper internal error on setting wrong values for VBD parameters --- FIXED.
Rok Strnisa [Tue, 12 Oct 2010 09:41:37 +0000 (10:41 +0100)]
Improper internal error on setting wrong values for VBD parameters --- FIXED.

Signed-off-by: Rok Strnisa <rok.strnisa@cl.cam.ac.uk>
14 years agoProvides the user with a friendlier message when they are denied access.
Rok Strnisa [Tue, 12 Oct 2010 09:40:48 +0000 (10:40 +0100)]
Provides the user with a friendlier message when they are denied access.

The message now includes which roles *do* have the required permission.

Signed-off-by: Rok Strnisa <rok.strnisa@citrix.com>
14 years agoIncrease the API version number to 1.8
Rob Hoes [Tue, 12 Oct 2010 09:40:21 +0000 (10:40 +0100)]
Increase the API version number to 1.8

Signed-off-by: Rob Hoes <rob.hoes@citrix.com>
14 years agoRescues the indendation for several functions within the quicktest module. Splits...
Jonathan Knowles [Tue, 12 Oct 2010 09:40:01 +0000 (10:40 +0100)]
Rescues the indendation for several functions within the quicktest module. Splits an often-modified list of tests into multiple lines, reducing the chance that further patches will conflict with one another.

Signed-off-by: Jonathan Knowles <jonathan.knowles@eu.citrix.com>
14 years agoCA-46079: Remove blktapctrl init.
Daniel Stodden [Tue, 12 Oct 2010 09:39:22 +0000 (10:39 +0100)]
CA-46079: Remove blktapctrl init.

Obsolete with blktap2, and just about to be removed from the build.

Signed-off-by: Daniel Stodden <daniel.stodden@citrix.com>
14 years ago[PATCH] Rename "xs-vif-mac" external_ids key to "attached-mac", for generality.
Ben Pfaff [Tue, 12 Oct 2010 09:38:38 +0000 (10:38 +0100)]
[PATCH] Rename "xs-vif-mac" external_ids key to "attached-mac", for generality.

From e61070c32030d6d00e2eeae213d219320a7cbd10 Mon Sep 17 00:00:00 2001
Date: Wed, 1 Sep 2010 16:49:19 -0700
This can be useful on systems other than XenServer so there is no reason
to make it looks XenServer-specific.

CC: Jeremy Stribling <strib@nicira.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
---
 vswitchd/vswitch.xml                |   15 ++++++++-------
 scripts/vif |    2 +-
 2 files changed, 9 insertions(+), 8 deletions(-)

14 years ago[PATCH] xenserver: Prepend XenServer external ids with "xs-"
Justin Pettit [Tue, 12 Oct 2010 09:37:49 +0000 (10:37 +0100)]
[PATCH] xenserver: Prepend XenServer external ids with "xs-"

From c76fde78c528027fe95d714aba5ccf0f01407d75 Mon Sep 17 00:00:00 2001
Date: Mon, 9 Aug 2010 15:07:32 -0700
Signed-off-by: Justin Pettit <jpettit@nicira.com>
Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
---
 tests/interface-reconfigure.at                     |   12 ++++++------
 vswitchd/vswitch.xml                               |    2 +-
 xenserver/README                                   |    4 ++--
 xenserver/automake.mk                              |    2 +-
 scripts/vif                |   12 ++++++------
 xenserver/openvswitch-xen.spec                     |   10 +++++-----
 ...ensource_libexec_InterfaceReconfigureVswitch.py |    4 ++--
 ...share_openvswitch_scripts_refresh-network-uuids |    2 --
 ...re_openvswitch_scripts_refresh-xs-network-uuids |    2 ++
 9 files changed, 25 insertions(+), 25 deletions(-)
 delete mode 100755 xenserver/usr_share_openvswitch_scripts_refresh-network-uuids
 create mode 100755 xenserver/usr_share_openvswitch_scripts_refresh-xs-network-uuids

14 years agoRequire datetime values written to the DB to end with a 'Z'
Rob Hoes [Tue, 12 Oct 2010 09:36:54 +0000 (10:36 +0100)]
Require datetime values written to the DB to end with a 'Z'

All datetime values in the DB need to be UTC dates, and are required to ISO 8601 formatted with a trailing 'Z' to indicate they are UTC. The XenAPI did not have any functions that allow users to write datetimes directly to the DB... until recently (e.g. VMPP.set_archive_last_run_time)! It is therefore now necessary to enforce that the datetime values in the parameters of such 'set' functions have the correct form.

For backwards compatibility, XenAPI functions such as message.get_since still allow dates without 'Z', and will assume these are UTC dates.

Signed-off-by: Rob Hoes <rob.hoes@citrix.com>
14 years agoUpdate/fix 'interface-reconfigure --force rewrite'
Rob Hoes [Tue, 12 Oct 2010 09:36:35 +0000 (10:36 +0100)]
Update/fix 'interface-reconfigure --force rewrite'

Signed-off-by: Rob Hoes <rob.hoes@citrix.com>
14 years agoHosts in a pool should use the same networking backend
Rob Hoes [Tue, 12 Oct 2010 09:36:09 +0000 (10:36 +0100)]
Hosts in a pool should use the same networking backend

This patch adds the following restrictions in order to prevent (as much as possible) trouble caused by hosts in a pool not having the same network backends (bridge/openvswitch):
1. Block pool join if the network backend of the joining host is not the same as the master's.
2. Block tunnel.create if at least one of the hosts in the pool uses the bridging backend.

Signed-off-by: Rob Hoes <rob.hoes@citrix.com>
14 years agoCP-1713: Extend mpathalert deamon to report changing status of multipathed root disk
Rob Hoes [Tue, 12 Oct 2010 09:35:47 +0000 (10:35 +0100)]
CP-1713: Extend mpathalert deamon to report changing status of multipathed root disk

Signed-off-by: Rob Hoes <rob.hoes@citrix.com>
14 years agoAdd OCaml API autogenerator and mpathalert to code documentation
Rob Hoes [Tue, 12 Oct 2010 09:35:17 +0000 (10:35 +0100)]
Add OCaml API autogenerator and mpathalert to code documentation

Signed-off-by: Rob Hoes <rob.hoes@citrix.com>
14 years agoCP-1591: Synchronise VIF.MTU and PIF.MTU on plug
Rob Hoes [Tue, 12 Oct 2010 09:34:47 +0000 (10:34 +0100)]
CP-1591: Synchronise VIF.MTU and PIF.MTU on plug

The VIF.MTU and PIF.MTU fields are now read-only, and will reflect the current state of the network. When you change the Network.MTU, VIFs and PIFs will have to be replugged to have their MTU changed by the networking subsystem. So when Network.MTU and PIF.MTU are not equal, this is a reminder to replug the PIF (same for VIFs).

Signed-off-by: Rob Hoes <rob.hoes@citrix.com>
14 years agoCA-44731: rewrite RRD marshalling, unmarshalling code to (i) copy the compact binary...
David Scott [Tue, 12 Oct 2010 09:34:27 +0000 (10:34 +0100)]
CA-44731: rewrite RRD marshalling, unmarshalling code to (i) copy the compact binary representation; and then (ii) stream the XML directly to an fd without creating a temporary buffer of some kind.

This should now work properly when the XML data is > 16MiB

Signed-off-by: David Scott <dave.scott@eu.citrix.com>
14 years agoCA-44731: remove unused file
David Scott [Tue, 12 Oct 2010 09:34:04 +0000 (10:34 +0100)]
CA-44731: remove unused file

This is now out of sync with the other copy and will cause spurious build failures.

Signed-off-by: David Scott <dave.scott@eu.citrix.com>
14 years agoCA-44731: replace uses of read_whole_file_to_string with string_of_file
David Scott [Tue, 12 Oct 2010 09:33:26 +0000 (10:33 +0100)]
CA-44731: replace uses of read_whole_file_to_string with string_of_file

Signed-off-by: David Scott <dave.scott@eu.citrix.com>
14 years agoCA-44731: Fix typo in the Host RRD creation code which restricted the rate of RRD...
Jon Ludlam [Tue, 12 Oct 2010 09:33:09 +0000 (10:33 +0100)]
CA-44731: Fix typo in the Host RRD creation code which restricted the rate of RRD creation to one DS every 5s.

Rather than accumulating all the new RRDs, the fold only kept the last one.

Signed-off-by: Jon Ludlam <jon.ludlam@eu.citrix.com>
Signed-off-by: David Scott <dave.scott@eu.citrix.com>
14 years agoCA-44731: record timings for all xapi startup tasks for diagnostic purposes. Data...
David Scott [Tue, 12 Oct 2010 09:32:46 +0000 (10:32 +0100)]
CA-44731: record timings for all xapi startup tasks for diagnostic purposes. Data can be retrieved with existing 'xe diagnostic-timing-stats' CLI command.

Signed-off-by: David Scott <dave.scott@eu.citrix.com>
14 years agoCA-41832: clip the target of an 'inactive' domain to be within dynamic_min/dynamic_max
David Scott [Tue, 12 Oct 2010 09:32:18 +0000 (10:32 +0100)]
CA-41832: clip the target of an 'inactive' domain to be within dynamic_min/dynamic_max

This is potentially dangerous: the reason we attempt to cap the memory usage of an unresponsive domain is to prevent it suddenly waking up and allocating at a bad moment, resulting in either a transient OOM or loss of low memory. With this change the cap will be 'loose', where target can be higher than memory_actual.

Signed-off-by: David Scott <dave.scott@eu.citrix.com>
14 years agoCA-45278: Make with-vdi VBDs unpluggable.
Daniel Stodden [Tue, 12 Oct 2010 09:31:49 +0000 (10:31 +0100)]
CA-45278: Make with-vdi VBDs unpluggable.

Prevent tripping over unplug failures due to VBD.unpluggable=false.
Happens when plugging guest system disks with normal VBD defaults.

Signed-off-by: Daniel Stodden <daniel.stodden@citrix.com>
14 years agoCA-45049: Add some vbd-unplug grace time in with-vdi.
Daniel Stodden [Tue, 12 Oct 2010 09:31:05 +0000 (10:31 +0100)]
CA-45049: Add some vbd-unplug grace time in with-vdi.

Prevent tripping over transient unplug failures.
Typically triggered by /dev scans origination from SM or udev.

Signed-off-by: Daniel Stodden <daniel.stodden@citrix.com>
14 years ago[CA-43971]: Adding the tool to generate the pool secret, including
Magnus Therning [Mon, 11 Oct 2010 22:02:24 +0000 (23:02 +0100)]
[CA-43971]: Adding the tool to generate the pool secret, including
the init-script to fire it off on boot.

Signed-off-by: Magnus Therning <magnus.therning@citrix.com>
14 years agoCA-46050: allow more than 2 PCI devices to be hotplugged into a domain (!)
David Scott [Mon, 11 Oct 2010 22:00:16 +0000 (23:00 +0100)]
CA-46050: allow more than 2 PCI devices to be hotplugged into a domain (!)

There is much confusion about the meaning of the X in
(X, (domain, bus, path, func)). Sometimes it means "order the device was
plugged"; other times it means something more device related.

With this change, more than 2 devices can be plugged into a domain and the
#devices and plug order remains constant over reboot.

Signed-off-by: David Scott <dave.scott@eu.citrix.com>
14 years agoFix a problem whereby it is possible to duplicate columns in an RRD
Jonathan Ludlam [Mon, 11 Oct 2010 21:58:54 +0000 (22:58 +0100)]
Fix a problem whereby it is possible to duplicate columns in an RRD

Signed-off-by: Jon Ludlam <Jonathan.Ludlam@eu.citrix.com>
14 years agoThe recent addition of the VDI on_boot and allow_caching parameters affected the...
Jon Ludlam [Mon, 11 Oct 2010 21:57:29 +0000 (22:57 +0100)]
The recent addition of the VDI on_boot and allow_caching parameters affected the allowed operations check. The additional check was put in
the middle of the if block rather than at the end, thus short circuiting some subsequent checks that would otherwise have been done. For
example, checkpoint is allowed in a VM with no tools. This patch fixes that behaviour.

Signed-off-by: Jon Ludlam <jonathan.ludlam@eu.citrix.com>
 diff -r 95b9e4f1b9dd ocaml/xapi/xapi_vm_lifecycle.ml

14 years agoDon't pause the VDI for online snapshots: The SM is now responsible for pausing
Andrei Lifchits [Fri, 24 Sep 2010 16:33:28 +0000 (17:33 +0100)]
Don't pause the VDI for online snapshots: The SM is now responsible for pausing

Signed-off-by: Andrei Lifchits <andrei.lifchits@citrix.com>
Signed-off-by: Julian Chesterfield <julian.chesterfield@citrix.com>
14 years agoThe storage backends use sm-config for various bits of per-vdi info. We shouldn't...
Jon Ludlam [Fri, 24 Sep 2010 16:32:28 +0000 (17:32 +0100)]
The storage backends use sm-config for various bits of per-vdi info. We shouldn't copy that when cloning/copying a VDI.

Signed-off-by: Jon Ludlam <Jonathan.Ludlam@eu.citrix.com>
14 years agoAdd RRDs to measure the use of the local disk cache.
Jon Ludlam [Fri, 24 Sep 2010 16:27:31 +0000 (17:27 +0100)]
Add RRDs to measure the use of the local disk cache.

Signed-off-by: Jon Ludlam <Jonathan.Ludlam@eu.citrix.com>
14 years agoLocal disk caching API work. Added pool-level API calls to enable/disable caching...
Jon Ludlam [Fri, 24 Sep 2010 16:27:30 +0000 (17:27 +0100)]
Local disk caching API work. Added pool-level API calls to enable/disable caching, host-level API calls for same, per VDI on_boot and allow_caching parameters, and CLI calls for all.

Signed-off-by: Jon Ludlam <Jonathan.Ludlam@eu.citrix.com>
14 years agoPass the writable flag to the SM backends on activate as well as attach. This is...
Jon Ludlam [Fri, 24 Sep 2010 15:46:04 +0000 (16:46 +0100)]
Pass the writable flag to the SM backends on activate as well as attach. This is a temporary fix to work around
an implementation hurdle in the backends.

Signed-off-by: Jon Ludlam <jonathan.ludlam@eu.citrix.com>
14 years agoFix RPM build broken by addition of new script
David Scott [Wed, 1 Sep 2010 10:41:42 +0000 (11:41 +0100)]
Fix RPM build broken by addition of new script

Signed-off-by: David Scott <dave.scott@eu.citrix.com>
14 years agoDisplays an accurate message when xapi fails to initialise when host is its own slave.
Rok Strnisa [Tue, 24 Aug 2010 15:28:22 +0000 (16:28 +0100)]
Displays an accurate message when xapi fails to initialise when host is its own slave.

Signed-off-by: Rok Strnisa <rok.strnisa@citrix.com>
14 years agoFix build by using $(DESTDIR)/ rather than $(DIST)/staging/
David Scott [Tue, 24 Aug 2010 09:54:57 +0000 (10:54 +0100)]
Fix build by using $(DESTDIR)/ rather than $(DIST)/staging/

Signed-off-by: David Scott <dave.scott@eu.citrix.com>
14 years agoMAR-112: RRD transfer lock can prevent master transition
Ted M Lin [Wed, 4 Aug 2010 19:55:23 +0000 (15:55 -0400)]
MAR-112: RRD transfer lock can prevent master transition

If the master loses connectivity during a RRD transfer, the RRD mutex
will never be released.  When performing a emergency master transition,
the first thing that occurs is to save the local RRDs to disk, which
requires the RRD mutex.  This will never succeed, thus XAPI gets stuck
trying to shut down.

Instead of locking the mutex, we try to acquire it for a few seconds.
If the lock can not be taken, the loss of some RRD data is preferable
to not being able to transition at all.

Signed-off-by: Ted M Lin <tlin@marathontechnologies.com>
14 years agoCP-1798: license updates for VMPR (PR-1031)
Marcus Granado [Mon, 23 Aug 2010 14:54:37 +0000 (15:54 +0100)]
CP-1798: license updates for VMPR (PR-1031)

Signed-off-by: Marcus Granado <marcus.granado@eu.citrix.com>
14 years agoCP-1880: cli autocompletion for vmpp fields
Marcus Granado [Mon, 23 Aug 2010 14:54:37 +0000 (15:54 +0100)]
CP-1880: cli autocompletion for vmpp fields

Signed-off-by: Marcus Granado <marcus.granado@eu.citrix.com>
14 years agoCP-1879: compress data contents in vmpp.create_alert
Marcus Granado [Mon, 23 Aug 2010 14:54:37 +0000 (15:54 +0100)]
CP-1879: compress data contents in vmpp.create_alert
and transparently uncompress the same data in vmpp.get_alerts.

Signed-off-by: Marcus Granado <marcus.granado@eu.citrix.com>
14 years agoCP-1739: vmpp retention value should be between 1 and 10
Marcus Granado [Mon, 23 Aug 2010 14:54:37 +0000 (15:54 +0100)]
CP-1739: vmpp retention value should be between 1 and 10

Signed-off-by: Marcus Granado <marcus.granado@eu.citrix.com>
14 years agoCP-1739: vmpp.{backup,archive}-last-run-time should be for local-root only
Marcus Granado [Mon, 23 Aug 2010 14:54:37 +0000 (15:54 +0100)]
CP-1739: vmpp.{backup,archive}-last-run-time should be for local-root only

Signed-off-by: Marcus Granado <marcus.granado@eu.citrix.com>
14 years agoCP-1860: add license checks
Marcus Granado [Mon, 23 Aug 2010 14:54:37 +0000 (15:54 +0100)]
CP-1860: add license checks

Signed-off-by: Marcus Granado <marcus.granado@eu.citrix.com>
14 years agoCP-1807: do not allow assigning a VMPP to a Dom0 VM
Marcus Granado [Mon, 23 Aug 2010 14:54:37 +0000 (15:54 +0100)]
CP-1807: do not allow assigning a VMPP to a Dom0 VM

Signed-off-by: Marcus Granado <marcus.granado@eu.citrix.com>
14 years agoCP-1858: add new vmpp message types to api-messages
Marcus Granado [Mon, 23 Aug 2010 14:54:37 +0000 (15:54 +0100)]
CP-1858: add new vmpp message types to api-messages

Signed-off-by: Marcus Granado <marcus.granado@eu.citrix.com>
14 years agoCP-1846: add new api call vmpp.create_alert
Marcus Granado [Mon, 23 Aug 2010 14:54:37 +0000 (15:54 +0100)]
CP-1846: add new api call vmpp.create_alert

Signed-off-by: Marcus Granado <marcus.granado@eu.citrix.com>
14 years agoCP-1841: add new api call vmpp.get_alerts
Marcus Granado [Mon, 23 Aug 2010 14:54:37 +0000 (15:54 +0100)]
CP-1841: add new api call vmpp.get_alerts

Signed-off-by: Marcus Granado <marcus.granado@eu.citrix.com>
14 years agoCP-1807: validate key names and values for vmpp map fields
Marcus Granado [Mon, 23 Aug 2010 14:54:36 +0000 (15:54 +0100)]
CP-1807: validate key names and values for vmpp map fields

Signed-off-by: Marcus Granado <marcus.granado@eu.citrix.com>
14 years agoCP-1835: add optional task-uuid parameter to cli vm-export
Marcus Granado [Mon, 23 Aug 2010 14:54:36 +0000 (15:54 +0100)]
CP-1835: add optional task-uuid parameter to cli vm-export

Signed-off-by: Marcus Granado <marcus.granado@eu.citrix.com>
14 years agoCP-1800: CLI support for PR-1031 (VM protection policy)
Marcus Granado [Mon, 23 Aug 2010 14:54:36 +0000 (15:54 +0100)]
CP-1800: CLI support for PR-1031 (VM protection policy)

Signed-off-by: Marcus Granado <marcus.granado@eu.citrix.com>
14 years agoCP-1704: vmpp.archive-now
Marcus Granado [Mon, 23 Aug 2010 14:54:36 +0000 (15:54 +0100)]
CP-1704: vmpp.archive-now

Signed-off-by: Marcus Granado <marcus.granado@eu.citrix.com>
14 years agoCP-1704: vmpp.protect_now
Marcus Granado [Mon, 23 Aug 2010 14:54:36 +0000 (15:54 +0100)]
CP-1704: vmpp.protect_now

Signed-off-by: Marcus Granado <marcus.granado@eu.citrix.com>
14 years agoCP-1833: check for lsu vmpr during snapshot
Marcus Granado [Mon, 23 Aug 2010 14:54:36 +0000 (15:54 +0100)]
CP-1833: check for lsu vmpr during snapshot

Signed-off-by: Marcus Granado <marcus.granado@eu.citrix.com>
14 years agoCP-1803: when reverting from snapshots, do not overwrite vm protection policy
Marcus Granado [Mon, 23 Aug 2010 14:54:36 +0000 (15:54 +0100)]
CP-1803: when reverting from snapshots, do not overwrite vm protection policy

Signed-off-by: Marcus Granado <marcus.granado@eu.citrix.com>
14 years agoCP-1801: modify VM import/export to wipe the policy pointer field information
Marcus Granado [Mon, 23 Aug 2010 14:54:36 +0000 (15:54 +0100)]
CP-1801: modify VM import/export to wipe the policy pointer field information

Signed-off-by: Marcus Granado <marcus.granado@eu.citrix.com>
14 years agoCP-1831: superusers should have auth_user_name in session
Marcus Granado [Mon, 23 Aug 2010 14:54:36 +0000 (15:54 +0100)]
CP-1831: superusers should have auth_user_name in session

Signed-off-by: Marcus Granado <marcus.granado@eu.citrix.com>
14 years agoCP-1799: update email-alert mechanism to use email info from VMPP instead of pool
Marcus Granado [Mon, 23 Aug 2010 14:54:36 +0000 (15:54 +0100)]
CP-1799: update email-alert mechanism to use email info from VMPP instead of pool

Signed-off-by: Marcus Granado <marcus.granado@eu.citrix.com>
14 years agoCP-1739: create XAPI datamodel stubs for PR-1031 (VM protection policy)
Marcus Granado [Mon, 23 Aug 2010 14:54:36 +0000 (15:54 +0100)]
CP-1739: create XAPI datamodel stubs for PR-1031 (VM protection policy)

Signed-off-by: Marcus Granado <marcus.granado@eu.citrix.com>
14 years agoVM_OLD_PV_DRIVERS API error should contain vm ref (not vm_guest_metrics ref)
Rob Hoes [Mon, 23 Aug 2010 14:23:43 +0000 (15:23 +0100)]
VM_OLD_PV_DRIVERS API error should contain vm ref (not vm_guest_metrics ref)

Signed-off-by: Rob Hoes <rob.hoes@citrix.com>
14 years agoCA-43625: accept ou parameter during domain-join
Marcus Granado [Mon, 23 Aug 2010 12:54:13 +0000 (13:54 +0100)]
CA-43625: accept ou parameter during domain-join

Signed-off-by: Marcus Granado <marcus.granado@eu.citrix.com>
14 years agoCA-43568: Fix copy/paste error in InterfaceReconfigure.py
Alex Zeffertt [Mon, 23 Aug 2010 12:54:13 +0000 (13:54 +0100)]
CA-43568: Fix copy/paste error in InterfaceReconfigure.py

This was preventing the PIF.other-config:ethtool-duplex key being handled

Signed-off-by: Alex Zeffertt <alex.zeffertt@eu.citrix.com>
14 years ago[CP-1698] Extends the set of valid HA restart priorities to include "0".
Jonathan Knowles [Mon, 23 Aug 2010 12:25:16 +0000 (13:25 +0100)]
[CP-1698] Extends the set of valid HA restart priorities to include "0".

Signed-off-by: Jonathan Knowles <jonathan.knowles@eu.citrix.com>
14 years ago[CP-1698] Refactors the HA codebase to extract out a common, repeated definition...
Jonathan Knowles [Mon, 23 Aug 2010 12:25:16 +0000 (13:25 +0100)]
[CP-1698] Refactors the HA codebase to extract out a common, repeated definition. (Fixes a minor violation of the DRY principle.)

Signed-off-by: Jonathan Knowles <jonathan.knowles@eu.citrix.com>
14 years agoStartup function to execute an emergency network reset
Rob Hoes [Mon, 23 Aug 2010 12:23:55 +0000 (13:23 +0100)]
Startup function to execute an emergency network reset

This patch contains the code that is able to perform an emergency network reset. The code runs when xapi starts and the file /tmp/network-reset (created by the xe-reset-networking script) is present.

Signed-off-by: Rob Hoes <rob.hoes@citrix.com>
14 years agoEmergency Network Reset script
Rob Hoes [Mon, 23 Aug 2010 12:23:55 +0000 (13:23 +0100)]
Emergency Network Reset script

This patch creates the script xe-reset-networking, which is able to trigged a network reset on the host it is executed on.

See the design page at http://wiki.xensource.com/xenwiki/Emergency_Network_Reset for more information and usage details.

Signed-off-by: Rob Hoes <rob.hoes@citrix.com>
14 years agoAdd host.reset_networking API call
Rob Hoes [Mon, 23 Aug 2010 12:23:54 +0000 (13:23 +0100)]
Add host.reset_networking API call

This call purges all network-related metadata associated with the given host (PIFs, VLANs, bonds, tunnels). This call is used by the emergency network reset functionality. It should normally not be used directly, and is hidden from the API docs.

Signed-off-by: Rob Hoes <rob.hoes@citrix.com>
14 years agoCA-42495: Strip blktap related lines from xen-backend.rules
Daniel Stodden [Mon, 23 Aug 2010 12:22:01 +0000 (13:22 +0100)]
CA-42495: Strip blktap related lines from xen-backend.rules

No semantic difference, but was pulled into
blktap.hg/control/blktap.rules, since blktap.hg 527:0ec5f9b62433.

Signed-off-by: Daniel Stodden <daniel.stodden@citrix.com>
14 years agoExpose PIF.tunnel_access_PIF_of and PIF.tunnel_transport_PIF_of in xe CLI
Rob Hoes [Mon, 23 Aug 2010 12:20:42 +0000 (13:20 +0100)]
Expose PIF.tunnel_access_PIF_of and PIF.tunnel_transport_PIF_of in xe CLI

Signed-off-by: Rob Hoes <rob.hoes@citrix.com>
14 years agoSet lifecycle state of tunnel APIs to Published
Rob Hoes [Mon, 23 Aug 2010 12:20:41 +0000 (13:20 +0100)]
Set lifecycle state of tunnel APIs to Published

Signed-off-by: Rob Hoes <rob.hoes@citrix.com>
14 years agoCA-43021: hook in 'sparse_dd' for improved VM.copy performance
David Scott [Mon, 23 Aug 2010 12:16:56 +0000 (13:16 +0100)]
CA-43021: hook in 'sparse_dd' for improved VM.copy performance

On local LVHD, VM.copies of freshly installed guests are much quicker:

Guest        Previous VM.copy time New VM.copy time   Speedup
----------------------------------------------------------------
Debian Lenny   2:11                     1:18               40%
Windows 7      14:18                    7:57               44%

Signed-off-by: David Scott <dave.scott@eu.citrix.com>
14 years agoCA-43021: Fix bug detecting the backing vhd file caused by reading the wrong device...
David Scott [Mon, 23 Aug 2010 12:16:55 +0000 (13:16 +0100)]
CA-43021: Fix bug detecting the backing vhd file caused by reading the wrong device's minor number.

Signed-off-by: David Scott <dave.scott@eu.citrix.com>
14 years agoCA_43021: sparse_dd can now talk to the import_raw_vdi HTTP handler
David Scott [Mon, 23 Aug 2010 12:16:53 +0000 (13:16 +0100)]
CA_43021: sparse_dd can now talk to the import_raw_vdi HTTP handler

Signed-off-by: David Scott <dave.scott@eu.citrix.com>
14 years agoCA-43021: Tidy-up the chain reading code a little.
David Scott [Mon, 23 Aug 2010 12:16:53 +0000 (13:16 +0100)]
CA-43021: Tidy-up the chain reading code a little.

Signed-off-by: David Scott <dave.scott@eu.citrix.com>
14 years agoCA-43021: When copying a VDI and using the BATs for acceleration, remember to union...
David Scott [Mon, 23 Aug 2010 12:16:51 +0000 (13:16 +0100)]
CA-43021: When copying a VDI and using the BATs for acceleration, remember to union the BATs of the whole vhd chain.

If anything goes wrong in the chain analysis, fall back to normal copy.

Signed-off-by: David Scott <dave.scott@eu.citrix.com>
14 years agoCA-43021: Move the 'prezeroing' logic into the DD module to (i) avoid duplicating...
David Scott [Mon, 23 Aug 2010 12:16:51 +0000 (13:16 +0100)]
CA-43021: Move the 'prezeroing' logic into the DD module to (i) avoid duplicating logic; and (ii) to compute progress accurately.

Signed-off-by: David Scott <dave.scott@eu.citrix.com>
14 years agoCA-43021: More refactorings of the sparse_dd binary.
David Scott [Mon, 23 Aug 2010 12:16:50 +0000 (13:16 +0100)]
CA-43021: More refactorings of the sparse_dd binary.

Split the DD operation into a 'fold' and a 'copy' (where the latter contains the side-effects, computes stats etc)
Move the substring record type into the Zerocheck module.

Signed-off-by: David Scott <dave.scott@eu.citrix.com>
14 years agoCA-43021: Small refactorings of the new sparse_dd code.
David Scott [Mon, 23 Aug 2010 12:16:49 +0000 (13:16 +0100)]
CA-43021: Small refactorings of the new sparse_dd code.

Split the 'Stream' signature into two since we don't have to be reading and writing to the same kind of data.
Add a convenient 'substring' record type rather than passing around multiple arguments all the time.

Signed-off-by: David Scott <dave.scott@eu.citrix.com>
14 years agoCP-1884: Document the change in behaviour of the VDI.copy call.
David Scott [Mon, 23 Aug 2010 12:09:56 +0000 (13:09 +0100)]
CP-1884: Document the change in behaviour of the VDI.copy call.

Signed-off-by: David Scott <dave.scott@eu.citrix.com>
14 years agoEnsure dist/staging/opt/xensource/libexec dir exists
Rob Hoes [Mon, 23 Aug 2010 12:09:16 +0000 (13:09 +0100)]
Ensure dist/staging/opt/xensource/libexec dir exists

A 'mkdir -p' for this directory is needed before any attempt to copy files into it.

Signed-off-by: Rob Hoes <rob.hoes@citrix.com>
14 years agoCP-1884: The pool master should forward VDI.copy calls to a host which can see the...
David Scott [Mon, 23 Aug 2010 12:05:49 +0000 (13:05 +0100)]
CP-1884: The pool master should forward VDI.copy calls to a host which can see the source SR; now that we have cross-host copying it isn't necessary to be able to find a host which can see both the source and destination SRs.

Signed-off-by: David Scott <dave.scott@eu.citrix.com>
14 years agoCP-1884: implementation of VDI.copy can now use the import_raw_vdi HTTP handler to...
David Scott [Mon, 23 Aug 2010 12:05:48 +0000 (13:05 +0100)]
CP-1884: implementation of VDI.copy can now use the import_raw_vdi HTTP handler to copy between hosts.

Signed-off-by: David Scott <dave.scott@eu.citrix.com>
14 years agoCP-1883: Allow raw VDI import to receive an export-like chunked encoding.
David Scott [Mon, 23 Aug 2010 12:05:47 +0000 (13:05 +0100)]
CP-1883: Allow raw VDI import to receive an export-like chunked encoding.

The raw VDI import HTTP handler currently assumes the whole disk is being uploaded at once. Instead we add a 'chunked' mode which allows arbitrary-sized disk blocks to be selectively uploaded.

Signed-off-by: David Scott <dave.scott@eu.citrix.com>
14 years agoCA-42836: In the import_raw_vdi HTTP handler when issuing an HTTP redirect, use HTTPS...
David Scott [Mon, 23 Aug 2010 12:03:21 +0000 (13:03 +0100)]
CA-42836: In the import_raw_vdi HTTP handler when issuing an HTTP redirect, use HTTPS if the caller was originally using HTTPS or HTTP otherwise.

Signed-off-by: David Scott <dave.scott@eu.citrix.com>
14 years agoCA-42836: in VDI import, issue an HTTP 302 redirect to the correct host rather than...
David Scott [Mon, 23 Aug 2010 12:03:21 +0000 (13:03 +0100)]
CA-42836: in VDI import, issue an HTTP 302 redirect to the correct host rather than just assuming the current host has access to the SR.

Signed-off-by: David Scott <dave.scott@eu.citrix.com>
14 years agoAdd a sparse_dd binary which uses the new sparseness scanning code.
David Scott [Fri, 23 Jul 2010 17:18:39 +0000 (18:18 +0100)]
Add a sparse_dd binary which uses the new sparseness scanning code.

The binary supports a "-test" argument which runs a set of unit tests.

Signed-off-by: David Scott <dave.scott@eu.citrix.com>