]> xenbits.xensource.com Git - osstest.git/log
osstest.git
10 years agorump kernel tests: Repeat the xenstorels test 50 times flight-34540 flight-34590 flight-34652 flight-34653 flight-34654 flight-34655 flight-34656 flight-34657 flight-34658 flight-34659 flight-34660 flight-34661 flight-34662 flight-34663 flight-34664 flight-34665 flight-34666 flight-34667 flight-34668 flight-34669 flight-34670 flight-34671 flight-34672 flight-34673 flight-34674 flight-34675 flight-34676 flight-34677 flight-34678 flight-34679 flight-34680 flight-34682 flight-34683 flight-34684 flight-34686 flight-34687 flight-34688 flight-34689 flight-34690 flight-34691 flight-34692 flight-34693 flight-34694 flight-34696 flight-34697 flight-34698 flight-34699 flight-34700 flight-34701 flight-34702 flight-34703 flight-34704 flight-34705 flight-34706 flight-34707 flight-34708 flight-34709 flight-34710 flight-34711 flight-34712 flight-34713 flight-34714 flight-34715 flight-34716 flight-34717 flight-34718 flight-34719 flight-34720 flight-34721 flight-34722 flight-34723 flight-34724 flight-34725 flight-34726 flight-34727 flight-34728 flight-34729 flight-34730 flight-34731 flight-34732 flight-34733 flight-34734 flight-34735 flight-34736 flight-34737 flight-34738 flight-34739 flight-34740 flight-34741 flight-34742 flight-34743 flight-34744 flight-34745 flight-34746 flight-34747 flight-34748 flight-34749 flight-34750 flight-34751 flight-34752 flight-34753 flight-34754 flight-34755 flight-34756 flight-34757 flight-34758 flight-34759 flight-34760 flight-34762 flight-34763 flight-34764 flight-34765 flight-34766 flight-34767 flight-34768 flight-34769 flight-34770 flight-34771 flight-34772 flight-34773 flight-34774 flight-34775 flight-34776 flight-34777 flight-34778 flight-34779 flight-34780 flight-34781 flight-34782 flight-34783 flight-34784 flight-34785 flight-34786 flight-34787 flight-34788 flight-34789 flight-34790 flight-34791 flight-34792 flight-34793 flight-34794 flight-34795 flight-34796 flight-34797 flight-34798 flight-34799 flight-34800 flight-34801 flight-34802 flight-34803 flight-34804 flight-34805 flight-34806 flight-34807 flight-34808 flight-34809 flight-34810 flight-34811 flight-34812 flight-34813 flight-34814 flight-34815 flight-34816 flight-34817 flight-34818 flight-34819 flight-34820 flight-34821 flight-34822 flight-34823 flight-34824 flight-34825 flight-34826 flight-34827 flight-34828 flight-34829 flight-34830 flight-34831 flight-34832 flight-34833 flight-34834 flight-34835 flight-34836 flight-34837 flight-34838 flight-34839 flight-34840 flight-34841 flight-34842 flight-34843 flight-34844 flight-34845 flight-34846 flight-34848 flight-34849 flight-34850 flight-34851 flight-34852 flight-34853 flight-34854 flight-34857 flight-34858 flight-34859 flight-34860 flight-34862 flight-34863 flight-34864 flight-34865 flight-34866 flight-34867 flight-34868 flight-34869 flight-34870 flight-34871 flight-34872 flight-34873 flight-34874 flight-34875 flight-34876 flight-34877 flight-34878 flight-34879 flight-34880 flight-34881 flight-34882 flight-34883 flight-34884 flight-34885 flight-34886 flight-34888 flight-34889 flight-34890 flight-34891 flight-34892 flight-34893 flight-34894 flight-34895 flight-34896 flight-34897 flight-34898 flight-34899 flight-34900 flight-34901 flight-34902 flight-34903 flight-34904 flight-34905 flight-34906 flight-34907 flight-34908 flight-34909 flight-34910 flight-34911
Ian Jackson [Fri, 6 Feb 2015 17:09:40 +0000 (17:09 +0000)]
rump kernel tests: Repeat the xenstorels test 50 times

Add a new step which uses repeat-ts to run
ts-rumpuserxen-demo-xenstorels many times.

We have to run ts-guest-destroy-hard after each time, to destroy the
guest which the demo script leaves lying about.

Strategically placed `+'s in the repeat-ts command line arrange that
the testid ends up being
   rumpuserxen-demo-xenstorels/xenstorels.repeat

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
---
v2: Run the test after, rather than before, the explicit
     ts-guest-destroy-hard.  That will avoid blocking the single
     destroy test if the repeat fails.

    No longer specify to tolerate failures of the post-run-demo
     destroy, as if the test passes so must the destroy.  Now by-hand
     testing may need a different ts-repeat-test rune, but in practice
     by-hand testing will probably involve a shell loop or something
     anyway.

10 years agorump kernel tests: Cancel unneeded edits of guest config
Ian Jackson [Fri, 6 Feb 2015 17:08:31 +0000 (17:08 +0000)]
rump kernel tests: Cancel unneeded edits of guest config

If the guest config is already set up to preserve, cancel the edit.
We are going to repeat this test, and this avoids creating many
identical copies of the same file in the log output.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
Acked-by: Ian Campbell <ian.campbelL@citrix.com>
10 years agosg-run-job, etc.: Infrastructure for test script repetition
Ian Jackson [Fri, 6 Feb 2015 17:07:16 +0000 (17:07 +0000)]
sg-run-job, etc.: Infrastructure for test script repetition

Provide:
 * ts-repeat-test, a script to run multiple other test scripts in a loop
 * repeat-ts, a proc in sg-run-job which invokes it

No callers yet.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
10 years agosg-run-job: testid generation: Process ts more like rest of args
Ian Jackson [Fri, 6 Feb 2015 15:36:34 +0000 (15:36 +0000)]
sg-run-job: testid generation: Process ts more like rest of args

Remove ts as a separate parameter to spawn-ts.  The test script now
becomes the first entry in args.

We process it through the arg loop as before.  Currently there are no
calls where the first arg is `+' so the test script name ends up in
both real_args and testid_args.

We split it out of real_args into the ts variable with lshift.
We split it out of testid_args into the deftestid with lshift.

So afterwards in spawn-ts, all the variables (including real_args, ts,
deftestid and testid_args and hence host_testid_suffix) have the
values they would have had before.

Therefore there is no functional change for any existing calls.

However, because the first argument is not treated specially for the
`+' procesing loop, it is now possible to specify `+' as the first
entry in args to spawn-ts (ie where ts used to be) to arrange that the
deftestid (and hence, probably, the testid) is computed using later
arguments.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
10 years agosg-run-job: testid generation: Introduce $testid_args
Ian Jackson [Fri, 6 Feb 2015 15:30:38 +0000 (15:30 +0000)]
sg-run-job: testid generation: Introduce $testid_args

Rather than accumulating into host_testid_suffix directly, accumulate
into a list testid_args first.

No functional change: all we do is defer the construction of
host_testid_suffix, which is not used until later in this function.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
10 years agosg-run-job: testid generation: Move spawn-step-begin
Ian Jackson [Fri, 6 Feb 2015 15:24:31 +0000 (15:24 +0000)]
sg-run-job: testid generation: Move spawn-step-begin

Run spawn-step-begin until after the loop over $args, and after the
computation of the basic deftestid.

No functional change: nothing in that loop looks at stepno.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
10 years agotcl/osstestlib.tcl: Provide lshift
Ian Jackson [Fri, 6 Feb 2015 15:36:13 +0000 (15:36 +0000)]
tcl/osstestlib.tcl: Provide lshift

No callers yet.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
10 years agoTestSupport: Make next_unique_name count in decimal, not unary
Ian Jackson [Fri, 6 Feb 2015 16:59:26 +0000 (16:59 +0000)]
TestSupport: Make next_unique_name count in decimal, not unary

Ie, we add `+<counter>' rather than an ever-longer series of `+'s.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
10 years agoTestSupport: Introduce next_unique_name
Ian Jackson [Fri, 6 Feb 2015 16:55:52 +0000 (16:55 +0000)]
TestSupport: Introduce next_unique_name

No functional change.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
10 years agoTestSupport: Provide target_editfile_cancel
Ian Jackson [Fri, 6 Feb 2015 13:57:31 +0000 (13:57 +0000)]
TestSupport: Provide target_editfile_cancel

This allows a caller of target_editfile to cancel the edit from within
their supplied code block.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
10 years agosg-report-job-history: Show which host test ran on
Ian Jackson [Mon, 9 Feb 2015 17:55:05 +0000 (17:55 +0000)]
sg-report-job-history: Show which host test ran on

Add a column listing the host(s) used.  We first find the relevant set
of host runvars (with a SELECT DISTINCT) and then look up each var for
each actual flight.

We do the pattern-matching on runvar names in perl to avoid giving the
postgresql optimiser a chance to turn this query into a full table
scan of the runvars table.  (A previous iteration of this patch
searched, in the per-flight loop, for all runvars whose name was
appropriately LIKE, with appalling performance.)

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
10 years agosg-report-job-history: Separate out $cond in queries
Ian Jackson [Mon, 9 Feb 2015 17:54:19 +0000 (17:54 +0000)]
sg-report-job-history: Separate out $cond in queries

We are going to want to reuse this, so separate out the computation of
$cond and @params.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
10 years agoallow.all: Do not regard libvirt guest start failures as regressions flight-34395 flight-34472 flight-34473 flight-34475 flight-34477 flight-34478 flight-34480 flight-34481 flight-34482 flight-34483 flight-34484 flight-34485 flight-34486 flight-34487 flight-34488 flight-34489 flight-34490 flight-34491 flight-34492 flight-34493 flight-34494 flight-34495 flight-34496 flight-34497 flight-34498 flight-34499 flight-34500 flight-34501 flight-34502 flight-34503 flight-34504 flight-34505 flight-34506 flight-34507 flight-34508 flight-34509 flight-34510 flight-34511 flight-34512 flight-34513 flight-34514 flight-34515 flight-34516 flight-34517 flight-34519 flight-34520 flight-34521 flight-34522 flight-34523 flight-34524 flight-34525 flight-34526 flight-34527 flight-34528 flight-34529 flight-34530 flight-34531 flight-34532 flight-34533 flight-34534 flight-34535 flight-34536 flight-34537 flight-34538 flight-34539 flight-34541 flight-34542 flight-34543 flight-34544 flight-34545 flight-34546 flight-34547 flight-34548 flight-34549 flight-34550 flight-34551 flight-34552 flight-34553 flight-34554 flight-34555 flight-34556 flight-34557 flight-34558 flight-34559 flight-34560 flight-34561 flight-34562 flight-34563 flight-34564 flight-34565 flight-34566 flight-34567 flight-34568 flight-34569 flight-34570 flight-34571 flight-34572 flight-34573 flight-34574 flight-34575 flight-34576 flight-34577 flight-34578 flight-34579 flight-34580 flight-34581 flight-34582 flight-34583 flight-34584 flight-34585 flight-34586 flight-34587 flight-34588 flight-34589 flight-34591 flight-34592 flight-34593 flight-34594 flight-34595 flight-34596 flight-34597 flight-34598 flight-34599 flight-34600 flight-34601 flight-34602 flight-34603 flight-34604 flight-34605 flight-34606 flight-34607 flight-34608 flight-34609 flight-34610 flight-34611 flight-34612 flight-34613 flight-34614 flight-34615 flight-34616 flight-34617 flight-34618 flight-34619 flight-34620 flight-34621 flight-34622 flight-34623 flight-34624 flight-34625 flight-34626 flight-34627 flight-34628 flight-34629 flight-34630 flight-34631 flight-34632 flight-34633 flight-34634 flight-34635 flight-34636 flight-34637 flight-34638 flight-34639 flight-34640 flight-34641 flight-34642 flight-34643 flight-34644 flight-34645 flight-34646 flight-34649 flight-34650 flight-34651
Ian Jackson [Mon, 9 Feb 2015 14:22:50 +0000 (14:22 +0000)]
allow.all: Do not regard libvirt guest start failures as regressions

