]> xenbits.xensource.com Git - people/iwj/osstest.git/log
people/iwj/osstest.git
6 years agotarget_install_packages: Consistently use qw(...) rather than '...'
Ian Jackson [Fri, 5 Apr 2019 15:31:20 +0000 (16:31 +0100)]
target_install_packages: Consistently use qw(...) rather than '...'

qw(...) splits its argument into words.

There is one semantic change, where two package names were passed in a
single argument.  That worked by accident.

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
6 years agodm restrict audit: always install (some) chiark-scripts
Ian Jackson [Fri, 5 Apr 2019 13:57:54 +0000 (14:57 +0100)]
dm restrict audit: always install (some) chiark-scripts

In
  dm restrict audit: install newer chiark-scripts for fishdescriptor
arrangements were made to install suitable chiark-scripts for
for jessie and stretch.

For buster and later, the mainline Debian version of chiark-scripts is
indeed sufficient, but nothing installed it.  Do that.

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
6 years agodm restrict audit: actually install fishdescriptor in host
Ian Jackson [Fri, 5 Apr 2019 13:55:53 +0000 (14:55 +0100)]
dm restrict audit: actually install fishdescriptor in host

In
  dm restrict audit: install newer chiark-scripts for fishdescriptor
arrangements were made to install a backport of chiark-scripts
but the code was mistakenly placed in preseed_create_guest but
of course it's needed in the host.

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
6 years agoDebian: Move preseed_backports_packages earlier
Ian Jackson [Fri, 5 Apr 2019 13:55:32 +0000 (14:55 +0100)]
Debian: Move preseed_backports_packages earlier

No functional change.

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
6 years agodm restrict audit: actually install right package for fishdescriptor
Ian Jackson [Fri, 5 Apr 2019 13:04:26 +0000 (14:04 +0100)]
dm restrict audit: actually install right package for fishdescriptor

In
  dm restrict audit: install newer chiark-scripts for fishdescriptor
a locally-provided chiark-scripts_6.0.2_all.deb was installed for
jessie.  For stretch a backport was installed, but mistakenly
of chiark-utils-bin rather than chiark-scripts.

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
6 years agoDebian: Add reference to bug numbers for erase-other-disks
Ian Jackson [Fri, 5 Apr 2019 12:58:21 +0000 (13:58 +0100)]
Debian: Add reference to bug numbers for erase-other-disks

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
6 years agoDebian: set partman-lvm/device_remove_lvm_span
Ian Jackson [Fri, 5 Apr 2019 12:31:07 +0000 (13:31 +0100)]
Debian: set partman-lvm/device_remove_lvm_span

Web searching[1] suggests that this suppresses this error:

  !! ERROR: Unable to automatically remove LVM data
  Because the volume group(s) on the selected device also consist of
  physical volumes on other devices, it is not considered safe to
  remove its LVM data automatically. If you wish to use this device
  for partitioning, please remove its LVM data first.

[1] eg https://serverfault.com/questions/571363/unable-to-automatically-remove-lvm-data

It doesn't, though.  I am only experiencing it now because the ad-hoc
disk-erasing (25erase-other-disks) is broken for other reasons.  But
let's have it anyway as it sounds like a thing we might want.

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
6 years agoDebian: partman scripts: Run right away too
Ian Jackson [Fri, 5 Apr 2019 12:24:52 +0000 (13:24 +0100)]
Debian: partman scripts: Run right away too

We are switching the installation of these to partman/early_command
which runs as a result of a /lib/partman/init.d hook.  That means that
things we install don't get picked up, so run them right away (too).

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
6 years agoDebian: preseed_hook_installscript: New $atonce option
Ian Jackson [Fri, 5 Apr 2019 12:24:01 +0000 (13:24 +0100)]
Debian: preseed_hook_installscript: New $atonce option

This runs the script right away as well as merely installing it.

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
6 years agopreseed_hook_installscript: Use partman/early_command, not preseed/
Ian Jackson [Thu, 4 Apr 2019 16:32:39 +0000 (17:32 +0100)]
preseed_hook_installscript: Use partman/early_command, not preseed/

On iso-based installs, with stretch, preseed/early_command runs before
the network is up.  This causes the install to fail.

Our existing call sites add things to
   /usr/lib/base-installer.d/
   /lib/partman/init.d/
