]> xenbits.xensource.com Git - people/aperard/osstest.git/log
people/aperard/osstest.git
8 years agoCreate a flight to test OpenStack with xen-unstable and libvirt openstack-nova
Anthony PERARD [Wed, 15 Jul 2015 16:27:57 +0000 (17:27 +0100)]
Create a flight to test OpenStack with xen-unstable and libvirt

This patch should create a flight "openstack-nova", with those jobs:
  build-amd64
  build-amd64-xsm
  build-amd64-pvops
  build-amd64-libvirt
  test-amd64-amd64-devstack
  test-amd64-amd64-devstack-xsm
  build-armhf
  build-armhf-libvirt
  build-armhf-pvops
  build-armhf-xsm
  test-armhf-armhf-devstack
  test-armhf-armhf-devstack-xsm

About the runvars revision_* of test-*-*-devstack:
  only REVISION_OPENSTACK_NOVA is set, the others are unset.
  Empty revision_* runvar would clone the default branch, which should
  be master for every openstack repos.

Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
8 years agots-openstack-tempest: Run Tempest to check OpenStack
Anthony PERARD [Thu, 6 Aug 2015 11:33:38 +0000 (12:33 +0100)]
ts-openstack-tempest: Run Tempest to check OpenStack

This script runs the OpenStack integration test suite, Tempest.

Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
8 years agots-openstack-deploy: Deploy OpenStack on a host with devstack
Anthony PERARD [Wed, 15 Jul 2015 16:27:49 +0000 (17:27 +0100)]
ts-openstack-deploy: Deploy OpenStack on a host with devstack

This script installs any necessary packages and clones all of the OpenStack
trees which are used by devstack to deploy OpenStack.

Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
8 years agosg-check-tested: Use database transaction
Ian Jackson [Fri, 9 Dec 2016 19:14:46 +0000 (19:14 +0000)]
sg-check-tested: Use database transaction

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
8 years agosg-check-tested: Lift work into new `search' sub, and indirect output
Ian Jackson [Fri, 9 Dec 2016 19:08:14 +0000 (19:08 +0000)]
sg-check-tested: Lift work into new `search' sub, and indirect output

* Replace open-coded prints to stdout with calls to new `ouput' sub
* Move main body into new `search' sub
* Exit from `search' with `return' rather than `exit 0'

Overall, no functional change.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
8 years agoDatabase: Introduce db_readonly_report
Ian Jackson [Fri, 9 Dec 2016 19:07:10 +0000 (19:07 +0000)]
Database: Introduce db_readonly_report

According to the PostgreSQL docs, this can improve the performance
implications of long-running read-only transactions.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
8 years agosg-execute-flight: Lift db work into retry loop
Ian Jackson [Fri, 9 Dec 2016 18:53:14 +0000 (18:53 +0000)]
sg-execute-flight: Lift db work into retry loop

* Open $mro.new at the start of the loop, rather than during
  argument parsing.   So if we retry, it gets rewritten.
* Move the stdout output to the end of the script.

We tolerate that the html is moved into place even though we might be
about to rewrite it.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
8 years agoExecutive database: Handle database transaction retry in resourcecall
Ian Jackson [Fri, 9 Dec 2016 17:03:10 +0000 (17:03 +0000)]
Executive database: Handle database transaction retry in resourcecall

Previously, call failures of $resourcecall were fatal.  But it might
fail due to a need for db retry.  In that case, simply rethrow the
exception for handling by db_retry.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
8 years agotcl: Abolish with-db in favour of transaction
Ian Jackson [Mon, 5 Dec 2016 15:18:57 +0000 (15:18 +0000)]
tcl: Abolish with-db in favour of transaction

Everything needs to be in a proper transaction, with retries.

Replace the one call site which does an ad hoc BEGIN/COMMIT with a
call to transaction.  The body here is already idempotent, so making
it be a loop body is fine.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
8 years agotcl: JobDB-Executive: Use transaction in prepare
Ian Jackson [Mon, 5 Dec 2016 15:41:20 +0000 (15:41 +0000)]
tcl: JobDB-Executive: Use transaction in prepare

We need to call job-set-status-unlocked, and avoid calling with-db in
job-set-status-unlocked.

That avoids a nested call to transaction.  There are now no callers of
job-set-status-unlocked outside transaction.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
8 years agotcl: sg-execute-flight: Reorganise check to use a transaction
Ian Jackson [Mon, 5 Dec 2016 15:33:40 +0000 (15:33 +0000)]
tcl: sg-execute-flight: Reorganise check to use a transaction

We are going to remove the locking.  with-db is going to have to go.

Make this a transaction retry loop.  That means moving the
non-idempotent parts out of the transaction loop.

The changed control flow means that:

* If we are done, the 2nd query is now run uselessly.  It ought not
  to find any jobs because no jobs ought to become queued during
  the transaction.  So this is harmless.

* Just for clarity, we calculate nrunning again after the transaction.
  Only nqueued is an output from the transaction, formally.  Of course
  the transaction can update running but that is not in the database.

* We have to bless the flight outside the transaction, or we are
  creating (and mishandling) reentrant transactions.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
