]> xenbits.xensource.com Git - xcp/xen-api.git/log
xcp/xen-api.git
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>
14 years agoUpdate firstboot network data before pool eject
Rob Hoes [Wed, 14 Jul 2010 15:44:47 +0000 (16:44 +0100)]
Update firstboot network data before pool eject

When a host is ejected from a pool, its XAPI database objects are removed and recreated by the firstboot scripts after the host reboots. The data used by the firstboot scripts is stored when the host is installed, and never updated anymore after that. Part of the firstboot data is the assignment and IP configuration of the management interface.

This patch updates the firstboot data to reflect the current configuration of the management interface on pool eject, such that after the reboot, management is configured in the same way as before. As pool eject removes any bonds, in case management is on a bond, one of the slaves is chosen to become the new management interface.

Signed-off-by: Rob Hoes <rob.hoes@citrix.com>
14 years agoIntroduce PIF.scan_bios
Rob Hoes [Wed, 14 Jul 2010 15:44:47 +0000 (16:44 +0100)]
Introduce PIF.scan_bios

This function is similar to PIF.scan, but uses biosdevname to determine the device names of the network interfaces. The patch also add an extra check to the PIF introduce code to ensure that no new PIF is created if one already exists with the same device name.

Signed-off-by: Rob Hoes <rob.hoes@citrix.com>
14 years agoUpdate pool join code to use new modules
Rob Hoes [Wed, 14 Jul 2010 15:43:35 +0000 (16:43 +0100)]
Update pool join code to use new modules

Signed-off-by: Rob Hoes <rob.hoes@citrix.com>
14 years agoUpdate code to change edition to use new modules
Rob Hoes [Wed, 14 Jul 2010 15:43:34 +0000 (16:43 +0100)]
Update code to change edition to use new modules

Signed-off-by: Rob Hoes <rob.hoes@citrix.com>
14 years agoMake License_check independent of License module
Rob Hoes [Wed, 14 Jul 2010 15:43:33 +0000 (16:43 +0100)]
Make License_check independent of License module

Rather, find the expiry date of a license in the host.license_params:expiry database field. If this key is absent, the license never expires.

Signed-off-by: Rob Hoes <rob.hoes@citrix.com>
14 years agoRewrite feature restrictions code
Rob Hoes [Wed, 14 Jul 2010 15:43:32 +0000 (16:43 +0100)]
Rewrite feature restrictions code

This patch replaces restrictions.ml by features.ml and editions.ml, and splits up license.ml in three separate files (license.ml, license_init.ml and license_file.ml).

The Features module controls which XCP features are enabled. The Editions module defines "editions", which are sets of features that are enabled. An XCP host is always running as (exactly) one particular edition. Currently, there is just one edition defined, called "Free" (for backwards compatibility), in which all currently implemented features are enabled.

One use of this is that new or experimental features can be enabled only in special editions to keep them separate from the stable version of XCP.

Signed-off-by: Rob Hoes <rob.hoes@citrix.com>
14 years ago'make doc' now removes the need for the rebuild-doc script.
Rok Strnisa [Wed, 14 Jul 2010 15:43:31 +0000 (16:43 +0100)]
'make doc' now removes the need for the rebuild-doc script.

Signed-off-by: Rok Strnisa <rok.strnisa@citrix.com>
14 years agoRemoves the need for the rebuild script.
Rok Strnisa [Wed, 14 Jul 2010 15:43:30 +0000 (16:43 +0100)]
Removes the need for the rebuild script.

Signed-off-by: Rok Strnisa <rok.strnisa@citrix.com>
14 years ago[PATCH] interface-reconfigure: Handle CHIN Tunnel objects
Ian Campbell [Wed, 14 Jul 2010 15:43:30 +0000 (16:43 +0100)]
[PATCH] interface-reconfigure: Handle CHIN Tunnel objects

From 92e906e484fac90d5c5618f2bca33f595ad2e390 Mon Sep 17 00:00:00 2001
Date: Wed, 23 Jun 2010 09:18:57 +0100
Only the vswitch backend is able to implement CHIN.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Signed-off-by: Dominic Curran <dominic.curran@citrix.com>
---
 .../opt_xensource_libexec_InterfaceReconfigure.py  |   48 +++++++++++++++++--
 ...xensource_libexec_InterfaceReconfigureBridge.py |    3 +
 ...ensource_libexec_InterfaceReconfigureVswitch.py |   11 ++++-
 .../opt_xensource_libexec_interface-reconfigure    |    2 +
 4 files changed, 57 insertions(+), 7 deletions(-)

14 years agoTunnelling: do not allow transport PIFs to be destroyed
Rob Hoes [Wed, 14 Jul 2010 15:43:29 +0000 (16:43 +0100)]
Tunnelling: do not allow transport PIFs to be destroyed