for which this is still early enough.

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
6 years agopreseed_hook_command: allow specifying di keys other than preseed/*
Ian Jackson [Thu, 4 Apr 2019 16:30:08 +0000 (17:30 +0100)]
preseed_hook_command: allow specifying di keys other than preseed/*

Ie, only add preseed/ if there is not already a slash.

No functional change with existing call sites other than urls and
temporary filenames.

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
6 years agots-debian-fixup: Use debian_overlays_fixup_cmd
Ian Jackson [Wed, 3 Apr 2019 15:44:38 +0000 (16:44 +0100)]
ts-debian-fixup: Use debian_overlays_fixup_cmd

Otherwise we get the same error for guests as was prevented for hosts
by "preseed_base: chmod ssh host private keys to placate sshd".

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
6 years agopreseed_base: break out debian_overlays_fixup_cmd
Ian Jackson [Wed, 3 Apr 2019 15:42:55 +0000 (16:42 +0100)]
preseed_base: break out debian_overlays_fixup_cmd

We are going to want this for guests too.

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
6 years agopreseed_base: chmod ssh host private keys to placate sshd
Ian Jackson [Tue, 2 Apr 2019 15:24:08 +0000 (16:24 +0100)]
preseed_base: chmod ssh host private keys to placate sshd

Otherwise:
  Could not load host key: /etc/ssh/ssh_host_ecdsa_key
  @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
  @         WARNING: UNPROTECTED PRIVATE KEY FILE!          @
  @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
  Permissions 0640 for '/etc/ssh/ssh_host_ed25519_key' are too open.
  It is recommended that your private key files are NOT accessible by others.
  This private key will be ignored.
  key_load_private: bad permissions
  Could not load host key: /etc/ssh/ssh_host_ed25519_key

This seems to start happening with stretch.  Presumably stretch is
more annoyingly picky than jessie.

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
6 years agots-guests-nbd-mirror: Use target_getfile_root_stash
Ian Jackson [Fri, 30 Nov 2018 16:45:21 +0000 (16:45 +0000)]
ts-guests-nbd-mirror: Use target_getfile_root_stash

That removes the rather ad-hoc open-coding.

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
6 years agoTestSupport: Provide target_getfile_root_stash
Ian Jackson [Fri, 30 Nov 2018 16:44:36 +0000 (16:44 +0000)]
TestSupport: Provide target_getfile_root_stash

This convenient function selects a local filename based on a target
filename, and copies the target file to the selected stash file.

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
6 years agoTestSupport: target_somefile_leaf rename and change a variable
Ian Jackson [Fri, 30 Nov 2018 16:42:26 +0000 (16:42 +0000)]
TestSupport: target_somefile_leaf rename and change a variable

Rename this function.  `getleaf' contains `get' which makes it sound
like the function copies something, or returns answers suitable for
getting, or something.

Also rename `$rdest' to `$rfile' since it might be a source too.
(Although we are not about to make it a source...)

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
6 years agoTestSupport: Move `target_somefile_getleaf' earlier
Ian Jackson [Fri, 30 Nov 2018 16:41:14 +0000 (16:41 +0000)]
TestSupport: Move `target_somefile_getleaf' earlier

We are going to make more use of this in intervening code.

Pure code motion.

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
6 years agoTestSupport: Move `stashed files' and `next_unique_name' earlier
Ian Jackson [Fri, 30 Nov 2018 16:39:13 +0000 (16:39 +0000)]
TestSupport: Move `stashed files' and `next_unique_name' earlier

We are going to make more use of this in intervening code.

Pure code motion.

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
6 years agots-xen-build: Enable ITS driver in Xen
Julien Grall [Fri, 30 Nov 2018 15:23:42 +0000 (15:23 +0000)]
ts-xen-build: Enable ITS driver in Xen

The ITS driver was added in Xen 4.10 as a technical preview feature.
However, it is required in order to boot Xen as Thunder-X because
PCI devices don't support legacy interrupt.

So enable CONFIG_ITS in our Xen build.

Signed-off-by: Julien Grall <julien.grall@arm.com>
6 years agots-kernel-build: Enable some additional drivers for Thunder-X
Ian Jackson [Fri, 30 Nov 2018 15:18:32 +0000 (15:18 +0000)]
ts-kernel-build: Enable some additional drivers for Thunder-X

Without this, our kernels do not find the storage.

Suggested-by: Julien Grall <julien.grall@arm.com>
Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
6 years agopersistent-net: Set net.ifnames=0 in di_installcmdline_core
Ian Jackson [Wed, 21 Nov 2018 16:14:13 +0000 (16:14 +0000)]
persistent-net: Set net.ifnames=0 in di_installcmdline_core

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
6 years agopersistent-net: Include initramfs script to copy to target
Ian Jackson [Thu, 29 Nov 2018 16:00:56 +0000 (16:00 +0000)]
persistent-net: Include initramfs script to copy to target

This is the piece which actually copies the installer's network names
to the target.  It should not appear on the installed system, so it's
not in overlay-persistent-net.

Technically this is only useful when the installer has the
overlay-persistent-net in it, which is done only in ts-host-install
and not in all the places where setup_netboot_firstboot is used.
But without overlay-persistent-net it is harmless, and it is most
convenient to put it here.

The little script fragment was copied out of a jessie debian-installer
initramfs environment.

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
6 years agots-host-install: Put canary in 70-persistent-net.rules
Ian Jackson [Thu, 29 Nov 2018 18:01:26 +0000 (18:01 +0000)]
ts-host-install: Put canary in 70-persistent-net.rules

This will allow us to see if the initramfs's network names are being
properly copied to the installed system.  Ie, this is just a debugging
aid.

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
6 years agots-host-install: Unconditionally mkdir -p /etc/udev/rules.d
Ian Jackson [Tue, 2 Apr 2019 14:50:29 +0000 (15:50 +0100)]
ts-host-install: Unconditionally mkdir -p /etc/udev/rules.d

We are going to want this directory to exist so that we can put a
canary in 70-persistent-net.rules.

In the cases where the behaviour of osstest changes, the empty
directory does not result in any overall change.

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
6 years agots-host-install: Break out $persistent_net_rules
Ian Jackson [Thu, 29 Nov 2018 18:00:55 +0000 (18:00 +0000)]
ts-host-install: Break out $persistent_net_rules

We're going to want to reuse this value.

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
6 years agopersistent-net: Add overlay in installer >= stretch
Ian Jackson [Tue, 27 Nov 2018 14:33:41 +0000 (14:33 +0000)]
persistent-net: Add overlay in installer >= stretch

We are going to need this in the installer so that the interface names
from the installer environment are captured so that they can be the
same on the host.

This prepares the ground for turning off net.ifnames.  The actual
rules are gated on net.ifnames so right now there is no change.

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
6 years agopersistent-net: Add overlay on installed systems >= stretch
Ian Jackson [Tue, 27 Nov 2018 14:25:23 +0000 (14:25 +0000)]
persistent-net: Add overlay on installed systems >= stretch

This prepares the ground for turning off net.ifnames.  The actual
rules are gated on net.ifnames so right now there is no change.

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
6 years agooverlay-persistent-net: Copy from jessie
Ian Jackson [Tue, 27 Nov 2018 14:18:38 +0000 (14:18 +0000)]
overlay-persistent-net: Copy from jessie

These were copied from a system running Debian jessie.

The nontrivial files are:
 # Copyright (C) 2006 Marco d'Itri <md@Linux.IT>
 # Copyright (C) 2007 Kay Sievers <kay.sievers@vrfy.org>
and licenced GPLv2+.  That is compatible with osstest's AGPLv3+.

Right now we do nothing with these.

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
6 years agocontents_make_cpio: Make files owned by root
Ian Jackson [Tue, 27 Nov 2018 18:58:34 +0000 (18:58 +0000)]
contents_make_cpio: Make files owned by root

This function is called to generate overlays for use, mainly, by the
initramfs.

We are going to use it to ship udev rules.  Annoyingly, udev hates
files which aren't owned by root - it simply ignores them.

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
6 years agocontents_make_cpio: Include symlinks
Ian Jackson [Tue, 27 Nov 2018 16:50:26 +0000 (16:50 +0000)]
contents_make_cpio: Include symlinks

We are going to introduce some symlinks into one of our preprepared
overlays.  We must therefore arrange to copy them as appropriate.

The syntax `-type f,l' is an extension in GNU find.  If this causes
trouble in the future we will then have to introduce the obvious
circumlocution involving ( ).

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
6 years agots-kernel-build: disable host1x, which doesn't build
Wei Liu [Tue, 8 May 2018 15:51:39 +0000 (16:51 +0100)]
ts-kernel-build: disable host1x, which doesn't build

Empirically, on stretch armhf:

  drivers/gpu/host1x/cdma.c: In function `host1x_pushbuffer_init':
  drivers/gpu/host1x/cdma.c:94:48: error: passing argument 3 of `dma_alloc_wc' from incompatible pointer type [-Werror=incompatible-pointer-types]
     pb->mapped = dma_alloc_wc(host1x->dev, size, &pb->phys,
  ^
etc.

This is blocking the upgrade of the Xen Project CI to Debian stretch
so disable it for now.

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
CC: Julien Grall <julien.grall@arm.com>
CC: Stefano Stabellini <sstabellini@kernel.org>
CC: Thierry Reding <thierry.reding@gmail.com>
CC: dri-devel@lists.freedesktop.org
6 years agots-guests-nbd-mirror: use target_{get,put}file_root to transfter cfg
Wei Liu [Mon, 30 Oct 2017 14:34:20 +0000 (14:34 +0000)]
ts-guests-nbd-mirror: use target_{get,put}file_root to transfter cfg

The original code used target_cmd_output_root which caused a trailing
new line to be deleted, which caused libvirt converter to fail.

It wasn't discovered until now because we appended too many "\n".

Use target_{get,put}file_root to do the job.

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
6 years agoDebian: Fix http:// url for bugs.xenproject.org
Ian Jackson [Tue, 20 Nov 2018 15:28:54 +0000 (15:28 +0000)]
Debian: Fix http:// url for bugs.xenproject.org

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
6 years agoDrop rumprun tests
Wei Liu [Wed, 9 May 2018 08:59:37 +0000 (09:59 +0100)]
Drop rumprun tests

These have been failing for some time and it doesn't any more look
like this will be an attractive route to stub device models.  (At
least two Xen downstream projects are using Linux-based stub device
models.)

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
---
v4: Expand commit message.

6 years agostretch: Use chainloading when booting using GRUB on Arm64
Julien Grall [Tue, 8 May 2018 15:31:17 +0000 (16:31 +0100)]
stretch: Use chainloading when booting using GRUB on Arm64

The GRUB package in stretch is not able to boot Xen on Arm64.
Use chainloading as we did for jessie for the time being.

Note that a bug has been filled on Debian to integrate Xen
pactches for the next release (see [1]).

[1] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=884770

Signed-off-by: Julien Grall <julien.grall@arm.com>
Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
---
v4: Correct suite name capitalisation in commit message and comment.

6 years agomake-flight: guest should use jessie to test pvgrub
Wei Liu [Thu, 2 Nov 2017 15:15:04 +0000 (15:15 +0000)]
make-flight: guest should use jessie to test pvgrub

stretch has 64bit feature enabled for ext4, which pvgrub can't cope.
We want to continue to test pvgrub, so specify jessie in the guest
suite field.

A consequence is that this test will test jessie forever.  Eventually
jessie will rot so badly that this test fails and then we will no
longer be testing pvgrub1.  Hopefully by then no-one will be using it.

CC: Juergen Gross <jgross@suse.com>
Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
---
v4: Adjust commit message slightly.

6 years agots-debian-di-install: use gho to pick d-i
Wei Liu [Thu, 2 Nov 2017 18:19:25 +0000 (18:19 +0000)]
ts-debian-di-install: use gho to pick d-i

The original code used ho which gave us the host suite, but we wanted
the guest suite.

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
6 years agoadjust how to skip bootloader installation for arm32, in Stretch
Wei Liu [Tue, 31 Oct 2017 12:26:39 +0000 (12:26 +0000)]
adjust how to skip bootloader installation for arm32, in Stretch

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
---
v4: Change case of suite names in comment.

6 years agoExtend workaround `clk_ignore_unused' to stretch
Wei Liu [Thu, 26 Oct 2017 12:14:43 +0000 (13:14 +0100)]
Extend workaround `clk_ignore_unused' to stretch

This is https://bugs.xenproject.org/xen/bug/45

Without that parameter we lose uart output.

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
CC: Stefano Stabellini <sstabellini@kernel.org>
CC: Julien Grall <julien.grall@linaro.org>
6 years agots-guests-nbd-mirror: make it work with stretch
Wei Liu [Fri, 20 Oct 2017 14:35:06 +0000 (15:35 +0100)]
ts-guests-nbd-mirror: make it work with stretch

On the server side, only add oldstyle= and port= on wheezy and jessie.
stretch doesn't support or need those anymore.

On the client side, generate new style configuration file.

Reorder nbd-client setup a bit. Install it first, then write our own
configuration file, then start it.  This stops dpkg asking what to
do regarding configuration files.

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
---
v3: invert some tests, rearrange client setup code.
v4: Fix commit message grammar.

6 years agots-xen-build-prep: install e2fslibs-dev
Wei Liu [Wed, 18 Oct 2017 14:40:01 +0000 (15:40 +0100)]
ts-xen-build-prep: install e2fslibs-dev

The in-tree libfsimage ext2fs implementation can't handle 64bit
enabled ext4, which is the default in stretch.

Installing e2fslibs-dev causes libfsimage to pick up the packaged
ext2fs implementation.

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
6 years agots-debian-fixup: append noresume
Wei Liu [Fri, 13 Oct 2017 12:14:16 +0000 (13:14 +0100)]
ts-debian-fixup: append noresume

See code comment for explanation.

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
---
v4: Fix grammar error in comment.

6 years agots-debian-fixup: merge origin extra= to our own if necessary
Wei Liu [Tue, 17 Oct 2017 16:10:10 +0000 (17:10 +0100)]
ts-debian-fixup: merge origin extra= to our own if necessary

The original extra= was not removed, so there were two extra= in the
resulting config file.

It wasn't a problem for xl because the second extra= took precedence.
However libvirt tests would only pick up the first extra= so they
worked by chance.

Fix this issue by merging the original. If there isn't already extra=
in $cfg, use our own.

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
---
v3: handle situation when no extra= is in $cfg

6 years agots-host-install: don't use the new nic naming scheme
Wei Liu [Thu, 12 Oct 2017 10:01:36 +0000 (11:01 +0100)]
ts-host-install: don't use the new nic naming scheme

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
6 years agots-leak-check: suppress systemd-shim, which leaks in stretch
Wei Liu [Sun, 30 Jul 2017 10:25:45 +0000 (11:25 +0100)]
ts-leak-check: suppress systemd-shim, which leaks in stretch

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
6 years agoDebian.pm: use sysvinit-core instead of systemd
Wei Liu [Thu, 27 Jul 2017 18:16:07 +0000 (19:16 +0100)]
Debian.pm: use sysvinit-core instead of systemd

Install that packages for suites >wheezy, because they use systemd as
the default init.

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
6 years agots-xen-install: install some packages on stretch
Wei Liu [Thu, 27 Jul 2017 10:06:13 +0000 (11:06 +0100)]
ts-xen-install: install some packages on stretch

The "route" command is now in that package.

libnl is needed when running xl.

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
---
v3: invert condition.

6 years agots-xen-build-prep: install packages for suites >jessie
Wei Liu [Mon, 5 Jun 2017 10:05:03 +0000 (11:05 +0100)]
ts-xen-build-prep: install packages for suites >jessie

The stubdom build needs texinfo.
The libvirt build needs autopoint.
The QEMU build needs libpciaccess-dev.

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Acked-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
6 years agots-xen-build-prep: only install w3c-dtd-xhtml for suites <stretch
Wei Liu [Fri, 2 Jun 2017 17:05:10 +0000 (18:05 +0100)]
ts-xen-build-prep: only install w3c-dtd-xhtml for suites <stretch

That package is not included in stretch.

That package was installed because the libvirt build needed it.
However libvirt builds fine without it in stretch.

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
6 years agopower: Fix uninitialised variable warning
Ian Jackson [Tue, 2 Apr 2019 14:56:57 +0000 (15:56 +0100)]
power: Fix uninitialised variable warning

In
  power: Record approach used for power cycles in runvars
we introduced a reference to $r{$rv} which might be undef,
resulting in this:
  Use of uninitialized value in concatenation (.) or string at Osstest/TestSupport.pm line 1069.

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
6 years agogitignore: ignore vim swap file
Wei Liu [Thu, 12 Oct 2017 10:03:31 +0000 (11:03 +0100)]
gitignore: ignore vim swap file

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
6 years agoXen 4.12, branching: add those to cr-for-branches
Ian Jackson [Mon, 11 Mar 2019 14:37:35 +0000 (14:37 +0000)]
Xen 4.12, branching: add those to cr-for-branches

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
6 years agojessie: Drop use of jessie-updates
Ian Jackson [Tue, 26 Feb 2019 17:26:41 +0000 (17:26 +0000)]
jessie: Drop use of jessie-updates

The Release file is out of date on our mirror, due to jessie's
retirement into LTS.

CC: Juergen Gross <jgross@suse.com>
Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
6 years agojessie: Disable use of security.debian.org
Ian Jackson [Mon, 25 Feb 2019 15:46:52 +0000 (15:46 +0000)]
jessie: Disable use of security.debian.org

We have about a 10% failure rate of a problem where the symptoms are
that the test box fails to get some thing from security.debian.org.

The apt-cacher-ng logs show the relevant test box's ip address
fetching the file that it is supposed to.  But, it is possible that
there are different timeouts, so that does not mean the problem is
inside the colo.

Fetching from other apt sources, notably the main Debian archive and
snapshot.d.o, do not seem to be affected.

Specifically, I searched the logs for the last 1000 host install steps,
and looked for the failures, with the following rune:

 select flight,job,logfile,started from (select *, (select val from runvars r where r.job=steps.job and r.flight=steps.flight and r.name='host')  from steps where testid like 'host-install%' and flight>130000 order by finished desc limit 1000) sub where status='broken';

I then used these runes to correlate that with the syslogs from the
installer:

 perl <~/t -ne 'use strict; s/^ *//; my ($flight,$job,$logf) = split / +\| +/; next unless $flight =~ m/^\d+$/; my $f = "$flight/$job/?.ts-syslog-server.log"; my @y = glob $f; print $_, "\n" for @y;' >~/u

 xargs <~/junk/u egrep -L 'Failed to fetch http://security\.debian\.org.*Connection failed'