8 years agoExecutive database: set isolation level in Perl
Ian Jackson [Wed, 30 Nov 2016 13:59:01 +0000 (13:59 +0000)]
Executive database: set isolation level in Perl

The Perl was lacking SET TRANSACTION ISOLATION LEVEL SERIALIZABLE,
which is sadly not the default.  Currently that does not matter
because of all the table locking, but we are about to abolish that.

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
8 years agoPostgreSQL db: Retry transactions on constraint failures
Ian Jackson [Fri, 9 Dec 2016 18:11:36 +0000 (18:11 +0000)]
PostgreSQL db: Retry transactions on constraint failures

This is unfortunate but appears to be necessary.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
CC: pgsql-hackers@postgresql.org
8 years agotcl: JobDB-Executive: Print better message on transaction rollback, earlier
Ian Jackson [Wed, 7 Dec 2016 13:30:10 +0000 (13:30 +0000)]
tcl: JobDB-Executive: Print better message on transaction rollback, earlier

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
8 years agotcl: JobDB-Executive: Do not crash due to ROLLBACK on transaction retry
Ian Jackson [Wed, 7 Dec 2016 13:23:52 +0000 (13:23 +0000)]
tcl: JobDB-Executive: Do not crash due to ROLLBACK on transaction retry

If the transaction fails, we have called db-close by the time we
discover it's for retry, so the dbh may be closed (depending whether
we have a persistent dbh).

So run ROLLBACK only if dbopen indicates that the db connection is
still open.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
8 years agoExecutive database: Handle 40001 "SERIALIZATION FAILURE" too
Ian Jackson [Fri, 2 Dec 2016 16:19:57 +0000 (16:19 +0000)]
Executive database: Handle 40001 "SERIALIZATION FAILURE" too

This can happen if the locks are removed, which we are about to do.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
8 years agoms-queuedaemon: Fix ms-reportuptime and queuedaemon `uptime' command
Ian Jackson [Tue, 6 Dec 2016 11:18:43 +0000 (11:18 +0000)]
ms-queuedaemon: Fix ms-reportuptime and queuedaemon `uptime' command

Fix ms-reportuptime to source daemonlib the right way, avoiding
  couldn't read file "daemonlib.tcl": no such file or directory

Fix ms-queueaemon to use jobdb::transaction, avoiding
  ERROR invalid command name "transaction"

This was broken a long time ago.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
8 years agocr-for-branches: Branch Xen 4.8
Ian Jackson [Fri, 2 Dec 2016 11:59:04 +0000 (11:59 +0000)]
cr-for-branches: Branch Xen 4.8

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
8 years agorumprun: Be more optimistic in allows
Ian Jackson [Tue, 29 Nov 2016 16:57:50 +0000 (16:57 +0000)]
rumprun: Be more optimistic in allows

The old rumpuserxen allow file (which wants to override the global
ignore for the xenstorels.repeat failure) was no longer effective
because the branch name (in the filename) was out of date.  Fix that.

Also no longer ignore one-off xenstorels failures in the primary
branches.  The failure probability seems really very low now.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
8 years agostandalone: Fix sg-run-job job-check-escaped-steps
Ian Jackson [Wed, 16 Nov 2016 14:10:18 +0000 (14:10 +0000)]
standalone: Fix sg-run-job job-check-escaped-steps

Avoids this crash, at the end of the job:
  expected boolean value but got ""

Reported-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Tested-by: Anthony PERARD <anthony.perard@citrix.com>
Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
8 years agorump build tests: Disable a lot of unwanted Xen things at configure time
Ian Jackson [Fri, 4 Nov 2016 19:00:02 +0000 (19:00 +0000)]
rump build tests: Disable a lot of unwanted Xen things at configure time

Amongst other things, we disable rombios which requires lzma.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
8 years agorump build tests: Introduce ts-xen-build-rump
Ian Jackson [Fri, 4 Nov 2016 18:58:44 +0000 (18:58 +0000)]
rump build tests: Introduce ts-xen-build-rump

We are going to want to pass a whole slew of options to configure, and
hence to ts-xen-build.  I think putting that in sg-run-job is
undesirable.

So, split out the ts-xen-build invocation into its own script.
Explicitly set the testid so that it does not change.

No significant functional change.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
8 years agots-xen-build: Support passing arguments to configure
Ian Jackson [Fri, 4 Nov 2016 18:54:48 +0000 (18:54 +0000)]
ts-xen-build: Support passing arguments to configure

No functional change with existing callers.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
8 years agots-xen-build: Enable CONFIG_VERBOSE_DEBUG
Ian Jackson [Tue, 8 Nov 2016 15:07:36 +0000 (15:07 +0000)]
ts-xen-build: Enable CONFIG_VERBOSE_DEBUG

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
8 years agots-xen-build: Enable CONFIG_EXPERT
Ian Jackson [Tue, 8 Nov 2016 15:06:12 +0000 (15:06 +0000)]
ts-xen-build: Enable CONFIG_EXPERT

This requires an environment variable set in the build environment,
too.  (There is an argument amongst hypervisor maintainers about
whether this requirement in xen.git is a good idea; but, nevertheless,
it is currently there in several existing trees, so we need to set
it.)

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
8 years agoBuildSupport: Honour $buildcmd_global_prefix
Ian Jackson [Tue, 8 Nov 2016 15:03:58 +0000 (15:03 +0000)]
BuildSupport: Honour $buildcmd_global_prefix

