]> xenbits.xensource.com Git - xcp/xen-api.git/log
xcp/xen-api.git
14 years agoRemove unused variable leaving_snapshots in xapi_vm.ml
Matthias Goergnes [Wed, 26 Jan 2011 17:39:05 +0000 (17:39 +0000)]
Remove unused variable leaving_snapshots in xapi_vm.ml

Signed-off-by: Matthias Goergnes <matthias.goergens@citrix.com>
14 years agoRemove unused variable dead_hosts in xapi_ha_vm_failover.ml
Matthias Goergnes [Wed, 26 Jan 2011 17:39:05 +0000 (17:39 +0000)]
Remove unused variable dead_hosts in xapi_ha_vm_failover.ml

Signed-off-by: Matthias Goergnes <matthias.goergens@citrix.com>
14 years agoRemove unused variable e in xapi_vm.ml
Matthias Goergnes [Wed, 26 Jan 2011 17:39:05 +0000 (17:39 +0000)]
Remove unused variable e in xapi_vm.ml

Signed-off-by: Matthias Goergnes <matthias.goergens@citrix.com>
14 years agoCA-48062 xapi hook "vm-pre-start"
James Bulpin [Tue, 9 Nov 2010 18:44:19 +0000 (18:44 +0000)]
CA-48062 xapi hook "vm-pre-start"

Signed-off-by: James Bulpin <James.Bulpin@eu.citrix.com>
14 years agoRemoving warnings, first wave.
Rok Strnisa [Wed, 26 Jan 2011 17:39:05 +0000 (17:39 +0000)]
Removing warnings, first wave.

Signed-off-by: Rok Strnisa <rok.strnisa@citrix.com>
14 years agoCA-47759 - CLI command vm-reboot failed: Stunnel process 17840 existed with exit...
John Else [Wed, 26 Jan 2011 17:39:05 +0000 (17:39 +0000)]
CA-47759 - CLI command vm-reboot failed: Stunnel process 17840 existed with exit code 0

Remove the really_write function and instead use Unixext.really_write.

Signed-off-by: John Else <john.else@citrix.com>
14 years agoCA-47663 The host blob sync logs 10s of thousands of log lines per iteration
Mike McClurg [Wed, 26 Jan 2011 17:39:05 +0000 (17:39 +0000)]
CA-47663 The host blob sync logs 10s of thousands of log lines per iteration

The rsync command called by Xapi_sync.sync_host was given the -v (verbose) option, which made it spew tens of thousands of lines into the xensource.log file. I removed the -v option and added --stats in order to keep the file transfer summaries in the output.

Signed-off-by: Mike McClurg <mike.mcclurg@citrix.com>
14 years agoCA-47663: Fix indentation and whitespace problems in xapi_sync.ml
Mike McClurg [Wed, 26 Jan 2011 17:39:05 +0000 (17:39 +0000)]
CA-47663: Fix indentation and whitespace problems in xapi_sync.ml

This patch is in preparation to resolve issue CA-47663. I wanted to make a lot of whitespace and indentation changes to this file for readability's sake, and decided to keep those changes separate from the (minor) changes that I will make to actually fix this issue.

Signed-off-by: Mike McClurg <mike.mcclurg@citrix.com>
14 years agoCA-47556: Revert to PV template for RHEL 6 64 bit for now
Alex Zeffertt [Wed, 26 Jan 2011 17:39:05 +0000 (17:39 +0000)]
CA-47556: Revert to PV template for RHEL 6 64 bit for now

From ticket description:

See CP-1876 - RH have changed their kernel to require an option to use PV on HVM.
We currently have no way to set that option ourselves so would rely on the customer
doing it which they will be very unlikely to do in most cases. Also it's not easy
to switch from emulated drivers to PV therefore the chances are customers will end
up with a poorly performing fully HVM VM.

For RTM I suggest we revert to using the PV template for 64 bit (just like we do
for 32 bit). This is a simple revert of the template code.

Long term we want to move to HVM to avoid the performance penalty of 64 bit PV but
RH6 isn't quite ready yet. This could be a change we make when we turn RH6 support
into fully supported, rather than experimental, in a future LCM update

Signed-off-by: Alex Zeffertt <alex.zeffertt@eu.citrix.com>
14 years agoCA-47135 Add "experimental" to RHEL 6 and Debian Squeeze templates
Mike McClurg [Wed, 26 Jan 2011 17:39:05 +0000 (17:39 +0000)]
CA-47135 Add "experimental" to RHEL 6 and Debian Squeeze templates

Added "is_experimental" argument to make_long_name function, and added
optional "is_experimental" argument to template building functions. If
a template is experimental (untested), pass the argument
~is_experimental:true to the *_template function.

CA-48240: Debian Squeeze 32-bit shouldn't be experimental, Ubuntu 32-bit
and 64-bit should.

CP-1686: In Boston the Ubuntu templates should not be marked experimental
as they will be tested and supported.

Signed-off-by: Mike McClurg <mike.mcclurg@citrix.com>
Signed-off-by: David Scott <dave.scott@eu.citrix.com>
14 years agoClean up old modules
Rob Hoes [Wed, 26 Jan 2011 17:39:05 +0000 (17:39 +0000)]
Clean up old modules

Signed-off-by: Rob Hoes <rob.hoes@citrix.com>
diff -r 0b9c761f2f4d ocaml/license/pubring.gpg
Binary file ocaml/license/pubring.gpg has changed
diff -r 0b9c761f2f4d ocaml/license/secring.gpg
Binary file ocaml/license/secring.gpg has changed
diff -r 0b9c761f2f4d ocaml/license/trustdb.gpg
Binary file ocaml/license/trustdb.gpg has changed

14 years agoDo not hardcode the edition names in the bash completion file, but ask v6d
Rob Hoes [Wed, 26 Jan 2011 17:39:05 +0000 (17:39 +0000)]
Do not hardcode the edition names in the bash completion file, but ask v6d

Signed-off-by: Rob Hoes <rob.hoes@citrix.com>
14 years agoCA-28853: CLI command returns an error on pressing Tab key --- FIXED.
Rok Strnisa [Wed, 26 Jan 2011 17:39:04 +0000 (17:39 +0000)]
CA-28853: CLI command returns an error on pressing Tab key --- FIXED.