The only logs which did not mention that error message were three
failed jobs on the same host, joubertin1, which seems not to be
rebooting reliably.

So I think this is a problem with the security.debian.org CDN.

For now, disable security updates entirely.  We don't really care
about the security patch status of test boxes anyway.  Hopefully this
will cause the system to become reliable again.

CC: Juergen Gross <jgross@suse.com>
Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
6 years agoREADME.hardware-acquisition
Ian Jackson [Tue, 30 Oct 2018 16:12:27 +0000 (16:12 +0000)]
README.hardware-acquisition

New document-cum-checklist, for helping with hardware procurement.

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
CC: infra@xenproject.org
CC: George Dunlap <dunlapg@umich.edu>
CC: Stefano Stabellini <sstabellini@kernel.org>
CC: Julien Grall <julien.grall@arm.com
Acked-by: Lars Kurth <lars.kurth@citrix.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
6 years agobackports snapshot: Disable apt timestamp checking in right place
Ian Jackson [Thu, 14 Feb 2019 11:23:44 +0000 (11:23 +0000)]
backports snapshot: Disable apt timestamp checking in right place

We need to put this in /target or it does not take effect.

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
6 years agobackports snapshot: Use 20190206T211314Z for jessie-backports
Ian Jackson [Wed, 13 Feb 2019 17:07:23 +0000 (17:07 +0000)]
backports snapshot: Use 20190206T211314Z for jessie-backports