This will make life more convenient in a moment.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
8 years agoxtf: Always boot with loglvl=all guest_loglvl=all
Ian Jackson [Mon, 7 Nov 2016 12:03:45 +0000 (12:03 +0000)]
xtf: Always boot with loglvl=all guest_loglvl=all

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
8 years agots-xen-build: set CONFIG_DEBUG for KConfig
Wei Liu [Tue, 1 Nov 2016 18:05:04 +0000 (18:05 +0000)]
ts-xen-build: set CONFIG_DEBUG for KConfig

Starting from Xen 4.8 the hypervisor debug build is controlled by
Kconfig. Set it correctly in xen/.config.

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
8 years agostandalone-reset: Check for TftpPxeDir
Konrad Rzeszutek Wilk [Wed, 26 Oct 2016 18:51:45 +0000 (14:51 -0400)]
standalone-reset: Check for TftpPxeDir

While patch: "README: Mention the / requirement in Tftp[Pxe|Tmp]Dir"
we should also double-check that the directory actually exists.

Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
8 years agostandalong-reset: Use the $suite when recreating soft links.
Konrad Rzeszutek Wilk [Wed, 26 Oct 2016 18:14:08 +0000 (14:14 -0400)]
standalong-reset: Use the $suite when recreating soft links.

Commit ef3a6f2162ced5cfeb08b437315b69ad1ddbc5ed:
"Add -$suite suffix to TftpDiVersion in code"
forgot to include the $suite parameter when re-linking
current-$suite against the <date>-$suite.

Specifically after we have downloaded the debian files the
$TftpDir has:

 konrad konrad 4096 paź 26 13:29 2016-10-26-jessi
 konrad konrad   17 paź 26 13:29 current-jessie -> 2016-10-26-jessi

we end up removing the symlink (current-jessie) and then
recreating it as:

 konrad konrad 4096 paź 26 13:29 2016-10-26-jessi
 konrad konrad   10 paź 26 13:29 current-jessie -> 2016-10-2

which is wrong as there is no '2016-10-2' directory.

The patch is to add the $suite in the linking.

Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
8 years agoREADME: Mention the / requirement in Tftp[Tmp|Pxe]Dir
Konrad Rzeszutek Wilk [Wed, 26 Oct 2016 18:14:09 +0000 (14:14 -0400)]
README: Mention the / requirement in Tftp[Tmp|Pxe]Dir

That is the / should be part of the directory name. Otherwise
we get strange files such as: pxelinux.cfgC0A86A3C
in the TftpPath directory.

Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
---
v2: Slightly improved wording.

8 years agoDhcpWatch: Print what is wrong with the line.
Konrad Rzeszutek Wilk [Wed, 26 Oct 2016 18:14:07 +0000 (14:14 -0400)]
DhcpWatch: Print what is wrong with the line.

If the user forgot to include 'dhcp3' on the parameter
line point out the error to the user.

Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
---
v2: Still print out the arguments to the constructor, hopefully
    non-confusingly.

8 years agots-coverity-upload: Honour HttpProxy (or CoverityHttpProxy)
Ian Jackson [Wed, 19 Oct 2016 13:00:15 +0000 (13:00 +0000)]
ts-coverity-upload: Honour HttpProxy (or CoverityHttpProxy)

In the Xen Project colo, we do not grant our hosts (including the
controller) general internet access.

We did have the IP address of scan.coverity.com configured in our
firewall.  But Coverity use a CDN now and the IP address is not even
slightly stable any more.

Using the squid works (using CONNECT).  So do that.

I have not been able to test this end-to-end, since I didn't want to
do a real upload.  However I have c&p the command line that
ts-coverity-upload now attempts, and modified it slightly, and
verified that it then manages to get the appropriate 401 error from
scan.coverity.com.

Deployment note: Sites doing Coverity uploads who have an http proxy
configured but which do not want to use it for these uploads need to
set the config option CoverityHttpProxy to the empty value.

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
CC: Wei Liu <wei.liu2@citrix.com>
CC: Andrew Cooper <andrew.cooper3@citrix.com>
8 years agoREADME: Be less confusing about Tftp settings
Ian Jackson [Mon, 17 Oct 2016 14:01:07 +0000 (15:01 +0100)]
README: Be less confusing about Tftp settings

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
CC: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
---
v2: Give the scope-free version as the basic explanation

8 years agoREADME: Document Webspace* parameters better
Ian Jackson [Mon, 17 Oct 2016 13:53:34 +0000 (14:53 +0100)]
README: Document Webspace* parameters better

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
CC: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
8 years agoREADME: Also mention other requirements.
Konrad Rzeszutek Wilk [Tue, 18 Oct 2016 14:56:27 +0000 (10:56 -0400)]
README: Also mention other requirements.

Mainly dctrl-grep which is in the dctrl-tools.

Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
CC: Marcos Matsunaga <Marcos.Matsunaga@oracle.com>
8 years agomgi-common: Support empty (unset) HttpProxy properly
Ian Jackson [Tue, 18 Oct 2016 15:46:20 +0000 (16:46 +0100)]
mgi-common: Support empty (unset) HttpProxy properly