We have been experiencing some regressions in test-amd64-*-libvirt
guest-start.

These appear to be host-specific: for example, test-amd64-i386-libvirt
succeeded in 34278 on itch-mite but failed in 34234 on bush-cricket.
The only difference in osstest's records of the versions is a change
to linuxfirmware.

I booked out field-cricket and have repro'd some problems there.  It
appears that libvirtd can crash.  The symptoms are not the same as in
the push gate failures in osstest (34316, 34234) and linux-linus
(34299) but similar to those in linux-3.0 (34291) and linux-3.16
(34285).

When running libvirtd in the foreground we can get this:
  libvirtd: libxl_event.c:1791: libxl__ao_complete_check_progress_reports: Assertion `ao->in_initiator' failed.

So, it appears to be some kind of race.  The libvirt tests are new so
this is not a real regression in any of the trees gated by osstest.
So, permit this test for now.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
10 years agomg-debian-installer-update: workaround caching proxies flight-34174 flight-34234 flight-34316 flight-34387
Ian Campbell [Sat, 10 Jan 2015 16:14:15 +0000 (16:14 +0000)]
mg-debian-installer-update: workaround caching proxies

Which otherwise interfere with updating d-i shortly after the upstream
update.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
10 years agoREADME.dev: Updates to commissioning process
Ian Campbell [Fri, 30 Jan 2015 10:55:03 +0000 (10:55 +0000)]
README.dev: Updates to commissioning process

- mkpxedir requires the resource to be allocated
- mention the need to bless the hosts for comissioning run, and to add
  proper blessings afterwards.
- run mg-execute-flight in screen

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
10 years agots-logs-capture: ensure captured log files are readable.
Ian Campbell [Wed, 4 Feb 2015 09:49:44 +0000 (09:49 +0000)]
ts-logs-capture: ensure captured log files are readable.

At least /var/log/libvirt/libvirtd.log is 0600 on the target machine
and this gets preserved in the captured logfile, eventually meaning
that apache on the log server cannot read the file to serve it ("You
don't have permission to access...").

Set all logfiles to 0666, modified by umask.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
10 years agots-rumpuserxen-build: Cope with rumprun-xen rename
Ian Jackson [Wed, 4 Feb 2015 14:39:12 +0000 (14:39 +0000)]
ts-rumpuserxen-build: Cope with rumprun-xen rename

rumpxen-app-* has been renamed to rumprun-xen-*.  We need to cope with
either, at least for the transition.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
CC: Martin Lucina <martin@lucina.net>
10 years agots-xen-build-prep: install nasm flight-34086 flight-34114 flight-34167 flight-34168 flight-34169 flight-34170 flight-34171 flight-34172 flight-34176 flight-34177 flight-34178 flight-34179 flight-34180 flight-34181 flight-34182 flight-34183 flight-34184 flight-34185 flight-34186 flight-34187 flight-34188 flight-34189 flight-34190 flight-34191 flight-34192 flight-34193 flight-34194 flight-34195 flight-34196 flight-34197 flight-34199 flight-34200 flight-34201 flight-34202 flight-34203 flight-34204 flight-34205 flight-34206 flight-34207 flight-34208 flight-34209 flight-34210 flight-34211 flight-34212 flight-34213 flight-34214 flight-34215 flight-34216 flight-34217 flight-34218 flight-34221 flight-34223 flight-34224 flight-34225 flight-34226 flight-34227 flight-34228 flight-34229 flight-34230 flight-34231 flight-34232 flight-34233 flight-34235 flight-34236 flight-34237 flight-34238 flight-34239 flight-34240 flight-34241 flight-34242 flight-34243 flight-34244 flight-34245 flight-34246 flight-34247 flight-34248 flight-34249 flight-34250 flight-34251 flight-34252 flight-34253 flight-34254 flight-34255 flight-34256 flight-34257 flight-34258 flight-34259 flight-34260 flight-34261 flight-34262 flight-34264 flight-34265 flight-34266 flight-34267 flight-34268 flight-34270 flight-34271 flight-34274 flight-34275 flight-34276 flight-34277 flight-34278 flight-34280 flight-34281 flight-34282 flight-34285 flight-34290 flight-34291 flight-34292 flight-34293 flight-34296 flight-34297 flight-34298 flight-34299 flight-34300 flight-34315 flight-34317 flight-34318 flight-34319 flight-34320 flight-34321 flight-34322 flight-34323 flight-34329 flight-34330 flight-34335 flight-34336 flight-34337 flight-34338 flight-34339 flight-34340 flight-34341 flight-34342 flight-34343 flight-34344 flight-34345 flight-34346 flight-34347 flight-34348 flight-34349 flight-34350 flight-34351 flight-34352 flight-34353 flight-34354 flight-34355 flight-34356 flight-34357 flight-34358 flight-34359 flight-34360 flight-34361 flight-34362 flight-34363 flight-34364 flight-34365 flight-34367 flight-34368 flight-34369 flight-34370 flight-34371 flight-34372 flight-34373 flight-34381 flight-34382 flight-34383 flight-34384 flight-34385 flight-34386 flight-34388 flight-34389 flight-34390 flight-34392 flight-34393 flight-34394 flight-34396 flight-34397 flight-34398 flight-34399 flight-34400 flight-34401 flight-34402 flight-34403 flight-34404 flight-34405 flight-34406 flight-34407 flight-34408 flight-34409 flight-34410 flight-34411 flight-34412 flight-34420 flight-34421 flight-34422 flight-34423 flight-34424 flight-34425 flight-34426 flight-34427 flight-34428 flight-34429 flight-34430 flight-34431 flight-34432 flight-34433 flight-34434 flight-34435 flight-34436 flight-34437 flight-34438 flight-34439 flight-34440 flight-34441 flight-34442 flight-34443 flight-34444 flight-34445 flight-34446 flight-34447 flight-34448 flight-34449 flight-34450 flight-34451 flight-34452 flight-34453 flight-34454 flight-34455 flight-34456 flight-34457 flight-34458 flight-34459 flight-34460 flight-34461 flight-34462 flight-34463 flight-34464 flight-34465 flight-34466 flight-34467 flight-34468 flight-34469 flight-34470 flight-34471
Wei Liu [Sat, 31 Jan 2015 22:51:50 +0000 (22:51 +0000)]
ts-xen-build-prep: install nasm

OVMF requires nasm to build.

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Cc: Ian Campbell <ian.campbell@citrix.com>
Cc: Ian Jackson <ian.jackson@eu.citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
10 years agoToolstack: Pass $gho to create method
Ian Campbell [Wed, 21 Jan 2015 16:12:21 +0000 (16:12 +0000)]
Toolstack: Pass $gho to create method

The cfg file can be obtained from $gho->{CfgPath}. This is more
consistent with other methods.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
10 years agots-guest-start: Use guest_create
Ian Campbell [Tue, 2 Dec 2014 12:53:26 +0000 (12:53 +0000)]
ts-guest-start: Use guest_create

This allows us to abolish CfgPathVar which was inconsistently used,
appears redundant with $gho->{CfgPath} and in any case never set to
anything other than 'cfgpath'.

This was intended to deal with toolstacks with a different cfg format
(such as very early versions of xl) but is no longer relevant.

I think if this need arises again in a future toolstack this
functionality could be reintroduced pretty trivially via the toolstack
abstraction which is added by this series.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
10 years agoToolstack: Remove Command field for all toolstacks.
Ian Campbell [Mon, 1 Dec 2014 16:36:01 +0000 (16:36 +0000)]
Toolstack: Remove Command field for all toolstacks.

Nothing in generic code uses this now, so remove.

xl+xend retain as _Command for internal use only.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
10 years agolibvirt: Implement shutdown_wait
Ian Campbell [Tue, 2 Dec 2014 12:11:47 +0000 (12:11 +0000)]
libvirt: Implement shutdown_wait

virsh does not include a --wait option to shutdown as xl and xm do, so
we implement it by hand.

Needs new guest_await_destroy helper. Note the guest_await_shutdown
requires on_shutdown='preserve'

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
10 years agolibvirt: Implement initscript restart which has some hope of working.
Ian Campbell [Mon, 1 Dec 2014 14:36:33 +0000 (14:36 +0000)]
libvirt: Implement initscript restart which has some hope of working.

... by refactoring start/stop actions into the functions which are
expected by restart.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
10 years agoToolstack: Refactor save/restore support
Ian Campbell [Mon, 1 Dec 2014 16:34:39 +0000 (16:34 +0000)]
Toolstack: Refactor save/restore support

Use $gho->{CfgPath} rather than constructing it again.

Still stubbed out for libvirt.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
10 years agoToolstack: Refactor migration support.
Ian Campbell [Fri, 28 Nov 2014 17:35:09 +0000 (17:35 +0000)]
Toolstack: Refactor migration support.

Note that since the previous patch arranges for
ts-migration-support-check to continue to fail for libvirt the libvirt
code is not actually called yet (and will die if it is). This patch is
mainly included to reduce the number of users of
toolstack()->{Command} closer to zero.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
10 years agoToolstack: Refactor migration support check.
Ian Campbell [Mon, 16 Jun 2014 16:41:38 +0000 (17:41 +0100)]
Toolstack: Refactor migration support check.

Not implemented for libvirt (the check itself that is, the hook is
present).

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
10 years agoToolstack: Refactor shutdown support
Ian Campbell [Mon, 16 Jun 2014 16:48:57 +0000 (17:48 +0100)]
Toolstack: Refactor shutdown support

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
10 years agoToolstack: Refactor consolecmd handling
Ian Campbell [Mon, 16 Jun 2014 16:46:32 +0000 (17:46 +0100)]
Toolstack: Refactor consolecmd handling

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
10 years agoToolstack: Refactor guest lifecycle.
Ian Campbell [Mon, 16 Jun 2014 15:46:40 +0000 (16:46 +0100)]
Toolstack: Refactor guest lifecycle.

Implement destory/create as per toolstack methods, including
implementing the libvirt version which previously didn't work. To do
this we use the virsh capability to convert an xl/xm style config file
into the correct XML.

xend basically calls into the xl helper since they are compatible.

xl/xm, uses ->{Command} which will eventually become private.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
10 years agoTestSupport: guest_create and guest_destroy take only a $gho.
Ian Campbell [Mon, 16 Jun 2014 16:30:48 +0000 (17:30 +0100)]
TestSupport: guest_create and guest_destroy take only a $gho.

The host can be looked up from $gho->{Host} and the toolstack can be
looked up from the host.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
10 years agoTestSupport: always use xl for generic operations.
Ian Campbell [Mon, 16 Jun 2014 12:29:13 +0000 (13:29 +0100)]
TestSupport: always use xl for generic operations.

Unless the toolstack is xend (for compatibility with pre-xl Xen
versions), when we use xm.

For several operations in TestSupport.pm the actual toolstack isn't
really relevant, since we want info straight from Xen. For simplicity
just use xl (or xm) in these cases, to avoid needing to implement the
following specially for each toolstack:
  - host_get_free_memory
  - guest_get_state
  - guest_find_domid
  - listing assignable pci devices

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
10 years agoToolstack: use get_host_method_object() to manage toolstack selection
Ian Campbell [Mon, 16 Jun 2014 08:18:35 +0000 (09:18 +0100)]
Toolstack: use get_host_method_object() to manage toolstack selection

This will allow us to more easily have per-toolstack methods etc.

The previous hash of toolstack parameters is now a blessed object. For
now the callers don't need to change but over the following patches we
will refactor things to use method calls. In particular we will be
aiming to remove Command from the hash and use method calls for
everything.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
10 years agots-rumpuserxen-demo-xenstorels: Use standard functions for things
Ian Campbell [Mon, 1 Dec 2014 16:26:34 +0000 (16:26 +0000)]
ts-rumpuserxen-demo-xenstorels: Use standard functions for things

Specifically guest_create and guest_find_domid.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
10 years agoPass host to toolstack()
Ian Campbell [Mon, 16 Jun 2014 12:00:14 +0000 (13:00 +0100)]
Pass host to toolstack()

This will be needed in a future patch.

Everywhere already has a $ho in hand. Also cache the answer as
$ho->{Toolstack}.

I scanned the source with:
    find -name \*.pm -exec perl -c {} \;
    for i in ts-* ; do perl -c $i; done
which reported "Not enough arguments for Osstest::TestSupport::toolstack"
for each callsite which needed changing.

Also don't pass the toolstack command name directly to
host_get_free_memory().  Look it up instead.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
10 years agots-logs-capture: Collect some libvirt logs and capabilities
Ian Campbell [Mon, 16 Jun 2014 16:15:43 +0000 (17:15 +0100)]
ts-logs-capture: Collect some libvirt logs and capabilities

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
10 years agoapt: lock osstest's usages of apt-get against each other
Ian Campbell [Tue, 15 Apr 2014 10:39:32 +0000 (11:39 +0100)]
apt: lock osstest's usages of apt-get against each other

Currently we rely on all apt-get invocations being in a single
ts-xen-build-prep job which can't run on a shared host.

That is a bit inflexible so instead use our own lock. We wait
indefinitely and rely on osstest's existing command timeout
infrastructure to catch problems.

target_install_packages*() previous estimated the time taken to
install the packages based on the number of packages. This no longer
applies because the install might get stuck behind some other large
install. Use a 3000s (nearly an hour) timeout instead (I expect
failures here to be unusual so erred on the big side)

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
10 years agoTestSupport: Add helper to wait for a guest to shutdown
Ian Campbell [Fri, 7 Feb 2014 12:41:28 +0000 (12:41 +0000)]
TestSupport: Add helper to wait for a guest to shutdown

Refactor the guts of guest_await_reboot into a helper and use for both
shutdown and reboot handling.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
10 years agots-hosts-allocate-Executive: Fix an undefined warning
Ian Jackson [Thu, 29 Jan 2015 12:49:48 +0000 (12:49 +0000)]
ts-hosts-allocate-Executive: Fix an undefined warning

$esrow is autovivified as { } by
            $candrow->{EquivMostRecentStatus} = $esrow->{status}
so use %$esrow which in scalar context is true iff the
hash is nonempty.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
10 years agolinux-3.16: New branch
Ian Jackson [Mon, 26 Jan 2015 18:05:11 +0000 (18:05 +0000)]
linux-3.16: New branch

Test this too.  We fetch this from the Canonical Kernel Team (ckt)
repo, but do not encode `ckt' in the branch name, in case this becomes
a proper stable tree.