Some time on 2019-02-07, Debian removed linux-base from
jessie-backports.  This caused everything to break: apt wasn't happy
to get linux-base from jessie-security (because of our -t
jessie-backports, probably) and that meant there was no linux-base
suitable for linux-image-4.9.x on arm64.  We ended up trying to
boot the installed system with 3.16, which does not work on our two
SoftIron arm64 test boxes.

Also, jessie-backports about to be completely removed.

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
6 years agobackports snapshot: Disable apt timestamp checking (sometimes)
Ian Jackson [Wed, 13 Feb 2019 17:05:20 +0000 (17:05 +0000)]
backports snapshot: Disable apt timestamp checking (sometimes)

In jessie and earlier, this has to be done with a global option.

In later releases, it can be done by putting some options in [ ]
in the relevant sources list entry.

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
6 years agobackports snapshot: Provide for $apt_insert and $extra_rune
Ian Jackson [Wed, 13 Feb 2019 17:04:24 +0000 (17:04 +0000)]
backports snapshot: Provide for $apt_insert and $extra_rune

No functional change.

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
6 years agobackports snapshot: Honour DebianSnapshotBackports_<suite> config var
Ian Jackson [Wed, 13 Feb 2019 16:53:49 +0000 (16:53 +0000)]
backports snapshot: Honour DebianSnapshotBackports_<suite> config var

