]> xenbits.xensource.com Git - osstest.git/log
osstest.git
9 years agotoolstack/libvirt: install libnl-3-200 on Jessie flight-58879 flight-58907 flight-58908 flight-58910 flight-58911 flight-58912 flight-58915 flight-58917 flight-58918 flight-58919 flight-58923 flight-58924 flight-58925 flight-58926 flight-58927 flight-58928 flight-58929 flight-58930 flight-58931 flight-58932 flight-58933 flight-58934 flight-58935 flight-58937 flight-58938 flight-58939 flight-58940
Wei Liu [Thu, 18 Jun 2015 14:46:07 +0000 (15:46 +0100)]
toolstack/libvirt: install libnl-3-200 on Jessie

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
9 years agots-kernel-build: enable CONFIG_FHANDLE
Wei Liu [Fri, 12 Jun 2015 22:50:55 +0000 (23:50 +0100)]
ts-kernel-build: enable CONFIG_FHANDLE

According to Debian bug #764539, systemd needs this kernel feature to be
able to mount disks. Complete list of required kernel features can be
found in /usr/share/doc/systemd/README.gz.

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
9 years agots-xen-install: install libnl-route-3-200 for jessie
Wei Liu [Fri, 12 Jun 2015 16:53:50 +0000 (17:53 +0100)]
ts-xen-install: install libnl-route-3-200 for jessie

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
9 years agots-xen-build-prep: reverse the test for installing libc6-dev-i386
Wei Liu [Wed, 20 May 2015 17:56:28 +0000 (18:56 +0100)]
ts-xen-build-prep: reverse the test for installing libc6-dev-i386

Starting from wheezy, Debian introduced multiarch support, so we need to
install libc6-dev-i386 to build tools.

Since multiarch will be permanent, we reverse the test to not install
libc6-dev-i386 on releases older than wheezy (i.e. wheezy and jessie
will have that package).

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
9 years agots-xen-build-prep: install libnl-route-3-dev on Jessie
Wei Liu [Wed, 20 May 2015 17:56:27 +0000 (18:56 +0100)]
ts-xen-build-prep: install libnl-route-3-dev on Jessie

There is no package called libnl-dev on Jessie.  To build remus, use
libnl-route-3-dev instead.

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
9 years agoDebian: grub2: Allow submenu and menuentry items to be indented.
Ian Campbell [Thu, 28 May 2015 08:24:51 +0000 (09:24 +0100)]
Debian: grub2: Allow submenu and menuentry items to be indented.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
9 years agoCope with Jessie's d-i vg name
Wei Liu [Mon, 15 Jun 2015 11:07:38 +0000 (12:07 +0100)]
Cope with Jessie's d-i vg name

In Jessie the default vg name is changed to "$hostname-vg". Make that
default case and check for wheezy, squeeze and lenny for backward
compatibility.

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
---
Changes in v4:
1. Add missing "use Osstest::Debian;".

Changes in v3:
1. Introduce a function to return vg name and use it.

Changes in v2:
1. Make Jessie case default.

9 years agoDebian.pm: install grub to default device
Wei Liu [Wed, 20 May 2015 17:56:25 +0000 (18:56 +0100)]
Debian.pm: install grub to default device

Debian installer used to have the behaviour to install grub on the
default device. But it's changed in Jessie.

See https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=759737.

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
9 years agoForce sysvinit with Jessie
Ian Campbell [Fri, 12 Jun 2015 10:24:11 +0000 (11:24 +0100)]
Force sysvinit with Jessie

Systemd  doesn't honor osstest-confirm-booted service, which breaks
ts-leak-check.  Fall back to SysV init for now.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
[wei: rewrite commit message and code comment]
Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
9 years agomg-debian-installer-update: Also collect DTBs for standard kernels
Wei Liu [Tue, 16 Jun 2015 16:10:00 +0000 (17:10 +0100)]
mg-debian-installer-update: Also collect DTBs for standard kernels

For armhf and arm64 for Jessie we will need these in the normal case
as well as in the backports case. Arrange to download.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
[wei: fix rebase conflict]
Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
9 years agomg-debian-installer-update: updates to better handle Jessie onwards.
Ian Campbell [Mon, 26 Jan 2015 16:31:35 +0000 (16:31 +0000)]
mg-debian-installer-update: updates to better handle Jessie onwards.

In mg-debian-installer-update:

  - Expand the list of (suite,arch) combinations which don't exist and
    move it to the top.

  - Tweak the backports.org handling to allow it to be specified on a
    per (suite,arch) basis, and specify it only for (wheezy,armhf)
    since it is not currently needed for jessie. Make the
    initramfs-tools fetching conditional too.

  - Only extract backports-dtbs if they are present in the package.

  - Handle arm64.

  - Collect the correct armhf kernel for Jessie onwards (vexpress
    removed from path).

Have mg-debian-installer-update-all fetch arm64 too.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
[wei: wrap lines]
Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
9 years agoMore flexible handling of need-kernel-deb-$flavour host flag
Ian Campbell [Mon, 26 Jan 2015 16:08:43 +0000 (16:08 +0000)]
More flexible handling of need-kernel-deb-$flavour host flag

The current behaviour does not account for the need to apply this
workaround only for particular Debian releases, i.e. Midway will be
supported just fine in Jessie.

It also does not allow for kernels from alternative sources other than
backports (e.g. experimental, although that is hypothetical right
now).

The flavour name is actually irrelevant in practice (none of our
supported arch's need multiple kernel flavours at install time, which
is all we care about). So omit it from the new scheme.

The new scheme is "need-kernel-deb-$suite-$altsource", i.e.
need-kernel-deb-wheezy-backports. Possibly in the future e.g.
need-kernel-deb-jessie-experimental indicating that the experimental
kernel is needed on jessie.

mg-debian-installer-update is modified to download to the new name.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
Also update TftpDiVersion, after having run
mg-debian-installer-update-all on the colo controller VM.

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
9 years agots-libvirt-build: Enable debug symbols in binaries flight-58846 flight-58880 flight-58881 flight-58882 flight-58883 flight-58884 flight-58885 flight-58886 flight-58887 flight-58888 flight-58889 flight-58890 flight-58891 flight-58892 flight-58893 flight-58894 flight-58895 flight-58896 flight-58897 flight-58898 flight-58899 flight-58900 flight-58902 flight-58903 flight-58904 flight-58905
Ian Campbell [Fri, 19 Jun 2015 15:29:38 +0000 (16:29 +0100)]
ts-libvirt-build: Enable debug symbols in binaries

... by passing -g as appropriate.