mg_update_proxy ends up being set to the empty string so the {...:+-x}
form is needed to expand only non-empty values to `-x'.

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
Reported-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
CC: Marcos Matsunaga <Marcos.Matsunaga@oracle.com>
8 years agostandlone-reset: mkdir some directories
Ian Jackson [Tue, 18 Oct 2016 15:22:33 +0000 (16:22 +0100)]
standlone-reset: mkdir some directories

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
CC: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
CC: Marcos Matsunaga <Marcos.Matsunaga@oracle.com>
8 years agostandalone-reset: Fix when TftpDiVersion not set in config
Ian Jackson [Tue, 18 Oct 2016 14:50:16 +0000 (15:50 +0100)]
standalone-reset: Fix when TftpDiVersion not set in config

In b8134c7fa60d "mg-debian-installer-update: Print the correct value
for TftpDiVersion", the output of mg-debian-installer-update was
changed to be a config fragment.  But standalone-reset expected it to
be just the date value, and was not updated.

Update it now.  And leave a comment in mg-debian-installer-update to
stop this happening again.

CC: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
CC: Marcos Matsunaga <Marcos.Matsunaga@oracle.com>
Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
8 years agosupport check: Style improvements - rename _check_for_command
Ian Jackson [Fri, 14 Oct 2016 14:37:11 +0000 (15:37 +0100)]
support check: Style improvements - rename _check_for_command

Put an underscore in front.  This is not a public method.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
8 years agosupport check: Style improvements - general
Ian Jackson [Fri, 14 Oct 2016 14:35:31 +0000 (15:35 +0100)]
support check: Style improvements - general

Many of these functions are quite verbose - otiose, even.

No substantial change.  Some redundant log messages go away.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
8 years agosupport check: Reverse sense of return values
Ian Jackson [Fri, 14 Oct 2016 14:33:03 +0000 (15:33 +0100)]
support check: Reverse sense of return values

The toolstack()->check_blah functions would return an exit status.
This is very confusing.  Instead, have them return a booleanish value
representing the support status: ie, truthy if supported.

No functional change.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
8 years agosupport check: Provide helper function to print nice log message
Ian Jackson [Fri, 14 Oct 2016 14:24:45 +0000 (15:24 +0100)]
support check: Provide helper function to print nice log message

Makes ts-migrate-support-check and ts-saverestore-support-check
slightly clearer.

This function takes $yes, which is truthish if the feature is
supported.  We are going to replace use of exit status truth values in
the various check functions in just a moment.

No functional change other than to log output.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
8 years agolibvirt: Check /capabilities/host/migration_features/live for live migration
Ian Jackson [Thu, 6 Oct 2016 16:38:29 +0000 (17:38 +0100)]
libvirt: Check /capabilities/host/migration_features/live for live migration

libvirt is capable of advertising this separately from
/capabilities/host/migration_features, so if save/restore is supported
but live migration is not, this will do the right thing.

We would have preferred libvirt to advertise
  /capabilities/host/migration_features/save
or something, but it doesn't right now, so we continue to use
  /capabilities/host/migration_features
to detect save/restore support.

If libvirt changes its feature presentation, then at some future point
we should change osstest too.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
CC: Martin Kletzander <mkletzan@redhat.com>
CC: Jim Fehlig <jfehlig@suse.com>
---
v3: Call correct function name.

8 years agolibvirt: Do not attempt save/restore when migration not advertised
Ian Jackson [Tue, 4 Oct 2016 16:24:17 +0000 (17:24 +0100)]
libvirt: Do not attempt save/restore when migration not advertised

Currently, osstest wrongly thinks that ARM can do save/restore,
because `virsh help' does mention the save command (on all
architectures).

So, additionally, check the virth capabilities xpath
   /capabilities/host/migration_features
to try to see whether this host supports migration.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
CC: Julien Grall <julien.grall@arm.com>
CC: Jim Fehlig <jfehlig@suse.com>
Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
---
v3: Removed questioning and uncertain remarks from commit message,
    following appropriate confirmation from libvirt folks.
    Get sense of conditional combination right.

8 years agolibvirt: Check migration capabilities using proper XML parser
Ian Jackson [Tue, 4 Oct 2016 16:15:55 +0000 (17:15 +0100)]
libvirt: Check migration capabilities using proper XML parser

Do not grep the virsh capabilities output (!)  Instead, parse the XML
using perl's XML modules and look for the specific feature flag using
an XPATH pattern.

AFAICT from looking at the XML, that's

    <capabilities>
      <host>
<migration_features>
  <live/>

But the original code does not test for <live/>.

Xen could in principle (and is expected to, in the future, on ARM)
support save/restore but not live migration.  Currently it supports
neither on ARM.  libvirt's capabilities system does in principle
capture this distinction, but only in an adhoc way.

For now, this osstest commit has no ultimate functional change (with
libvirt output as it currently appears on our real hosts).