If this is set, use it instead of the usual DebianMirrorHost and
Subpath.  No functional change with configs that don't set it.

This is not sufficient to work right yet, because snapshots
repositories have out-of-date signatures...

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
6 years agoRevert "production-config: Temporarily drop arm64"
Ian Jackson [Tue, 29 Jan 2019 13:26:29 +0000 (13:26 +0000)]
Revert "production-config: Temporarily drop arm64"

This reverts commit c65d7eb3f6c424d6c1fe69c5ecfca9c0b6cf4302.

6 years agopower: ssh: Wait for the target to appear to go down
Ian Jackson [Fri, 25 Jan 2019 12:04:21 +0000 (12:04 +0000)]
power: ssh: Wait for the target to appear to go down

When we `power on' with the ssh method, we actually run ssh reboot.

On some systems (notably, FreeBSD) the kernel does not simply reboot
immediately even with the runes we provide here, ie for FreeBSD
  reboot -nq
Eg, I have seen reboots with several messages like this:
  Jan 25 14:17:59.100044 Waiting (max 60 seconds) for system thread `bufspacedaemon-2' to stop... done

This can result in the ssh method failing spuriously, because the
`power on' appears to complete while the host is still up in the
previous environment.  In one of my test runs I saw an ssh to the host
succeed, and print the uptime (of the existing environment), between
the reboot command being issued and the host actually rebooting.

So, wait (up to just over a minute) until the host does not respond to
ping.  (target_await_down runs ping -c 5.)

Reviewed-by: Roger Pau Monné <roger.pau@citrix.com>
Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
6 years agopower: ts-freebsd-host-install: Use power_reboot_attempts
Ian Jackson [Thu, 24 Jan 2019 18:25:24 +0000 (18:25 +0000)]
power: ts-freebsd-host-install: Use power_reboot_attempts

We look at the installer environment uptime, to
 | check that this is the installer environment
as requested by the comment
 | in particular $await must only succeed if the host really did
 | reboot into the boot environment that $await expects.
near the top of power_reboot_attempts

Reviewed-by: Roger Pau Monné <roger.pau@citrix.com>
Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
6 years agopower: ssh: Reduce timeout for script fragment
Ian Jackson [Fri, 25 Jan 2019 12:08:52 +0000 (12:08 +0000)]
power: ssh: Reduce timeout for script fragment

This is really not going to take a minute.  Probably, much less.
Waiting less long will save time when we fall back.

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
6 years agopower: ssh: Fix handling of $delay
Ian Jackson [Fri, 25 Jan 2019 12:08:41 +0000 (12:08 +0000)]
power: ssh: Fix handling of $delay

The script fragment contains a reference to $delay which is a perl
variable, not a variable in the script fragment.  We therefore need to
not ''-quote the script.

Without this, the ssh method will often fail spuriously: the exiting
parent (which will signal success back to the osstest controller)
races with the attempt to reboot.

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
6 years agoflight_otherjob: Use confess rather than die
Ian Jackson [Fri, 25 Jan 2019 11:53:56 +0000 (11:53 +0000)]
flight_otherjob: Use confess rather than die

When this error trips it is usually because the call site looked up an
unset runvar and it can be hard to tell what that runvar was.

If we use confess we will at least find out the calling line number...

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
6 years agosg-report-host-history: Show used power approach(es)
Ian Jackson [Thu, 24 Jan 2019 16:52:47 +0000 (16:52 +0000)]
sg-report-host-history: Show used power approach(es)

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
6 years agosg-report-host-history: Move SET LOCAL into transaction
Ian Jackson [Thu, 24 Jan 2019 17:01:50 +0000 (17:01 +0000)]
sg-report-host-history: Move SET LOCAL into transaction

Gets rid of this warning:
  WARNING:  SET LOCAL can only be used in transaction blocks

This suggests that this code was previously not effective...

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
6 years agoExecutive: Export $grey_* with :colours
Ian Jackson [Thu, 24 Jan 2019 17:02:44 +0000 (17:02 +0000)]
Executive: Export $grey_* with :colours

No functional change with existing callers.

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
6 years agoExecutive: Break out span_colour
Ian Jackson [Thu, 24 Jan 2019 16:52:32 +0000 (16:52 +0000)]
Executive: Break out span_colour

No functional change.

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
6 years agopower: Record approach used for power cycles in runvars
Ian Jackson [Tue, 22 Jan 2019 19:54:40 +0000 (19:54 +0000)]
power: Record approach used for power cycles in runvars

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
6 years agopower: Use `Combined' as Name for PDU+ILOM approach
Ian Jackson [Tue, 22 Jan 2019 19:35:15 +0000 (19:35 +0000)]
power: Use `Combined' as Name for PDU+ILOM approach

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
6 years agots-logs-capture: power: try ILOM first
Ian Jackson [Tue, 22 Jan 2019 18:00:50 +0000 (18:00 +0000)]
ts-logs-capture: power: try ILOM first

If ILOM is provided, and the host is not responding when we try logs
capture, try the ILOM before hard power cycling the host.

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
6 years agopower: power_reboot_attempts: Honour an $approach_re
Ian Jackson [Tue, 22 Jan 2019 17:58:54 +0000 (17:58 +0000)]
power: power_reboot_attempts: Honour an $approach_re

The semantics are slightly different here: not specifying it means to
try everything rather than only the hardest.  But the effect is
similar: not specifying $approach_re means we must succeed.

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
6 years agopower: Rename target_reboot_force from target_reboot_hard
Ian Jackson [Tue, 22 Jan 2019 17:55:53 +0000 (17:55 +0000)]
power: Rename target_reboot_force from target_reboot_hard

We are going to make this try softer methods first.

No functional change.

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
6 years agots-host-powercycle: Use a lighter-weight method if available
Ian Jackson [Tue, 22 Jan 2019 17:51:50 +0000 (17:51 +0000)]
ts-host-powercycle: Use a lighter-weight method if available

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
6 years agopower: Honour approach_re in power_cycle and mg-hosts power
Ian Jackson [Tue, 22 Jan 2019 17:41:51 +0000 (17:41 +0000)]
power: Honour approach_re in power_cycle and mg-hosts power

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
6 years agopower: Document Power* host properties and power methods
Ian Jackson [Tue, 22 Jan 2019 17:00:14 +0000 (17:00 +0000)]
power: Document Power* host properties and power methods

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
6 years agopower: Try rebooting hosts with ssh first
Ian Jackson [Tue, 22 Jan 2019 14:44:57 +0000 (14:44 +0000)]
power: Try rebooting hosts with ssh first

Before we try anything with IPMI (if provided) or the PDU, try
rebooting with ssh.

I think this will dramatically reduce the rate at which we power cycle
our test hosts.

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
6 years agopower: Provide `ssh' power method
Ian Jackson [Tue, 22 Jan 2019 14:44:52 +0000 (14:44 +0000)]
power: Provide `ssh' power method

This is not really a power method but it can pretend to be one.  On
power off, it does nothing.  On power on it logs into the host to ask
it to do a hard reboot.

This is rather best effort, but it is eminently suitable for our new
approach/attempts arrangements because those will try another approach
if ssh didn't work.

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
6 years agopower: Do not sleep between power off and power on if not needed
Ian Jackson [Tue, 22 Jan 2019 17:30:04 +0000 (17:30 +0000)]
power: Do not sleep between power off and power on if not needed

This is controlled by a new query method on power method objects.  If
every power method says it is instananeous then we do not sleep.

This is going to be most useful when we introduce the new SSH
approach, which should not sleep for the power off time.

But we do it for guests (ie, L1 nested hosts) too.

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
6 years agopower: New ILOM/PDU arrangements - try just IPMI
Ian Jackson [Tue, 22 Jan 2019 15:50:00 +0000 (15:50 +0000)]
power: New ILOM/PDU arrangements - try just IPMI

We honour two new host properties PowerPDU and PowerILOM, in
preference to PowerMethod.  The semantics are going to be properly
documented in a later patch, but, briefly:

If only one of these is supplied, it works like PowerMethod, except
that `nest' is applied by default.