Only the first if statement (3 lines) includes the change.
The other changes to the file only make the indentation consistent.

Signed-off-by: Rok Strnisa <rok.strnisa@citrix.com>
14 years agoCP-2137: Allow additional feature flags to be set by v6d
Rob Hoes [Wed, 26 Jan 2011 17:39:04 +0000 (17:39 +0000)]
CP-2137: Allow additional feature flags to be set by v6d

Signed-off-by: Rob Hoes <rob.hoes@citrix.com>
14 years agoUpdate ocamldoc
Rob Hoes [Wed, 26 Jan 2011 17:39:04 +0000 (17:39 +0000)]
Update ocamldoc

Signed-off-by: Rob Hoes <rob.hoes@citrix.com>
14 years agoClean up doc target of Makefile
Rob Hoes [Wed, 26 Jan 2011 17:39:04 +0000 (17:39 +0000)]
Clean up doc target of Makefile

Signed-off-by: Rob Hoes <rob.hoes@citrix.com>
14 years agoCP-2137: Switch to the new xapi<->v6d RPC interface
Rob Hoes [Wed, 26 Jan 2011 17:39:04 +0000 (17:39 +0000)]
CP-2137: Switch to the new xapi<->v6d RPC interface

Signed-off-by: Rob Hoes <rob.hoes@citrix.com>
14 years agoUse pool.restrictions to define which features are enabled
Rob Hoes [Wed, 26 Jan 2011 17:39:04 +0000 (17:39 +0000)]
Use pool.restrictions to define which features are enabled

Signed-off-by: Rob Hoes <rob.hoes@citrix.com>
14 years agoCP-2137: Use rpc-light to implement the xapi<->v6d XMLRPC interface
Rob Hoes [Wed, 26 Jan 2011 17:39:04 +0000 (17:39 +0000)]
CP-2137: Use rpc-light to implement the xapi<->v6d XMLRPC interface

Signed-off-by: Rob Hoes <rob.hoes@citrix.com>
14 years agoCA-36391: Improve failure behaviour of xe host-apply-edition
Rob Hoes [Wed, 26 Jan 2011 17:39:04 +0000 (17:39 +0000)]
CA-36391: Improve failure behaviour of xe host-apply-edition

Signed-off-by: Rob Hoes <rob.hoes@citrix.com>
14 years agoFunction to check license expiry
Rob Hoes [Wed, 26 Jan 2011 17:39:04 +0000 (17:39 +0000)]
Function to check license expiry

Signed-off-by: Rob Hoes <rob.hoes@citrix.com>
14 years agoPackage v6d as a separate RPM
Rob Hoes [Wed, 26 Jan 2011 17:39:04 +0000 (17:39 +0000)]
Package v6d as a separate RPM

Signed-off-by: Rob Hoes <rob.hoes@citrix.com>
14 years agoInclude v6 modules in xapi-client
Rob Hoes [Wed, 26 Jan 2011 17:39:04 +0000 (17:39 +0000)]
Include v6 modules in xapi-client

Signed-off-by: Rob Hoes <rob.hoes@citrix.com>
14 years agoRemove some unused modules from v6d
Rob Hoes [Wed, 26 Jan 2011 17:39:04 +0000 (17:39 +0000)]
Remove some unused modules from v6d

Signed-off-by: Rob Hoes <rob.hoes@citrix.com>
14 years agoAdd RPC client to use with rpc-light
Rob Hoes [Wed, 26 Jan 2011 17:39:04 +0000 (17:39 +0000)]
Add RPC client to use with rpc-light

The RPC client is placed next to the original XMLRPC client and does not replace it. It can, however, already be used by xapi's helper daemons.

This patch was originally written by Thomas Gazagnaire <thomas@gazagnaire.org>.

Signed-off-by: Rob Hoes <rob.hoes@citrix.com>
14 years agoRemove unnecessary dependencies to build 'xsh'
Rob Hoes [Wed, 26 Jan 2011 17:39:04 +0000 (17:39 +0000)]
Remove unnecessary dependencies to build 'xsh'

Signed-off-by: Rob Hoes <rob.hoes@citrix.com>
14 years agoRemove no longer used module that was still lying around
Rob Hoes [Wed, 26 Jan 2011 17:39:04 +0000 (17:39 +0000)]
Remove no longer used module that was still lying around

Signed-off-by: Rob Hoes <rob.hoes@citrix.com>
14 years agoFix ocamldoc extensions for use with ocaml-3.12
Rob Hoes [Wed, 26 Jan 2011 17:39:04 +0000 (17:39 +0000)]
Fix ocamldoc extensions for use with ocaml-3.12

Signed-off-by: Rob Hoes <rob.hoes@citrix.com>
14 years agofix build
David Scott [Wed, 26 Jan 2011 17:39:04 +0000 (17:39 +0000)]
fix build
Signed-off-by: David Scott <dave.scott@eu.citrix.com>
14 years agoCA-48539-XAPI_call_vdi_deactivate_during_pool-ha-disable
Mike McClurg [Wed, 26 Jan 2011 17:39:04 +0000 (17:39 +0000)]
CA-48539-XAPI_call_vdi_deactivate_during_pool-ha-disable

Fixed whitespace (again) in a few files. Modified xapi_ha.ml to
deactivate statefile/metadata vdis before detaching them. Added helper
files in xha_*.ml to do this for us.

Signed-off-by: Mike McClurg <mike.mcclurg@citrix.com>
14 years ago[whitespace] CA-48539-fix_whitespace_in_xapi_ha_ml
Xen hg user [Wed, 26 Jan 2011 17:39:04 +0000 (17:39 +0000)]
[whitespace] CA-48539-fix_whitespace_in_xapi_ha_ml

Fixed whitespace usage in file in preparation for resolving actual issue in CA-48539, XAPI will need to call vdi_deactivate during pool-ha-disable.

Signed-off-by: Mike McClurg <mike.mcclurg@citrix.com>
14 years agoCA-46342: add ethtool GRO and LRO support to PIF other-config
Simon Rowe [Wed, 26 Jan 2011 17:39:04 +0000 (17:39 +0000)]
CA-46342: add ethtool GRO and LRO support to PIF other-config