(I have set up this branch on the osstest with the mg-branch-setup
script in this version of this tree.)

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
10 years agomg-branch-setup: New script
Ian Jackson [Mon, 26 Jan 2015 18:05:10 +0000 (18:05 +0000)]
mg-branch-setup: New script

Also, update the README.dev accordingly

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
10 years agoap-common: Have ap-push for linux trees use refs/heads/
Ian Jackson [Mon, 26 Jan 2015 18:05:09 +0000 (18:05 +0000)]
ap-common: Have ap-push for linux trees use refs/heads/

As per the docs in README.dev.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
10 years agoDebian: Handle systems where u-boot includes 0x on $filesize flight-33915 flight-33957 flight-33958 flight-33959 flight-33960 flight-33962 flight-33969 flight-33974 flight-33982 flight-33986 flight-33987 flight-33988 flight-33991 flight-33992 flight-33993 flight-33994 flight-33995 flight-34001 flight-34002 flight-34003 flight-34004 flight-34005 flight-34006 flight-34007 flight-34008 flight-34009 flight-34011 flight-34018 flight-34020 flight-34021 flight-34022 flight-34023 flight-34024 flight-34025 flight-34026 flight-34027 flight-34028 flight-34029 flight-34030 flight-34031 flight-34032 flight-34033 flight-34034 flight-34035 flight-34036 flight-34037 flight-34038 flight-34039 flight-34040 flight-34041 flight-34042 flight-34043 flight-34044 flight-34045 flight-34046 flight-34047 flight-34048 flight-34049 flight-34050 flight-34051 flight-34052 flight-34053 flight-34054 flight-34056 flight-34057 flight-34058 flight-34060 flight-34061 flight-34063 flight-34064 flight-34066 flight-34068 flight-34069 flight-34070 flight-34071 flight-34072 flight-34073 flight-34074 flight-34075 flight-34076 flight-34077 flight-34082 flight-34083 flight-34085 flight-34087 flight-34088 flight-34089 flight-34090 flight-34091 flight-34092 flight-34093 flight-34094 flight-34095 flight-34096 flight-34097 flight-34098 flight-34099 flight-34100 flight-34101 flight-34102 flight-34103 flight-34104 flight-34105 flight-34106 flight-34107 flight-34108 flight-34109 flight-34110 flight-34111 flight-34112 flight-34113 flight-34115 flight-34116 flight-34117 flight-34118 flight-34119 flight-34120 flight-34121 flight-34122 flight-34123 flight-34124 flight-34125 flight-34126 flight-34127 flight-34128 flight-34129 flight-34130 flight-34131 flight-34132 flight-34133 flight-34134 flight-34135 flight-34136 flight-34137 flight-34138 flight-34139 flight-34140 flight-34141 flight-34142 flight-34143 flight-34146 flight-34147 flight-34148 flight-34150 flight-34151 flight-34153 flight-34154 flight-34156 flight-34157 flight-34158 flight-34159 flight-34160 flight-34161 flight-34162 flight-34163 flight-34164 flight-34165 flight-34166
Ian Campbell [Thu, 29 Jan 2015 11:37:39 +0000 (11:37 +0000)]
Debian: Handle systems where u-boot includes 0x on $filesize

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
10 years agoREADME.dev: Document the usage of stop files flight-33818 flight-33841 flight-33887 flight-33888
Ian Campbell [Fri, 23 Jan 2015 15:34:51 +0000 (15:34 +0000)]
README.dev: Document the usage of stop files

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
10 years agoREADME.dev: Document how to do a force push.
Ian Campbell [Tue, 6 Jan 2015 13:51:17 +0000 (13:51 +0000)]
README.dev: Document how to do a force push.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
10 years agoAdd a flight to test OVMF master branch
Wei Liu [Mon, 12 Jan 2015 17:15:32 +0000 (17:15 +0000)]
Add a flight to test OVMF master branch

Do the usual stuffs for adding a new branch (ap-* cr-* etc).

Modify ts-xen-build so that it builds Xen with the specified ovmf tree
and revision.

Only build and test on x86 by modifying make-flight and mfi-common.

New branch is added to cr-daily-branch. It exports the tree and
changeset used for the test if set. Otherwise the values in Config.mk
are used.

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
10 years agomake-flight: reorganize scheduling related test jobs
Dario Faggioli [Thu, 8 Jan 2015 17:47:02 +0000 (18:47 +0100)]
make-flight: reorganize scheduling related test jobs

Scheduling related tests are ok to run on ARM, so do
not cut them off. They also do not depend on a
particular Dom0 architecture.

The net effect is that the following tests are removed:
 test-amd64-i386-xl-credit2
 test-amd64-i386-xl-multivcpu

while the following new ones are created:
 test-amd64-amd64-xl-credit2
 test-amd64-amd64-xl-multivcpu
 test-armhf-armhf-xl-credit2
 test-armhf-armhf-xl-multivcpu
 test-armhf-armhf-xl-sedf
 test-armhf-armhf-xl-sedf-pin

Signed-off-by: Dario Faggioli <dario.faggioli@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
10 years agoSwitch ARM testing back to linux-arm-xen branch.
Ian Campbell [Thu, 22 Jan 2015 15:53:35 +0000 (15:53 +0000)]
Switch ARM testing back to linux-arm-xen branch.

The cubietruck and arndale boards need a newer kernel than our current
baseline of 3.14. Therefore switch all ARM testing to the
linux-arm-kernel branch which has been moved up to test v3.16.

This effectively reverts commit 38b2fe2020883 "Switch armhf to use
common default Linux."

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
10 years agoDebian: create boot.scr.nat when installing Xen on u-boot.
Ian Campbell [Thu, 22 Jan 2015 11:05:07 +0000 (11:05 +0000)]
Debian: create boot.scr.nat when installing Xen on u-boot.

This boots the kernel we've build natively, where boot.xen boots Xen
and boot.deb boots the original Debian kernel.

Sometimes convenient when debugging issues.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
10 years agoTestSupport: replace power_cycle_timeout with power_cycle_sleep
Ian Campbell [Thu, 22 Jan 2015 11:05:06 +0000 (11:05 +0000)]
TestSupport: replace power_cycle_timeout with power_cycle_sleep

Which does the actual sleep and logs that it is doing so.

Otherwise on a machine which has a longish PowerCycleTime I keep
wondering why osstest has hung...

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
10 years agoDebian: Create boot.scr with a suffix and copy to boot.scr
Ian Campbell [Thu, 22 Jan 2015 11:05:05 +0000 (11:05 +0000)]
Debian: Create boot.scr with a suffix and copy to boot.scr

This ensures that we always have a boot script to boot at least the
native Debian kernel and Xen available, even after multiple iterations
of installation, which is handy when debugging a system.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
10 years agots-kernel-build: Adjust kernel .config to work on the arndale boards.
Ian Campbell [Thu, 22 Jan 2015 11:05:04 +0000 (11:05 +0000)]
ts-kernel-build: Adjust kernel .config to work on the arndale boards.

Various drivers are missing from multi_v7_defconfig in v3.16, also
some drivers which don't play nice are enabled by default, so remove
them.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
10 years agoOsstest/Debian: Add 0x prefix to $filesize
Ian Campbell [Thu, 22 Jan 2015 11:05:03 +0000 (11:05 +0000)]
Osstest/Debian: Add 0x prefix to $filesize

$filesize is an unprefixed hex number, but fdt set requires the 0x to
interpret it properly. See
http://lists.denx.de/pipermail/u-boot/2014-October/193622.html,
http://lists.denx.de/pipermail/u-boot/2014-November/194150.html and
http://lists.denx.de/pipermail/u-boot/2014-November/194150.html.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
10 years agoOsstest/Debian: Add "clk_ignore_unused" to default command line
Ian Campbell [Thu, 22 Jan 2015 11:05:02 +0000 (11:05 +0000)]
Osstest/Debian: Add "clk_ignore_unused" to default command line

dom0 is not aware that some clocks are actually in use (e.g. by the
hypervisor), so this stops the kernel from messing with (specifically,
disabling) those clocks. It's harmless even when not needed.

Really there ought to be some interface to communicate this from Xen
to dom0, or some other mechanism to gate things. See
http://bugs.xenproject.org/xen/bug/45

This bug is present in at least Wheezy and Jessie so apply this
workaround to those.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
10 years agoOsstest/Debian: Remove hardcoded addresses from boot.scr
Ian Campbell [Thu, 22 Jan 2015 11:05:01 +0000 (11:05 +0000)]
Osstest/Debian: Remove hardcoded addresses from boot.scr

Those are specific to the midway platform.

This depends on a change to the hostdb to add "0x01000000" as the
value of a new UBootSetXenAddrR property of the midway machines.

Most platforms will need something similar. For both cubietruck and
arndale 0x41000000.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
10 years agoOsstest/Debian: support adding a rootdelay property to bootargs
Ian Campbell [Thu, 22 Jan 2015 11:05:00 +0000 (11:05 +0000)]
Osstest/Debian: support adding a rootdelay property to bootargs

arndale appears to be quite slow (and asynchronous) at finding it's
scsi controller. rootdelay=3 seems to do the trick.