If both are supplied, we make two approaches: one is just ILOM.  The
other is to use ILOM and PDU together, with pause in between, and with
try_off applied to ILOM.

The current configuration in Massachusetts is, for hosts with IPMI, to
provide a PowerMethod specifying ad hoc to use PDU and then IPMI, and
also to provide both PowerPDU and PowerILOM.

The overall result of this patch, with that configuration, is to avoid
using the PDU at all if an IPMI-requested reboot is successful.  This
should significantly reduce the number of hard power cycles for hosts
with IMPI.

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
6 years agopower: Provide `try_off' pdu method; deprecate ipmi_try
Ian Jackson [Tue, 22 Jan 2019 17:01:02 +0000 (17:01 +0000)]
power: Provide `try_off' pdu method; deprecate ipmi_try

We are going to want to use this magically, in our new approach.  Make
a general version, and deprecate ipmi_try (which will be obsoleted by
the new approach and which has probably not been used very much).

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
6 years agopower: power_reboot_attempts: Try multiple approaches
Ian Jackson [Tue, 22 Jan 2019 15:11:05 +0000 (15:11 +0000)]
power: power_reboot_attempts: Try multiple approaches

Actually iterate over PowerApproaches, rather than calling power_state
with no approach selector regexp.

No overall functional change right now because nothing puts more
than one entry in PowerApproaches.

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
6 years agopower: PowerApproaches replaces $ho->{PowerMethobjs}
Ian Jackson [Tue, 22 Jan 2019 11:11:14 +0000 (11:11 +0000)]
power: PowerApproaches replaces $ho->{PowerMethobjs}