Signed-off-by: Simon Rowe <simon.rowe@eu.citrix.com>
14 years agoCA-41553: Fix logic bugs in vm_install_real and do some code cleanup
Zheng Li [Wed, 26 Jan 2011 17:39:04 +0000 (17:39 +0000)]
CA-41553: Fix logic bugs in vm_install_real and do some code cleanup

There were two logic bugs in vm_install_real

* When user create a VM based on a snapshot (which is also considered as a template from XenServer point of view), and neither sr-name-lable or sr-uuid is specified (neither is wanted any way), the code will fail if the pool doesn't have default SR set (which is not necessary as well).  This is the problem spot in CA-41553.

* When both sr-uuid and sr-name-lable are specified in command line at the same time

  - If there is some contradiction, say the SR with sr-uuid doesn't have the name as specified in sr-name-label, XenServer will only take sr-name-label into consideration and ignore sr-uuid without a warning
  - If sr-name-label corresponding to several SRs in the system, instead of using the sr-uuid information to restrict the candidate to one, XenServer will simply fail and complain "Multiple SRs with that name-label found".

Signed-off-by: Zheng Li <zheng.li@eu.citrix.com>
14 years agoCR-151: relax the version requirements on XenServer tools inside Linux VM
Zheng Li [Wed, 26 Jan 2011 17:39:04 +0000 (17:39 +0000)]
CR-151: relax the version requirements on XenServer tools inside Linux VM

Now when checking the compatability of the XenServer tools inside a Linux VM, we'll only take the major number and minor number into account.

Signed-off-by: Zheng Li <zheng.li@eu.citrix.com>
14 years agoCA-40610: Fix lvhdrt/tc8713 vm cleanup path.
Daniel Stodden [Wed, 26 Jan 2011 17:39:04 +0000 (17:39 +0000)]
CA-40610: Fix lvhdrt/tc8713 vm cleanup path.

Signed-off-by: Daniel Stodden <daniel.stodden@citrix.com>
14 years agoCA-41976: Field type error --- create_template field problem. FIXED.
Rok Strnisa [Wed, 26 Jan 2011 17:39:04 +0000 (17:39 +0000)]
CA-41976: Field type error --- create_template field problem. FIXED.

Signed-off-by: Rok Strnisa <rok.strnisa@citrix.com>
14 years agoDeleted parse_commandline and renamed parse_commandline_2 to parse_commandline.
Mike McClurg [Wed, 26 Jan 2011 17:39:04 +0000 (17:39 +0000)]
Deleted parse_commandline and renamed parse_commandline_2 to parse_commandline.

parse_commandline was only used for compat-mode, which we just removed.

Signed-off-by: Mike McClurg <mike.mcclurg@citrix.com>
14 years agoCA-26252: Removed all traces of compat-mode. FIXED.
Mike McClurg [Wed, 26 Jan 2011 17:39:04 +0000 (17:39 +0000)]
CA-26252: Removed all traces of compat-mode. FIXED.

Signed-off-by: Mike McClurg <mike.mcclurg@citrix.com>
14 years agoCA-46656: A ha-restart-priority of any valid value means ha-always-run should be...
Thomas Sanders [Wed, 26 Jan 2011 17:39:04 +0000 (17:39 +0000)]
CA-46656: A ha-restart-priority of any valid value means ha-always-run should be set to true when the VM starts.

Signed-off-by: Thomas Sanders <thomas.sanders@citrix.com>
Acked-by: Jonathan Knowles <jonathan.knowles@eu.citrix.com>
14 years agoCA-34457 tab-completion for xe subject-role-add role-name=
Thomas Sanders [Wed, 26 Jan 2011 17:39:04 +0000 (17:39 +0000)]
CA-34457 tab-completion for xe subject-role-add role-name=

The bash-completion file now has a section for role-name.

Signed-off-by: Thomas Sanders <thomas.sanders@citrix.com>
14 years agoCA-32077: the minimal inventory needs a BUILD_NUMBER otherwise xapi will fail to...
David Scott [Wed, 26 Jan 2011 17:39:04 +0000 (17:39 +0000)]
CA-32077: the minimal inventory needs a BUILD_NUMBER otherwise xapi will fail to start.

Signed-off-by: David Scott <dave.scott@eu.citrix.com>
14 years agoCA-32077 Gracefully handle missing /etc/xensource-inventory file
Thomas Sanders [Wed, 26 Jan 2011 17:39:04 +0000 (17:39 +0000)]
CA-32077 Gracefully handle missing /etc/xensource-inventory file

xapi was failing nastily on start-up if the xensource-inventory file was
missing.  Now it generates a minimal one if none exists. This does not include
a build number, so version.ml now falls back to using a build number from the
Make environment if one is not available from the inventory, i.e. it falls
back to the behaviour from before Matthias's commit for CA-43574 (build number
from xensource-inventory).

Signed-off-by: Thomas Sanders <thomas.sanders@citrix.com>
14 years agoCall /opt/xensource/sm/mpathcount.py after xapi started if root disk is multipathed
Alex Zeffertt [Wed, 26 Jan 2011 17:39:04 +0000 (17:39 +0000)]
Call /opt/xensource/sm/mpathcount.py after xapi started if root disk is multipathed

mpathcount.py now updates the host object when the root disk is multipathed as well
as updating pbd objects.  (It writes values into other-config to show XenCenter
how many paths are active and how many are failed.)

Normally it is multipathd  that calls mpathcount.py, but in the case of the root
disk the /dev/mapper node is created by the initrd before multipathd is started.

Signed-off-by: Alex Zeffertt <alex.zeffertt@eu.citrix.com>
14 years agoCP-1791: Remove 36 redundant RHEL/OEL/CentOS 5.x templates
Alex Zeffertt [Wed, 26 Jan 2011 17:39:04 +0000 (17:39 +0000)]
CP-1791: Remove 36 redundant RHEL/OEL/CentOS 5.x templates