For the dom0 case this involved refactoring the existing provision of
the commandline to be less open-coded in the boot script here doc.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
10 years agoOsstest/Debian.pm: Refactor common kernel cmdline setup.
Ian Campbell [Thu, 22 Jan 2015 11:04:59 +0000 (11:04 +0000)]
Osstest/Debian.pm: Refactor common kernel cmdline setup.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
10 years agoOsstest/Debian: Refactor setting of dom0 kernel command line.
Ian Campbell [Thu, 22 Jan 2015 11:04:58 +0000 (11:04 +0000)]
Osstest/Debian: Refactor setting of dom0 kernel command line.

This will make it easier to make components optional in the future.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
10 years agoOsstest/Debian: Support for loading an FDT from u-boot script
Ian Campbell [Thu, 22 Jan 2015 11:04:57 +0000 (11:04 +0000)]
Osstest/Debian: Support for loading an FDT from u-boot script

The currently supported platform provides an FDT preloaded at 0x1000.
Replace this with ${fdt_addr} (which the current platform exposes) and
for platforms which do not provide an fdt arrange to load the relevant
file as named in the ${fdtfile} (which is conventionally provided by
u-boot for platforms which need this).

Drop some random memory clearing rune, I've no idea what the intended
purpose was, 0x800000 doesn't correspond to any $foo_addr_r on the
midway systems for example.

Also get rid of the scsi scan which must necessarily have already
happened (since the boot.scr itselfs lives on a scsi drive).

Lastly, add some echos to show progress through the script, as an aid
to debugging.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
10 years agoOsstest/Debian: Install dtbs into target filesystem in /boot/dtbs
Ian Campbell [Thu, 22 Jan 2015 11:04:56 +0000 (11:04 +0000)]
Osstest/Debian: Install dtbs into target filesystem in /boot/dtbs

This is done whenever dtbs.tar.gz exists. mg-debian-installer-update
produces the necessary inputs on the relevant platform (armhf).

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
10 years agoOsstest/PDU: Add eth008.pm method to control the ARM rack PDU
Ian Campbell [Thu, 22 Jan 2015 11:04:55 +0000 (11:04 +0000)]
Osstest/PDU: Add eth008.pm method to control the ARM rack PDU

This controls the eth008 relay board:
http://www.robot-electronics.co.uk/htm/eth008tech.htm

Due to the use of the CGI interface this requires firmware version 4+.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
10 years agomake-flight: Run a basic test on each arm platform
Ian Campbell [Thu, 22 Jan 2015 11:04:54 +0000 (11:04 +0000)]
make-flight: Run a basic test on each arm platform

Unlike x86 there is enough variation in the ARM platforms that it is
worth having a basic test on each as part of a standard run. This
relies on each host having an appropriate platform-$platform host
flag.

The existing test-ARCH-ARCH-xl test is retained as a floating test,
while a new variant is added for each distinct platform present in the
hostdb which is tied to that platform type. The intention is that only
arm platforms will have platforms at first, although perhaps
platform-intel and platform-amd could be added in the future too.

There are currently no platform-* flags in the hostdb, so tested with
s/platform-/equiv-/ and:

  ( set -ex ;
    source ./cri-getplatforms ;
    blessing=real ;
    export OSSTEST_CONFIG=production-config ;
    for p in '' `getplatforms "armhf"` ; do
      set +x ;
      echo PLATFORM: $p ;
    done
  )
which prints:
  PLATFORM:
  PLATFORM: marilith
and with s/armhf/amd64/:
  PLATFORM:
  PLATFORM: rackservers-s40670
  PLATFORM: r310-moth
  PLATFORM: rackservers-s40680
  PLATFORM: dell-r310
  PLATFORM: rackservers-s40679
  PLATFORM: rackservers-s40663
  PLATFORM: rackservers-q21011

Also tested in standalone mode with a ~/.xen-osstest/config
containing:

  PlatformsArmhf midway cubietruck arndale

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
10 years agoTftpDiVersion 2015-01-10 flight-33362 flight-33400 flight-33417 flight-33418 flight-33419 flight-33420 flight-33421 flight-33422 flight-33423 flight-33424 flight-33425 flight-33426 flight-33427 flight-33428 flight-33429 flight-33430 flight-33431 flight-33432 flight-33433 flight-33434 flight-33435 flight-33436 flight-33437 flight-33438 flight-33439 flight-33440 flight-33441 flight-33442 flight-33443 flight-33444 flight-33445 flight-33446 flight-33447 flight-33448 flight-33449 flight-33450 flight-33451 flight-33452 flight-33453 flight-33454 flight-33455 flight-33456 flight-33457 flight-33458 flight-33459 flight-33460 flight-33461 flight-33462 flight-33463 flight-33464 flight-33465 flight-33466 flight-33467 flight-33468 flight-33469 flight-33470 flight-33471 flight-33472 flight-33473 flight-33474 flight-33475 flight-33476 flight-33477 flight-33478 flight-33479 flight-33480 flight-33481 flight-33482 flight-33483 flight-33484 flight-33485 flight-33486 flight-33487 flight-33488 flight-33489 flight-33490 flight-33491 flight-33492 flight-33493 flight-33494 flight-33495 flight-33496 flight-33497 flight-33498 flight-33499 flight-33500 flight-33501 flight-33502 flight-33503 flight-33504 flight-33505 flight-33506 flight-33507 flight-33508 flight-33509 flight-33510 flight-33511 flight-33512 flight-33513 flight-33514 flight-33515 flight-33516 flight-33517 flight-33518 flight-33519 flight-33520 flight-33521 flight-33522 flight-33523 flight-33524 flight-33525 flight-33526 flight-33527 flight-33528 flight-33529 flight-33530 flight-33531 flight-33532 flight-33533 flight-33534 flight-33535 flight-33536 flight-33537 flight-33538 flight-33539 flight-33540 flight-33541 flight-33542 flight-33543 flight-33544 flight-33545 flight-33546 flight-33547 flight-33548 flight-33549 flight-33550 flight-33551 flight-33552 flight-33553 flight-33554 flight-33555 flight-33556 flight-33557 flight-33558 flight-33559 flight-33560 flight-33561 flight-33562 flight-33563 flight-33564 flight-33565 flight-33566 flight-33567 flight-33568 flight-33569 flight-33570 flight-33571 flight-33572 flight-33573 flight-33574 flight-33575 flight-33576 flight-33577 flight-33578 flight-33579 flight-33580 flight-33581 flight-33582 flight-33583 flight-33584 flight-33585 flight-33586 flight-33587 flight-33588 flight-33589 flight-33590 flight-33591 flight-33592 flight-33593 flight-33594 flight-33595 flight-33596 flight-33597 flight-33598 flight-33599 flight-33600 flight-33601 flight-33602 flight-33603 flight-33604 flight-33605 flight-33606 flight-33607 flight-33608 flight-33609 flight-33610 flight-33611 flight-33612 flight-33613 flight-33614 flight-33615 flight-33616 flight-33617 flight-33618 flight-33619 flight-33620 flight-33621 flight-33622 flight-33623 flight-33624 flight-33625 flight-33626 flight-33627 flight-33628 flight-33629 flight-33630 flight-33631 flight-33632 flight-33633 flight-33634 flight-33635 flight-33636 flight-33637 flight-33638 flight-33639 flight-33640 flight-33641 flight-33642 flight-33643 flight-33644 flight-33645 flight-33646 flight-33647 flight-33648 flight-33649 flight-33650 flight-33651 flight-33652 flight-33653 flight-33654 flight-33655 flight-33656 flight-33657 flight-33658 flight-33659 flight-33660 flight-33661 flight-33662 flight-33663 flight-33664 flight-33665 flight-33666 flight-33667 flight-33668 flight-33669 flight-33670 flight-33671 flight-33672 flight-33673 flight-33674 flight-33675 flight-33676 flight-33677 flight-33678 flight-33679 flight-33680 flight-33681 flight-33682 flight-33685 flight-33687 flight-33688 flight-33689 flight-33690 flight-33691 flight-33692 flight-33693 flight-33694 flight-33695 flight-33696 flight-33697 flight-33698 flight-33699 flight-33700 flight-33701 flight-33702 flight-33703 flight-33704 flight-33705 flight-33706 flight-33707 flight-33708 flight-33709 flight-33710 flight-33711 flight-33712 flight-33713 flight-33714 flight-33715 flight-33716 flight-33717 flight-33718 flight-33719 flight-33720 flight-33721 flight-33722 flight-33723 flight-33724 flight-33725 flight-33726 flight-33727 flight-33728 flight-33729 flight-33730 flight-33731 flight-33732 flight-33733 flight-33734 flight-33735 flight-33736 flight-33737 flight-33738 flight-33739 flight-33740 flight-33741 flight-33742 flight-33743 flight-33744 flight-33745 flight-33746 flight-33747 flight-33748 flight-33749 flight-33750 flight-33751 flight-33752 flight-33753 flight-33754 flight-33755 flight-33756 flight-33757 flight-33758 flight-33759 flight-33760 flight-33761 flight-33762 flight-33763 flight-33764 flight-33765 flight-33766 flight-33767 flight-33768 flight-33769 flight-33770 flight-33771 flight-33772 flight-33773 flight-33774 flight-33775 flight-33776 flight-33777 flight-33778 flight-33779 flight-33780 flight-33781 flight-33782 flight-33783 flight-33784 flight-33785 flight-33786 flight-33787 flight-33788 flight-33789 flight-33790 flight-33791 flight-33792 flight-33793 flight-33794 flight-33795 flight-33796 flight-33797 flight-33798 flight-33799 flight-33800 flight-33801 flight-33802 flight-33803 flight-33804 flight-33805 flight-33806 flight-33807 flight-33808 flight-33809 flight-33810 flight-33811 flight-33812 flight-33813 flight-33814 flight-33815 flight-33816 flight-33817 flight-33819 flight-33820 flight-33821 flight-33822 flight-33823 flight-33824 flight-33825 flight-33826 flight-33827 flight-33828 flight-33829 flight-33830 flight-33831 flight-33832 flight-33833 flight-33834 flight-33835 flight-33836 flight-33837 flight-33838 flight-33839 flight-33840 flight-33842 flight-33843 flight-33844 flight-33845 flight-33846 flight-33847 flight-33848 flight-33849 flight-33850 flight-33851 flight-33852 flight-33853 flight-33854 flight-33855 flight-33856 flight-33857 flight-33858 flight-33859 flight-33860 flight-33861 flight-33862 flight-33863 flight-33864 flight-33865 flight-33866 flight-33867 flight-33868 flight-33869 flight-33870 flight-33871 flight-33872 flight-33873 flight-33874 flight-33875 flight-33876 flight-33877 flight-33878 flight-33879 flight-33880 flight-33881 flight-33882 flight-33883 flight-33884 flight-33885 flight-33886 flight-33889 flight-33890 flight-33891 flight-33892 flight-33893 flight-33894 flight-33895 flight-33896 flight-33897 flight-33898 flight-33899 flight-33900 flight-33901 flight-33902 flight-33903 flight-33904 flight-33905 flight-33906 flight-33907 flight-33908 flight-33909 flight-33910 flight-33911 flight-33912 flight-33913 flight-33914 flight-33916 flight-33917 flight-33918 flight-33919 flight-33920 flight-33921 flight-33922 flight-33923 flight-33924 flight-33925 flight-33926 flight-33927 flight-33928 flight-33929 flight-33930 flight-33931 flight-33932 flight-33934 flight-33935 flight-33939 flight-33940 flight-33941 flight-33943 flight-33944 flight-33946 flight-33947 flight-33948 flight-33949 flight-33950 flight-33952 flight-33954 flight-33955 flight-33956
Ian Campbell [Sat, 10 Jan 2015 16:01:00 +0000 (16:01 +0000)]
TftpDiVersion 2015-01-10

Picks up updated kernel + installer from Debian 7.8 point release.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
10 years agomg-debian-installer-update: produce deterministic output
Ian Campbell [Sat, 10 Jan 2015 14:58:02 +0000 (14:58 +0000)]
mg-debian-installer-update: produce deterministic output