Also ensure debug logging is enabled with --enable-debug (which
doesn't imply -g during build!).

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
9 years agots-kernel-build: Support --reuse to keep same build tree
Ian Campbell [Thu, 18 Jun 2015 16:25:03 +0000 (17:25 +0100)]
ts-kernel-build: Support --reuse to keep same build tree

This is very useful when iterating over kernel configurations, since
it avoids blowing away the build tree and all the existing built
objects. The Linux build system does the right thing when .config
changes and only rebuilds the affected bits.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
9 years agoconfig: Computed defaults for Logs and Results
Ian Jackson [Fri, 19 Jun 2015 10:28:35 +0000 (11:28 +0100)]
config: Computed defaults for Logs and Results

No functional change for any of the existing in-tree configs, or for
foreseeable out-of-tree ones.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
9 years agoconfig: Default Stash to $c{Logs}, not "logs"
Ian Jackson [Fri, 19 Jun 2015 10:23:16 +0000 (11:23 +0100)]
config: Default Stash to $c{Logs}, not "logs"

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
9 years agocri-args-hostlists: Run sg-report-host-history flight-58726 flight-58740 flight-58748 flight-58749 flight-58750 flight-58751 flight-58752 flight-58753 flight-58754 flight-58755 flight-58756 flight-58757 flight-58758 flight-58759 flight-58760 flight-58761 flight-58762 flight-58763 flight-58764 flight-58765 flight-58766 flight-58767 flight-58768 flight-58769 flight-58770 flight-58771 flight-58772 flight-58773 flight-58774 flight-58775 flight-58776 flight-58777 flight-58778 flight-58779 flight-58780 flight-58781 flight-58782 flight-58783 flight-58784 flight-58785 flight-58786 flight-58787 flight-58788 flight-58789 flight-58790 flight-58791 flight-58792 flight-58793 flight-58794 flight-58795 flight-58796 flight-58797 flight-58798 flight-58799 flight-58800 flight-58801 flight-58802 flight-58803 flight-58804 flight-58805 flight-58806 flight-58807 flight-58808 flight-58809 flight-58810 flight-58811 flight-58812 flight-58813 flight-58814 flight-58815 flight-58817 flight-58818 flight-58819 flight-58820 flight-58821 flight-58822 flight-58823 flight-58824 flight-58825 flight-58826 flight-58827 flight-58829 flight-58830 flight-58831 flight-58832 flight-58833 flight-58834 flight-58835 flight-58836 flight-58837 flight-58838 flight-58839 flight-58841 flight-58842 flight-58843 flight-58844 flight-58845 flight-58847 flight-58848 flight-58849 flight-58850 flight-58851 flight-58852 flight-58854 flight-58855 flight-58856 flight-58857 flight-58858 flight-58859 flight-58860 flight-58861 flight-58862 flight-58863 flight-58866 flight-58867 flight-58868 flight-58869 flight-58870 flight-58871 flight-58872 flight-58873 flight-58874 flight-58875 flight-58876 flight-58877 flight-58878
Ian Jackson [Wed, 17 Jun 2015 16:41:49 +0000 (17:41 +0100)]
cri-args-hostlists: Run sg-report-host-history

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
9 years agosg-report-host-history: Make --html-dir have to be host/
Ian Jackson [Wed, 17 Jun 2015 16:38:37 +0000 (17:38 +0100)]
sg-report-host-history: Make --html-dir have to be host/

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
9 years agosg-report-host-history: Show "running" jobs as "incomplete"
Ian Jackson [Wed, 17 Jun 2015 16:35:50 +0000 (17:35 +0100)]
sg-report-host-history: Show "running" jobs as "incomplete"

Since they may in fact be abandoned.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
9 years agosg-report-host-history: Move per-row endedq query into per-host transaction
Ian Jackson [Wed, 17 Jun 2015 16:35:19 +0000 (17:35 +0100)]
sg-report-host-history: Move per-row endedq query into per-host transaction

No substantial change, but reduces the work done in the main
transaction.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
9 years agosg-report-host-history: Aggregate runvars query for all hosts
Ian Jackson [Wed, 17 Jun 2015 16:21:10 +0000 (17:21 +0100)]
sg-report-host-history: Aggregate runvars query for all hosts

This is much faster.  It might short-change unpopular hosts rather;
hence the change of the limit fudge factor from 2 to 3.

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
9 years agosg-report-host-history: Support flight:FLIGHT
Ian Jackson [Wed, 17 Jun 2015 16:05:58 +0000 (17:05 +0100)]
sg-report-host-history: Support flight:FLIGHT

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
9 years agosg-report-host-history: Use a hash for hosts
Ian Jackson [Wed, 17 Jun 2015 15:57:39 +0000 (16:57 +0100)]
sg-report-host-history: Use a hash for hosts

This will allow deduplication.  No functional change other than a
change to the order of processing.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
9 years agosg-report-host-history: Move database manipulations
Ian Jackson [Wed, 17 Jun 2015 15:55:26 +0000 (16:55 +0100)]
sg-report-host-history: Move database manipulations

Arrange for the SET LOCAL to have the right scope.  Run
computeflightsrange, and reporthost, each within a db transaction,
with an appropriate lock.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
9 years agosg-report-host-history: Move query preparation into jobquery
Ian Jackson [Tue, 16 Jun 2015 13:54:44 +0000 (14:54 +0100)]
sg-report-host-history: Move query preparation into jobquery

To get the scope of database locking, and of the SET LOCAL workaround,
right, it is convenient to move these query preparations into the
jobquery function.

No functional change.

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
9 years agosg-report-host-history: Break out computeflightsrange
Ian Jackson [Tue, 16 Jun 2015 10:49:32 +0000 (11:49 +0100)]
sg-report-host-history: Break out computeflightsrange

To do database locking coherently, it will be convenient to have this
in a function.

No functional change.

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
9 years agosg-report-host-history: Introduce new script
Ian Jackson [Fri, 29 May 2015 15:26:16 +0000 (15:26 +0000)]
sg-report-host-history: Introduce new script

This script is still a work in progress.  It does currently mostly
work and can generate a useful report.  However, it needs:

 * Some database locking (to avoid deadlock errors)
 * A --flight= option to make it automatically report host usage
   for all hosts touched in a flight, for the use of cr-*
 * Hooking into cr-*

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
---
v2: Improved commit message.
    Fix a debug bug.
    Actually install the html; do not leave it as .new

9 years agoreporting: sg-report-flight should ignore missing jobs
Ian Jackson [Wed, 17 Jun 2015 13:42:56 +0000 (13:42 +0000)]
reporting: sg-report-flight should ignore missing jobs

The function findaflight should not, when the caller specifies a job,
find a flight which does not contain that job at all.

One effect of allowing it to find such flights is that it might find a
bisection flight and try to use it as a basis for claiming a
regression, or as a justification for something not being a
regression, and then complain that all the missing steps in the
bisection flight are `blocked'.

This can be seen in the report for 58627:
 test-amd64-i386-xl-qemuu-winxpsp3  6 xen-boot fail blocked in 56366-bisect

After this patch, a report generated for 58627 no longer mentions
56366 at all.

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
9 years agoreporting: Move bisection report outputs
Ian Jackson [Tue, 16 Jun 2015 15:38:23 +0000 (16:38 +0100)]
reporting: Move bisection report outputs

Replace some `.'s in filenames with `/'s, making the directory
listings easier to deal with.

(I haven't been able to conveniently do a proper test of this change,
but I have dry-run the critical parts.)

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
9 years agoreporting: Move job histories into history/
Ian Jackson [Tue, 16 Jun 2015 14:06:36 +0000 (15:06 +0100)]
reporting: Move job histories into history/

Replace some `.'s in HTML filenames with `/'s, making the directory
listings easier to deal with.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
9 years agoreporting: Show slightly better info for broken jobs
Ian Jackson [Fri, 29 May 2015 17:46:53 +0000 (17:46 +0000)]
reporting: Show slightly better info for broken jobs

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
9 years agoreporting: Add colours as optional export tag, and provide $blue
Ian Jackson [Fri, 29 May 2015 15:20:21 +0000 (15:20 +0000)]
reporting: Add colours as optional export tag, and provide $blue

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
9 years agoreporting: Move report_run_getinfo and some colours into Executive.pm
Ian Jackson [Fri, 29 May 2015 15:20:03 +0000 (15:20 +0000)]
reporting: Move report_run_getinfo and some colours into Executive.pm

This is to support a forthcoming sg-report-host-history.

No functional change.

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
9 years agosg-report-job-history: Show start time
Ian Jackson [Fri, 29 May 2015 14:24:53 +0000 (14:24 +0000)]
sg-report-job-history: Show start time

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
9 years agosg-report-job-history: Cope if history too short
Ian Jackson [Fri, 29 May 2015 14:14:41 +0000 (14:14 +0000)]
sg-report-job-history: Cope if history too short

If there have been less than 99 relevant flights, the inner SELECT (to
determine the minimum flight number) would return NULL.  And anything
> NULL is NULL and NULL is treated as false.  So the host runvar
identification would break.

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
9 years agosg-report-job-history: Slightly prettify sql
Ian Jackson [Fri, 29 May 2015 14:13:34 +0000 (14:13 +0000)]
sg-report-job-history: Slightly prettify sql

No functional change apart from slightly better debug output.

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
9 years agosg-report-job-history: Add a debugging statement
Ian Jackson [Fri, 29 May 2015 13:26:10 +0000 (13:26 +0000)]
sg-report-job-history: Add a debugging statement

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
9 years agosg-report-flight: Use db_prepare
Ian Jackson [Fri, 29 May 2015 13:24:13 +0000 (13:24 +0000)]
sg-report-flight: Use db_prepare

And do away with two commented-out ad-hoc statement dumps.

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
9 years agocs-bisection-step: Use db_prepare
Ian Jackson [Fri, 29 May 2015 13:22:44 +0000 (13:22 +0000)]
cs-bisection-step: Use db_prepare

And do away with one ad-hoc statement dump.

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
9 years agosg-report-job-history: Use db_prepare
Ian Jackson [Fri, 29 May 2015 13:20:13 +0000 (13:20 +0000)]
sg-report-job-history: Use db_prepare

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
9 years agoOsstest.pm: Provide new db_prepare helper with built-in debugging
Ian Jackson [Fri, 29 May 2015 13:19:39 +0000 (13:19 +0000)]
Osstest.pm: Provide new db_prepare helper with built-in debugging

No callers, so no functional change, as yet.

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
---
v2: Suppress "used only once" warning

9 years agoArrange to upgrade microcode on x86 test hosts. flight-58593 flight-58621 flight-58670 flight-58671 flight-58672 flight-58673 flight-58674 flight-58675 flight-58676 flight-58677 flight-58678 flight-58679 flight-58680 flight-58681 flight-58682 flight-58683 flight-58684 flight-58685 flight-58686 flight-58687 flight-58688 flight-58689 flight-58690 flight-58691 flight-58692 flight-58693 flight-58694 flight-58695 flight-58696 flight-58697 flight-58698 flight-58699 flight-58700 flight-58701 flight-58702 flight-58703 flight-58704 flight-58705 flight-58706 flight-58707 flight-58708 flight-58709 flight-58710 flight-58711 flight-58712 flight-58713 flight-58714 flight-58715 flight-58716 flight-58717 flight-58718 flight-58719 flight-58720 flight-58721 flight-58722 flight-58723 flight-58727 flight-58728 flight-58729 flight-58730 flight-58731 flight-58732 flight-58733 flight-58734 flight-58735 flight-58736 flight-58737 flight-58738 flight-58739 flight-58741 flight-58742 flight-58743 flight-58744 flight-58745 flight-58746
Ian Campbell [Mon, 15 Jun 2015 08:36:02 +0000 (09:36 +0100)]
Arrange to upgrade microcode on x86 test hosts.

Both Xen and Linux support extracting a microcode update from an
initramfs early during boot. This requires prepending a suitable
uncompressed cpio archive containing the necessary files to the
initrd.

Xen also supports loading the microcode cpio from any multiboot
module, but for in order to allow the possibility of loading on native
boots (e.g. for build jobs) we prefer the prepend method.

This patch provides mg-cpu-microcode-update which creates a suitable
microcode cpio in the images directory and arranges for it to be added
to the host during installation (so it is done before the kernel is
installed and initramfs generated etc, saving faff). It also adds
"ucode=scan" to the Xen command line when necessary.

The version of initramfs-tools in Wheezy does not yet support
prepending things to the initrm, so we use a custom compression
command which sneakily does it for us. This could be done better from
Jessie onwards.

Note that Linux only supports this from v3.8 onwards, so this doesn't
work for Wheezy (which uses v3.2). From Jessie onwards we should
benefit from microcode updates even for native (build) jobs.

Tested on both Intel and AMD where it appeared to have the desired
effect under Xen. Under native I only tried Wheezy which doesn't
support early microcode.

Note that I've not bothered to implement late microcode updates, which
would work on v3.2 too, since that would need a different set of files
etc and it doesn't seem especially pressing.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Cc: Jan Beulich <JBeulich@suse.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
9 years agoStubdom test case
Wei Liu [Mon, 15 Jun 2015 13:52:37 +0000 (14:52 +0100)]
Stubdom test case

Currently only QEMU traditional supports stubdom and we want to
eventually do away with non-XSM test cases, so we only create

  test-amd64-{i386,amd64}-xl-qemut-stubdom-debianhvm-amd64-xsm

Note that stubdom only supports serial='pty'. Piping serial to stderr
causes stubdom to exit abnormally.

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
9 years agoTestSupport: introduce guest_var_boolean
Wei Liu [Mon, 15 Jun 2015 13:52:36 +0000 (14:52 +0100)]
TestSupport: introduce guest_var_boolean

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
9 years agoosstest: reduce FreeBSD install timeouts flight-58403 flight-58438 flight-58440 flight-58442 flight-58443 flight-58444 flight-58445 flight-58446 flight-58447 flight-58448 flight-58449 flight-58450 flight-58451 flight-58452 flight-58453 flight-58454 flight-58455 flight-58456 flight-58457 flight-58458 flight-58459 flight-58460 flight-58461 flight-58462 flight-58463 flight-58464 flight-58465 flight-58466 flight-58467 flight-58469 flight-58470 flight-58471 flight-58472 flight-58473 flight-58474 flight-58475 flight-58476 flight-58477 flight-58478 flight-58480 flight-58481 flight-58482 flight-58483 flight-58484 flight-58486 flight-58487 flight-58488 flight-58489 flight-58490 flight-58491 flight-58492 flight-58493 flight-58495 flight-58496 flight-58497 flight-58498 flight-58500 flight-58501 flight-58502 flight-58503 flight-58504 flight-58505 flight-58506 flight-58507 flight-58508 flight-58510 flight-58511 flight-58512 flight-58513 flight-58514 flight-58515 flight-58517 flight-58518 flight-58519 flight-58520 flight-58521 flight-58522 flight-58523 flight-58524 flight-58525 flight-58526 flight-58528 flight-58529 flight-58530 flight-58532 flight-58533 flight-58535 flight-58536 flight-58539 flight-58540 flight-58541 flight-58542 flight-58543 flight-58545 flight-58546 flight-58548 flight-58549 flight-58551 flight-58552 flight-58553 flight-58554 flight-58556 flight-58558 flight-58559 flight-58561 flight-58562 flight-58564 flight-58566 flight-58567 flight-58568 flight-58569 flight-58570 flight-58571 flight-58572 flight-58573 flight-58574 flight-58575 flight-58576 flight-58577 flight-58578 flight-58579 flight-58580 flight-58581 flight-58582 flight-58583 flight-58584 flight-58585 flight-58586 flight-58587 flight-58588 flight-58589 flight-58590 flight-58591 flight-58592 flight-58594 flight-58595 flight-58596 flight-58597 flight-58598 flight-58599 flight-58600 flight-58601 flight-58602 flight-58603 flight-58604 flight-58605 flight-58606 flight-58607 flight-58608 flight-58609 flight-58610 flight-58611 flight-58612 flight-58613 flight-58614 flight-58615 flight-58616 flight-58617 flight-58618 flight-58619 flight-58620 flight-58622 flight-58623 flight-58624 flight-58625 flight-58626 flight-58627 flight-58628 flight-58629 flight-58630 flight-58631 flight-58632 flight-58633 flight-58634 flight-58635 flight-58636 flight-58637 flight-58638 flight-58639 flight-58640 flight-58641 flight-58642 flight-58643 flight-58644 flight-58645 flight-58646 flight-58647 flight-58648 flight-58649 flight-58650 flight-58651 flight-58652 flight-58653 flight-58654 flight-58655 flight-58656 flight-58657 flight-58658 flight-58659 flight-58660 flight-58661 flight-58662 flight-58663 flight-58664 flight-58665 flight-58666 flight-58667 flight-58668 flight-58669
Roger Pau Monne [Fri, 29 May 2015 10:38:18 +0000 (11:38 +0100)]
osstest: reduce FreeBSD install timeouts

Only the first block is expected to take longer (because it decompresses
the image and writes it to a LVM volume), the remaining commands should
execute much faster, so reduce the timeout.

Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Cc: Ian Jackson <ian.jackson@eu.citrix.com>
Cc: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
9 years agots-libvirt-build: initscript should depend on xenstored service
Ian Campbell [Tue, 26 May 2015 11:36:00 +0000 (12:36 +0100)]
ts-libvirt-build: initscript should depend on xenstored service

In order that xencommons is guarenteed to have been started before
libvirtd. Otherwise sometimes libvirt can be started first resulting
in:
error: invalid argument: unsupported config type xen-xl

Because xen wasn't available when libvirt started.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
9 years agoIgnore guest-stop failures for windows 7 tests. flight-58356 flight-58357 flight-58358 flight-58359 flight-58360 flight-58361 flight-58362 flight-58363 flight-58364 flight-58365 flight-58366 flight-58367 flight-58368 flight-58369 flight-58370 flight-58371 flight-58372 flight-58373 flight-58374 flight-58375 flight-58376 flight-58377 flight-58378 flight-58379 flight-58380 flight-58381 flight-58382 flight-58383 flight-58384 flight-58385 flight-58386 flight-58387 flight-58388 flight-58389 flight-58390 flight-58391 flight-58392 flight-58393 flight-58394 flight-58395 flight-58396 flight-58397 flight-58398 flight-58399 flight-58400 flight-58401 flight-58402 flight-58404 flight-58405 flight-58406 flight-58407 flight-58408 flight-58409 flight-58410 flight-58411 flight-58412 flight-58413 flight-58414 flight-58415 flight-58416 flight-58417 flight-58418 flight-58419 flight-58420 flight-58421 flight-58422 flight-58423 flight-58424 flight-58425 flight-58426 flight-58427 flight-58428 flight-58432 flight-58433 flight-58435 flight-58436
Ian Campbell [Tue, 9 Jun 2015 09:54:00 +0000 (10:54 +0100)]
Ignore guest-stop failures for windows 7 tests.

As described in <1432284841.10746.136.camel@citrix.com> /
http://lists.xen.org/archives/html/xen-devel/2015-05/msg03016.html
Windows 7 does not appear to reliably actually shutdown when asked to
via the ACPI power button.

This test step has been failing forever until the "Toolstack::xl:
Support for ACPI fallback for shutdown" patch to osstest, and now it
passes only very infrequently, so we may as well ignore it.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Cc: Andrew Cooper <Andrew.Cooper3@citrix.com>
Cc: Paul Durrant <paul.durrant@citrix.com>
Cc: Ian Jackson <Ian.Jackson@eu.citrix.com>,
Cc: Jan Beulich <JBeulich@suse.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
9 years agoToolstack: Do not pass -F to xm shutdown flight-57736 flight-57808 flight-57866 flight-57920 flight-57934 flight-57935 flight-57936 flight-57937 flight-57938 flight-57941 flight-57942 flight-57943 flight-57944 flight-57946 flight-57947 flight-57948 flight-57949 flight-57950 flight-57951 flight-57952 flight-57954 flight-57955 flight-57956 flight-57957 flight-57959 flight-57960 flight-57961 flight-57963 flight-57964 flight-57965 flight-57966 flight-57967 flight-57968 flight-57969 flight-57970 flight-57971 flight-57972 flight-57974 flight-57975 flight-57976 flight-57977 flight-57978 flight-57979 flight-57981 flight-57982 flight-57983 flight-57984 flight-57985 flight-57987 flight-57988 flight-57989 flight-57990 flight-57991 flight-57992 flight-57994 flight-57995 flight-57996 flight-57998 flight-57999 flight-58000 flight-58001 flight-58002 flight-58004 flight-58005 flight-58006 flight-58007 flight-58008 flight-58009 flight-58010 flight-58013 flight-58014 flight-58015 flight-58016 flight-58018 flight-58019 flight-58020 flight-58021 flight-58022 flight-58024 flight-58025 flight-58026 flight-58027 flight-58029 flight-58030 flight-58031 flight-58032 flight-58033 flight-58034 flight-58035 flight-58036 flight-58037 flight-58039 flight-58040 flight-58041 flight-58042 flight-58044 flight-58045 flight-58046 flight-58047 flight-58048 flight-58049 flight-58050 flight-58051 flight-58052 flight-58054 flight-58055 flight-58056 flight-58057 flight-58058 flight-58059 flight-58060 flight-58061 flight-58064 flight-58065 flight-58066 flight-58068 flight-58069 flight-58070 flight-58072 flight-58073 flight-58074 flight-58075 flight-58076 flight-58078 flight-58079 flight-58080 flight-58081 flight-58082 flight-58083 flight-58084 flight-58085 flight-58086 flight-58087 flight-58088 flight-58089 flight-58090 flight-58092 flight-58093 flight-58094 flight-58095 flight-58096 flight-58097 flight-58098 flight-58099 flight-58100 flight-58101 flight-58102 flight-58103 flight-58104 flight-58105 flight-58106 flight-58107 flight-58108 flight-58109 flight-58110 flight-58111 flight-58112 flight-58113 flight-58114 flight-58115 flight-58116 flight-58117 flight-58118 flight-58119 flight-58120 flight-58121 flight-58122 flight-58123 flight-58124 flight-58125 flight-58126 flight-58127 flight-58128 flight-58129 flight-58130 flight-58131 flight-58132 flight-58133 flight-58134 flight-58135 flight-58136 flight-58137 flight-58138 flight-58139 flight-58140 flight-58141 flight-58142 flight-58143 flight-58144 flight-58145 flight-58146 flight-58147 flight-58148 flight-58149 flight-58150 flight-58151 flight-58152 flight-58153 flight-58154 flight-58155 flight-58156 flight-58157 flight-58158 flight-58159 flight-58160 flight-58161 flight-58162 flight-58163 flight-58164 flight-58165 flight-58166 flight-58167 flight-58168 flight-58169 flight-58170 flight-58171 flight-58172 flight-58174 flight-58175 flight-58176 flight-58177 flight-58178 flight-58180 flight-58181 flight-58182 flight-58184 flight-58185 flight-58186 flight-58187 flight-58188 flight-58191 flight-58192 flight-58193 flight-58194 flight-58195 flight-58196 flight-58197 flight-58199 flight-58200 flight-58201 flight-58202 flight-58204 flight-58205 flight-58206 flight-58207 flight-58209 flight-58211 flight-58212 flight-58213 flight-58215 flight-58216 flight-58218 flight-58219 flight-58220 flight-58221 flight-58222 flight-58223 flight-58224 flight-58225 flight-58226 flight-58227 flight-58228 flight-58229 flight-58230 flight-58231 flight-58232 flight-58233 flight-58234 flight-58235 flight-58236 flight-58237 flight-58238 flight-58239 flight-58240 flight-58241 flight-58242 flight-58245 flight-58246 flight-58247 flight-58248 flight-58249 flight-58252 flight-58253 flight-58254 flight-58255 flight-58257 flight-58259 flight-58260 flight-58262 flight-58263 flight-58264 flight-58265 flight-58267 flight-58268 flight-58270 flight-58271 flight-58272 flight-58273 flight-58275 flight-58276 flight-58277 flight-58278 flight-58280 flight-58281 flight-58283 flight-58284 flight-58285 flight-58286 flight-58287 flight-58288 flight-58289 flight-58290 flight-58291 flight-58292 flight-58293 flight-58294 flight-58295 flight-58296 flight-58297 flight-58298 flight-58299 flight-58300 flight-58301 flight-58302 flight-58303 flight-58304 flight-58305 flight-58306 flight-58307 flight-58308 flight-58309 flight-58310 flight-58311 flight-58312 flight-58313 flight-58314 flight-58315 flight-58316 flight-58317 flight-58318 flight-58319 flight-58320 flight-58321 flight-58322 flight-58323 flight-58324 flight-58325 flight-58326 flight-58327 flight-58328 flight-58329 flight-58330 flight-58331 flight-58332 flight-58333 flight-58334 flight-58335 flight-58336 flight-58337 flight-58338 flight-58339 flight-58340 flight-58341 flight-58342 flight-58343 flight-58344 flight-58345 flight-58346 flight-58347 flight-58348 flight-58349 flight-58350 flight-58351 flight-58352 flight-58353 flight-58354 flight-58355
Ian Campbell [Mon, 1 Jun 2015 08:32:37 +0000 (09:32 +0100)]
Toolstack: Do not pass -F to xm shutdown

This is a feature of xl only.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
9 years agots-kernel-build: enable PVH support flight-57482 flight-57559 flight-57633 flight-57634 flight-57635 flight-57636 flight-57637 flight-57638 flight-57639 flight-57640 flight-57641 flight-57642 flight-57643 flight-57644 flight-57645 flight-57646 flight-57647 flight-57648 flight-57649 flight-57650 flight-57651 flight-57652 flight-57653 flight-57654 flight-57655 flight-57656 flight-57657 flight-57658 flight-57659 flight-57660 flight-57661 flight-57662 flight-57663 flight-57664 flight-57665 flight-57666 flight-57667 flight-57668 flight-57669 flight-57670 flight-57671 flight-57672 flight-57673 flight-57674 flight-57675 flight-57676 flight-57677 flight-57678 flight-57679 flight-57680 flight-57681 flight-57682 flight-57683 flight-57684 flight-57685 flight-57686 flight-57687 flight-57688 flight-57689 flight-57690 flight-57691 flight-57692 flight-57693 flight-57694 flight-57695 flight-57696 flight-57697 flight-57698 flight-57699 flight-57700 flight-57701 flight-57702 flight-57703 flight-57704 flight-57705 flight-57706 flight-57707 flight-57708 flight-57709 flight-57710 flight-57711 flight-57712 flight-57713 flight-57714 flight-57715 flight-57716 flight-57717 flight-57718 flight-57719 flight-57720 flight-57721 flight-57722 flight-57723 flight-57724 flight-57725 flight-57726 flight-57727 flight-57728 flight-57729 flight-57730 flight-57731 flight-57732 flight-57733 flight-57734 flight-57735 flight-57737 flight-57738 flight-57739 flight-57740 flight-57741 flight-57742 flight-57743 flight-57744 flight-57745 flight-57746 flight-57747 flight-57748 flight-57749 flight-57750 flight-57751 flight-57752 flight-57753 flight-57754 flight-57755 flight-57756 flight-57757 flight-57758 flight-57759 flight-57760 flight-57761 flight-57762 flight-57763 flight-57764 flight-57765 flight-57766 flight-57767 flight-57768 flight-57769 flight-57770 flight-57771 flight-57772 flight-57773 flight-57774 flight-57775 flight-57776 flight-57777 flight-57778 flight-57779 flight-57780 flight-57781 flight-57782 flight-57783 flight-57784 flight-57785 flight-57786 flight-57787 flight-57788 flight-57789 flight-57790 flight-57791 flight-57792 flight-57793 flight-57794 flight-57795 flight-57796 flight-57797 flight-57798 flight-57799 flight-57800 flight-57801 flight-57802 flight-57803 flight-57804 flight-57805 flight-57806 flight-57807 flight-57809 flight-57810 flight-57811 flight-57812 flight-57813 flight-57814 flight-57815 flight-57816 flight-57817 flight-57818 flight-57819 flight-57820 flight-57821 flight-57822 flight-57823 flight-57824 flight-57825 flight-57826 flight-57827 flight-57828 flight-57829 flight-57830 flight-57831 flight-57832 flight-57833 flight-57834 flight-57835 flight-57836 flight-57837 flight-57838 flight-57839 flight-57840 flight-57841 flight-57842 flight-57843 flight-57844 flight-57845 flight-57846 flight-57847 flight-57848 flight-57849 flight-57850 flight-57851 flight-57852 flight-57853 flight-57854 flight-57855 flight-57856 flight-57857 flight-57858 flight-57859 flight-57860 flight-57861 flight-57862 flight-57863 flight-57864 flight-57865 flight-57867 flight-57868 flight-57869 flight-57870 flight-57871 flight-57872 flight-57873 flight-57874 flight-57875 flight-57876 flight-57877 flight-57878 flight-57879 flight-57880 flight-57881 flight-57882 flight-57883 flight-57893 flight-57894 flight-57895 flight-57896 flight-57897 flight-57898 flight-57899 flight-57900 flight-57901 flight-57902 flight-57903 flight-57904 flight-57905 flight-57906 flight-57907 flight-57908 flight-57909 flight-57910 flight-57911 flight-57912 flight-57913 flight-57914 flight-57915 flight-57916 flight-57917 flight-57918 flight-57919 flight-57921 flight-57922 flight-57923 flight-57924 flight-57925 flight-57926 flight-57927 flight-57928 flight-57929 flight-57930 flight-57931 flight-57932 flight-57933
Roger Pau Monne [Thu, 28 May 2015 16:00:57 +0000 (17:00 +0100)]
ts-kernel-build: enable PVH support

Enable PVH support on kernels build by OSSTest.

Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Cc: Ian Jackson <ian.jackson@eu.citrix.com>
Cc: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
9 years agoFreeBSD: use custom image containing atkbd fix
Roger Pau Monne [Thu, 28 May 2015 15:59:08 +0000 (16:59 +0100)]
FreeBSD: use custom image containing atkbd fix

Recent failures are due to a bug in x86emu when trying to call into
the BIOS in order to get the repeat rate and keyboard frequency.  This
image contains the following fix, which should prevent the issue by
not calling into the BIOS anymore:

https://svnweb.freebsd.org/base?view=revision&revision=283219

Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
9 years agogrub: remove patch to disable submenu from 20_linux_xen overlay flight-57356 flight-57401 flight-57445 flight-57446 flight-57447 flight-57448 flight-57449 flight-57450 flight-57451 flight-57452 flight-57453 flight-57454 flight-57455 flight-57456 flight-57457 flight-57458 flight-57459 flight-57460 flight-57461 flight-57462 flight-57463 flight-57464 flight-57465 flight-57466 flight-57467 flight-57468 flight-57469 flight-57470 flight-57471 flight-57472 flight-57473 flight-57474 flight-57475 flight-57476 flight-57477 flight-57478 flight-57479 flight-57480 flight-57481 flight-57483 flight-57484 flight-57485 flight-57486 flight-57487 flight-57488 flight-57489 flight-57490 flight-57491 flight-57492 flight-57493 flight-57494 flight-57495 flight-57496 flight-57497 flight-57498 flight-57499 flight-57500 flight-57501 flight-57502 flight-57503 flight-57504 flight-57505 flight-57506 flight-57507 flight-57508 flight-57509 flight-57510 flight-57511 flight-57512 flight-57513 flight-57514 flight-57515 flight-57516 flight-57517 flight-57518 flight-57519 flight-57520 flight-57521 flight-57522 flight-57523 flight-57524 flight-57525 flight-57526 flight-57527 flight-57528 flight-57529 flight-57530 flight-57531 flight-57532 flight-57533 flight-57534 flight-57535 flight-57536 flight-57537 flight-57538 flight-57539 flight-57540 flight-57541 flight-57542 flight-57543 flight-57544 flight-57545 flight-57546 flight-57547 flight-57548 flight-57549 flight-57550 flight-57551 flight-57552 flight-57553 flight-57554 flight-57555 flight-57556 flight-57557 flight-57558 flight-57560 flight-57561 flight-57562 flight-57563 flight-57564 flight-57565 flight-57566 flight-57567 flight-57568 flight-57569 flight-57570 flight-57571 flight-57572 flight-57573 flight-57574 flight-57575 flight-57576 flight-57577 flight-57578 flight-57579 flight-57580 flight-57581 flight-57582 flight-57583 flight-57584 flight-57585 flight-57586 flight-57587 flight-57588 flight-57589 flight-57590 flight-57591 flight-57592 flight-57593 flight-57594 flight-57595 flight-57596 flight-57597 flight-57598 flight-57599 flight-57600 flight-57601 flight-57602 flight-57603 flight-57604 flight-57605 flight-57606 flight-57607 flight-57608 flight-57609 flight-57610 flight-57611 flight-57612 flight-57613 flight-57614 flight-57615 flight-57616 flight-57617 flight-57618 flight-57619 flight-57620 flight-57621 flight-57622 flight-57623 flight-57624 flight-57625 flight-57626 flight-57627 flight-57628 flight-57629 flight-57630 flight-57631 flight-57632
Ian Campbell [Wed, 6 May 2015 10:41:11 +0000 (11:41 +0100)]
grub: remove patch to disable submenu from 20_linux_xen overlay

setupboot_grub2 now supports submenus, so we can reduce our delta vs
upstream a bit.

I started by extracting 20_linux_xen from
http://snapshot.debian.org/archive/debian/20130703T094657Z/pool/main/g/grub2/grub-common_1.99-27%2Bdeb7u2_amd64.deb
and then applying the patch at
http://savannah.gnu.org/file/grub.patch?file_id=32276 (the patch from
grub bug #42420 at http://savannah.gnu.org/bugs/?43420) and
reinstating the comment at the top of the file (modified to drop the
reference to the Debian bug.

This left me with some spurious changes:

    @@ -93,7 +93,7 @@ linux_entry ()
           if test ! -e "${xen_dirname}/${xenpolicy}" ; then
              return
           fi
    -      xen_args=`echo $xen_args flask=enforcing`
    +      xen_args=`echo $xen_args flask_enabled=1 flask_enforcing=1`
           if ${recovery} ; then
              title="$(gettext_quoted "%s, with Xen %s (XSM enabled) and Linux %s (recovery mode)")"
           else
    @@ -137,7 +137,6 @@ EOF
            echo    '$message'
            module  ${rel_dirname}/${xenpolicy}
     EOF
    -  fi
       cat << EOF
     }
     EOF

I think these are bugs in the patch in the grub BTS, which were fixed
while iterating over the XSM series in osstest but didn't make it into
the upstream version, the fixes to those bugs are reverted byu the
above. So I have manually reverted them.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
Cc: Wei.Lui@citrix.com
Cc: longtaox.pang@intel.com
9 years agoChanges to support '/boot' leading paths of kernel, xen, in grub
longtao.pang [Tue, 26 May 2015 09:08:20 +0000 (17:08 +0800)]
Changes to support '/boot' leading paths of kernel, xen, in grub

Support situations of grub that have vmlinuz and other things starting
with path of '/boot' rather than '/'.

Signed-off-by: longtao.pang <longtaox.pang@intel.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
9 years agoParsing grub which has 'submenu' primitive
longtao.pang [Tue, 26 May 2015 09:08:19 +0000 (17:08 +0800)]
Parsing grub which has 'submenu' primitive

Now auto-gen kernel grub2 config file's boot menu entries can have
2-level hierarchy, containing 'submenu' primitive, which is comprised by
several sub-menuentries. Xen boot entries are grouped into such kind of
'submenu' block. This patch adds setupboot_grub2() ability to handle
such new grub.cfg format

Signed-off-by: longtao.pang <longtaox.pang@intel.com>
Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
[ ijc -- minor coding style fixup and dropped comment made obsolete by
         this change ]

9 years agocr-for-branches: Add linux-3.18 flight-57311 flight-57312 flight-57313 flight-57314 flight-57315 flight-57316 flight-57317 flight-57318 flight-57319 flight-57320 flight-57321 flight-57322 flight-57323 flight-57324 flight-57325 flight-57326 flight-57327 flight-57328 flight-57329 flight-57330 flight-57331 flight-57332 flight-57333 flight-57334 flight-57335 flight-57336 flight-57337 flight-57338 flight-57339 flight-57340 flight-57341 flight-57342 flight-57343 flight-57344 flight-57345 flight-57346 flight-57347 flight-57348 flight-57349 flight-57350 flight-57351 flight-57352 flight-57353 flight-57354 flight-57355 flight-57357 flight-57358 flight-57359 flight-57360 flight-57361 flight-57362 flight-57363 flight-57364 flight-57365 flight-57366 flight-57367 flight-57368 flight-57369 flight-57370 flight-57371 flight-57372 flight-57373 flight-57374 flight-57375 flight-57376 flight-57377 flight-57378 flight-57379 flight-57380 flight-57381 flight-57382 flight-57383 flight-57384 flight-57385 flight-57386 flight-57387 flight-57388 flight-57389 flight-57390 flight-57391 flight-57392 flight-57393 flight-57394 flight-57395 flight-57396 flight-57397 flight-57398 flight-57399 flight-57400 flight-57402 flight-57403 flight-57404 flight-57405 flight-57406 flight-57407 flight-57408 flight-57409 flight-57410 flight-57411 flight-57412 flight-57413 flight-57414 flight-57415 flight-57416 flight-57417 flight-57418 flight-57419 flight-57420 flight-57421 flight-57422 flight-57423 flight-57424 flight-57425 flight-57426 flight-57427 flight-57428 flight-57429 flight-57430 flight-57431 flight-57432 flight-57433 flight-57434 flight-57435 flight-57436 flight-57437 flight-57438 flight-57439 flight-57440 flight-57441 flight-57442 flight-57443 flight-57444
Ian Campbell [Tue, 26 May 2015 11:44:09 +0000 (12:44 +0100)]
cr-for-branches: Add linux-3.18

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
9 years agoMove the code for setting memory size into prep() flight-56996 flight-57080 flight-57081 flight-57082 flight-57083 flight-57084 flight-57085 flight-57086 flight-57087 flight-57088 flight-57089 flight-57090 flight-57091 flight-57092 flight-57093 flight-57094 flight-57095 flight-57096 flight-57097 flight-57098 flight-57099 flight-57100 flight-57101 flight-57102 flight-57103 flight-57104 flight-57105 flight-57106 flight-57107 flight-57108 flight-57109 flight-57110 flight-57111 flight-57112 flight-57113 flight-57115 flight-57116 flight-57117 flight-57118 flight-57119 flight-57120 flight-57121 flight-57122 flight-57123 flight-57124 flight-57125 flight-57126 flight-57127 flight-57128 flight-57129 flight-57130 flight-57131 flight-57132 flight-57133 flight-57134 flight-57135 flight-57136 flight-57137 flight-57138 flight-57139 flight-57140 flight-57141 flight-57142 flight-57143 flight-57144 flight-57145 flight-57146 flight-57147 flight-57148 flight-57149 flight-57150 flight-57151 flight-57152 flight-57153 flight-57154 flight-57155 flight-57156 flight-57157 flight-57158 flight-57159 flight-57160 flight-57161 flight-57162 flight-57163 flight-57164 flight-57165 flight-57166 flight-57167 flight-57168 flight-57169 flight-57170 flight-57171 flight-57172 flight-57173 flight-57174 flight-57175 flight-57176 flight-57177 flight-57178 flight-57179 flight-57180 flight-57181 flight-57182 flight-57183 flight-57184 flight-57185 flight-57186 flight-57187 flight-57188 flight-57189 flight-57190 flight-57191 flight-57192 flight-57193 flight-57194 flight-57195 flight-57196 flight-57197 flight-57198 flight-57199 flight-57200 flight-57201 flight-57202 flight-57203 flight-57204 flight-57205 flight-57206 flight-57207 flight-57208 flight-57209 flight-57210 flight-57211 flight-57212 flight-57213 flight-57214 flight-57215 flight-57216 flight-57217 flight-57218 flight-57219 flight-57220 flight-57221 flight-57222 flight-57223 flight-57224 flight-57225 flight-57226 flight-57227 flight-57228 flight-57229 flight-57230 flight-57231 flight-57232 flight-57233 flight-57234 flight-57235 flight-57236 flight-57237 flight-57238 flight-57239 flight-57240 flight-57241 flight-57242 flight-57243 flight-57244 flight-57245 flight-57246 flight-57247 flight-57248 flight-57249 flight-57250 flight-57251 flight-57252 flight-57253 flight-57254 flight-57255 flight-57256 flight-57257 flight-57258 flight-57259 flight-57260 flight-57261 flight-57262 flight-57263 flight-57264 flight-57265 flight-57266 flight-57267 flight-57268 flight-57269 flight-57270 flight-57271 flight-57272 flight-57273 flight-57274 flight-57275 flight-57276 flight-57277 flight-57278 flight-57279 flight-57280 flight-57281 flight-57282 flight-57283 flight-57284 flight-57285 flight-57286 flight-57287 flight-57288 flight-57289 flight-57290 flight-57291 flight-57292 flight-57293 flight-57294 flight-57295 flight-57296 flight-57297 flight-57298 flight-57299 flight-57300 flight-57301 flight-57302 flight-57303 flight-57304 flight-57305 flight-57306 flight-57307 flight-57308 flight-57310
longtao.pang [Wed, 13 May 2015 03:36:40 +0000 (11:36 +0800)]
Move the code for setting memory size into prep()

Move the code for setting memory size from outside into prep(),
where these $ram_mb operations are only used; And in next patch,
for L2 guest installation, $ram_mb will be overridden by a runvar value,
which needs $gho in scope.

This is pure code motion. No functional change.

Signed-off-by: longtao.pang <longtaox.pang@intel.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
9 years agoEdit some APIs in TestSupport.pm for nested test
longtao.pang [Wed, 13 May 2015 03:36:39 +0000 (11:36 +0800)]
Edit some APIs in TestSupport.pm for nested test

1. If vif model is defined for guest, use it in guest's configuration
2. In L2 installation context, its host (L1) shall not have a static IP
but stored in runvar in L1 installation before; use this stored runvar
IP.

Signed-off-by: longtao.pang <longtaox.pang@intel.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
[ ijc -- resolved conflict with addition of ${viftype}, made
         ${vifmodel} a prefix rather than postfix thing for
         consistency with ${viftype}. ]

9 years agoRefactor installation of overlays
longtao.pang [Wed, 13 May 2015 03:36:38 +0000 (11:36 +0800)]
Refactor installation of overlays

Apply overlay to guests as well as hosts by moving to preseed_base.

We do this because we want to be able to:
       * Use '/etc/init.d/osstest-confirm-booted' for guests as
         well as hosts (in particular when testing nestedhvm
         we sometimes want to treat a guest as a host).
       * Use grub's 20_linux_xen which is harmless unless Xen is
         installed in the guest which is the case only for
         nestedhvm testing when we want these changes.
The other things in the overlay are some initscripts
(xenbridge and xenlightdaemons) which are not enabled for guests and
hence are therefore harmless.

Signed-off-by: longtao.pang <longtaox.pang@intel.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
9 years agoRevert "cs-bisection-step: allow -bisect blessed flights for basis pass" flight-56820 flight-56821 flight-56822 flight-56823 flight-56824 flight-56825 flight-56826 flight-56827 flight-56828 flight-56829 flight-56830 flight-56831 flight-56832 flight-56833 flight-56834 flight-56835 flight-56836 flight-56837 flight-56838 flight-56839 flight-56840 flight-56841 flight-56842 flight-56843 flight-56844 flight-56845 flight-56846 flight-56847 flight-56848 flight-56849 flight-56850 flight-56851 flight-56852 flight-56853 flight-56854 flight-56855 flight-56856 flight-56857 flight-56858 flight-56859 flight-56860 flight-56861 flight-56862 flight-56863 flight-56864 flight-56865 flight-56866 flight-56867 flight-56868 flight-56869 flight-56870 flight-56871 flight-56872 flight-56873 flight-56874 flight-56875 flight-56876 flight-56877 flight-56878 flight-56879 flight-56880 flight-56881 flight-56882 flight-56883 flight-56884 flight-56885 flight-56886 flight-56887 flight-56888 flight-56889 flight-56890 flight-56891 flight-56892 flight-56893 flight-56894 flight-56895 flight-56896 flight-56897 flight-56898 flight-56899 flight-56900 flight-56901 flight-56902 flight-56903 flight-56904 flight-56905 flight-56906 flight-56907 flight-56908 flight-56909 flight-56910 flight-56911 flight-56912 flight-56913 flight-56914 flight-56915 flight-56916 flight-56917 flight-56918 flight-56919 flight-56920 flight-56921 flight-56923 flight-56924 flight-56925 flight-56926 flight-56927 flight-56928 flight-56929 flight-56930 flight-56931 flight-56932 flight-56933 flight-56934 flight-56935 flight-56936 flight-56937 flight-56938 flight-56939 flight-56940 flight-56941 flight-56942 flight-56943 flight-56944 flight-56945 flight-56946 flight-56947 flight-56948 flight-56949 flight-56950 flight-56951 flight-56952 flight-56953 flight-56954 flight-56955 flight-56956 flight-56958 flight-56959 flight-56960 flight-56961 flight-56962 flight-56963 flight-56964 flight-56965 flight-56966 flight-56967 flight-56968 flight-56969 flight-56970 flight-56971 flight-56972 flight-56973 flight-56974 flight-56975 flight-56976 flight-56977 flight-56978 flight-56979 flight-56980 flight-56981 flight-56982 flight-56983 flight-56984 flight-56985 flight-56986 flight-56987 flight-56988 flight-56989 flight-56990 flight-56991 flight-56992 flight-56993 flight-56994 flight-56995 flight-56997 flight-56998 flight-56999 flight-57000 flight-57001 flight-57002 flight-57003 flight-57004 flight-57005 flight-57006 flight-57007 flight-57008 flight-57009 flight-57010 flight-57011 flight-57012 flight-57013 flight-57014 flight-57015 flight-57016 flight-57017 flight-57018 flight-57019 flight-57020 flight-57021 flight-57022 flight-57023 flight-57024 flight-57025 flight-57026 flight-57027 flight-57028 flight-57029 flight-57030 flight-57031 flight-57032 flight-57033 flight-57034 flight-57035 flight-57036 flight-57037 flight-57038 flight-57039 flight-57040 flight-57041 flight-57042 flight-57043 flight-57044 flight-57045 flight-57046 flight-57047 flight-57048 flight-57049 flight-57050 flight-57051 flight-57052 flight-57053 flight-57054 flight-57055 flight-57056 flight-57057 flight-57058 flight-57059 flight-57060 flight-57061 flight-57062 flight-57063 flight-57064 flight-57065 flight-57066 flight-57067 flight-57068 flight-57069 flight-57070 flight-57071 flight-57072 flight-57073 flight-57074 flight-57075 flight-57076 flight-57077 flight-57078 flight-57079
Ian Jackson [Wed, 20 May 2015 12:43:39 +0000 (13:43 +0100)]
Revert "cs-bisection-step: allow -bisect blessed flights for basis pass"

If the bisector is allowed to consider its own output flights as
candidates for the basis pass, then it will (generally) restart with a
new basis each time it finds a pass.

This is very slow and wasteful.

There is not much explanation in 01edca47 of the change I am now
reverting, but I think I probably created by some semi-manual process
a flight to serve as the basis.  I now think that my mistake was to
bless that flight `adhoc-bisect' or some such, rather than `adhoc'.

This reverts commit 01edca47be3742a1660b1956c1f06ca934b97352.

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
9 years agocs-bisection-step: Do not treat repro attempts as flail
Ian Jackson [Wed, 20 May 2015 12:36:15 +0000 (13:36 +0100)]
cs-bisection-step: Do not treat repro attempts as flail

The need_repro machinery deliberarely makes attempts to reproduce
various results.

This can cause the flail detector to trigger when not intended.  In
particular, the bisector may have (for some reason[1]) restarted with
a new baseline, and the temporarally-stripy pass/fail requirement
would then require the basis fail to be repro'd, again.

[1] Currently this happens much more often than is desirable.  This
will be fixed in a moment.

Fix this by only considering, for the purposes of flail, flights which
are no older than the first repro (the basis pass).

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
9 years agoRevert "cs-bisection-step: Abandon repro attempts after a bit"
Ian Jackson [Wed, 20 May 2015 11:30:19 +0000 (12:30 +0100)]
Revert "cs-bisection-step: Abandon repro attempts after a bit"

This safety catch is unnecessary and unhelpful.

It is unnecessary because 489773b4 "Detect flailing" will detect
attempts by the bisector to repeatedly run the same flight and hope
for different results.

It is unhelpful because it can happen for good reasons that a
particular revision has been tested many times.  In particular:

 - The osstest push gate input tree may have not been advanced for a
   long time and been failing its push gate.

 - The bisector may have (for some reason[1]) restarted with a new
   baseline, and the temporarally-stripy pass/fail requirement would
   then require the basis fail to be repro'd, again.

[1] Currently this happens much more often than is desirable.  This
will be fixed in a moment.

This reverts commit 2676277181599a889657354028b992379aa6142b.

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
9 years agocs-bisection-step: Flail detection: look only at our blessing
Ian Jackson [Wed, 20 May 2015 12:11:41 +0000 (13:11 +0100)]
cs-bisection-step: Flail detection: look only at our blessing

When looking for identical previously flights, consider only ones
which have the same blessing as our prospective flight will have.

There are good reasons why apparently identical flights might appear
with other in-scope blessings: notably, a single-test-job main branch
might produce many failures from its push gate, which would all have
the main branch blessing (rather than the bisector's blessing).

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
9 years agocs-bisection-step: Clarify and correct flailing message
Ian Jackson [Wed, 20 May 2015 12:06:37 +0000 (13:06 +0100)]
cs-bisection-step: Clarify and correct flailing message

There are many other possible reasons for this, besides a bug in the
build version machinery.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
9 years agocs-bisection-step: Refer to jobs we create just by job name
Ian Jackson [Wed, 20 May 2015 11:49:05 +0000 (12:49 +0100)]
cs-bisection-step: Refer to jobs we create just by job name

When we make a fresh build job, rather than referring to an existing
job in another flight, pass to the rest of the machinery only the job
name, not <flight>.<job>.

This means that the generated flight refers to its own jobs without
specifying the flight number.  This allows the flail detector to
operate properly: without this, we might have repeated attempts to
test and build the same thing, but they would look identical because
their self-referential runvars would be different due to their
different flight numbers.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
9 years agots-host-install: die on unknown options flight-56739 flight-56801 flight-56817 flight-56818 flight-56819
Ian Jackson [Mon, 18 May 2015 12:46:07 +0000 (13:46 +0100)]
ts-host-install: die on unknown options

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
9 years agots-host-install: New --poweron-test-only option
Ian Jackson [Fri, 15 May 2015 16:54:03 +0000 (16:54 +0000)]
ts-host-install: New --poweron-test-only option

We are having a difficulty with one of the test boxes, which can be
most easily reproduced by running ts-host-install to power cycle the
box and then see if it wakes up enough to fetch a preseed file.

Keep this mode of operation in tree in case it's useful in future.

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
9 years agots-host-install: Fix indentation error
Ian Jackson [Fri, 15 May 2015 16:53:33 +0000 (16:53 +0000)]
ts-host-install: Fix indentation error

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
9 years agoRevert "allow.all: Ignore FreeBSD local migration failures"
Ian Jackson [Sat, 16 May 2015 00:15:30 +0000 (01:15 +0100)]
Revert "allow.all: Ignore FreeBSD local migration failures"

We think these are solved by the new FreeBSD images, in
"FreeBSD: use custom image containing BSD netfront bugfix"

This reverts commit fcb818eeb543fbf9f7d2cbc572531c0a5bf312ef.

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
9 years agoFreeBSD: use custom image containing BSD netfront bugfix
Ian Jackson [Fri, 15 May 2015 17:03:01 +0000 (18:03 +0100)]
FreeBSD: use custom image containing BSD netfront bugfix

Roger has supplied these images which contain a fix for a netfront bug
in FreeBSD: it would send the gratuitous ARP before netback was ready,
so it could get lost, leading to stochastic migration failures:
  https://svnweb.freebsd.org/base?view=revision&revision=282908

Here is the runvar diff:
 - test-amd64-i386-freebsd10-amd64 freebsd_image FreeBSD-10.1-RELEASE-amd64.raw.xz
 - test-amd64-i386-freebsd10-i386  freebsd_image FreeBSD-10.1-RELEASE-i386.raw.xz
 + test-amd64-i386-freebsd10-amd64 freebsd_image FreeBSD-10.1-CUSTOM-amd64-20150518.raw.xz
 + test-amd64-i386-freebsd10-i386  freebsd_image FreeBSD-10.1-CUSTOM-i386-20150518.raw.xz
I have confirmed that these are the right filenames.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
9 years agoDebian: correct u-boot command to load flask policy flight-56691 flight-56734 flight-56740 flight-56741 flight-56742 flight-56743 flight-56744 flight-56745 flight-56746 flight-56747 flight-56748 flight-56749 flight-56750 flight-56751 flight-56754 flight-56755 flight-56756 flight-56757 flight-56758 flight-56759 flight-56760 flight-56761 flight-56762 flight-56763 flight-56764 flight-56765 flight-56766 flight-56767 flight-56768 flight-56769 flight-56770 flight-56771 flight-56772 flight-56773 flight-56774 flight-56775 flight-56776 flight-56777 flight-56779 flight-56780 flight-56781 flight-56782 flight-56783 flight-56784 flight-56785 flight-56786 flight-56787 flight-56788 flight-56789 flight-56790 flight-56791 flight-56792 flight-56793 flight-56794 flight-56795 flight-56796 flight-56797 flight-56798 flight-56799 flight-56800 flight-56802 flight-56803 flight-56804 flight-56805 flight-56806 flight-56807 flight-56808 flight-56809 flight-56810 flight-56811 flight-56812 flight-56813 flight-56814 flight-56815 flight-56816
Ian Campbell [Fri, 15 May 2015 18:54:36 +0000 (19:54 +0100)]
Debian: correct u-boot command to load flask policy

The use of the $flaskpolocy variable is escaped only once, meaning it
is interpreted by the shell on the test host, a context in which it
is not set (it is set in Perl, and it would be set in u-boot env by
the line above). The symptom was that the ext2load command got given
no file to load and so tries to load the default "pxelinux.0":

May 14 20:47:47.108243 ## Executing script at 43100000
May 14 20:47:47.111115 Loading dtbs/sun7i-a20-cubietruck.dtb
May 14 20:47:47.114489 22007 bytes read in 114 ms (188.5 KiB/s)
May 14 20:47:47.252237 820116 bytes read in 114 ms (6.9 MiB/s)
May 14 20:47:47.396931 Loaded xen-4.6-unstable to 0x41000000 (c8394)
May 14 20:47:47.400989 command line: [...]
May 14 20:47:47.413380 4963576 bytes read in 214 ms (22.1 MiB/s)
May 14 20:47:47.653005 Loaded vmlinuz-3.16.7-ckt4+ to 0x42000000 (4bbcf8)
May 14 20:47:47.657999 command line: [...]
May 14 20:47:47.671376 12501593 bytes read in 510 ms (23.4 MiB/s)
May 14 20:47:48.203299 Loaded initrd.img-3.16.7-ckt4+ to 0x43300000 (bec259)
May 14 20:47:48.208406 ** File not found pxelinux.0 **
May 14 20:47:48.294291 Loaded xenpolicy-4.6-unstable to 0x41200000 (bec259)

The filesize in the log message remains the same as the initrd because
nothing is actually loaded so the variable isn't updated.

Rather than adding additional backticks to quote it to be interpreted
by u-boot, remove the quoting so it is interpreted by Perl, making
the setting of the u-boot var (which in any case used the wrong
syntax) unnecessary. This matches what we do for the kernel etc too.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Cc: Wei Liu <Wei.Liu2@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
9 years agoRevert "ts-logs-capture: collect resize2fs.log"
Ian Jackson [Wed, 11 Jun 2014 17:11:23 +0000 (18:11 +0100)]
Revert "ts-logs-capture: collect resize2fs.log"

This is no longer generated.

This reverts commit 9f299b936d1812bfd958d2771676a8de3cf9c060.

9 years agots-xen-build-prep: mkfs a new /home/osstest, don't resize2fs
Ian Jackson [Wed, 11 Jun 2014 20:38:27 +0000 (21:38 +0100)]
ts-xen-build-prep: mkfs a new /home/osstest, don't resize2fs

Online resize is 40x slower than mkfs.  It appears that the
backgrounded resize2fs can starve build tasks of IO bandwidth.

So instead, use mkfs to make a new filesystem for /home/osstest.
We use rsync to copy in the old contents.

For convenience of (a) review (b) possible reversion, we keep (for
now) the lvextend machinery.  So we create a new 1-extent LV for the
lvextend machinery to work on.

But we don't call resize2fs when we extend it, because now it doesn't
have a fs on it yet.  We make the filesystem later.

We move the ccache_setup until after this is done because it's a bit
pointless to put things in the to-be-removed /home/osstest when they
could be put in the new one after it had been set up.

We take slight care to make the rune slightly idempotent: if it
completed successfully we detect this and do not run it again.  But if
it didn't, things may be messed up and running it again is unlikely to
help and may make things worse.

I have tested this on rice-weevil and the whole new target command
(including rsync, mkfs, mount etc.) takes 126s.

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
9 years agots-xen-build-prep: Break out determine_vg_lv
Ian Jackson [Wed, 11 Jun 2014 20:37:02 +0000 (21:37 +0100)]
ts-xen-build-prep: Break out determine_vg_lv

And make $lv a global.

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
9 years agoTestSupport: break out lv_dev_mapper
Ian Jackson [Wed, 11 Jun 2014 17:28:55 +0000 (18:28 +0100)]
TestSupport: break out lv_dev_mapper

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
9 years agots-xen-build-prep: Abolish "background" parameter to lvextend
Ian Jackson [Wed, 11 Jun 2014 17:13:10 +0000 (18:13 +0100)]
ts-xen-build-prep: Abolish "background" parameter to lvextend

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
9 years agoRevert "ts-xen-build-prep: Run the backgrounded resize2fs with ionice"
Ian Jackson [Wed, 11 Jun 2014 17:10:43 +0000 (18:10 +0100)]
Revert "ts-xen-build-prep: Run the backgrounded resize2fs with ionice"

This did not really help.  We are going to do something different.

This reverts commit ee31a32af1fc9a38ad08b4a36ee69e1c58ea0828.

9 years agoDebian: Log which kernel/initrd we failed to copy.
Ian Campbell [Fri, 6 Mar 2015 10:05:34 +0000 (10:05 +0000)]
Debian: Log which kernel/initrd we failed to copy.

Helpful to trackdown which config var I've got wrong.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
9 years agoi18n/l10n: Make Timezone configurable and change the default
Ian Jackson [Fri, 15 May 2015 10:31:35 +0000 (11:31 +0100)]
i18n/l10n: Make Timezone configurable and change the default

* Introduce a new config option Timezone
* Replace hardcoded Europe/London everywhere with $c{Timezone}
* The default is UTC
* But in production-config-cambridge set it to Europe/London

The overall effect is:
* No change in Cambridge
* Default timezone changes to UTC but can now be overridden
* Production instance timezone changes to UTC

(It appears that there is no reasonable way to find out the Olson TZ
name of the controller host's default timezone.  If there were, or we
discover one, we should arrange that the default is set
appropriately.)

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
9 years agots-logs-capture: Collect /var/log/messages and /var/log/debug
Ian Jackson [Thu, 14 May 2015 17:41:21 +0000 (18:41 +0100)]
ts-logs-capture: Collect /var/log/messages and /var/log/debug

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
9 years agoproduction-config: Use /home/logs, not /home/osstest/pub
Ian Jackson [Thu, 14 May 2015 17:12:30 +0000 (18:12 +0100)]
production-config: Use /home/logs, not /home/osstest/pub

The logs and images (including .../logs, .../results, etc.) are now on
their own filesystem on the production osstest VM, which I have called
/home/logs.

Changing this in production config will allow us to tidy up by
removing the symlink I left behind.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
9 years agosg-run-job: Repeat rumpuserxen-demo-xenstorels test 150 times flight-56372 flight-56412 flight-56474 flight-56475 flight-56476 flight-56477 flight-56478 flight-56479 flight-56480 flight-56481 flight-56482 flight-56483 flight-56484 flight-56485 flight-56486 flight-56487 flight-56488 flight-56489 flight-56490 flight-56492 flight-56493 flight-56494 flight-56495 flight-56496 flight-56497 flight-56498 flight-56499 flight-56500 flight-56501 flight-56502 flight-56503 flight-56504 flight-56505 flight-56506 flight-56507 flight-56508 flight-56509 flight-56510 flight-56511 flight-56512 flight-56513 flight-56514 flight-56515 flight-56516 flight-56517 flight-56518 flight-56519 flight-56520 flight-56521 flight-56522 flight-56523 flight-56524 flight-56525 flight-56526 flight-56527 flight-56528 flight-56529 flight-56530 flight-56531 flight-56532 flight-56533 flight-56534 flight-56535 flight-56536 flight-56537 flight-56538 flight-56539 flight-56540 flight-56541 flight-56543 flight-56544 flight-56545 flight-56546 flight-56547 flight-56548 flight-56549 flight-56550 flight-56551 flight-56552 flight-56553 flight-56554 flight-56555 flight-56556 flight-56557 flight-56558 flight-56559 flight-56560 flight-56561 flight-56562 flight-56563 flight-56564 flight-56565 flight-56566 flight-56567 flight-56568 flight-56569 flight-56570 flight-56571 flight-56572 flight-56573 flight-56574 flight-56575 flight-56576 flight-56577 flight-56578 flight-56579 flight-56580 flight-56582 flight-56583 flight-56584 flight-56585 flight-56586 flight-56587 flight-56588 flight-56589 flight-56590 flight-56591 flight-56592 flight-56593 flight-56594 flight-56595 flight-56596 flight-56597 flight-56598 flight-56599 flight-56600 flight-56601 flight-56603 flight-56604 flight-56605 flight-56606 flight-56607 flight-56608 flight-56609 flight-56610 flight-56611 flight-56612 flight-56613 flight-56614 flight-56615 flight-56616 flight-56617 flight-56618 flight-56619 flight-56620 flight-56621 flight-56622 flight-56623 flight-56624 flight-56625 flight-56626 flight-56627 flight-56628 flight-56629 flight-56630 flight-56631 flight-56632 flight-56633 flight-56635 flight-56636 flight-56637 flight-56638 flight-56639 flight-56640 flight-56641 flight-56642 flight-56643 flight-56644 flight-56645 flight-56646 flight-56647 flight-56648 flight-56649 flight-56650 flight-56651 flight-56652 flight-56653 flight-56654 flight-56655 flight-56656 flight-56657 flight-56658 flight-56659 flight-56660 flight-56661 flight-56662 flight-56663 flight-56664 flight-56665 flight-56666 flight-56667 flight-56668 flight-56669 flight-56670 flight-56671 flight-56672 flight-56673 flight-56674 flight-56675 flight-56676 flight-56677 flight-56679 flight-56680 flight-56681 flight-56682 flight-56683 flight-56684 flight-56685 flight-56686 flight-56687 flight-56689 flight-56690 flight-56692 flight-56693 flight-56694 flight-56695 flight-56696 flight-56697 flight-56698 flight-56699 flight-56700 flight-56701 flight-56702 flight-56703 flight-56704 flight-56705 flight-56706 flight-56707 flight-56708 flight-56709 flight-56710 flight-56711 flight-56712 flight-56713 flight-56714 flight-56715 flight-56716 flight-56717 flight-56718 flight-56719 flight-56720 flight-56721 flight-56722 flight-56723 flight-56724 flight-56725 flight-56726 flight-56727 flight-56728 flight-56729 flight-56730 flight-56731 flight-56732 flight-56733 flight-56735 flight-56736 flight-56737 flight-56738
Ian Campbell [Fri, 17 Apr 2015 10:01:29 +0000 (11:01 +0100)]
sg-run-job: Repeat rumpuserxen-demo-xenstorels test 150 times

With 50 we are still seeing occasional spurious passes.

Looking at some logs the current 50 iterations takes around 4 minutes
to run (3-4s per iteration).

I think we can justify spending 10 minutes running this test, which is
150x4s.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
9 years agomake-flight: Drop pointless jobs from seabios and ovmf flights
Ian Campbell [Tue, 12 May 2015 08:10:33 +0000 (09:10 +0100)]
make-flight: Drop pointless jobs from seabios and ovmf flights

These are both firmware which is used only with qemuu tests. There is
no point testing either PV guets or HVM with qemut (which always uses
rombios).

Comparing before and after of:

./standalone-generate-dump-flight-runvars | \
    awk '// {printf "%-32s %s\n", $1, $2}' | \
   sort -u

Results in:

    @@ -615,48 +615,19 @@
     ovmf                             build-i386-libvirt
     ovmf                             build-i386-pvops
     ovmf                             build-i386-xsm
    -ovmf                             test-amd64-amd64-libvirt
    -ovmf                             test-amd64-amd64-libvirt-xsm
    -ovmf                             test-amd64-amd64-pair
    -ovmf                             test-amd64-amd64-xl
    -ovmf                             test-amd64-amd64-xl-credit2
    -ovmf                             test-amd64-amd64-xl-multivcpu
    -ovmf                             test-amd64-amd64-xl-pvh-amd
    -ovmf                             test-amd64-amd64-xl-pvh-intel
    -ovmf                             test-amd64-amd64-xl-qemut-debianhvm-amd64
    -ovmf                             test-amd64-amd64-xl-qemut-debianhvm-amd64-xsm
    -ovmf                             test-amd64-amd64-xl-qemut-win7-amd64
    -ovmf                             test-amd64-amd64-xl-qemut-winxpsp3
     ovmf                             test-amd64-amd64-xl-qemuu-debianhvm-amd64
     ovmf                             test-amd64-amd64-xl-qemuu-debianhvm-amd64-xsm
     ovmf                             test-amd64-amd64-xl-qemuu-ovmf-amd64
     ovmf                             test-amd64-amd64-xl-qemuu-win7-amd64
     ovmf                             test-amd64-amd64-xl-qemuu-winxpsp3
    -ovmf                             test-amd64-amd64-xl-sedf
    -ovmf                             test-amd64-amd64-xl-sedf-pin
    -ovmf                             test-amd64-amd64-xl-xsm
    -ovmf                             test-amd64-i386-freebsd10-amd64
    -ovmf                             test-amd64-i386-freebsd10-i386
    -ovmf                             test-amd64-i386-libvirt
    -ovmf                             test-amd64-i386-libvirt-xsm
    -ovmf                             test-amd64-i386-pair
    -ovmf                             test-amd64-i386-qemut-rhel6hvm-amd
    -ovmf                             test-amd64-i386-qemut-rhel6hvm-intel
     ovmf                             test-amd64-i386-qemuu-rhel6hvm-amd
     ovmf                             test-amd64-i386-qemuu-rhel6hvm-intel
    -ovmf                             test-amd64-i386-xl
    -ovmf                             test-amd64-i386-xl-qemut-debianhvm-amd64
    -ovmf                             test-amd64-i386-xl-qemut-debianhvm-amd64-xsm
    -ovmf                             test-amd64-i386-xl-qemut-win7-amd64
    -ovmf                             test-amd64-i386-xl-qemut-winxpsp3
    -ovmf                             test-amd64-i386-xl-qemut-winxpsp3-vcpus1
     ovmf                             test-amd64-i386-xl-qemuu-debianhvm-amd64
     ovmf                             test-amd64-i386-xl-qemuu-debianhvm-amd64-xsm
     ovmf                             test-amd64-i386-xl-qemuu-ovmf-amd64
     ovmf                             test-amd64-i386-xl-qemuu-win7-amd64
     ovmf                             test-amd64-i386-xl-qemuu-winxpsp3
     ovmf                             test-amd64-i386-xl-qemuu-winxpsp3-vcpus1
    -ovmf                             test-amd64-i386-xl-xsm
     qemu-mainline                    build-amd64
     qemu-mainline                    build-amd64-libvirt
     qemu-mainline                    build-amd64-pvops
    @@ -906,48 +877,19 @@
     seabios                          build-i386-libvirt
     seabios                          build-i386-pvops
     seabios                          build-i386-xsm
    -seabios                          test-amd64-amd64-libvirt
    -seabios                          test-amd64-amd64-libvirt-xsm
    -seabios                          test-amd64-amd64-pair
    -seabios                          test-amd64-amd64-xl
    -seabios                          test-amd64-amd64-xl-credit2
    -seabios                          test-amd64-amd64-xl-multivcpu
    -seabios                          test-amd64-amd64-xl-pvh-amd
    -seabios                          test-amd64-amd64-xl-pvh-intel
    -seabios                          test-amd64-amd64-xl-qemut-debianhvm-amd64
    -seabios                          test-amd64-amd64-xl-qemut-debianhvm-amd64-xsm
    -seabios                          test-amd64-amd64-xl-qemut-win7-amd64
    -seabios                          test-amd64-amd64-xl-qemut-winxpsp3
     seabios                          test-amd64-amd64-xl-qemuu-debianhvm-amd64
     seabios                          test-amd64-amd64-xl-qemuu-debianhvm-amd64-xsm
     seabios                          test-amd64-amd64-xl-qemuu-ovmf-amd64
     seabios                          test-amd64-amd64-xl-qemuu-win7-amd64
     seabios                          test-amd64-amd64-xl-qemuu-winxpsp3
    -seabios                          test-amd64-amd64-xl-sedf
    -seabios                          test-amd64-amd64-xl-sedf-pin
    -seabios                          test-amd64-amd64-xl-xsm
    -seabios                          test-amd64-i386-freebsd10-amd64
    -seabios                          test-amd64-i386-freebsd10-i386
    -seabios                          test-amd64-i386-libvirt
    -seabios                          test-amd64-i386-libvirt-xsm
    -seabios                          test-amd64-i386-pair
    -seabios                          test-amd64-i386-qemut-rhel6hvm-amd
    -seabios                          test-amd64-i386-qemut-rhel6hvm-intel
     seabios                          test-amd64-i386-qemuu-rhel6hvm-amd
     seabios                          test-amd64-i386-qemuu-rhel6hvm-intel
    -seabios                          test-amd64-i386-xl
    -seabios                          test-amd64-i386-xl-qemut-debianhvm-amd64
    -seabios                          test-amd64-i386-xl-qemut-debianhvm-amd64-xsm
    -seabios                          test-amd64-i386-xl-qemut-win7-amd64
    -seabios                          test-amd64-i386-xl-qemut-winxpsp3
    -seabios                          test-amd64-i386-xl-qemut-winxpsp3-vcpus1
     seabios                          test-amd64-i386-xl-qemuu-debianhvm-amd64
     seabios                          test-amd64-i386-xl-qemuu-debianhvm-amd64-xsm
     seabios                          test-amd64-i386-xl-qemuu-ovmf-amd64
     seabios                          test-amd64-i386-xl-qemuu-win7-amd64
     seabios                          test-amd64-i386-xl-qemuu-winxpsp3
     seabios                          test-amd64-i386-xl-qemuu-winxpsp3-vcpus1
    -seabios                          test-amd64-i386-xl-xsm
     xen-4.0-testing                  build-amd64
     xen-4.0-testing                  build-amd64-libvirt
     xen-4.0-testing                  build-amd64-pvops

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
9 years agoDebian: Apply uboot size_hex_prefix workaround to XSM policy too
Ian Campbell [Mon, 4 May 2015 08:18:54 +0000 (09:18 +0100)]
Debian: Apply uboot size_hex_prefix workaround to XSM policy too

Worksaround "Sorry, I could not convert "be700c>"" messages.

The big comment and code which determines $size_hex_prefix is moved
unchanged.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
9 years agots-xen-*: Avoid use of uninitialised $r{"enable_xsm"}
Ian Campbell [Thu, 2 Apr 2015 07:33:40 +0000 (08:33 +0100)]
ts-xen-*: Avoid use of uninitialised $r{"enable_xsm"}

Use of uninitialized value $r{"enable_xsm"} in pattern match (m//) at ./ts-xen-install line 49.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
9 years agoToolstack::libvirt: Support for ACPI fallback for shutdown
Ian Campbell [Thu, 7 May 2015 15:37:18 +0000 (16:37 +0100)]
Toolstack::libvirt: Support for ACPI fallback for shutdown

This is the libvirt counterpart to "Toolstack::xl: Support for ACPI
fallback for shutdown". Currently there are no jobs which test HVM
guests with libvirt and so this is completely untested in the context
of osstest (but at least should be harmless to current jobs).

This relies on an assumption that "virsh shutdown" behaves the same as
"virsh reboot" and accepts a comma separated list of methods to try
given to the --mode argument, which Jim has tested and confirmed to be
true.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Cc: Jim Fehlig <jfehlig@suse.com>
Acked by: Jim Fehlig <jfehlig@suse.com>

9 years agoToolstack::xl: Support for ACPI fallback for shutdown
Ian Campbell [Thu, 7 May 2015 09:07:04 +0000 (10:07 +0100)]
Toolstack::xl: Support for ACPI fallback for shutdown

HVM guests which do not include PV drivers will not shutdown after a
simple "xl shutdown". Add a runvar to indicate that the guest will
shutdown in response to an ACPI power event and apply this to the win7
and winxp test jobs.

Tested with:
    test-amd64-amd64-xl-qemuu-winxpsp3
    test-amd64-amd64-xl-qemuu-win7-amd64
    test-amd64-amd64-xl-qemuu-debianhvm-amd64
    test-amd64-amd64-xl

The first two correctly used the extra flag and the domains shutdown,
the other two correctly didn't use the extra flag and still shutdown.

Not currently implemented for libvirt, since we currently have no
libvirt tests I could try it with.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
9 years agomake-flight: Handle $BUILD_LVEXTEND_MAX in mfi-common:create_build_jobs()
Ian Campbell [Wed, 6 May 2015 09:56:38 +0000 (10:56 +0100)]
make-flight: Handle $BUILD_LVEXTEND_MAX in mfi-common:create_build_jobs()

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
9 years agots-debian-hvm-install: Only apply EFI workaround for Wheezy
Ian Campbell [Wed, 6 May 2015 09:56:37 +0000 (10:56 +0100)]
ts-debian-hvm-install: Only apply EFI workaround for Wheezy

The previous refactoring of preseed hooks makes this easy to do.

The underlying issue is lack of persistent variable store in our OVMF
setup, which we workaround by placing a copy of grub at the removable
media path. Add a comment saying this since I initially thought this
was just a Wheezy bug.

In Jessie the extra copy of grub can be achieved by preseeding
grub-installer/force-efi-extra-removable (since various real h/w has
similar limitations/bugs) however I haven't tested that so I didn't
add it to the preseed yet, I just mention it in the code comment.

Currently this script hardcodes Wheezy, refactor to use the 'suite'
guest_var (or $c{GuestDebianSuite})

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Cc: wei.liu2@citrix.com
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
9 years agoDebian: add preseed_create_guest helper
Ian Campbell [Fri, 25 Apr 2014 20:29:24 +0000 (21:29 +0100)]
Debian: add preseed_create_guest helper

Creates a preseed file suitable for use in a PV guest

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
9 years agoDebian: Refactor installation of overlays, so it can be used for guests too
Ian Campbell [Wed, 6 May 2015 09:56:35 +0000 (10:56 +0100)]
Debian: Refactor installation of overlays, so it can be used for guests too

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
Cc: longtaox.pang@intel.com
9 years agoDebian: refactor preseeding of .ssh directories
Ian Campbell [Wed, 6 May 2015 09:56:34 +0000 (10:56 +0100)]
Debian: refactor preseeding of .ssh directories

Causes known_hosts to be consistently created as well as ~osstest/.ssh
to be consistently populated (it previsouly wasn't for HVM guests).

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Cc: longtaox.pang@intel.com
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
9 years agoDebian: refactor code to add preseed commands to the preseed file
Ian Campbell [Wed, 6 May 2015 09:56:33 +0000 (10:56 +0100)]
Debian: refactor code to add preseed commands to the preseed file

Call it from ts-debian-hvm-install.

This means that, in future, ts-debian-di-install can use
preseed_hook_command and preseed_hook_installscript.

The existing opencoded use of d-i/late_command in the guest preseed
needs to become a preseed_hook_command so as not to clash with the use
of preseed_hook_cmds().

This requires also adding a #! line and the "set -ex" boilerplate
which in turn requires slightly rewriting the /boot/EFI handling part
to also work if the system is not installed for EFI (in which case
grubx64.efi isn't installed). Previously this would have needlessly
created the directory and then ignored the error from cp.

The ssh authorized keys bit isn't touched since it works as is and
will go away in a subsequent patch.

Apart from no longer creating /target/boot/efi/EFI/boot when it is not
needed there is no functional change for now.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Cc: longtaox.pang@intel.com
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
9 years agocreate_webfile: Support use with guests as well as hosts.
Ian Campbell [Wed, 6 May 2015 09:56:32 +0000 (10:56 +0100)]
create_webfile: Support use with guests as well as hosts.

In particular make the path unique by ensuring it includes the host
and guest name in the guest case.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
9 years agoTestSupport: allow caller of prepareguest_part_xencfg to specify viftype
Ian Campbell [Wed, 6 May 2015 09:56:31 +0000 (10:56 +0100)]
TestSupport: allow caller of prepareguest_part_xencfg to specify viftype

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
10 years agoMerge remote-tracking branch 'cam/production' flight-55390 flight-55391 flight-55392 flight-55393 flight-55394 flight-55395 flight-55396 flight-55399 flight-55400 flight-55401 flight-55402 flight-55403 flight-55404 flight-55405 flight-55406 flight-55407 flight-55409 flight-55410 flight-55411 flight-55412 flight-55413 flight-55414 flight-55415 flight-55416 flight-55417 flight-55418 flight-55419 flight-55420 flight-55421 flight-55422 flight-55423 flight-55424 flight-55425 flight-55426 flight-55427 flight-55428 flight-55429 flight-55430 flight-55431 flight-55432 flight-55433 flight-55434 flight-55435 flight-55436 flight-55437 flight-55438 flight-55439 flight-55440 flight-55441 flight-55442 flight-55443 flight-55444 flight-55445 flight-55446 flight-55447 flight-55448 flight-55449 flight-55450 flight-55451 flight-55452 flight-55453 flight-55454 flight-55455 flight-55456 flight-55457 flight-55458 flight-55459 flight-55460 flight-55509 flight-55511 flight-55513 flight-55514 flight-55527 flight-55528 flight-55529 flight-55530 flight-55867 flight-55872 flight-55873 flight-55874 flight-55875 flight-55876 flight-55877 flight-55878 flight-55879 flight-55880 flight-55882 flight-55883 flight-55884 flight-56363 flight-56364 flight-56365 flight-56366 flight-56367 flight-56368 flight-56369 flight-56370 flight-56371 flight-56373 flight-56374 flight-56375 flight-56376 flight-56377 flight-56378 flight-56379 flight-56380 flight-56381 flight-56382 flight-56383 flight-56384 flight-56385 flight-56386 flight-56387 flight-56388 flight-56389 flight-56390 flight-56391 flight-56392 flight-56393 flight-56394 flight-56395 flight-56396 flight-56397 flight-56398 flight-56399 flight-56400 flight-56401 flight-56402 flight-56403 flight-56404 flight-56405 flight-56406 flight-56407 flight-56408 flight-56409 flight-56410 flight-56411 flight-56413 flight-56414 flight-56415 flight-56416 flight-56417 flight-56418 flight-56419 flight-56420 flight-56421 flight-56422 flight-56423 flight-56424 flight-56425 flight-56426 flight-56427 flight-56428 flight-56429 flight-56430 flight-56431 flight-56432 flight-56433 flight-56434 flight-56435 flight-56436 flight-56437 flight-56438 flight-56439 flight-56440 flight-56441 flight-56442 flight-56443 flight-56444 flight-56445 flight-56446 flight-56447 flight-56449 flight-56450 flight-56451 flight-56452 flight-56453 flight-56454 flight-56455 flight-56456 flight-56457 flight-56458 flight-56459 flight-56460 flight-56461 flight-56462 flight-56463 flight-56464 flight-56465 flight-56467 flight-56468 flight-56469 flight-56470 flight-56471 flight-56472 flight-56473
Ian Jackson [Tue, 12 May 2015 12:36:27 +0000 (13:36 +0100)]
Merge remote-tracking branch 'cam/production'

10 years agoDocs (in new Docs directory) for cr-disk-report
Ian Jackson [Tue, 12 May 2015 10:41:12 +0000 (11:41 +0100)]
Docs (in new Docs directory) for cr-disk-report

The PDF is automatically generated and linked to, when applicable.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
10 years agocr-disk-report: New script
Ian Jackson [Mon, 11 May 2015 15:49:18 +0000 (16:49 +0100)]
cr-disk-report: New script

This generates a report on the disk usage in the logs directory.

10 years agoLogs: Break out logs_select etc. into new Osstest::Management
Ian Jackson [Mon, 11 May 2015 14:24:50 +0000 (15:24 +0100)]
Logs: Break out logs_select etc. into new Osstest::Management

We are going to want to reuse these minor bits of
cr-ensure-disk-space.  Break them out into a new perl module.

We also need to rename some things to make them have names more
suitable for a wider namespace, even if only selectively exported:
 * @logsshopts from @sshopts (it is not the same variable as
   Osstest::TestSupport::sshopts).
 * $loghost and $logdir from $pubhost and $pubdir).
 * onloghost from ontarget.
 * logcfg from dircfg.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
10 years agocs-bisection-step: Detect flailing
Ian Jackson [Mon, 11 May 2015 13:30:34 +0000 (14:30 +0100)]
cs-bisection-step: Detect flailing

Specifically, search for previous identical flights (on the same
branch with the relevant blessings).  Here `identical' means it has
exactly the same set of runvars (and, hence, the same set of jobs,
assuming each job has at least one runvar).

This detects various forms of looping which aren't stopped any other
way.

Specifically, one relevant situation occurs if attempts to build
revision (A,B,C) actually build (A,B,C') due to bugs in the build
machinery (which could be bugs in osstest or in the software under
test).  In this case the bisector would never spot its previous
attempts as relevant; instead, it would disregard them due to the
mismatched versions.  It would then retry the same version, until
something happened to stop it.

As written here, we do not consider osstest revision as a relevant
factor in `identical'.  So if reason for the looping is a bug in
osstest we would need to manually un-bless affected flights, as well
as removing the stamp files which are used to record completion of
attempted bisection.

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
10 years agoREADME.planner: Document the resource planning system
Ian Jackson [Thu, 20 Nov 2014 18:07:16 +0000 (18:07 +0000)]
README.planner: Document the resource planning system

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
10 years agoproduction-config: Correct syntax for clearing OsstestUpstream. flight-55275 flight-55276 flight-55277 flight-55278 flight-55279 flight-55280 flight-55291 flight-55301 flight-55302 flight-55303 flight-55304 flight-55305 flight-55306 flight-55307 flight-55308 flight-55309 flight-55310 flight-55311 flight-55312 flight-55313 flight-55314 flight-55315 flight-55316 flight-55317 flight-55318 flight-55319 flight-55320 flight-55321 flight-55322 flight-55323 flight-55324 flight-55325 flight-55326 flight-55327 flight-55328 flight-55329 flight-55330 flight-55331 flight-55332 flight-55333 flight-55334 flight-55335 flight-55336 flight-55337 flight-55338 flight-55339 flight-55340 flight-55341 flight-55342 flight-55343 flight-55344 flight-55345 flight-55346 flight-55347 flight-55348 flight-55349 flight-55350 flight-55351 flight-55352 flight-55353 flight-55354 flight-55355 flight-55356 flight-55357 flight-55358 flight-55359 flight-55360 flight-55361 flight-55362 flight-55363 flight-55364 flight-55365 flight-55366 flight-55367 flight-55368 flight-55369 flight-55370 flight-55371 flight-55372 flight-55373 flight-55374 flight-55375 flight-55376 flight-55377 flight-55378 flight-55379 flight-55380 flight-55381 flight-55382 flight-55383 flight-55384 flight-55385 flight-55386 flight-55387 flight-55388 flight-55389
Ian Campbell [Mon, 11 May 2015 10:37:33 +0000 (11:37 +0100)]
production-config: Correct syntax for clearing OsstestUpstream.

Previous syntax actually sets it to the literal string containing two
quotation marks.

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