Signed-off-by: Alex Zeffertt <alex.zeffertt@eu.citrix.com>
14 years agoCP-1981: Hook in the reset-vdis script to HA
Jon Ludlam [Wed, 26 Jan 2011 17:39:04 +0000 (17:39 +0000)]
CP-1981: Hook in the reset-vdis script to HA

The 'locks' for the VDIs, which are maintained by the SM backends now, are stored in xapi's database. In the event of a master failover, the pool database may rev
ert to a previous backup, which is then resynced with reality. Unfortunately there's no logic to resync the SM backends' data, nor any hook point to do this. Idea
lly, the SM backends would store their critical data internally somehow, but until this happens xapi will have to contain the important logic to resynchronise the
se locks.

This patch adds a host-post-declare-dead script that causes the reset of the locks of VDIs that were present on a host that has been declared dead.

Signed-off-by: Jon Ludlam <jonathan.ludlam@eu.citrix.com>
14 years agoCP-1981: Resynchronise the locks in the sm_config maps of VDIs in dbsync_slave
Jon Ludlam [Wed, 26 Jan 2011 17:39:04 +0000 (17:39 +0000)]
CP-1981: Resynchronise the locks in the sm_config maps of VDIs in dbsync_slave

The 'locks' for the VDIs, which are maintained by the SM backends now, are stored in xapi's database. In the event of a master failover, the pool database may revert to a previous backup, which is then resynced with reality. Unfortunately there's no logic to resync the SM backends' data, nor any hook point to do this. Ideally, the SM backends would store their critical data internally somehow, but until this happens xapi will have to contain the important logic to resynchronise these locks.

This patch implements the logic to resynchronise the sm_config keys based on the information stored in the local database

Signed-off-by: Jon Ludlam <jonathan.ludlam@eu.citrix.com>
14 years agoCP-1981: Track the vdi_activations in the local database
Jon Ludlam [Wed, 26 Jan 2011 17:39:04 +0000 (17:39 +0000)]
CP-1981: Track the vdi_activations in the local database

The 'locks' for the VDIs, which are maintained by the SM backends now, are stored in xapi's database. In the event of a master failover, the pool database may revert to a previous backup, which is then resynced with reality. Unfortunately there's no logic to resync the SM backends' data, nor any hook point to do this. Ideally, the SM backends would store their critical data internally somehow, but until this happens xapi will have to contain the important logic to resynchronise these locks.

This patch maintains a list of the VDIs that have been activatedi (including RW/RO mode) in the local database.

Signed-off-by: Jon Ludlam <jonathan.ludlam@eu.citrix.com>
14 years agoRemove some unnecessary debug statements left in by accident and fix an annoying...
David Scott [Wed, 26 Jan 2011 17:39:04 +0000 (17:39 +0000)]
Remove some unnecessary debug statements left in by accident and fix an annoying spelling mistake in a log message.

Signed-off-by: David Scott <dave.scott@eu.citrix.com>
14 years ago[CA-46591] Prevents build_pre from overwriting xen_maxmem.
Jonathan Knowles [Wed, 26 Jan 2011 17:39:04 +0000 (17:39 +0000)]
[CA-46591] Prevents build_pre from overwriting xen_maxmem.

Signed-off-by: Jonathan Knowles <jonathan.knowles@eu.citrix.com>
Previously, during a VM.resume, both of the following functions would overwrite xen_maxmem:

  1. transfer_reservation_to_domain:
     xen_maxmex := reservation
  2. build_pre:
     xen_maxmem := static_max

However, only the first assignment was correct.

All domain creation operations trigger the transfer_reservation_to_domain function. Therefore it is safe to remove the second, faulty assignment.

14 years ago[whitespace] Conservatively adjusts the whitespace for a commonly-edited list --...
Xen hg user [Wed, 26 Jan 2011 17:39:04 +0000 (17:39 +0000)]
[whitespace] Conservatively adjusts the whitespace for a commonly-edited list -- reducing the chance that future patches will conflict.

Signed-off-by: Jonathan Knowles <jonathan.knowles@eu.citrix.com>
Proof that this patch introduces no semantic changes:

camlp4o -printer o -no_comments $file:

ocaml/idl/datamodel.ml
    70610bebd0a11ed8787fbbbefeaa20a6 -
    70610bebd0a11ed8787fbbbefeaa20a6 - PASS

14 years ago[whitespace] Conservatively corrects the whitespace for a small number of functions...
Xen hg user [Wed, 26 Jan 2011 17:39:04 +0000 (17:39 +0000)]
[whitespace] Conservatively corrects the whitespace for a small number of functions that invoke VM start, in preparation for further patches that will add parameters to VM start.

Signed-off-by: Jonathan Knowles <jonathan.knowles@eu.citrix.com>
Proof that this patch introduces no semantic changes:

camlp4o -printer o -no_comments $file:

ocaml/guest_installer/operations.ml
    398ff818ee6c030d38bc6b76fa7385a5 -
    398ff818ee6c030d38bc6b76fa7385a5 - PASS
ocaml/lvhdrt/tc_8682.ml
    7ed322d06bce9560709e6dbff008b92b -
    7ed322d06bce9560709e6dbff008b92b - PASS
ocaml/multipathrt/iscsi_utils.ml
    a13f2e09112de6bbc4573eb99d97a14e -
    a13f2e09112de6bbc4573eb99d97a14e - PASS
ocaml/perftest/createpool.ml
    c5d540752831a6f4ea90ebab927aebe0 -
    c5d540752831a6f4ea90ebab927aebe0 - PASS
ocaml/perftest/createVM.ml
    9c61c2e5a870bbb23fa4963e16d213f1 -
    9c61c2e5a870bbb23fa4963e16d213f1 - PASS
ocaml/perftest/tests.ml
    3f42d787e9d5453af839f073a203cdf2 -
    3f42d787e9d5453af839f073a203cdf2 - PASS
ocaml/toplevel/testscript.ml
    f5726b371208812719d271db11b175b5 -
    f5726b371208812719d271db11b175b5 - PASS
ocaml/toplevel/vm_start.ml
    0b438921a4e7d383f8227d39916d0a74 -
    0b438921a4e7d383f8227d39916d0a74 - PASS