This new variable contains a list of different approaches to try.

* Move the meat of power_state into power_approach_invoke.
* power_state now looks for a single approach to try.
* The default for power_state is to pick the last approach in
  the list, which by definition is supposed to be the most reliable.
* Currently there will only be one approach, `Only'.

No overall functional change other than to log messages.

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
6 years agopower handling: Introduce power_reboot_attempts
Ian Jackson [Fri, 18 Jan 2019 15:23:54 +0000 (15:23 +0000)]
power handling: Introduce power_reboot_attempts

This is going to be the new preferred interface for rebooting a host.

Introduce the first two call sites in ts-host-install and
ts-freebsd-host-install.  power_cycle_sleep is an internal function
now.

No overall functional change, since currently power_reboot_attempts
only ever tries one method.

Do not adjust ts-freebsd-host-install yet as we have a problem there,
which will be discussed in a moment.

CC: Roger Pau Monné <roger.pau@citrix.com>
Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
6 years agopower handling: Break out power_cycle_parse_method
Ian Jackson [Tue, 22 Jan 2019 10:51:03 +0000 (10:51 +0000)]
power handling: Break out power_cycle_parse_method

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
6 years agopower: Osstest::PDU::*: reuse default new method where applicable
Ian Jackson [Tue, 22 Jan 2019 14:59:48 +0000 (14:59 +0000)]
power: Osstest::PDU::*: reuse default new method where applicable

These two modules both had the same `new' as `unsupported'.  Now that
we have `use parent' they can be removed.

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
6 years agopower: ipmi_try: Use `use parent' instead of Exporter
Ian Jackson [Tue, 22 Jan 2019 14:44:46 +0000 (14:44 +0000)]
power: ipmi_try: Use `use parent' instead of Exporter

This module already has a superclass, `ipmi'.  Import it with `use
parent' instead of Exporter.

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
6 years agopower: Osstest::PDU::*: use parent ::unsupported
Ian Jackson [Tue, 22 Jan 2019 14:38:21 +0000 (14:38 +0000)]
power: Osstest::PDU::*: use parent ::unsupported