Deployment note: Requires libxml-libxml-perl to be installed.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
CC: Julien Grall <julien.grall@arm.com>
CC: Jim Fehlig <jfehlig@suse.com>
---
v3: Mention newly-required Perl libraries in README and commit message
    Get answers and syntax right (!)

8 years agomake-flight: XTF: honour $bfi (ie build flight)
Ian Jackson [Thu, 6 Oct 2016 18:39:02 +0000 (19:39 +0100)]
make-flight: XTF: honour $bfi (ie build flight)

If make-flight is run with a $buildflight argument, it does not create
any build jobs.  The test jobs are supposed to refer to the build jobs.

This was not done correctly for the XTF tests.  Add the missing ${bfi}.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
Reviewed-by: Wei Liu <wei.liu2@citrix.com>
Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
8 years agorump kernels: Build with RUMP_DEV_XEN_DEBUG and filter out debug messages
Ian Jackson [Fri, 7 Oct 2016 15:43:54 +0000 (16:43 +0100)]
rump kernels: Build with RUMP_DEV_XEN_DEBUG and filter out debug messages

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
8 years agomake-flight: Honour $bfi (build flight) for rump tests
Ian Jackson [Thu, 6 Oct 2016 18:36:37 +0000 (19:36 +0100)]
make-flight: Honour $bfi (build flight) for rump tests

A quick search suggests there are other a similar bugs...

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
8 years agorump kernels: Install binutils on test box
Ian Jackson [Thu, 6 Oct 2016 18:11:09 +0000 (19:11 +0100)]
rump kernels: Install binutils on test box

The `rumprun' tool needs `readelf' which is in binutils.

This introduces a new test step, which is idempotent.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
8 years agorump kernels: Adjust indentation in run-job/test-rumprun
Ian Jackson [Thu, 6 Oct 2016 18:09:33 +0000 (19:09 +0100)]
rump kernels: Adjust indentation in run-job/test-rumprun

Whitespace change only.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
8 years agorumprun: Disable unwanted builds
Ian Jackson [Thu, 6 Oct 2016 12:03:34 +0000 (13:03 +0100)]
rumprun: Disable unwanted builds

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
8 years agorumprun: xenstorels: Better new regexps for finding output
Ian Jackson [Wed, 5 Oct 2016 15:10:48 +0000 (16:10 +0100)]
rumprun: xenstorels: Better new regexps for finding output

There is no need to match the _exit.  We can match the main return as
before, provided we tolerate the way it now says
   main() of "program" returned 0

This is an update to ea13503bc853 "rumprun: xenstorels: New regexps
for finding output" (which was insufficient to get the xenstorels test
to pass).

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
8 years agoTestSupport: guest_unprepare_disk: Make a no-op for guests with no Lvdev
Ian Jackson [Wed, 5 Oct 2016 15:07:53 +0000 (16:07 +0100)]
TestSupport: guest_unprepare_disk: Make a no-op for guests with no Lvdev

This includes some rump kernel tests.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
8 years agorump kernels: Provide networking test
Ian Jackson [Wed, 5 Oct 2016 14:09:49 +0000 (15:09 +0100)]
rump kernels: Provide networking test