ocaml/xapi/message_forwarding.ml
    0c15667c3ce05fd5a7b6b9c62c2b30cc -
    0c15667c3ce05fd5a7b6b9c62c2b30cc - PASS
ocaml/xapimon/xapimon.ml
    4ae10b335aac69bd38f2868c68e4daf6 -
    4ae10b335aac69bd38f2868c68e4daf6 - PASS
ocaml/xapi/quicktest_lifecycle.ml
    4cb982e5ef773a0b9e532cf63d113ea4 -
    4cb982e5ef773a0b9e532cf63d113ea4 - PASS
ocaml/xapi/quicktest.ml
    4ae53162b079db97eaafb4b5aeeaaae9 -
    4ae53162b079db97eaafb4b5aeeaaae9 - PASS
ocaml/xapi/xapi_ha_vm_failover.ml
    230ee174e12e54801b332ca06ed7b055 -
    230ee174e12e54801b332ca06ed7b055 - PASS
ocaml/xapi/xapi_vm.ml
    83642a93962b2ae7da82b0aad1389ec7 -
    83642a93962b2ae7da82b0aad1389ec7 - PASS

14 years ago[whitespace] Repairing whitespace within the Features module.
Xen hg user [Wed, 26 Jan 2011 17:39:04 +0000 (17:39 +0000)]
[whitespace] Repairing whitespace within the Features module.

Signed-off-by: Jonathan Knowles <jonathan.knowles@eu.citrix.com>
Proof that this patch introduces no semantic changes:

camlp4o -printer o -no_comments $file:

ocaml/license/features.ml
    26a618732a366e603aa87b3788f0e84e -
    26a618732a366e603aa87b3788f0e84e - PASS
ocaml/license/features.mli
    f778551b861102e29dbdbefe8c90329b -
    f778551b861102e29dbdbefe8c90329b - PASS

14 years ago[whitespace] Conservatively corrects whitespace in function "db_gc.single_pass".
Xen hg user [Wed, 26 Jan 2011 17:39:04 +0000 (17:39 +0000)]
[whitespace] Conservatively corrects whitespace in function "db_gc.single_pass".

Signed-off-by: Jonathan Knowles <jonathan.knowles@eu.citrix.com>
Proof that this patch introduces no semantic changes:

camlp4o -printer o -no_comments $file:

ocaml/xapi/db_gc.ml
    4be64da41163f1e65878ec53b9668b12 -
    4be64da41163f1e65878ec53b9668b12 - PASS

14 years ago[whitespace] Targeted whitespace tidying within datamodel.ml for the benefit of subse...
Xen hg user [Wed, 26 Jan 2011 17:39:04 +0000 (17:39 +0000)]
[whitespace] Targeted whitespace tidying within datamodel.ml for the benefit of subsequent patches.

Signed-off-by: Jonathan Knowles <jonathan.knowles@eu.citrix.com>
Proof that this patch introduces no semantic changes:

camlp4o -printer o -no_comments $file:

ocaml/idl/datamodel.ml
    70610bebd0a11ed8787fbbbefeaa20a6 -
    70610bebd0a11ed8787fbbbefeaa20a6 - PASS

14 years ago[whitespace] Conservatively repairing indentation with Xapi_vm_helpers.
Xen hg user [Wed, 26 Jan 2011 17:39:04 +0000 (17:39 +0000)]
[whitespace] Conservatively repairing indentation with Xapi_vm_helpers.

Signed-off-by: Jonathan Knowles <jonathan.knowles@eu.citrix.com>
Proof that this patch introduces no semantic changes:

camlp4o -printer o -no_comments $file:

ocaml/xapi/xapi_vm_helpers.ml
    ac91cef61e20e5dd5f426d60a6e2e3db -
    ac91cef61e20e5dd5f426d60a6e2e3db - PASS

14 years agoCA-10471: Map attached file VDIs to raw physical, not loopback nodes.
Daniel Stodden [Wed, 26 Jan 2011 17:39:04 +0000 (17:39 +0000)]
CA-10471: Map attached file VDIs to raw physical, not loopback nodes.

Thereby obsoleting the loopback code.

Signed-off-by: Daniel Stodden <daniel.stodden@citrix.com>
14 years agoCA-50172: Correct the spelling of a VM.import error message
Jonathan Davies [Wed, 26 Jan 2011 17:39:04 +0000 (17:39 +0000)]
CA-50172: Correct the spelling of a VM.import error message

Signed-off-by: Jonathan Davies <jonathan.davies@citrix.com>
14 years agoRemoved a small subset of compiler warnings.
Rok Strnisa [Wed, 26 Jan 2011 17:39:04 +0000 (17:39 +0000)]
Removed a small subset of compiler warnings.

Signed-off-by: Rok Strnisa <rok.strnisa@citrix.com>
14 years ago[CA-47369] Enables shadow memory by default for PV domains, with a hard-wired multipl...
Jonathan Knowles [Wed, 26 Jan 2011 17:39:04 +0000 (17:39 +0000)]
[CA-47369] Enables shadow memory by default for PV domains, with a hard-wired multiplier of 1.

Signed-off-by: Jonathan Knowles <jonathan.knowles@eu.citrix.com>
Acked-by: Jonathan Ludlam <jonathan.ludlam@eu.citrix.com>
This change enables successful migrations of PV domains away from hosts with no spare memory.

14 years agoSCTX-525: Use fewer RPCs in the VLAN resynchronisation code
David Scott [Wed, 26 Jan 2011 17:39:04 +0000 (17:39 +0000)]
SCTX-525: Use fewer RPCs in the VLAN resynchronisation code

Pool:
* 5 hosts
* 300 VLANs (none in use)
A full xapi restart is reduced from 100s to 82s.

Signed-off-by: David Scott <dave.scott@eu.citrix.com>
14 years agoSCTX-525: Reduce number of round-trips in the "PIF resynchronisation" logic
David Scott [Wed, 26 Jan 2011 17:39:04 +0000 (17:39 +0000)]
SCTX-525: Reduce number of round-trips in the "PIF resynchronisation" logic

Pool:
* 5 hosts
* 300 VLANs (none in use)
xapi start time decreased from 129s to 100s.