Signed-off-by: Rob Hoes <rob.hoes@citrix.com>
14 years agoTunnelling: unplugging a tunnel transport PIF also unplugs the access PIF
Rob Hoes [Wed, 14 Jul 2010 15:43:29 +0000 (16:43 +0100)]
Tunnelling: unplugging a tunnel transport PIF also unplugs the access PIF

Signed-off-by: Rob Hoes <rob.hoes@citrix.com>
14 years agoTunnelling: synchronise tunnels with the pool master when a slave starts up
Rob Hoes [Wed, 14 Jul 2010 15:43:28 +0000 (16:43 +0100)]
Tunnelling: synchronise tunnels with the pool master when a slave starts up

Just like for bonds and VLANs, tunnels should be synchronised with the pool master and all pool slaves. This code ensure that tunnels are synchronised when xapi starts up on a slave, which is especially important after a pool join.

Signed-off-by: Rob Hoes <rob.hoes@citrix.com>
14 years agoVSwitch controller field may be blank on pool join
Rob Hoes [Wed, 14 Jul 2010 15:43:28 +0000 (16:43 +0100)]
VSwitch controller field may be blank on pool join

If the pool.vswitch_controller field is blank on a joining host, but not on the pool, the join is allowed. The openvswitch in the joining host will be controlled by the pool's controller.

Signed-off-by: Rob Hoes <rob.hoes@citrix.com>
14 years agoTunnelling: error handling
Rob Hoes [Wed, 14 Jul 2010 15:43:27 +0000 (16:43 +0100)]
Tunnelling: error handling

Raise appropriate exceptions in tunnel.create, VLAN.create, and PIF.plug.

Signed-off-by: Rob Hoes <rob.hoes@citrix.com>
14 years agoTunnelling: creation and destruction of tunnels
Rob Hoes [Wed, 14 Jul 2010 15:43:27 +0000 (16:43 +0100)]
Tunnelling: creation and destruction of tunnels

Signed-off-by: Rob Hoes <rob.hoes@citrix.com>
14 years agoTunnelling: add CLI support (xe tunnel-...)
Rob Hoes [Wed, 14 Jul 2010 15:43:26 +0000 (16:43 +0100)]
Tunnelling: add CLI support (xe tunnel-...)

Signed-off-by: Rob Hoes <rob.hoes@citrix.com>
14 years agoTunnelling: add datamodel objects
Rob Hoes [Wed, 14 Jul 2010 15:43:26 +0000 (16:43 +0100)]
Tunnelling: add datamodel objects

This includes a new "tunnel" class and fields in the PIF class to link PIFs to tunnels.

Signed-off-by: Rob Hoes <rob.hoes@citrix.com>
14 years agoAdd optional compression to VM exports. Both compressed and uncompressed formats...
David Scott [Wed, 14 Jul 2010 15:36:41 +0000 (16:36 +0100)]
Add optional compression to VM exports. Both compressed and uncompressed formats can be imported as normal since the format is auto-detected.

Design notes on the wiki: http://wiki.xensource.com/xenwiki/Compressing_VM_exports

Signed-off-by: David Scott <dave.scott@eu.citrix.com>
14 years agoFix the source manifest generation by using a simple shell script to scan the SRPMS...
David Scott [Mon, 12 Jul 2010 07:32:58 +0000 (08:32 +0100)]
Fix the source manifest generation by using a simple shell script to scan the SRPMS, rather than a hideous make/shell fragment.

Signed-off-by: David Scott <dave.scott@eu.citrix.com>
14 years agoI placed the hooks at the end of each action. I didn't go as far as
Ian Campbell [Thu, 8 Jul 2010 15:28:43 +0000 (16:28 +0100)]
I placed the hooks at the end of each action. I didn't go as far as
{pre,post}x{join,eject} but could do if that is desirable.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
14 years agoSome minor improvements to the with-vdi script
Zheng Li [Wed, 16 Jun 2010 15:26:42 +0000 (16:26 +0100)]
Some minor improvements to the with-vdi script

- return the user command's exit code as the exit code of with-vdi script (unless something else failed in the preparation or post run steps)
- relax the requirement on the user command parameter, both absolute paths and in-paths executables are acceptable
- allow a user command to have its own arguments (i.e. with-vdi vdi-uuid user-command arg1 arg2 ... argn)

Signed-off-by: Zheng Li <dev@zheng.li>
15 years agoCA-38567: Catch I/O errors during VM.suspend
Daniel Stodden [Mon, 15 Mar 2010 09:22:23 +0000 (09:22 +0000)]
CA-38567: Catch I/O errors during VM.suspend

Signed-off-by: Daniel Stodden <daniel.stodden@citrix.com>
14 years agoCoalesce RHEL/CentOS/OEL 5.x templates into one template per distro per arch
Alex Zeffertt [Thu, 8 Jul 2010 13:54:31 +0000 (14:54 +0100)]
Coalesce RHEL/CentOS/OEL 5.x templates into one template per distro per arch