Introduce our own version of `nc -e echo', to replace the removed rump
kernel WOPR test (which we were using to check that networking
worked).

This test program works when compiled on Linux too.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
8 years agorump kernels: Provide proper DHCP instructions to rumprun
Ian Jackson [Wed, 5 Oct 2016 14:07:57 +0000 (15:07 +0100)]
rump kernels: Provide proper DHCP instructions to rumprun

Otherwise we just get an unconfigured network interface.  (Requesting
DHCP used to be implicit.)

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
8 years agorump kernels: ts-rumprun-bake: Do not tolerate errors
Ian Jackson [Wed, 5 Oct 2016 14:06:14 +0000 (15:06 +0100)]
rump kernels: ts-rumprun-bake: Do not tolerate errors

If we skip due to missing the input pieces, make the warning noiser.

If we think we have all the input pieces, bomb out if they don't seem
to contain the right bits, or if rumpbake fails.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
8 years agorump kernels: Specify toolstack for rumprun demo to be rumprun
Ian Jackson [Wed, 5 Oct 2016 13:41:20 +0000 (14:41 +0100)]
rump kernels: Specify toolstack for rumprun demo to be rumprun

This causes ts-guest-start to use rumprun, rather than xl.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
8 years agorump kernels: Provide rumprun toolstack
Ian Jackson [Wed, 5 Oct 2016 13:43:34 +0000 (14:43 +0100)]
rump kernels: Provide rumprun toolstack

This is suitable as a guest-specific toolstack: it defers to xl for
everything other than guest creation.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
8 years agoSupport guest-specific "toolstack" for guest creation
Ian Jackson [Wed, 5 Oct 2016 13:39:11 +0000 (14:39 +0100)]
Support guest-specific "toolstack" for guest creation

Some guests need creation in a special way.  For example, rump kernels
are ideally started with rumprun.  Honour a guest var which specifies
a toolstack name.

Osstest::TestSupport::toolstack now takes an optional $gho so it can
do this lookup when appropriate.

After creation the guest is necessarily managed with the toolstack for
the host, so we honour this (ie we pass the $gho) only for create.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
8 years agoBuildSupport: builddirsprops: Clean up each builddir
Ian Jackson [Wed, 5 Oct 2016 13:37:08 +0000 (14:37 +0100)]
BuildSupport: builddirsprops: Clean up each builddir

This makes prepbuilddirs work if it is run a second time for the same
builddirs, which is useful for ad-hoc testing.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
8 years agorump-test-net: setsockopt V6ONLY off
Ian Jackson [Thu, 29 Sep 2016 12:57:05 +0000 (13:57 +0100)]
rump-test-net: setsockopt V6ONLY off

NetBSD (unlike Linux) has the V6ONLY socket option turned on by
default.  So to work in the rump kernel environment when tested with
IPv4 we need to adjust this setting.

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
8 years agorump-test-net: New test program
Ian Jackson [Thu, 29 Sep 2016 10:36:23 +0000 (11:36 +0100)]
rump-test-net: New test program

The rump kernel WOPR test is no more, so we reimplement it.  This test
program simply listens on a TCP socket and says hi when you connect to
it.  It's a portable program.  So far, this has been tested on Linux,
but not in the rump environment.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
8 years agomg-allocate: Provide command line way to list allocated resources
Ian Jackson [Thu, 6 Oct 2016 15:49:28 +0000 (16:49 +0100)]
mg-allocate: Provide command line way to list allocated resources

Freely shareable resources don't appear in the plan, and the plan is
not always immediately updated, and is generally not always a
convenient interface.  Provide a command line way to list allocated
resources.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
8 years agoExecutive: Break out task_spec_desc (no functional change)
Ian Jackson [Thu, 6 Oct 2016 15:48:53 +0000 (16:48 +0100)]
Executive: Break out task_spec_desc (no functional change)

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
8 years agosg-report-flight: Avoid some warnings when reporting unexecuted jobs
Ian Jackson [Thu, 6 Oct 2016 12:10:20 +0000 (13:10 +0100)]
sg-report-flight: Avoid some warnings when reporting unexecuted jobs

If no steps in a job are executed, there can be a failure with a
synthetic step row, containing a stepno of ''.  This causes a perl
warning when compared with <=>:
  Argument "" isn't numeric in numeric comparison (<=>) at ./sg-report-flight line 774.

Fix this by replacing falseish values with 0.

Bug introduced in 0e09a8b00ec6 "sg-report-flight: Report earlier,
earlier step failures".

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
8 years agohost allocation: Fix duration estimate to not include host allocation
Ian Jackson [Tue, 4 Oct 2016 18:09:18 +0000 (18:09 +0000)]
host allocation: Fix duration estimate to not include host allocation

In 720f08cb9052 "Executive: Previous duration estimator: use overall
time, not sum of steps" we introduced a bug: the condition to exclude
the host allocation time is now not effective if there are any steps
before host allocation.  Usually there are.

This means that the host allocation duration estimator has been
including the host allocation time from previous jobs, which is quite
wrong.

Fix this by subtracting the maximum duration of any host allocation
step.  Hopefully there will only be one.

If any host allocation runs concurrently with other steps (including
other host allocations) then this will start to give wrong answers.
But there are other reasons why we wouldn't want to do that.

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
---
v2: Fix sql syntax.

8 years agohost allocation: Dedupe "other hosts" flights in duration estimation
Ian Jackson [Tue, 4 Oct 2016 18:02:33 +0000 (18:02 +0000)]
host allocation: Dedupe "other hosts" flights in duration estimation

The old query would return one row for each step in each relevant
flight.  But we are really only interested in the flight.

Group by the flight and sort on max(finished).

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
8 years agohost allocation: Pass a debug function in find_recent_duration
Ian Jackson [Tue, 4 Oct 2016 17:23:23 +0000 (17:23 +0000)]
host allocation: Pass a debug function in find_recent_duration

We provide only a commented-out debug print.  This produces more
copius output than is desirable even to a compressed debug log.

No functional change.

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
8 years agohost allocation: Support -B<blessing> option
Ian Jackson [Tue, 4 Oct 2016 17:20:51 +0000 (17:20 +0000)]
host allocation: Support -B<blessing> option

The flight's intended affects the hostflags required, the duration
searches, and other decisions.  It is particularly useful for
debugging, where it can be desirable to try replaying a production
job's allocation with a "play" job.

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
8 years agoms-planner: Improve an error message
Ian Jackson [Thu, 6 Oct 2016 11:52:25 +0000 (12:52 +0100)]
ms-planner: Improve an error message

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
8 years agoms-planner: Ignore freely-shareable resources
Ian Jackson [Thu, 6 Oct 2016 11:50:01 +0000 (12:50 +0100)]
ms-planner: Ignore freely-shareable resources

Resource shares with no resource_sharing entry are freely shareable
and do not need the planning system.  Indeed, they currently break the
planner.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
8 years agoflight preservation: Provide a way to allocate flights
Ian Jackson [Tue, 4 Oct 2016 12:24:34 +0000 (13:24 +0100)]
flight preservation: Provide a way to allocate flights

Teach mg-allocate to create and delete resources table entries for
flights, as necessary.  And, provide a conveniance alias F/<flight>.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
8 years agoflight preservation: Honour flight allocation during expiry
Ian Jackson [Tue, 4 Oct 2016 12:10:33 +0000 (13:10 +0100)]
flight preservation: Honour flight allocation during expiry

Look in the resources and tasks table for a resources table entry
corresponding to each flight, owned by a live task.  Such flights are
not deleted.

Specifically:
 * At the start, we get a list of all the preserved flights, and
   also print the information to stdout.
 * Whenever we compare flight numbers for inequality (as a proxy
   for flight age), we first compare where the flights are allocated.
   (When there are references, the effect is that an allocated
   referring flight counts as very late, so $latestref will contain it.)
 * Before actually deleting the selected flight we check it's not
   allocated.  (Strictly, we check it's "latest" reference is not
   allocated.)

Currently there is nothing which creates such resources table entries
so there is no overall functional change.  Also, as a result, the doc
reads rather oddly.  This will be fixed in the next patch.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
8 years agomg-allocate: Tiny refactoring
Ian Jackson [Tue, 4 Oct 2016 12:20:12 +0000 (13:20 +0100)]
mg-allocate: Tiny refactoring

Break out $shareix assignment from $4.  (We are going to want to put
some code just after this point which will want to do regexp matching,
which would trash $4.)

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
8 years agocr-ensure-disk-space: Dry run produces better `die' message.
Ian Jackson [Tue, 4 Oct 2016 12:08:57 +0000 (13:08 +0100)]
cr-ensure-disk-space: Dry run produces better `die' message.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
8 years agocr-ensure-disk-space: -F option
Ian Jackson [Tue, 4 Oct 2016 12:07:37 +0000 (13:07 +0100)]
cr-ensure-disk-space: -F option

May be repeated (cuddled with itself) or given a number.  Forces
deletion, even if there is enough space.  Normally clean up one less
flight than specified, since cr-ensure-disk-space reruns its check
after acquiring the lock.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
8 years agocr-ensure-disk-space: Do not take out the lock in dry run mode
Ian Jackson [Tue, 4 Oct 2016 12:06:18 +0000 (13:06 +0100)]
cr-ensure-disk-space: Do not take out the lock in dry run mode

This makes testing a bit easier, and is of course fine.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
8 years agomg-bisect-activity-dump-periods: Split out windows-install steps
Ian Jackson [Mon, 26 Sep 2016 16:38:42 +0000 (17:38 +0100)]
mg-bisect-activity-dump-periods: Split out windows-install steps

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
8 years agomg-bisect-activity-*: New rather ad-hoc scripts for wall clock timing analysys
Ian Jackson [Thu, 22 Sep 2016 17:00:04 +0000 (18:00 +0100)]
mg-bisect-activity-*: New rather ad-hoc scripts for wall clock timing analysys

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
8 years agoAdd *.tmp to .gitignore
Ian Jackson [Mon, 26 Sep 2016 11:36:12 +0000 (12:36 +0100)]
Add *.tmp to .gitignore

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
8 years agoTestSupport: use qemu-img to create vhd image
Wei Liu [Thu, 8 Sep 2016 15:52:48 +0000 (16:52 +0100)]
TestSupport: use qemu-img to create vhd image

We would like to delete blktap2 from xen.git at some point, but vhd-util
is part of blktap2. Let's switch to use qemu-img to create vhd image to
remove the dependency on blktap2 in osstest.

We want to use the distro qemu-utils, so add that to the package list
in ts-xen-install.

Note that vhd format is named "vpc" in qemu-img.

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
8 years agoproduction-config*: Update to new d-i version 2016-09-20 for jessie
Ian Jackson [Tue, 20 Sep 2016 18:11:53 +0000 (19:11 +0100)]
production-config*: Update to new d-i version 2016-09-20 for jessie

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
8 years agomg-debian-installer-update: Honour HttpProxy for wget
Ian Jackson [Tue, 20 Sep 2016 18:03:05 +0000 (19:03 +0100)]
mg-debian-installer-update: Honour HttpProxy for wget

This script uses wget, not just `fetch'.  Set the http_proxy
environment variable, as that's the way to get wget to DTRT.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
8 years agomg-* update: Honour HttpProxy
Ian Jackson [Tue, 20 Sep 2016 17:46:26 +0000 (18:46 +0100)]
mg-* update: Honour HttpProxy