Signed-off-by: David Scott <dave.scott@eu.citrix.com>
14 years agoSCTX-525: only write the names of interfaces ("current interfaces") into the inventor...
David Scott [Wed, 26 Jan 2011 17:39:04 +0000 (17:39 +0000)]
SCTX-525: only write the names of interfaces ("current interfaces") into the inventory file and cause them to be ifup'ed on system boot if they actually have an IP address configuration in dom0. This avoids initialising bridges for bonds and VLANs which are only for guests and which can be initialised on demand.

Stats:
* 5 host pool
* 300 VLANs, none used
Pool reboot time drops from 45 mins to 8 mins

Signed-off-by: David Scott <dave.scott@eu.citrix.com>
14 years agoReplace Xal.wait_release with Xs.monitor_paths, since the former ignores suspended...
David Scott [Wed, 26 Jan 2011 17:39:04 +0000 (17:39 +0000)]
Replace Xal.wait_release with Xs.monitor_paths, since the former ignores suspended domains (part of the checkpoint implementation)

This removes a constant 5s delay from the migrate downtime.

Signed-off-by: David Scott <dave.scott@eu.citrix.com>
14 years agoCA-48449: remove spurious VM_UNCOOPERATIVE alerts
David Scott [Wed, 26 Jan 2011 17:39:04 +0000 (17:39 +0000)]
CA-48449: remove spurious VM_UNCOOPERATIVE alerts

1. there are too many false-positive alerts; and
2. there is no obvious action to resolve the problem

Signed-off-by: David Scott <dave.scott@eu.citrix.com>
14 years agoFix the xapi client library
Jon Ludlam [Wed, 26 Jan 2011 17:39:04 +0000 (17:39 +0000)]
Fix the xapi client library

Signed-off-by: Jon Ludlam <jonathan.ludlam@eu.citrix.com>
14 years agoIgnore ocamlspot-generated files
David Scott [Wed, 26 Jan 2011 17:39:04 +0000 (17:39 +0000)]
Ignore ocamlspot-generated files

14 years agoMove defaults for environment variables PRODUCT_VERSION, PRODUCT_BRAND, BUILD_NUMBER...
David Scott [Wed, 26 Jan 2011 17:39:04 +0000 (17:39 +0000)]
Move defaults for environment variables PRODUCT_VERSION, PRODUCT_BRAND, BUILD_NUMBER into the OMakefile, to make it easier to use omake directly for building.

Signed-off-by: David Scott <dave.scott@eu.citrix.com>
14 years agoRemove the COMPILE_XENSTUFF environment variable from the Makefile/OMakefile -- we...
David Scott [Wed, 26 Jan 2011 17:39:04 +0000 (17:39 +0000)]
Remove the COMPILE_XENSTUFF environment variable from the Makefile/OMakefile -- we only ever build with the xen libraries present.

Signed-off-by: David Scott <dave.scott@eu.citrix.com>
14 years agoCA-49315: Unhide the IntelliCache field setters so they appear in the SDK
Jonathan Davies [Wed, 26 Jan 2011 17:39:04 +0000 (17:39 +0000)]
CA-49315: Unhide the IntelliCache field setters so they appear in the SDK

This will also cause the functions to appear in the API docs, so add a bit more detail regarding the semantics of the fields.

Signed-off-by: Jonathan Davies <jonathan.davies@citrix.com>
Acked-by: Jonathan Ludlam <jonathan.ludlam@citrix.com>
14 years agoAdd a comment that indicates the extent of the effect of an IDL flag.
Jonathan Davies [Wed, 26 Jan 2011 17:39:03 +0000 (17:39 +0000)]
Add a comment that indicates the extent of the effect of an IDL flag.

Signed-off-by: Jonathan Davies <jonathan.davies@citrix.com>
14 years agoFix indentation of declaration of various fields in the datamodel.
Jonathan Davies [Wed, 26 Jan 2011 17:39:03 +0000 (17:39 +0000)]
Fix indentation of declaration of various fields in the datamodel.

Signed-off-by: Jonathan Davies <jonathan.davies@citrix.com>
14 years agoCA-42914, SCTX-434: Speed up writes of the database to the redo-log
Jonathan Davies [Thu, 28 Oct 2010 16:01:05 +0000 (17:01 +0100)]
CA-42914, SCTX-434: Speed up writes of the database to the redo-log

Anecdotal evidence suggests that the default 1 KiB block size provided by Unixext.read_in_chunks causes write throughput to be very slow on some storage substrates.

Some (not massively scientific) timings of dd from /dev/zero to a block-attached VDI on various SR types agree with this observation. The data below shows that 4 KiB is the minimum block size that should be considered for use: throughput it universally higher above this threshold and often substantially lower below it. We'll default to 16 KiB to be on the safe side.

lvmoiscsi

bs count times throughputs (MB/s)
1024 65536 0m8.461s, 0m7.888s 7.9, 8.5
2048 32768 0m7.986s, 0m8.438s 8.4, 8.0
4096 16384 0m1.529s, 0m1.999s 44.0, 33.6
16384 4096 0m1.289s, 0m1.588s 52.2, 42.3
65536 1024 0m1.550s, 0m1.309s 43.3, 51.3

nfs

bs count times throughputs (MB/s)
1024 65536 0m11.865s, 0m12.232s 5.7, 5.5
2048 32768 0m12.612s, 0m12.758s 5.3, 5.3
4096 16384 2.75591, 3.10301 24.4, 21.6
16384 4096 2.96047, 3.42373 22.7, 19.6
65536 1024 3.23713, 3.24731 20.7, 20.7

lvm

bs count times throughputs (MB/s)
1024 65536 2.16546, 6.35194 31.0, 10.6
2048 32768 6.24928, 6.44344 10.7, 10.4
4096 16384 0.99237, 0.90683 67.6, 74.0
16384 4096 0.912118, 0.88074 73.6, 76.2
65536 1024 0.934838, 0.881285 71.8, 76.1

Signed-off-by: Jonathan Davies <jonathan.davies@citrix.com>
14 years agoCA-42914: Deal with unexpected closure of data socket caused by exception in block_de...
Jonathan Davies [Thu, 28 Oct 2010 16:00:59 +0000 (17:00 +0100)]
CA-42914: Deal with unexpected closure of data socket caused by exception in block_device_io