Currently rerunning mg-debian-install-update when the external files
have changed still produces differences in the local files produced
during post-processing.

Avoid these differences by:

  - Using gzip -n, which avoids storing a timestamp in the gzip
    header (as well as the name, which we don't need).
  - Using pax -M norm, which normalises all timestamps (among other
    things, such as the owner, which we don't care about)
  - Using tar --mtime, with a reference within the dpkg-deb created
    hierarchy (which has timestamps from the package and is therefore
    dependent only on the downloaded package revision)

With this the results of two invocations of
mg-debian-installer-update(-all) are identical (assuming no changes to
the downloaded files) as demonstrated by runnign this quick hack:

#!/bin/bash

set -ex

TMP=$HOME/tmp/mg-di
rm -rf $TMP
mkdir -p $TMP

cat >$TMP/config <<EOF
TftpPath $TMP
TftpDiBase debian-installer
EOF
cat $TMP/config

mkdir -p $TMP/debian-installer

export OSSTEST_CONFIG=production-config:$TMP/config

# ./mg-debian-installer-update wheezy armhf firmware-bnx2
./mg-debian-installer-update-all

find $TMP/debian-installer -type f -print0 | xargs -0x md5sum > $TMP/SUMS.BASE

#rm -rf $TMP/debian-installer/*
mv $TMP/debian-installer $TMP/debian-installer.org
mkdir -p $TMP/debian-installer

# ./mg-debian-installer-update wheezy armhf firmware-bnx2
./mg-debian-installer-update-all
md5sum --quiet -c $TMP/SUMS.BASE

exit 0

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
10 years agoEmpty commit to force push gate run flight-33275 flight-33320 flight-33363 flight-33364 flight-33365 flight-33366 flight-33367 flight-33368 flight-33369 flight-33370 flight-33371 flight-33372 flight-33373 flight-33374 flight-33375 flight-33376 flight-33377 flight-33378 flight-33379 flight-33380 flight-33381 flight-33382 flight-33383 flight-33384 flight-33385 flight-33386 flight-33387 flight-33388 flight-33389 flight-33390 flight-33391 flight-33392 flight-33393 flight-33394 flight-33395 flight-33396 flight-33397 flight-33398 flight-33399 flight-33401 flight-33402 flight-33403 flight-33404 flight-33405 flight-33406 flight-33407 flight-33408 flight-33409 flight-33410 flight-33411 flight-33412 flight-33413 flight-33414 flight-33415 flight-33416
Ian Jackson [Tue, 6 Jan 2015 17:59:31 +0000 (17:59 +0000)]
Empty commit to force push gate run

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
10 years agocr-for-branches: Branches for Xen 4.5 flight-33194 flight-33195 flight-33196 flight-33197 flight-33198 flight-33199 flight-33200 flight-33201 flight-33202 flight-33203 flight-33204 flight-33205 flight-33206 flight-33207 flight-33208 flight-33209 flight-33210 flight-33211 flight-33212 flight-33213 flight-33214 flight-33215 flight-33216 flight-33217 flight-33218 flight-33219 flight-33220 flight-33221 flight-33222 flight-33223 flight-33224 flight-33225 flight-33226 flight-33227 flight-33228 flight-33229 flight-33230 flight-33231 flight-33232 flight-33233 flight-33234 flight-33235 flight-33236 flight-33237 flight-33238 flight-33239 flight-33240 flight-33241 flight-33242 flight-33243 flight-33244 flight-33245 flight-33246 flight-33247 flight-33248 flight-33250 flight-33251 flight-33252 flight-33253 flight-33254 flight-33255 flight-33256 flight-33257 flight-33258 flight-33259 flight-33260 flight-33261 flight-33262 flight-33263 flight-33264 flight-33266 flight-33267 flight-33268 flight-33269 flight-33270 flight-33271 flight-33272 flight-33273 flight-33274 flight-33276 flight-33277 flight-33278 flight-33279 flight-33280 flight-33281 flight-33282 flight-33283 flight-33284 flight-33285 flight-33286 flight-33287 flight-33288 flight-33289 flight-33290 flight-33291 flight-33292 flight-33293 flight-33294 flight-33295 flight-33296 flight-33297 flight-33298 flight-33299 flight-33300 flight-33301 flight-33302 flight-33303 flight-33304 flight-33305 flight-33306 flight-33307 flight-33308 flight-33309 flight-33310 flight-33311 flight-33312 flight-33313 flight-33314 flight-33315 flight-33316 flight-33317 flight-33318 flight-33319 flight-33321 flight-33322 flight-33323 flight-33324 flight-33325 flight-33326 flight-33327 flight-33328 flight-33329 flight-33330 flight-33331 flight-33332 flight-33333 flight-33334 flight-33335 flight-33336 flight-33337 flight-33338 flight-33339 flight-33340 flight-33341 flight-33342 flight-33343 flight-33344 flight-33345 flight-33346 flight-33347 flight-33348 flight-33349 flight-33350 flight-33351 flight-33352 flight-33353 flight-33354 flight-33355 flight-33356 flight-33357 flight-33358 flight-33359 flight-33360 flight-33361
Ian Jackson [Tue, 6 Jan 2015 15:46:32 +0000 (15:46 +0000)]
cr-for-branches: Branches for Xen 4.5

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
10 years agots-libvirt-build: use Osstest::BuildSupport::submodulefixup flight-33126 flight-33182 flight-33183 flight-33184 flight-33185 flight-33186 flight-33187 flight-33188 flight-33189 flight-33190 flight-33191 flight-33192 flight-33193
Ian Campbell [Mon, 5 Jan 2015 12:57:08 +0000 (12:57 +0000)]
ts-libvirt-build: use Osstest::BuildSupport::submodulefixup

Instead of cloning gnulib manually which can break if upstream gnulib
gets ahead of libvirt.git (which applies patches on the fly etc). By
using submodulefixup we automatically DTRT and use the version of
gnulib specified by the libvirt.git submodule metadata, but with a
runvar override if necessary.

This also removes a whole bunch of faffing in ap-*, cr-daily-branch
and mfi-common to get the version of gnulib to use, which was always a
bit of a wart (ungated for one thing...).

We continue to use --no-git and GNULIB_SRCDIR because otherwise
autogen.sh (via bootstrap) will force its own version, overwriting
what submodulefixup has done. For this we need a way to get the hash
representing the module, so introduce submodule_find (and rework
submodule_have in terms of it).

Tested in standalone mode with build-amd64-libvirt and
build-amd64-rumpuserxen (because I touched submodule_have, AFAICT the
bodges were not run). The libvirt build was tested both with the
automatic revisions and with:
    revision_libvirt=2360fe5d24175835d3f5fd1c7e8e6e13addab629
    revision_libvirt_gnulib=16518d9ed8f25d3e53931dd1aa343072933e4604
(used in successful libvirt flight 32648), in both cases confirming
that the build used the desired versions.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Jackson <ian.jackson@citrix.com>
---
v2: Honour revision_libvirt_gnulib.
v3: Fix submodule_have, defined(&sub) is always true because defined
    is special wrt &sub.

10 years agoTftpDiVersion 2014-12-14 flight-32427 flight-32454 flight-32514 flight-32515 flight-32516 flight-32517 flight-32518 flight-32519 flight-32520 flight-32521 flight-32522 flight-32523 flight-32524 flight-32525 flight-32526 flight-32527 flight-32528 flight-32529 flight-32530 flight-32531 flight-32533 flight-32534 flight-32535 flight-32536 flight-32537 flight-32538 flight-32539 flight-32540 flight-32541 flight-32542 flight-32543 flight-32544 flight-32545 flight-32546 flight-32547 flight-32548 flight-32549 flight-32550 flight-32551 flight-32552 flight-32553 flight-32554 flight-32555 flight-32556 flight-32557 flight-32558 flight-32560 flight-32561 flight-32562 flight-32563 flight-32564 flight-32565 flight-32566 flight-32567 flight-32568 flight-32569 flight-32570 flight-32571 flight-32572 flight-32573 flight-32574 flight-32575 flight-32576 flight-32577 flight-32578 flight-32579 flight-32580 flight-32581 flight-32582 flight-32583 flight-32584 flight-32585 flight-32586 flight-32587 flight-32588 flight-32589 flight-32590 flight-32591 flight-32592 flight-32593 flight-32594 flight-32595 flight-32596 flight-32597 flight-32598 flight-32599 flight-32600 flight-32601 flight-32602 flight-32603 flight-32604 flight-32605 flight-32606 flight-32607 flight-32608 flight-32609 flight-32610 flight-32611 flight-32612 flight-32613 flight-32614 flight-32615 flight-32616 flight-32617 flight-32618 flight-32619 flight-32620 flight-32621 flight-32622 flight-32623 flight-32624 flight-32625 flight-32626 flight-32627 flight-32628 flight-32629 flight-32630 flight-32631 flight-32632 flight-32633 flight-32634 flight-32635 flight-32636 flight-32637 flight-32638 flight-32639 flight-32640 flight-32641 flight-32642 flight-32643 flight-32644 flight-32645 flight-32646 flight-32647 flight-32648 flight-32649 flight-32650 flight-32651 flight-32652 flight-32653 flight-32654 flight-32655 flight-32656 flight-32657 flight-32658 flight-32659 flight-32660 flight-32661 flight-32662 flight-32663 flight-32664 flight-32665 flight-32666 flight-32667 flight-32668 flight-32669 flight-32670 flight-32671 flight-32672 flight-32673 flight-32674 flight-32675 flight-32676 flight-32677 flight-32678 flight-32679 flight-32680 flight-32681 flight-32682 flight-32683 flight-32684 flight-32685 flight-32686 flight-32687 flight-32688 flight-32689 flight-32690 flight-32691 flight-32692 flight-32693 flight-32694 flight-32695 flight-32696 flight-32697 flight-32698 flight-32699 flight-32700 flight-32701 flight-32702 flight-32703 flight-32704 flight-32705 flight-32706 flight-32707 flight-32708 flight-32709 flight-32710 flight-32711 flight-32712 flight-32713 flight-32714 flight-32715 flight-32716 flight-32717 flight-32718 flight-32719 flight-32720 flight-32721 flight-32722 flight-32723 flight-32724 flight-32725 flight-32726 flight-32727 flight-32728 flight-32733 flight-32746 flight-32747 flight-32748 flight-32749 flight-32750 flight-32751 flight-32752 flight-32753 flight-32754 flight-32755 flight-32756 flight-32757 flight-32758 flight-32759 flight-32760 flight-32761 flight-32762 flight-32763 flight-32764 flight-32765 flight-32766 flight-32767 flight-32768 flight-32769 flight-32770 flight-32771 flight-32772 flight-32773 flight-32774 flight-32775 flight-32776 flight-32777 flight-32778 flight-32779 flight-32780 flight-32781 flight-32782 flight-32783 flight-32784 flight-32785 flight-32786 flight-32787 flight-32788 flight-32789 flight-32790 flight-32791 flight-32792 flight-32793 flight-32794 flight-32795 flight-32796 flight-32797 flight-32798 flight-32799 flight-32800 flight-32801 flight-32802 flight-32803 flight-32804 flight-32805 flight-32806 flight-32807 flight-32808 flight-32809 flight-32810 flight-32811 flight-32812 flight-32813 flight-32814 flight-32815 flight-32816 flight-32817 flight-32818 flight-32819 flight-32820 flight-32821 flight-32822 flight-32823 flight-32824 flight-32825 flight-32826 flight-32827 flight-32828 flight-32829 flight-32830 flight-32831 flight-32832 flight-32833 flight-32834 flight-32835 flight-32836 flight-32837 flight-32838 flight-32839 flight-32840 flight-32841 flight-32842 flight-32843 flight-32844 flight-32845 flight-32846 flight-32847 flight-32848 flight-32849 flight-32850 flight-32851 flight-32852 flight-32853 flight-32854 flight-32855 flight-32856 flight-32857 flight-32858 flight-32859 flight-32860 flight-32861 flight-32862 flight-32864 flight-32865 flight-32866 flight-32867 flight-32868 flight-32869 flight-32870 flight-32871 flight-32872 flight-32873 flight-32874 flight-32875 flight-32876 flight-32877 flight-32878 flight-32879 flight-32880 flight-32881 flight-32882 flight-32883 flight-32884 flight-32885 flight-32886 flight-32887 flight-32888 flight-32889 flight-32890 flight-32891 flight-32892 flight-32893 flight-32894 flight-32895 flight-32896 flight-32897 flight-32898 flight-32899 flight-32900 flight-32901 flight-32902 flight-32903 flight-32904 flight-32905 flight-32906 flight-32907 flight-32908 flight-32909 flight-32910 flight-32911 flight-32912 flight-32913 flight-32914 flight-32915 flight-32916 flight-32917 flight-32918 flight-32919 flight-32920 flight-32921 flight-32922 flight-32923 flight-32924 flight-32925 flight-32926 flight-32927 flight-32928 flight-32929 flight-32930 flight-32931 flight-32932 flight-32933 flight-32934 flight-32935 flight-32936 flight-32937 flight-32938 flight-32939 flight-32940 flight-32941 flight-32942 flight-32943 flight-32944 flight-32945 flight-32946 flight-32947 flight-32948 flight-32949 flight-32950 flight-32951 flight-32952 flight-32953 flight-32954 flight-32955 flight-32956 flight-32957 flight-32958 flight-32959 flight-32960 flight-32961 flight-32962 flight-32963 flight-32964 flight-32965 flight-32966 flight-32967 flight-32968 flight-32969 flight-32970 flight-32971 flight-32972 flight-32973 flight-32974 flight-32975 flight-32976 flight-32977 flight-32978 flight-32979 flight-32980 flight-32981 flight-32982 flight-32983 flight-32984 flight-32985 flight-32986 flight-32987 flight-32988 flight-32989 flight-32990 flight-32991 flight-32992 flight-32993 flight-32994 flight-32995 flight-32996 flight-32997 flight-32998 flight-32999 flight-33000 flight-33001 flight-33002 flight-33003 flight-33004 flight-33005 flight-33006 flight-33007 flight-33008 flight-33009 flight-33010 flight-33011 flight-33012 flight-33013 flight-33014 flight-33015 flight-33016 flight-33017 flight-33018 flight-33019 flight-33020 flight-33021 flight-33022 flight-33023 flight-33024 flight-33025 flight-33026 flight-33027 flight-33028 flight-33029 flight-33030 flight-33031 flight-33032 flight-33033 flight-33034 flight-33035 flight-33036 flight-33037 flight-33038 flight-33039 flight-33040 flight-33041 flight-33042 flight-33043 flight-33044 flight-33045 flight-33046 flight-33047 flight-33048 flight-33049 flight-33050 flight-33051 flight-33052 flight-33053 flight-33054 flight-33055 flight-33056 flight-33057 flight-33058 flight-33059 flight-33060 flight-33061 flight-33062 flight-33063 flight-33064 flight-33065 flight-33066 flight-33067 flight-33068 flight-33069 flight-33070 flight-33071 flight-33072 flight-33073 flight-33074 flight-33075 flight-33076 flight-33077 flight-33078 flight-33079 flight-33080 flight-33081 flight-33082 flight-33083 flight-33084 flight-33085 flight-33086 flight-33087 flight-33088 flight-33089 flight-33090 flight-33091 flight-33092 flight-33093 flight-33094 flight-33095 flight-33096 flight-33097 flight-33098 flight-33099 flight-33100 flight-33101 flight-33102 flight-33103 flight-33104 flight-33105 flight-33106 flight-33107 flight-33108 flight-33109 flight-33110 flight-33111 flight-33112 flight-33113 flight-33114 flight-33115 flight-33116 flight-33117 flight-33118 flight-33119 flight-33120 flight-33121 flight-33122 flight-33123 flight-33124 flight-33125 flight-33127 flight-33128 flight-33129 flight-33130 flight-33131 flight-33132 flight-33133 flight-33134 flight-33135 flight-33136 flight-33137 flight-33138 flight-33139 flight-33140 flight-33141 flight-33142 flight-33143 flight-33144 flight-33145 flight-33146 flight-33147 flight-33148 flight-33149 flight-33150 flight-33151 flight-33152 flight-33153 flight-33154 flight-33155 flight-33156 flight-33157 flight-33158 flight-33159 flight-33160 flight-33161 flight-33162 flight-33163 flight-33164 flight-33165 flight-33166 flight-33167 flight-33168 flight-33169 flight-33170 flight-33171 flight-33172 flight-33173 flight-33174 flight-33175 flight-33176 flight-33177 flight-33178 flight-33179 flight-33180 flight-33181
Ian Campbell [Sun, 14 Dec 2014 19:18:38 +0000 (19:18 +0000)]
TftpDiVersion 2014-12-14

Picks up changes on armhf to include dtbs and more modules in the initrd
overlay.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
10 years agoAdd basic PVH flights. flight-32331 flight-32346 flight-32367 flight-32388 flight-32416 flight-32421 flight-32422 flight-32423 flight-32424 flight-32425 flight-32426 flight-32428 flight-32429 flight-32430 flight-32431 flight-32432 flight-32433 flight-32434 flight-32435 flight-32436 flight-32437 flight-32438 flight-32439 flight-32440 flight-32441 flight-32442 flight-32443 flight-32444 flight-32445 flight-32446 flight-32447 flight-32448 flight-32449 flight-32450 flight-32451 flight-32452 flight-32453 flight-32455 flight-32456 flight-32457 flight-32458 flight-32459 flight-32460 flight-32461 flight-32462 flight-32463 flight-32464 flight-32465 flight-32466 flight-32467 flight-32468 flight-32469 flight-32470 flight-32471 flight-32472 flight-32473 flight-32474 flight-32475 flight-32476 flight-32477 flight-32478 flight-32479 flight-32480 flight-32481 flight-32482 flight-32483 flight-32484 flight-32485 flight-32486 flight-32487 flight-32488 flight-32489 flight-32490 flight-32491 flight-32492 flight-32493 flight-32494 flight-32495 flight-32496 flight-32497 flight-32498 flight-32499 flight-32500 flight-32501 flight-32502 flight-32503 flight-32504 flight-32506 flight-32507 flight-32508 flight-32509 flight-32510 flight-32512 flight-32513
Ian Campbell [Thu, 4 Dec 2014 09:58:34 +0000 (09:58 +0000)]
Add basic PVH flights.

These are the usual PV debian flights with pvh=1 added to the
configuration file.

A job is created for each of Intel and AMD, although obviously AMD is
expected to fail at the moment.

In my testing I got:
    (XEN) Attempt to create a PVH guest on a system without necessary hardware support
because my test box happens to be AMD.

I have confirmed that the pvh=1 option is correctly present in the
guest cfg for the new pvh job, and that no pvh= is present at all in
the existing test-amd64-amd64-xl job (which is expected and desired if
no pvh runvar is present).

Beyond that I've not tested this at all I fully expect even Intel to
fail in the first instance, due to issues such as lack of necessary
kernel options etc. I suggest to take this now and iterate on any
further changes.

For a xen-unstable flight this results in these runvars:
$ ./mg-show-flight-runvars pvh| grep -- -pvh | sort
test-amd64-amd64-xl-pvh-amd               all_hostflags               arch-amd64,arch-xen-amd64,suite-wheezy,purpose-test,hvm-amd
test-amd64-amd64-xl-pvh-amd               arch                        amd64
test-amd64-amd64-xl-pvh-amd               buildjob                    build-amd64
test-amd64-amd64-xl-pvh-amd               debian_arch                 amd64
test-amd64-amd64-xl-pvh-amd               debian_kernkind             pvops
test-amd64-amd64-xl-pvh-amd               debian_pvh                  1
test-amd64-amd64-xl-pvh-amd               kernbuildjob                build-amd64-pvops
test-amd64-amd64-xl-pvh-amd               kernkind                    pvops
test-amd64-amd64-xl-pvh-amd               toolstack                   xl
test-amd64-amd64-xl-pvh-amd               xenbuildjob                 build-amd64
test-amd64-amd64-xl-pvh-intel             all_hostflags               arch-amd64,arch-xen-amd64,suite-wheezy,purpose-test,hvm-intel
test-amd64-amd64-xl-pvh-intel             arch                        amd64
test-amd64-amd64-xl-pvh-intel             buildjob                    build-amd64
test-amd64-amd64-xl-pvh-intel             debian_arch                 amd64
test-amd64-amd64-xl-pvh-intel             debian_kernkind             pvops
test-amd64-amd64-xl-pvh-intel             debian_pvh                  1
test-amd64-amd64-xl-pvh-intel             kernbuildjob                build-amd64-pvops
test-amd64-amd64-xl-pvh-intel             kernkind                    pvops
test-amd64-amd64-xl-pvh-intel             toolstack                   xl
test-amd64-amd64-xl-pvh-intel             xenbuildjob                 build-amd64

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
---
v2: pvh\b.*.

10 years agoOsstest/Debian: Add support for "ExtraInitramfsModules" host property
Ian Campbell [Fri, 21 Nov 2014 13:16:58 +0000 (13:16 +0000)]
Osstest/Debian: Add support for "ExtraInitramfsModules" host property

The arndale platform needs a bunch of clk, phy and regulator stuff in order to
access its root filesystem. However mkinitramfs is not (currently?) able to
figure this out and therefore doesn't include them in the initrd. See
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=762042

Add a new host prop which can list these required additional module and
arranges for a suitable /etc/initramfs-tools/modules to be created on install.

Using the new HostGroupProp syntax the required modules are:

HostGroupProp_arndale_ExtraInitramfsModules clk-s2mps11 s5m8767 i2c-s3c2410 phy-exynos5250-sata

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
10 years agoOsstest/Debian: Refactor code to set bootargs in u-boot script
Ian Campbell [Fri, 21 Nov 2014 13:16:55 +0000 (13:16 +0000)]
Osstest/Debian: Refactor code to set bootargs in u-boot script

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
10 years agots-debian-install: rename cfg_xend to cfg
Wei Liu [Tue, 14 Oct 2014 21:50:08 +0000 (22:50 +0100)]
ts-debian-install: rename cfg_xend to cfg

... as this config file is just a config file in general, not strictly a
Xend format config file.

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
10 years agogitignore: ignore images directory
Wei Liu [Tue, 14 Oct 2014 21:50:07 +0000 (22:50 +0100)]
gitignore: ignore images directory

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
10 years agoREADME: list chiark-utils-bin as requirement
Wei Liu [Tue, 14 Oct 2014 21:50:06 +0000 (22:50 +0100)]
README: list chiark-utils-bin as requirement

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
10 years agoTestSupport: allow overriding of on_* in prepareguest_part_xencfg
Ian Campbell [Mon, 1 Dec 2014 12:57:20 +0000 (12:57 +0000)]
TestSupport: allow overriding of on_* in prepareguest_part_xencfg

Currently only on_reboot can be overridden

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
10 years agoTestSupport: use timeout(1) flight-32167 flight-32235 flight-32307 flight-32332 flight-32333 flight-32334 flight-32335 flight-32336 flight-32337 flight-32338 flight-32339 flight-32340 flight-32341 flight-32342 flight-32343 flight-32344 flight-32345 flight-32347 flight-32348 flight-32349 flight-32350 flight-32351 flight-32352 flight-32353 flight-32354 flight-32355 flight-32356 flight-32357 flight-32358 flight-32359 flight-32360 flight-32361 flight-32362 flight-32363 flight-32364 flight-32365 flight-32366 flight-32368 flight-32369 flight-32370 flight-32371 flight-32372 flight-32373 flight-32374 flight-32375 flight-32376 flight-32377 flight-32378 flight-32379 flight-32380 flight-32381 flight-32383 flight-32384 flight-32385 flight-32386 flight-32387 flight-32389 flight-32390 flight-32391 flight-32392 flight-32393 flight-32394 flight-32395 flight-32396 flight-32397 flight-32398 flight-32399 flight-32400 flight-32401 flight-32402 flight-32403 flight-32404 flight-32405 flight-32406 flight-32407 flight-32408 flight-32409 flight-32410 flight-32411 flight-32412 flight-32413 flight-32414 flight-32415 flight-32417 flight-32418 flight-32419 flight-32420
Ian Jackson [Mon, 8 Dec 2014 12:10:24 +0000 (12:10 +0000)]
TestSupport: use timeout(1)

If a command we run times out, the machinery in cmd() will arrange
for the ts-* script to spot the timeout, and stop waiting for it.

However it is also necessary for the command we ran to die.  It has a
copy of the owner daemon fd, so if it doesn't, our resources won't get
freed.  In sufficiently exciting bugs, our allocation might continue
indefinitely, while a subprocess of ours hangs on after we are long
gone.

timeout(1) does not print a message when the process times out (!)  So
we can't do away with the logic in cmd().  We set the timeout(1)
timeout to 30s more than our own timeout, so that cmd() will time
out first and print a message.

We could use alarm(1) as we do in Osstest/Serial/sympathy.pm but that
program isn't packaged and its unsophisticated approach is not really
appropriate for arbitrary nonconsenting programs.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
10 years agoAdd simple helper to update DI for all architectures. flight-32111 flight-32136 flight-32137 flight-32138 flight-32139 flight-32140 flight-32141 flight-32142 flight-32143 flight-32144 flight-32145 flight-32146 flight-32147 flight-32148 flight-32149 flight-32150 flight-32151 flight-32152 flight-32153 flight-32154 flight-32155 flight-32156 flight-32157 flight-32161 flight-32162 flight-32163 flight-32164 flight-32165 flight-32166 flight-32168 flight-32169 flight-32170 flight-32171 flight-32172 flight-32173 flight-32175 flight-32176 flight-32177 flight-32178 flight-32179 flight-32180 flight-32181 flight-32182 flight-32183 flight-32184 flight-32185 flight-32186 flight-32187 flight-32188 flight-32189 flight-32190 flight-32191 flight-32192 flight-32193 flight-32194 flight-32195 flight-32196 flight-32197 flight-32198 flight-32199 flight-32200 flight-32201 flight-32202 flight-32203 flight-32204 flight-32205 flight-32206 flight-32207 flight-32208 flight-32209 flight-32210 flight-32211 flight-32212 flight-32213 flight-32214 flight-32215 flight-32216 flight-32217 flight-32218 flight-32219 flight-32220 flight-32221 flight-32222 flight-32223 flight-32224 flight-32225 flight-32226 flight-32227 flight-32228 flight-32229 flight-32230 flight-32231 flight-32232 flight-32233 flight-32234 flight-32236 flight-32237 flight-32238 flight-32239 flight-32240 flight-32241 flight-32242 flight-32243 flight-32244 flight-32245 flight-32246 flight-32247 flight-32248 flight-32249 flight-32250 flight-32251 flight-32252 flight-32253 flight-32254 flight-32255 flight-32256 flight-32257 flight-32258 flight-32259 flight-32260 flight-32261 flight-32262 flight-32263 flight-32264 flight-32265 flight-32266 flight-32267 flight-32268 flight-32270 flight-32271 flight-32272 flight-32273 flight-32274 flight-32275 flight-32276 flight-32277 flight-32278 flight-32279 flight-32280 flight-32281 flight-32282 flight-32283 flight-32284 flight-32285 flight-32286 flight-32287 flight-32288 flight-32289 flight-32290 flight-32291 flight-32292 flight-32293 flight-32294 flight-32295 flight-32296 flight-32297 flight-32298 flight-32299 flight-32300 flight-32301 flight-32302 flight-32303 flight-32304 flight-32305 flight-32306 flight-32308 flight-32309 flight-32310 flight-32311 flight-32312 flight-32313 flight-32314 flight-32315 flight-32316 flight-32317 flight-32318 flight-32319 flight-32320 flight-32321 flight-32322 flight-32323 flight-32324 flight-32325 flight-32326 flight-32327 flight-32328 flight-32329 flight-32330
Ian Campbell [Fri, 21 Nov 2014 13:16:52 +0000 (13:16 +0000)]
Add simple helper to update DI for all architectures.

Uses DebianNonfreeFirmware, even (especially) for production, so move
the README stanza out of standalone only section. The current default
matches what is in the current production versions of DI.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
10 years agots-kernel-build: enable CONFIG_IKCONFIG{_PROC}
Ian Campbell [Fri, 21 Nov 2014 13:16:51 +0000 (13:16 +0000)]
ts-kernel-build: enable CONFIG_IKCONFIG{_PROC}

This makes the kernel's .config available in /proc/config.gz and
embeds a copy which can be extracted with
linux/scripts/extract-ikconfig (which I've not tried, but have no
reason to doubt).

Having this around can be handy with an older osstest installed test
box and to confirm you've booted the kernel you think you have when
you are messing with .config options.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
10 years agostandalone: Introduce "HostGroups" for use in OSSTEST_CONFIG
Ian Campbell [Fri, 21 Nov 2014 13:16:50 +0000 (13:16 +0000)]
standalone: Introduce "HostGroups" for use in OSSTEST_CONFIG

This saves repeating identical HostProp and HostFlags for sets of
identical machines. e.g.

    HostGroupProp_cubietruck_LinuxSerialConsole ttyS0
    HostGroupProp_cubietruck_Build_Make_Flags -j12
    HostGroupProp_cubietruck_XenSerialConsole dtuart
    HostGroupProp_cubietruck_XenDTUARTPath /soc@01c00000/serial@01c28000
    HostGroupFlags_cubietruck suite-wheezy,equiv-cubietruck,need-kernel-deb-armmp,no-di-kernel,need-uboot-bootscr

    HostGroup_braque cubietruck
    HostProp_braque_Fqdn braque.uk.xensource.com

    HostGroup_picaso cubietruck
    HostProp_picaso_Fqdn picaso.uk.xensource.com

    HostGroup_metzinger cubietruck
    HostProp_metzinger metzinger.uk.xensource.com

    HostGroup_gleizes cubietruck
    HostProp_gleizes_Fqdn gleizes.uk.xensource.com

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
10 years agots-xen-build-prep: Install libxml-xpath-perl on build machines
Ian Campbell [Fri, 5 Dec 2014 14:54:08 +0000 (14:54 +0000)]
ts-xen-build-prep: Install libxml-xpath-perl on build machines

Required by latest libvirt, to build docs.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Jackson <ian.jackson@citrix.com>
10 years agolinux-next tests: Use correct branch for baseline
Ian Jackson [Thu, 20 Nov 2014 13:48:56 +0000 (13:48 +0000)]
linux-next tests: Use correct branch for baseline

Make cr-daily-branch honour an environment or setting variable
EXTRA_SGR_ARGS.  In branch-settings.linux-next set it appropriately to
arrange that the linux-next test reports consider linux-linus tests as
interesting as well as just linux-next ones.

(We already use a flight from linux-linus for selecting the baseline
linux version.)

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
10 years agocs-adjust-flight: runvar-perlop: Do not report non-changes flight-31654 flight-31678 flight-31756 flight-31803 flight-31841 flight-31844 flight-31848 flight-31849 flight-31850 flight-31851 flight-31852 flight-31853 flight-31854 flight-31855 flight-31856 flight-31857 flight-31858 flight-31859 flight-31860 flight-31861 flight-31862 flight-31863 flight-31864 flight-31865 flight-31866 flight-31867 flight-31868 flight-31869 flight-31870 flight-31871 flight-31872 flight-31873 flight-31874 flight-31875 flight-31876 flight-31877 flight-31878 flight-31879 flight-31880 flight-31881 flight-31882 flight-31883 flight-31884 flight-31885 flight-31886 flight-31887 flight-31888 flight-31889 flight-31890 flight-31891 flight-31892 flight-31893 flight-31894 flight-31895 flight-31896 flight-31897 flight-31898 flight-31899 flight-31900 flight-31901 flight-31902 flight-31903 flight-31904 flight-31905 flight-31906 flight-31907 flight-31908 flight-31909 flight-31910 flight-31911 flight-31914 flight-31916 flight-31917 flight-31918 flight-31919 flight-31920 flight-31922 flight-31923 flight-31924 flight-31925 flight-31926 flight-31927 flight-31928 flight-31929 flight-31930 flight-31932 flight-31933 flight-31934 flight-31935 flight-31936 flight-31937 flight-31938 flight-31939 flight-31940 flight-31941 flight-31942 flight-31943 flight-31944 flight-31945 flight-31946 flight-31947 flight-31948 flight-31949 flight-31950 flight-31951 flight-31952 flight-31953 flight-31954 flight-31955 flight-31956 flight-31957 flight-31959 flight-31960 flight-31962 flight-31963 flight-31965 flight-31966 flight-31968 flight-31969 flight-31970 flight-31971 flight-31972 flight-31973 flight-31974 flight-31975 flight-31976 flight-31977 flight-31978 flight-31979 flight-31980 flight-31981 flight-31983 flight-31984 flight-31985 flight-31986 flight-31987 flight-31988 flight-31989 flight-31990 flight-31991 flight-31992 flight-31993 flight-31994 flight-31995 flight-31996 flight-31997 flight-31998 flight-31999 flight-32000 flight-32001 flight-32002 flight-32003 flight-32004 flight-32005 flight-32006 flight-32007 flight-32008 flight-32009 flight-32010 flight-32011 flight-32012 flight-32013 flight-32014 flight-32015 flight-32016 flight-32017 flight-32019 flight-32020 flight-32021 flight-32022 flight-32023 flight-32024 flight-32025 flight-32026 flight-32027 flight-32028 flight-32029 flight-32030 flight-32031 flight-32032 flight-32033 flight-32034 flight-32035 flight-32036 flight-32037 flight-32038 flight-32039 flight-32040 flight-32041 flight-32042 flight-32043 flight-32044 flight-32045 flight-32046 flight-32047 flight-32048 flight-32049 flight-32050 flight-32051 flight-32052 flight-32053 flight-32054 flight-32055 flight-32056 flight-32057 flight-32058 flight-32060 flight-32061 flight-32062 flight-32063 flight-32064 flight-32065 flight-32066 flight-32067 flight-32068 flight-32069 flight-32070 flight-32071 flight-32072 flight-32073 flight-32074 flight-32075 flight-32076 flight-32077 flight-32078 flight-32079 flight-32080 flight-32081 flight-32082 flight-32083 flight-32084 flight-32085 flight-32086 flight-32087 flight-32088 flight-32089 flight-32090 flight-32092 flight-32093 flight-32094 flight-32095 flight-32096 flight-32097 flight-32098 flight-32099 flight-32100 flight-32101 flight-32102 flight-32103 flight-32104 flight-32105 flight-32106 flight-32107 flight-32108 flight-32109 flight-32110 flight-32112 flight-32113 flight-32114 flight-32115 flight-32116 flight-32117 flight-32118 flight-32119 flight-32120 flight-32121 flight-32122 flight-32123 flight-32124 flight-32125 flight-32126 flight-32127 flight-32128 flight-32129 flight-32130 flight-32131 flight-32132 flight-32133 flight-32134 flight-32135
Ian Jackson [Thu, 13 Nov 2014 16:05:15 +0000 (16:05 +0000)]
cs-adjust-flight: runvar-perlop: Do not report non-changes

With -v, runvar-perlop would unconditionally print a message about the
changed variable.  Instead, only call runvar_set if the value is to
change.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
10 years agotarget_editfile: Improve doc comment
Ian Jackson [Thu, 13 Nov 2014 16:02:54 +0000 (16:02 +0000)]
target_editfile: Improve doc comment

More clearly state which arguments are optional.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
10 years agots-hosts-allocate-Executive: Radically reduce the previously_failed bonus
Ian Jackson [Tue, 11 Nov 2014 19:38:03 +0000 (19:38 +0000)]
ts-hosts-allocate-Executive: Radically reduce the previously_failed bonus

Make osstest less obsessive about sticking to failing hosts if they
are persistently unavailable.

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
10 years agots-hosts-allocate-Executive: Redo variation_bonus scoring
Ian Jackson [Tue, 11 Nov 2014 19:34:07 +0000 (19:34 +0000)]
ts-hosts-allocate-Executive: Redo variation_bonus scoring

Use a logarithmic scale.  Cap the bonus at 12h rather than 5d/30 = 4h.
When we have previously failed, make sure we apply a reverse bonus,
rather than a penalty.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
---
v2: Fix cap to really be 12h not 12d.

10 years agots-hosts-allocate-Executive: Score for equivalent previous failures
Ian Jackson [Tue, 11 Nov 2014 19:30:38 +0000 (19:30 +0000)]
ts-hosts-allocate-Executive: Score for equivalent previous failures

Look to see whether the last run on any hosts which are equivalent to
the ones we're looking at, failed.  This means that when host X is
failing and we are considering host Y which is equivalent to X, we
give Y a selection bonus.

This means that osstest will be less obsessive about sticking to the
very same failing host.

Also, no longer multiply by the number of previously-failing hosts;
instead, just consider whether _all_ the hosts are previously-failing
in their corresponding slots (*_host runvars).  It doesn't make sense
to make the bonus for using failing hosts depend on the number of
hosts used by the test.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
---
v2: Improve commit message.

10 years agots-hosts-allocate-Executive: Clarify an expression with //
Ian Jackson [Tue, 11 Nov 2014 19:28:24 +0000 (19:28 +0000)]
ts-hosts-allocate-Executive: Clarify an expression with //

No functional change.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
10 years agots-hosts-allocate-Executive: Do not prefer fast hosts for tests
Ian Jackson [Tue, 11 Nov 2014 18:30:56 +0000 (18:30 +0000)]
ts-hosts-allocate-Executive: Do not prefer fast hosts for tests

Introduce $duration_for_cost and set it to the previous formula for
build jobs, or 0 for test jobs.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
10 years agots-hosts-allocate-Executive: Move $variation_age setting
Ian Jackson [Tue, 11 Nov 2014 18:28:07 +0000 (18:28 +0000)]
ts-hosts-allocate-Executive: Move $variation_age setting

We are going to want to put more stuff in here which depends on
$duration_rightaway_adjust.

No functional change in this commit.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
10 years agoOsstest/Executive.pm: Debug log same-host status (in duration estimator)
Ian Jackson [Tue, 11 Nov 2014 18:22:44 +0000 (18:22 +0000)]
Osstest/Executive.pm: Debug log same-host status (in duration estimator)

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
10 years agots-hosts-allocate-Executive: allow uncompressed log
Ian Jackson [Tue, 11 Nov 2014 18:13:37 +0000 (18:13 +0000)]
ts-hosts-allocate-Executive: allow uncompressed log

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
10 years agocs-adjust-flight: Fix doc about /<pcre> to match implementation
Ian Jackson [Tue, 11 Nov 2014 19:27:44 +0000 (19:27 +0000)]
cs-adjust-flight: Fix doc about /<pcre> to match implementation

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
10 years agots-host-install: Ensure $dtbs is always a valid string
Ian Campbell [Sun, 9 Nov 2014 09:47:04 +0000 (09:47 +0000)]
ts-host-install: Ensure $dtbs is always a valid string

Otherwise on non-ARM platforms we get warnings about uninitialised values.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
10 years agomg-debian-installer-update: Use Packages.gz
Ian Campbell [Sun, 9 Nov 2014 09:43:07 +0000 (09:43 +0000)]
mg-debian-installer-update: Use Packages.gz

In Jessie Packages.bz2 is replaced by Packages.xz. Rather than implementing
per-suite handling just fallback to lowest-common-denominator gzip.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
10 years agoDebian: Install ethtool on the hosts
Ian Campbell [Sun, 9 Nov 2014 09:40:50 +0000 (09:40 +0000)]
Debian: Install ethtool on the hosts

It's very useful when debugging network issues.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
10 years agots-rumpuserxen-demo-xenstorels: set `on_poweroff="preserve"' flight-31549 flight-31598 flight-31639 flight-31640 flight-31641 flight-31642 flight-31643 flight-31644 flight-31645 flight-31647 flight-31648 flight-31649 flight-31650 flight-31651 flight-31652 flight-31655 flight-31656 flight-31657 flight-31658 flight-31659 flight-31660 flight-31661 flight-31662 flight-31663 flight-31664 flight-31665 flight-31666 flight-31667 flight-31668 flight-31669 flight-31670 flight-31671 flight-31672 flight-31673 flight-31674 flight-31675 flight-31676 flight-31679 flight-31680 flight-31681 flight-31682 flight-31683 flight-31684 flight-31685 flight-31686 flight-31688 flight-31689 flight-31690 flight-31691 flight-31692 flight-31693 flight-31694 flight-31695 flight-31715 flight-31716 flight-31717 flight-31718 flight-31719 flight-31720 flight-31721 flight-31722 flight-31723 flight-31724 flight-31725 flight-31726 flight-31727 flight-31728 flight-31729 flight-31730 flight-31731 flight-31732 flight-31733 flight-31734 flight-31735 flight-31736 flight-31737 flight-31738 flight-31739 flight-31740 flight-31741 flight-31742 flight-31743 flight-31744 flight-31745 flight-31746 flight-31747 flight-31748 flight-31749 flight-31750 flight-31751 flight-31752 flight-31753 flight-31754 flight-31755 flight-31757 flight-31758 flight-31759 flight-31760 flight-31761 flight-31762 flight-31763 flight-31764 flight-31765 flight-31766 flight-31767 flight-31768 flight-31769 flight-31770 flight-31771 flight-31772 flight-31773 flight-31774 flight-31775 flight-31776 flight-31777 flight-31778 flight-31779 flight-31780 flight-31781 flight-31782 flight-31783 flight-31784 flight-31785 flight-31786 flight-31787 flight-31788 flight-31789 flight-31790 flight-31791 flight-31792 flight-31793 flight-31794 flight-31795 flight-31796 flight-31797 flight-31798 flight-31799 flight-31800 flight-31801 flight-31802 flight-31804 flight-31805 flight-31806 flight-31807 flight-31808 flight-31809 flight-31810 flight-31811 flight-31812 flight-31813 flight-31814 flight-31815 flight-31816 flight-31817 flight-31818 flight-31819 flight-31821 flight-31822 flight-31823 flight-31824 flight-31825 flight-31826 flight-31827 flight-31828 flight-31829 flight-31831 flight-31832 flight-31833 flight-31838 flight-31840
Ian Jackson [Thu, 13 Nov 2014 15:53:20 +0000 (15:53 +0000)]
ts-rumpuserxen-demo-xenstorels: set `on_poweroff="preserve"'

We rely on the domain existing after xenstore-ls's main has called
exit, so that we can do our own xenstore-ls in dom0 and check the
results.

Previously, this happened by accident because the rump kernel would,
after _exit, call a minios function which crashes the domain.  New
rump kernels don't do this, and instead shut down cleanly.

Setting `on_poweroff="preserve"' has the desired effect.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
10 years agots-host-install: Honour linux-boot-append <suite> (host prop) flight-31425 flight-31432 flight-31433 flight-31434 flight-31435 flight-31436 flight-31437 flight-31438 flight-31439 flight-31440 flight-31441 flight-31442 flight-31443 flight-31444 flight-31445 flight-31446 flight-31448 flight-31450 flight-31451 flight-31452 flight-31453 flight-31454 flight-31455 flight-31456 flight-31457 flight-31458 flight-31459 flight-31460 flight-31461 flight-31462 flight-31463 flight-31464 flight-31465 flight-31466 flight-31467 flight-31468 flight-31469 flight-31470 flight-31471 flight-31472 flight-31473 flight-31474 flight-31475 flight-31476 flight-31477 flight-31478 flight-31479 flight-31481 flight-31482 flight-31483 flight-31484 flight-31485 flight-31486 flight-31487 flight-31488 flight-31489 flight-31490 flight-31491 flight-31492 flight-31493 flight-31494 flight-31495 flight-31497 flight-31498 flight-31499 flight-31500 flight-31503 flight-31504 flight-31505 flight-31506 flight-31507 flight-31508 flight-31509 flight-31510 flight-31511 flight-31512 flight-31513 flight-31514 flight-31515 flight-31516 flight-31517 flight-31518 flight-31519 flight-31520 flight-31521 flight-31522 flight-31523 flight-31524 flight-31525 flight-31526 flight-31527 flight-31528 flight-31529 flight-31530 flight-31531 flight-31532 flight-31533 flight-31534 flight-31535 flight-31536 flight-31537 flight-31538 flight-31539 flight-31540 flight-31542 flight-31543 flight-31544 flight-31545 flight-31546 flight-31547 flight-31548 flight-31550 flight-31551 flight-31552 flight-31553 flight-31554 flight-31555 flight-31556 flight-31557 flight-31558 flight-31559 flight-31560 flight-31561 flight-31562 flight-31563 flight-31564 flight-31565 flight-31566 flight-31567 flight-31568 flight-31569 flight-31570 flight-31571 flight-31572 flight-31573 flight-31574 flight-31575 flight-31576 flight-31577 flight-31578 flight-31579 flight-31580 flight-31581 flight-31582 flight-31583 flight-31584 flight-31585 flight-31586 flight-31587 flight-31588 flight-31589 flight-31590 flight-31591 flight-31592 flight-31593 flight-31594 flight-31595 flight-31596 flight-31597 flight-31599 flight-31600 flight-31601 flight-31602 flight-31603 flight-31604 flight-31605 flight-31606 flight-31607 flight-31608 flight-31609 flight-31610 flight-31611 flight-31612 flight-31613 flight-31614 flight-31615 flight-31616 flight-31617 flight-31618 flight-31619 flight-31620 flight-31621 flight-31622 flight-31623 flight-31624 flight-31625 flight-31626 flight-31627 flight-31628 flight-31629 flight-31630 flight-31631 flight-31632 flight-31633 flight-31634 flight-31635 flight-31636 flight-31637 flight-31638
Ian Jackson [Thu, 6 Nov 2014 16:14:18 +0000 (16:14 +0000)]
ts-host-install: Honour linux-boot-append <suite> (host prop)

We have `install-append <suite>' but that goes before d-i's -- so only
applies during installation.  Provide an option that applies
post-installation too.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
10 years agostandalone: Handle multiple configuration files.
Ian Campbell [Wed, 5 Nov 2014 10:41:24 +0000 (10:41 +0000)]
standalone: Handle multiple configuration files.

OSSTEST_CONFIG can actually be a colon separate list of files, so take this
into account when sanity checking it.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
10 years agoosstest-confirm-booted: Log processes
Ian Jackson [Tue, 4 Nov 2014 17:35:09 +0000 (17:35 +0000)]
osstest-confirm-booted: Log processes

Run a ps if osstest-confirm-booted does not exist, and stash the
output where we read it during log capture.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
10 years agopoll_loop: Restore diversion of logm
Ian Jackson [Tue, 4 Nov 2014 17:32:44 +0000 (17:32 +0000)]
poll_loop: Restore diversion of logm

poll_loop is supposed to divert the logging away so that you don't
have to see a pile of repetitive logging if the operation succeeds.

But this was broken when the code was moved from the perl module
Osstest to Osstest::TestSupport.  Fix it.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
10 years agoDhcpWatch::leases: Check errors
Ian Jackson [Fri, 31 Oct 2014 11:20:04 +0000 (11:20 +0000)]
DhcpWatch::leases: Check errors

Check error returns from connect() et al (which present as an undef
return from IO::Socket::INET), and from read() (which can be detected
via IO::Handle::error).

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>