We need to use the cache in Massachusetts because of the new strict
firewall.

The code in the fetch subtroutine is a bit fiddly because 1. we want
to memoise the config lookup and 2. fetch can be called in a different
directory, so we need to cd back.

While we're here, document why we use the no-cache pragma.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
8 years agoCreate XTF branch
Wei Liu [Tue, 26 Jul 2016 15:29:28 +0000 (16:29 +0100)]
Create XTF branch

This branch contains Xen and Linux build jobs and all jobs which contain
xtf in their name.

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
8 years agomake-flight: create 5 xtf jobs
Wei Liu [Thu, 21 Jul 2016 11:50:41 +0000 (12:50 +0100)]
make-flight: create 5 xtf jobs

Create jobs only for x86 and set host flag diverse-xtf-x86.

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
8 years agosg-run-job: test-xtf recipe
Wei Liu [Fri, 22 Jul 2016 11:30:57 +0000 (12:30 +0100)]
sg-run-job: test-xtf recipe

Install XTF, run FEP test and then run all available tests.

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
8 years agoIntroduce ts-xtf-run
Wei Liu [Tue, 26 Jul 2016 11:16:29 +0000 (12:16 +0100)]
Introduce ts-xtf-run

This is the main script for running XTF.  It will first perform
selftest, and then run each XTF test case as a substep.