Previously, the closing of the data socket causes xapi's code that writes database to an fd to raise Sys_error("Connection reset by peer").

Instead, we can safely ignore the unexpected closing of the data socket and wait until we hear what happened over the control socket. Any exception that may be raised during transfer_data_from_sock_to_fd in block_device_io (that causes the data socket to be prematurely closed) gets caught in the exception handlers in action_writedb that call send_failure. So suppress all Sys_error("Connection reset by peer") exceptions that xapi may raise during the writing of the database to the fd because full details should be forthcoming on the control socket.

Signed-off-by: Jonathan Davies <jonathan.davies@citrix.com>
14 years agoCA-42914, SCTX-434: Increase the timeout for writing the database to the redo-log
Jonathan Davies [Thu, 28 Oct 2010 16:00:51 +0000 (17:00 +0100)]
CA-42914, SCTX-434: Increase the timeout for writing the database to the redo-log

Previously, we had a flat timeout of 2 seconds for all redo-log operations. However, this has been shown to be too impatient for writing large databases over slow connections. (This resulted in timeouts firing prematurely, resulting in lots of METADATA_LUN_BROKEN alerts, and the redo-log being entirely useless for large pools as the database would never be successfully written!)

The timeout for each operation can now be specified independently. The new default for database writes is 30 seconds.

Signed-off-by: Jonathan Davies <jonathan.davies@citrix.com>
14 years agoCA-42914: Improve debugging in redo-log code
Jonathan Davies [Thu, 28 Oct 2010 16:00:47 +0000 (17:00 +0100)]
CA-42914: Improve debugging in redo-log code

In particular, highlight the I/O process lifecycle operations.

Signed-off-by: Jonathan Davies <jonathan.davies@citrix.com>
14 years agoCA-42914: Catch other exceptions when reading commands from client in block_device_io
Jonathan Davies [Thu, 28 Oct 2010 16:00:42 +0000 (17:00 +0100)]
CA-42914: Catch other exceptions when reading commands from client in block_device_io

Previously, we only caught End_of_file which Unixext.really_read throws when the client sends EOF. Other exceptions dribbled through to the deeper exception handler, which was supposed to be reserved exclusively for problems opening the block device.

Now, we also catch other exceptions in the same place as the End_of_file exception is handled.

Signed-off-by: Jonathan Davies <jonathan.davies@citrix.com>
14 years agoFix the allowed-operations check for VMs.
Jon Ludlam [Thu, 28 Oct 2010 15:59:54 +0000 (16:59 +0100)]
Fix the allowed-operations check for VMs.

The functions is long and had some non-obvious short-cut termination clauses in the long if...else if ... section. This has now been changed to have an option type containing the current error. Checks should be made in order of 'severity' - ie. power-state first, and e.g. PV driver status later.

Signed-off-by: Jon Ludlam <jonathan.ludlam@eu.citrix.com>
14 years agoPass the name of the VDI to the SM backends on VDI.create.
Jon Ludlam [Thu, 28 Oct 2010 15:59:39 +0000 (16:59 +0100)]
Pass the name of the VDI to the SM backends on VDI.create.

Signed-off-by: Jon Ludlam <jonathan.ludlam@eu.citrix.com>
14 years agoCA-47256: explicitly pass through the new environment variables PRODUCT_VERSION_TEXT...
David Scott [Thu, 28 Oct 2010 15:56:31 +0000 (16:56 +0100)]
CA-47256: explicitly pass through the new environment variables PRODUCT_VERSION_TEXT{,_SHORT} otherwise omake doesn't see them

Signed-off-by: David Scott <dave.scott@eu.citrix.com>
14 years agoCA-46955: make code robust to parallel deletions of VBDs
David Scott [Thu, 28 Oct 2010 15:51:04 +0000 (16:51 +0100)]
CA-46955: make code robust to parallel deletions of VBDs

In general we should be very careful in code like this not to expect the configuration of "other VMs" to remain static while we run. In this case a parallel thread deleted a VBD which it "owned" and this cross-talk killed this thread.

Signed-off-by: David Scott <dave.scott@eu.citrix.com>
14 years agoFixes the error introduced by Matthias' fix for CA-35152
Jonathan Ludlam [Thu, 28 Oct 2010 15:50:56 +0000 (16:50 +0100)]
Fixes the error introduced by Matthias' fix for CA-35152

The original fix replaced memory_static_max with memory_dynamic_max in too many places.

Signed-off-by: Mike McClurg <mike.mcclurg@citrix.com> and Matthias Goergens <matthias.goergens@citrix.com>
14 years ago[CA-43341] Amends squeezed so that just after transferring a reservation to a domain...
Jonathan Knowles [Thu, 28 Oct 2010 15:48:27 +0000 (16:48 +0100)]
[CA-43341] Amends squeezed so that just after transferring a reservation to a domain, it calls Xc.domain_setmaxmem with <size-of-reservation>.

This fix prevents the subsequent domain build from failing due to an artificially low maxmem.

Signed-off-by: Jonathan Knowles <jonathan.knowles@eu.citrix.com>
Acked-by: Jonathan Ludlam <jonathan.ludlam@eu.citrix.com>
Acked-by: Dave Scott <dave.scott@eu.citrix.com>
14 years ago[CA-47550]: Move the echoing inside the if-statement to avoid
Magnus Therning [Thu, 28 Oct 2010 15:48:07 +0000 (16:48 +0100)]
[CA-47550]: Move the echoing inside the if-statement to avoid
confusion during boot.

Signed-off-by: Magnus Therning <magnus.therning@citrix.com>
14 years agoWhoops, fix embarrasing typo in previous patch
Jonathan Ludlam [Mon, 18 Oct 2010 10:39:54 +0000 (11:39 +0100)]
Whoops, fix embarrasing typo in previous patch

Signed-off-by: Jon Ludlam <jonathan.ludlam@eu.citrix.com>
14 years agoRemove license expiry code
Jonathan Ludlam [Mon, 18 Oct 2010 10:25:11 +0000 (11:25 +0100)]
Remove license expiry code