Create 6 new templates (RHEL,CentOS,OEL)*(i386,x86_64) that can be used to
install 5.x point release.

For now we leave the old templates in place to prevent a failure in the
regression testing.  However, when XenRT has been updated to use the new
templates we shall remove the old ones.

Signed-off-by: Alex Zeffertt <alex.zeffertt@eu.citrix.com>
14 years agoAdd templates for Debian Squeeze
Alex Zeffert [Thu, 8 Jul 2010 13:53:21 +0000 (14:53 +0100)]
Add templates for Debian Squeeze

Signed-off-by: Alex Zeffert <alex.zeffertt@eu.citrix.com>
14 years agoAdd templates for SLES 11 SP1
Alex Zeffert [Thu, 8 Jul 2010 13:52:32 +0000 (14:52 +0100)]
Add templates for SLES 11 SP1

Signed-off-by: Alex Zeffert <alex.zeffertt@eu.citrix.com>
14 years agoThe option for encrypting VM migration.
Rok Strnisa [Thu, 8 Jul 2010 13:51:03 +0000 (14:51 +0100)]
The option for encrypting VM migration.

EXAMPLE USE:
xe vm-migrate encrypt=true ...

Default is false.

DEPENDENCY:
This patch depends on the 'stdext-improved' patch in the xen-api-libs.hg.

Signed-off-by: Rok Strnisa <rok.strnisa@citrix.com>
14 years agoImprove import of networks/VIFs on pool join
Rob Hoes [Thu, 8 Jul 2010 13:50:44 +0000 (14:50 +0100)]
Improve import of networks/VIFs on pool join

Metadata export+import is used to recreate VIFs on the pool, when a host joins. VIFs are linked to networks on the receiving pool by matching the name_label of the network on the two pools. If the name_label does not exist, this has to be because an existing physical network on the receiving pool is used; in this case, we match on bridge name. This is a sensible fall-back option for imports in general.

Signed-off-by: Rob Hoes <rob.hoes@citrix.com>
14 years agoImprove network recreation on pool join
Rob Hoes [Thu, 8 Jul 2010 13:47:51 +0000 (14:47 +0100)]
Improve network recreation on pool join

When joining a new host to a pool:
* Networks of physical interfaces are copied to the pool's DB if they do not yet exists; matching is done based on the bridge name (xenbr0, xenbr1, ...).
* All other networks are recreated on the pool. The bridge (xapi0, xapi1, ...) is renamed such that it is unique on the pool. All other network fields are copied from the host's network object.

(related to CA-39461)

Signed-off-by: Rob Hoes <rob.hoes@citrix.com>
14 years agoReduce the min,max_verstring to 1.7, 1.7
David Scott [Thu, 8 Jul 2010 13:43:16 +0000 (14:43 +0100)]
Reduce the min,max_verstring to 1.7, 1.7

Signed-off-by: David Scott <dave.scott@eu.citrix.com>
14 years agoPR-1098: Add templates for RHEL 5.5 based distros
Alex Zeffertt [Thu, 8 Jul 2010 13:40:25 +0000 (14:40 +0100)]
PR-1098: Add templates for RHEL 5.5 based distros

Signed-off-by: Alex Zeffertt <alex.zeffertt@eu.citrix.com>
14 years agoAdd template for Ubuntu 10.04
Alex Zeffertt [Thu, 8 Jul 2010 13:39:32 +0000 (14:39 +0100)]
Add template for Ubuntu 10.04

Signed-off-by: Alex Zeffertt <alex.zeffertt@eu.citrix.com>
14 years agoMove the netdev library from xen-api.hg into xen-api-libs.hg and make it into a ocaml...
Jon Ludlam [Thu, 8 Jul 2010 13:39:04 +0000 (14:39 +0100)]
Move the netdev library from xen-api.hg into xen-api-libs.hg and make it into a ocamlfind library

Signed-off-by: Jon Ludlam <Jonathan.Ludlam@eu.citrix.com>
14 years agovfi hotplug: drop support for XS 5.5.0 from vswitch functionlity.
David Scott [Thu, 8 Jul 2010 13:35:14 +0000 (14:35 +0100)]
vfi hotplug: drop support for XS 5.5.0 from vswitch functionlity.

This was imported from the vswitch tree (which wants to work on XS
5.5.0) for ease of import but back them out here.

14 years agovswitch: pass network uuid to vswitch when creating an internal network
Ian Campbell [Thu, 8 Jul 2010 13:35:13 +0000 (14:35 +0100)]
vswitch: pass network uuid to vswitch when creating an internal network

For external networks this is taken care of by interface-reconfigure
but in the internal network case there is currently no callout so
simply pass the network uuid when creating calling out to create the
bridge.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>