It does the following things:

1. Run self tests for individual environment and record the result.
2. Collect tests according to available environments.
3. Run the collected tests one by one.

The script may exit early if it detects the test host is down or
xtf-runner returns non-recognisable exit code.

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
8 years agoIntroduce ts-xtf-fep
Wei Liu [Tue, 26 Jul 2016 11:02:23 +0000 (12:02 +0100)]
Introduce ts-xtf-fep

Test the availability of FEP during runtime.

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
8 years agomfi-common: create xtf build job for 4.4 onwards
Wei Liu [Thu, 21 Jul 2016 10:50:36 +0000 (11:50 +0100)]
mfi-common: create xtf build job for 4.4 onwards

Xen 4.4 is the oldest one that we still provide security support at this
point in time.

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
8 years agoIntroduce ts-xtf-install
Wei Liu [Thu, 21 Jul 2016 09:30:02 +0000 (10:30 +0100)]
Introduce ts-xtf-install

Extract XTF to the desired location.

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
8 years agosg-run-job: create xtf build recipe
Wei Liu [Thu, 21 Jul 2016 10:31:04 +0000 (11:31 +0100)]
sg-run-job: create xtf build recipe

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
8 years agoIntroduce ts-xtf-build
Wei Liu [Thu, 14 Jul 2016 16:50:51 +0000 (17:50 +0100)]
Introduce ts-xtf-build

Clone, build and package XTF for later use.

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
8 years agoBuildSupport: move buildcmd_stamped_logged here
Wei Liu [Thu, 4 Aug 2016 14:50:36 +0000 (15:50 +0100)]
BuildSupport: move buildcmd_stamped_logged here

... so that other build scripts can use it, too.

It now accepts one more parameter called "component" to be useful in
other build scripts.

No functional change.

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
8 years agoap-common: add xtf tree
Wei Liu [Thu, 14 Jul 2016 16:44:38 +0000 (17:44 +0100)]
ap-common: add xtf tree

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
8 years agots-xen-build: always compile in FEP support
Wei Liu [Thu, 21 Jul 2016 14:37:48 +0000 (15:37 +0100)]
ts-xen-build: always compile in FEP support

By default FEP depends on debug flag. When we are near release the debug
flag will be turned off. In order to test a release build, we explicitly
enable FEP in build configuration.

Since we target Xen versions that already have Kconfig support, only a
Kconfig option is created for now.

We can easily add config option for older Xen when necessary.

Note that this only compiles in FEP support. To enable it a user needs
to explicitly specify fep=1 in hypervisor command line.

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
8 years agoExecutive: Support substeps
Ian Jackson [Thu, 7 Jul 2016 18:35:12 +0000 (19:35 +0100)]
Executive: Support substeps

ts-* scripts can now create `substeps'.  For the purposes of
archaeology etc., a substep is just like a step.  But it does
correspond to a single specific ts-* invocation.

Instead, it is started and finished explicitly as required.

The whole job implementation code needs to explicitly assign a unique
stable testid to each substep.

The `script' parameter is stored in the `step' field in the database,
which is used only for reporting.  These do not need to be unique.

All substeps started are should also be finished, by the end of the
job.  If this is not done, the job will be regarded as broken (if it
is not already failed or aborted).  (But a substep might be finished
by a different ts-* script to the one that started it.)

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
CC: Wei Liu <wei.liu2@citrix.com>
8 years agots-hosts-allocate-Executive: Support diverse-CLASS hostflag
Ian Jackson [Wed, 6 Jul 2016 14:22:21 +0000 (15:22 +0100)]
ts-hosts-allocate-Executive: Support diverse-CLASS hostflag

Specifically:
 * Parse it out of the hostflags when constructing the hid
 * Look for the `hostalloc-diverse-FLIGHT-CLASS' ClientNote in
   the resource plan, to avoid inappropriately planning to reuse hosts.
 * Look for the `diversehosts_CLASS' runvar in other jobs in this flight,
   to find out who might have allocated with the same CLASS.  (This
   sort of duplicates information in *hostflags and *host, but digging
   the information out of the latter two would be very tiresome.)
 * Check each of the above for each candidate host.
 * Set the ClientNote when we are preparing a booking.
 * Set the runvar when we do the allocation.
 * Document the ClientNote.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
CC: Wei Liu <wei.liu2@citrix.com>
8 years agots-hosts-allocate-Executive: pass $plan to hid_find_possibilities
Ian Jackson [Wed, 6 Jul 2016 14:10:33 +0000 (15:10 +0100)]
ts-hosts-allocate-Executive: pass $plan to hid_find_possibilities

We are going to want this to implement the new diverse-CLASS hostflag.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
CC: Wei Liu <wei.liu2@citrix.com>