Signed-off-by: Jon Ludlam <jonathan.ludlam@eu.citrix.com>
14 years agoCA-35152: memory_dynamic_max for the control domain, when XenServer plans for HA.
Matthias Goergens [Tue, 12 Oct 2010 11:02:18 +0000 (12:02 +0100)]
CA-35152: memory_dynamic_max for the control domain, when XenServer plans for HA.

ocaml/xapi/memory_check.ml and ocaml/xapi/memory_check.mli got a new
constructor memory_dynamic_max for the type accounting policy.

I also fixed the indentation in ocaml/xapi/xapi_ha_vm_failover.ml:compute_restart_plan

Signed-off-by: Matthias Goergens <matthias.goergens@citrix.com>
14 years agoCA-45162: Wrong VM reported to be blocking xe host-enable-local-storage-caching
John Else [Tue, 12 Oct 2010 11:01:49 +0000 (12:01 +0100)]
CA-45162: Wrong VM reported to be blocking xe host-enable-local-storage-caching

Instead of failing with details of the first VM, fail with details
of the first non-dom0 VM.

Signed-off-by: John Else <john.else@citrix.com>
14 years agoCA-46669: xensource.log contains password in cleartext --- FIXED.
Rok Strnisa [Tue, 12 Oct 2010 11:00:53 +0000 (12:00 +0100)]
CA-46669: xensource.log contains password in cleartext --- FIXED.

Only added a code line (+ the import):

  let params = List.replace_assoc "password" "null" params in

'params' is only passed to the debug output, so the semantics could not
have changed.

Signed-off-by: Rok Strnisa <rok.strnisa@citrix.com>
14 years agoCA-37034 Lenny install-from-CD warning dialog
Thomas Sanders [Tue, 12 Oct 2010 10:59:58 +0000 (11:59 +0100)]
CA-37034 Lenny install-from-CD warning dialog

The installation template for Debian Lenny now warns that the standard CD/DVD
does not support XenServer, and gives directions to find ISOs that work.
For Debian Squeeze, there is now a warning that a multi-arch image is needed.

Signed-off-by: Thomas Sanders <thomas.sanders@citrix.com>
14 years agoWorked around a race condition in vm-uninstall.
Matthias Goergens [Tue, 12 Oct 2010 10:59:05 +0000 (11:59 +0100)]
Worked around a race condition in vm-uninstall.

VM.hard_shutdown now checks for an exception that signals an invalid
power state, i.e. if the VM is already halted.

See the Jira-ticket CA-44120 for more details.

Signed-off-by: Matthias Goergens <matthias.goergens@citrix.com>
14 years agoImproved backtracing of some of the exceptions thrown within the xml parsing
Jonathan Ludlam [Tue, 12 Oct 2010 10:57:31 +0000 (11:57 +0100)]
Improved backtracing of some of the exceptions thrown within the xml parsing
code.

Signed-off-by: Rok Strnisa <rok.strnisa@citrix.com>
14 years agoAllow the CLI command vdi-create to create sharable VDIs
Jon Ludlam [Tue, 12 Oct 2010 10:56:52 +0000 (11:56 +0100)]
Allow the CLI command vdi-create to create sharable VDIs

Signed-off-by: Jon Ludlam <jonathan.ludlam@eu.citrix.com>
14 years agoCA-42031: xe snapshot-destroy [no parameters] fails with internal error --- FIXED.
Rok Strnisa [Tue, 12 Oct 2010 10:56:21 +0000 (11:56 +0100)]
CA-42031: xe snapshot-destroy [no parameters] fails with internal error --- FIXED.

Signed-off-by: Rok Strnisa <rok.strnisa@citrix.com>
14 years agoCA-44277: xe snapshot-disk-list now fails gracefully.
Matthias Goergens [Tue, 12 Oct 2010 10:55:58 +0000 (11:55 +0100)]
CA-44277: xe snapshot-disk-list now fails gracefully.

Signed-off-by: Matthias Goergens <matthias.goergens@citrix.com>
14 years agoUpdate version number in API documentation PDF
Rob Hoes [Tue, 12 Oct 2010 10:55:29 +0000 (11:55 +0100)]
Update version number in API documentation PDF

Signed-off-by: Rob Hoes <rob.hoes@citrix.com>
14 years agoCA-43936: dont try to get auth-user-name under local-session/emergency-mode
Marcus Granado [Tue, 12 Oct 2010 10:55:03 +0000 (11:55 +0100)]
CA-43936: dont try to get auth-user-name under local-session/emergency-mode

Signed-off-by: Marcus Granado <marcus.granado@eu.citrix.com>
14 years agoFixing the indentation in cli_operations.ml
Matthias Goergens [Tue, 12 Oct 2010 10:54:35 +0000 (11:54 +0100)]
Fixing the indentation in cli_operations.ml

While I reviewed Rok's changes to cli_operations.ml, I realized how
aweful that file looks.  I have used our hacked up emacs tuareg-mode
to fix the indentation mechanically and checked whether the result was
sane.

Signed-off-by: Matthias Goergens <matthias.goergens@citrix.com>
14 years agoCP-1876: Create RHEL 6 HVM template
Alex Zeffertt [Tue, 12 Oct 2010 10:54:11 +0000 (11:54 +0100)]
CP-1876: Create RHEL 6 HVM template

Notes:
  * We choosing to enable the "no execute" CPU flag in this guest
  * We are not indicating the presence of viridian to this guest

Signed-off-by: Alex Zeffertt <alex.zeffertt@eu.citrix.com>
Signed-off-by: David Scott <dave.scott@eu.citrix.com>
Signed-off-by: Rob Hoes <rob.hoes@gmail.com>
14 years agoRemove the Windows 2000 template
Paul Durrant [Tue, 12 Oct 2010 10:53:38 +0000 (11:53 +0100)]
Remove the Windows 2000 template

Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
14 years agoRemove the Windows XP SP2 template
Paul Durrant [Tue, 12 Oct 2010 10:53:30 +0000 (11:53 +0100)]
Remove the Windows XP SP2 template

Signed-off-by: Paul Durrant <paul.durrant@citrix.com>