This will allow us to introduce default methods, which everyone
inherits unless overridden.  These changes are all textually
identical.

We will do ipmi_try in a moment: that one is special as it actually
has a parent module.

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
6 years agopower: Osstest::PDU::*: drop Exporter blocks
Ian Jackson [Tue, 22 Jan 2019 14:43:29 +0000 (14:43 +0000)]
power: Osstest::PDU::*: drop Exporter blocks

This is all very obsolete.  These that we are removing are all empty,
and nowadays perl has `use parent'.  These changes are all textually
identical.

We will do ipmi_try in a moment: that one is special as it actually
has a parent module.

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
6 years agoline wrapping: In one place pipe through cr-fold-long-lines
Ian Jackson [Thu, 17 Jan 2019 15:25:14 +0000 (15:25 +0000)]
line wrapping: In one place pipe through cr-fold-long-lines

This is the remaining place where long lines might get into emails.

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
6 years agoline wrapping: Replace many uses of cat with cr-fold-long-lines
Ian Jackson [Thu, 17 Jan 2019 15:23:11 +0000 (15:23 +0000)]
line wrapping: Replace many uses of cat with cr-fold-long-lines

These are the nicely uniform bits of this change.

This arranges that many of the places where stuff gets put into emails
has their lines wrapped.

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
6 years agoline wrapping: Use tmp/$flight.report in two extra places
Ian Jackson [Thu, 17 Jan 2019 15:20:11 +0000 (15:20 +0000)]
line wrapping: Use tmp/$flight.report in two extra places

The output from sg-report-flight might in principle contain long
lines, although this is not expected.  So we are going to want to feed
it through the new cr-fold-long-lines.

Rather than piping, we are going to keep a copy of the .report file,
like is done in mg-execute-flight.  So for now, just make that change.

No overall change other than to leave behind the tmp/$flight.report
file.  It will be tidied up by the usual cleanup processes.

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
6 years agoline wrapping: Provide cr-fold-long-lines script
Ian Jackson [Thu, 17 Jan 2019 15:17:22 +0000 (15:17 +0000)]
line wrapping: Provide cr-fold-long-lines script

This is a reversible transformation which usually just introduces a \
where it splits lines.

We are going to use this to wrap the lines in our emails.  SMTP has a
999-byte length limit (including a CR-LF pair).  This can cause our
emails to go astray.  We don't really want our messages to be q-p or
base64-encoded if we can avoid it, and MTAs don't do that anyway (so
we would have to organise it).  So instead, we will simply wrap any
long lines that occur.

This transformation is not suitable for headers, but we don't intend
or want to generate long lines which would need further wrapping.  (A
reversible transformation suitable for headers would be quite ugly and
would only be right for a subset of headers anyway...)

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
6 years agocr-try-bisect: When bisection is done, keep the old mro as mro.done
Ian Jackson [Thu, 17 Jan 2019 11:43:51 +0000 (11:43 +0000)]
cr-try-bisect: When bisection is done, keep the old mro as mro.done

This will help with debugging, or if we want to manually reset/restart
things.

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
6 years agots-livepatch-run: Fix erroneous $$ in double-check
Ian Jackson [Wed, 16 Jan 2019 11:32:06 +0000 (11:32 +0000)]
ts-livepatch-run: Fix erroneous $$ in double-check

The doubled $s here are simply a mistake.  The result is to make this
test ineffective, since `$$file' means `the value of the variable
whose name is in the variable $file', which here will never exist.
This produces a `Use of uninitialized value' warning and substitutes
the empty string, so overall we test the existence of the directory.

The missing check is not of much consequence since this check is not
really expected ever to fail, and if it does, some actual test
execution would fail due to the missing file.

So overall I think the only change is to log output.

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
CC: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
6 years agots-livepatch-run: Print a message about expected failures
Ian Jackson [Wed, 16 Jan 2019 11:30:49 +0000 (11:30 +0000)]
ts-livepatch-run: Print a message about expected failures

target_cmd_output_root_status prints the command exit status.  If that
was a failure and the failure was as expected, this can be confusing
to readers who do not know that this is a possibility.  So print a
message about it.

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
CC: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
6 years agots-livepatch-run: Treat (just) falseish from OutputCheck as fail
Ian Jackson [Wed, 16 Jan 2019 11:28:49 +0000 (11:28 +0000)]
ts-livepatch-run: Treat (just) falseish from OutputCheck as fail

This is more idiomatic.  All existing OutputChecks return booleans, so
no functional change.

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
CC: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>