]> xenbits.xensource.com Git - osstest.git/log
osstest.git
10 years agostandalone: Add --dry-run option for run-job.
Ian Campbell [Tue, 31 Mar 2015 15:06:47 +0000 (16:06 +0100)]
standalone: Add --dry-run option for run-job.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
10 years agotcl: Handle environment variables which are unset.
Ian Campbell [Tue, 31 Mar 2015 15:06:46 +0000 (16:06 +0100)]
tcl: Handle environment variables which are unset.

This allows wrappers such as the standalone wrapper to do
     OSSTEST_SIMULATE=$foo ./sg-run-job
and not worry if $foo is unset.

Do likewise for OSSTEST_TCL_JOBDB_DEBUG.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
10 years agoMerge branch 'production' of osstest.test-lab:/home/osstest/testing into wip
Ian Jackson [Wed, 1 Apr 2015 10:12:14 +0000 (11:12 +0100)]
Merge branch 'production' of osstest.test-lab:/home/osstest/testing into wip

10 years agoproduction-config: Adjust LogsMinSpaceMby to not be half of the VM's disk flight-50306 flight-50307 flight-50308 flight-50309 flight-50310 flight-50311 flight-50312 flight-50313 flight-50314 flight-50315 flight-50316 flight-50317 flight-50318 flight-50319 flight-50320 flight-50321 flight-50322 flight-50323 flight-50324 flight-50325 flight-50326 flight-50327 flight-50328 flight-50329 flight-50330 flight-50332 flight-50333 flight-50334 flight-50335 flight-50336 flight-50337 flight-50339 flight-50341
Ian Jackson [Wed, 1 Apr 2015 10:10:58 +0000 (11:10 +0100)]
production-config: Adjust LogsMinSpaceMby to not be half of the VM's disk

10 years agoMerge branch 'colo.2015-03-31' of xenbits.xen.org:/home/iwj/ext/osstest into queue flight-50284
Ian Campbell [Tue, 31 Mar 2015 14:49:15 +0000 (15:49 +0100)]
Merge branch 'colo.2015-03-31' of xenbits.xen.org:/home/iwj/ext/osstest into queue

10 years agoproduction-config*: Set HostnameSortSwapWords as appropriate
Ian Campbell [Tue, 31 Mar 2015 14:39:19 +0000 (15:39 +0100)]
production-config*: Set HostnameSortSwapWords as appropriate

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
10 years ago(Re)Add production config for Cambridge instance
Ian Campbell [Tue, 31 Mar 2015 13:25:34 +0000 (14:25 +0100)]
(Re)Add production config for Cambridge instance

Although it is no longer the production instance I'd like to be able
to use it for ad-hoc testing.

Created with:
 $ cp production-config production-config-cambridge
 $ git diff origin/production origin-cam/incoming -- production-config | patch production-config-cambridge

Where origin is the new production colo, origin-cam is the old
instance and:
$ git rev-parse origin/production
dce745682f1e326a04519908f07c0d589bd0fc62
$ git rev-parse origin-cam/incoming
a623769cbac25ae716ff9d8251116f95e2ee2531

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
10 years agoOsstest.pm: Add "use IO::File"
Ian Campbell [Tue, 31 Mar 2015 14:38:52 +0000 (15:38 +0100)]
Osstest.pm: Add "use IO::File"

This is needed under Squeeze (but apparently not Wheezy)

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
10 years agots-host-install: honour arch-specific boot append properties
Ian Jackson [Tue, 31 Mar 2015 13:51:42 +0000 (13:51 +0000)]
ts-host-install: honour arch-specific boot append properties

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
10 years agots-host-ping-check: New ubiquitous test step
Ian Jackson [Tue, 31 Mar 2015 13:50:43 +0000 (13:50 +0000)]
ts-host-ping-check: New ubiquitous test step

Check that packet loss is within acceptable levels.

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
10 years agosg-report-flight: Produce better output for running jobs.
Ian Jackson [Tue, 31 Mar 2015 13:49:57 +0000 (13:49 +0000)]
sg-report-flight: Produce better output for running jobs.

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
10 years agosg-report-flight: Sort email output by results, not job name
Ian Jackson [Tue, 31 Mar 2015 13:49:42 +0000 (13:49 +0000)]
sg-report-flight: Sort email output by results, not job name

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
10 years agocs-adjust-flight: Support negation of foo-specs
Ian Jackson [Tue, 31 Mar 2015 13:48:15 +0000 (13:48 +0000)]
cs-adjust-flight: Support negation of foo-specs

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
10 years agoconfig: turn off HostnameSortSwapWords by default
Ian Jackson [Tue, 31 Mar 2015 13:47:26 +0000 (13:47 +0000)]
config: turn off HostnameSortSwapWords by default

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
10 years agostart/stop the guest 10 times in the standard test jobs
Ian Campbell [Wed, 11 Mar 2015 10:08:57 +0000 (10:08 +0000)]
start/stop the guest 10 times in the standard test jobs

The recent libvirt failures seemed to happen after a couple of
stop/start pairs, so arrange to start/stop each guest 10 times.

By cribbing from the existing use of repeat-ts I hope I've arranged
for a new test with testid ts-guest-start/debian.repeat.

We already arrange by more adhoc means to repeat a localhost migration
10 times.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
10 years agoREADME.dev: Document steps after restarting ms-ownerdaemon
Ian Campbell [Fri, 13 Mar 2015 16:00:20 +0000 (16:00 +0000)]
README.dev: Document steps after restarting ms-ownerdaemon

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
10 years agouboot: make flask loading address host property
Wei Liu [Tue, 24 Mar 2015 11:45:52 +0000 (11:45 +0000)]
uboot: make flask loading address host property

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
---
v2: [ijc] Rebase over change to preceding patch

10 years agouboot: do not use readlink on xsm policy
Ian Campbell [Fri, 27 Mar 2015 10:46:31 +0000 (10:46 +0000)]
uboot: do not use readlink on xsm policy

The policy is not a symlink, so readlink will return nothing.

We cannot use readlink -f because that will return an absolute path
and we need a path relative to the filesystem root (in this case
/boot).

Keep flaskpolicy=$flaskpolicy as a shell variable rather than
unescaping the uses (so they are interpreted by Perl) to easy any
future changes.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
10 years agoMerge remote-tracking branch 'origin/incoming' into wip.colo flight-50241 flight-50242 flight-50243 flight-50246 flight-50250 flight-50254 flight-50255 flight-50256 flight-50257 flight-50258 flight-50259 flight-50260 flight-50262 flight-50263 flight-50264 flight-50265 flight-50266 flight-50267 flight-50268 flight-50269 flight-50270 flight-50271 flight-50272 flight-50273 flight-50274 flight-50275 flight-50276 flight-50277 flight-50278 flight-50279 flight-50280 flight-50281 flight-50282 flight-50283 flight-50285 flight-50286 flight-50287 flight-50288 flight-50289 flight-50290 flight-50291
Ian Jackson [Thu, 26 Mar 2015 18:49:27 +0000 (18:49 +0000)]
Merge remote-tracking branch 'origin/incoming' into wip.colo

10 years agoRemove passthrough tests
Ian Jackson [Thu, 26 Mar 2015 18:48:24 +0000 (18:48 +0000)]
Remove passthrough tests

These tests have never passed in the old infrastructure.  The new colo
does not have the SRIOV NICs required.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
10 years agoEmpty commit to force test run flight-50231 flight-50236 flight-50240
Ian Jackson [Thu, 26 Mar 2015 12:52:50 +0000 (12:52 +0000)]
Empty commit to force test run

10 years agoConfigs: Replace xenbits.xensource.com with xenbits.xen.org flight-50230
Ian Jackson [Thu, 26 Mar 2015 11:16:00 +0000 (11:16 +0000)]
Configs: Replace xenbits.xensource.com with xenbits.xen.org

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
10 years agomg-branch-setup: Make initial push optional in mg-branch-setup
Ian Jackson [Wed, 25 Mar 2015 16:49:48 +0000 (16:49 +0000)]
mg-branch-setup: Make initial push optional in mg-branch-setup

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
10 years agots-debian-install: Honour DebianMirrorProxy, HttpProxy
Ian Jackson [Wed, 25 Mar 2015 16:30:23 +0000 (16:30 +0000)]
ts-debian-install: Honour DebianMirrorProxy, HttpProxy

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
10 years agoproduction-config: Configuration for new production colo
Ian Jackson [Fri, 6 Mar 2015 18:50:03 +0000 (18:50 +0000)]
production-config: Configuration for new production colo

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
10 years agoBranches: Rename "incoming" branch to "production"
Ian Jackson [Sun, 8 Mar 2015 12:54:40 +0000 (12:54 +0000)]
Branches: Rename "incoming" branch to "production"

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
10 years agoconfig defaults: Do not use woking for dhcp leases
Ian Jackson [Thu, 12 Mar 2015 19:07:05 +0000 (19:07 +0000)]
config defaults: Do not use woking for dhcp leases

This will probably break the Cambridge instance, where it will need to
be overridden.

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
10 years agots-kernel-build: enable CONFIG_SCSI_HPSA
Ian Jackson [Tue, 24 Mar 2015 15:10:57 +0000 (15:10 +0000)]
ts-kernel-build: enable CONFIG_SCSI_HPSA

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
---
v2: Set to `m' not `n' (!)
    Add s-o-b.

10 years agots-kernel-build: enable CONFIG_SCSI_ISCI
Ian Jackson [Fri, 13 Mar 2015 16:59:06 +0000 (16:59 +0000)]
ts-kernel-build: enable CONFIG_SCSI_ISCI

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
10 years agots-kernel-build: Document a hacky way to get CONFIG_... options
Ian Jackson [Fri, 13 Mar 2015 16:58:54 +0000 (16:58 +0000)]
ts-kernel-build: Document a hacky way to get CONFIG_... options

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
10 years agoHostnameSortSwapWords: Make name order mangling configurable
Ian Jackson [Fri, 13 Mar 2015 15:19:43 +0000 (15:19 +0000)]
HostnameSortSwapWords: Make name order mangling configurable

We still default to having the mangling enabled.  Arguably this is
wrong I'm am minimising the number of things that will be wrong for
the existing Cambridge instance.

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
10 years agomg-execute-flight: New -P (publish) option
Ian Jackson [Wed, 11 Mar 2015 12:12:29 +0000 (12:12 +0000)]
mg-execute-flight: New -P (publish) option

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
10 years agocr-ensure-disk-space: Honour different config for published log expiry
Ian Jackson [Mon, 9 Mar 2015 16:25:22 +0000 (12:25 -0400)]
cr-ensure-disk-space: Honour different config for published log expiry

Break out references to $c{Logs...} into new dircfg() function, and
look up $c{${cfgbase}...} first.  No functional change with existing
config.

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
10 years agocr-ensure-disk-space: Operate locally entirely separately.
Ian Jackson [Mon, 9 Mar 2015 16:25:22 +0000 (12:25 -0400)]
cr-ensure-disk-space: Operate locally entirely separately.

Run cr-ensure-disk-space separately for local and remote directories.

Ie, do the local deletion in its own run (so removing the anomalous
separate invocation).

This makes little difference if the two disks are of roughly similar
sizes.

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
10 years agocr-ensure-disk-space: Permit argument to specify local directory.
Ian Jackson [Mon, 9 Mar 2015 16:22:58 +0000 (12:22 -0400)]
cr-ensure-disk-space: Permit argument to specify local directory.

If the argument is Logs rather than LogsPublish (ie, refers to a local
directory (without `:') rather than a remote one (with `:'), do things
locally (by invoking sh -ec so that we have identical quoting rules to
ssh).

No effectively functional change with the current configuration.

We still always do a local deletion.  This is anomalous and will
disappear shortly.

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
10 years agocr-ensure-disk-space: Fix -n option
Ian Jackson [Mon, 9 Mar 2015 16:17:44 +0000 (12:17 -0400)]
cr-ensure-disk-space: Fix -n option

This would not really do a dry run - instead it would stop after
deleting one flight's logs!

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
10 years agocr-ensure-disk-space: Take argument for what to clean
Ian Jackson [Mon, 9 Mar 2015 16:16:52 +0000 (12:16 -0400)]
cr-ensure-disk-space: Take argument for what to clean

Currently always "LogsPublish" (so no functional change).

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
10 years agocr-ensure-disk-space: Do listing of flights on target.
Ian Jackson [Mon, 9 Mar 2015 16:15:07 +0000 (12:15 -0400)]
cr-ensure-disk-space: Do listing of flights on target.

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
10 years agocr-ensure-disk-space: Do df check on target.
Ian Jackson [Mon, 9 Mar 2015 16:03:54 +0000 (12:03 -0400)]
cr-ensure-disk-space: Do df check on target.

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
10 years agocr-ensure-disk-space: Break out ontarget
Ian Jackson [Mon, 9 Mar 2015 16:03:31 +0000 (12:03 -0400)]
cr-ensure-disk-space: Break out ontarget

No functional change.

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
10 years agocr-ensure-disk-space: Move LogsPublish decomposition up
Ian Jackson [Mon, 9 Mar 2015 15:51:29 +0000 (11:51 -0400)]
cr-ensure-disk-space: Move LogsPublish decomposition up

We are going to want this for the df.
No functional change yet.

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
10 years agocr-ensure-disk-space: Emacs perl-mode syntax workaround
Ian Jackson [Mon, 9 Mar 2015 15:50:33 +0000 (11:50 -0400)]
cr-ensure-disk-space: Emacs perl-mode syntax workaround

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
10 years agodaemons: Allow QueueDaemon and OwnerDaemon to run on different hosts
Ian Jackson [Sun, 8 Mar 2015 12:20:34 +0000 (12:20 +0000)]
daemons: Allow QueueDaemon and OwnerDaemon to run on different hosts

We want the OwnerDaemon to run on the same host as the database (for
fate-sharing reasons).  OTOH the QueueDaemon is less critical if it
fails, and it generates reports etc., and wants to be more frequently
updated, so it should run on the osstest VM.

Permit this by:
 * Providing OwnerDaemonHost and QueueDaemonHost config settings
   which default to the value of ControlDaemonHost.
 * Using those everywhere.
 * In the daemons' Tcl code, have main-daemon take the string `Owner'
   or `Queue' so that it can look up both the host and port.

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
10 years agotarget_cmd_build: Honour $c{HttpProxy}
Ian Jackson [Fri, 6 Mar 2015 21:33:03 +0000 (21:33 +0000)]
target_cmd_build: Honour $c{HttpProxy}

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
10 years agoHostDB Executive: Option to suppress "configdb"
Ian Jackson [Fri, 6 Mar 2015 20:38:53 +0000 (20:38 +0000)]
HostDB Executive: Option to suppress "configdb"

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
10 years agoreadglobalconfig: Support Include
Ian Jackson [Fri, 6 Mar 2015 19:19:11 +0000 (19:19 +0000)]
readglobalconfig: Support Include

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
10 years agoreadglobalconfig: Break out $readcfg as a sub
Ian Jackson [Fri, 6 Mar 2015 19:04:47 +0000 (19:04 +0000)]
readglobalconfig: Break out $readcfg as a sub

And make it use anonymous filehandles, and be able to not tolerate
ENOENT.  This is preparation for making it recursive (`Include').

No functional change.

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
10 years agoDebian mirrors: Support proxy, and default to ftp.debian.org if specified
Ian Jackson [Tue, 24 Mar 2015 18:50:14 +0000 (18:50 +0000)]
Debian mirrors: Support proxy, and default to ftp.debian.org if specified

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
10 years agopxe setup: mg-hosts mkpxedir has -n (dry run) option
Ian Jackson [Fri, 6 Mar 2015 18:45:38 +0000 (18:45 +0000)]
pxe setup: mg-hosts mkpxedir has -n (dry run) option

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
10 years agopxe setup: New TftpPxeTemplatesReal feature
Ian Jackson [Fri, 6 Mar 2015 18:39:44 +0000 (18:39 +0000)]
pxe setup: New TftpPxeTemplatesReal feature

Rather than having mg-hosts mkpxedir hardcode the strange thing done
in the XenClient test lab in the Citrix Cambridge office, provide a
somewhat more general and correct approach:

* Generalise host_pxefile to support [Tftp]PxeTemplatesReal as well
  as [Tftp]PxeTemplates.
* Default [Tftp]PxeTemplatesReal to ''

mg-hosts mkpxedir now uses these templates, as follow:
* Create the host's PxeTemplates-based pxe file's parent
  directories and make the parent directory be owned by PxeGroup.
* If the PxeTemplatesReal is specified and different, make a symlink
  named according to PxeTemplatesReal pointing at the previous file.

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
10 years agoOsstest: Default config: Use foreach for empty defaults
Ian Jackson [Fri, 6 Mar 2015 15:27:46 +0000 (10:27 -0500)]
Osstest: Default config: Use foreach for empty defaults

No functional change, but makes adding new empty defaults shorter.

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
10 years agomg-hosts: Provide new "power" subcommand
Ian Jackson [Fri, 6 Mar 2015 15:32:40 +0000 (10:32 -0500)]
mg-hosts: Provide new "power" subcommand

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
10 years agopxe setup: Define %name% in templates
Ian Jackson [Fri, 6 Mar 2015 15:31:40 +0000 (10:31 -0500)]
pxe setup: Define %name% in templates

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
10 years agoPDU: pdu-msw: Support APC v6 firmware
Ian Jackson [Thu, 5 Mar 2015 19:04:43 +0000 (14:04 -0500)]
PDU: pdu-msw: Support APC v6 firmware

APC PDUs with firmware 6.x have a different OID space for turning
ports on and off, to the one for querying.  The old namespace still
works to turn the port on and off but returns a genErr error response!

Support a new command-line option --apc6 to use this other OID.

Information about OIDs etc. obtained here:
  https://git.fedorahosted.org/cgit/fence-agents.git/commit/?id=55ccdd79f530092af06eea5b4ce6a24bd82c0875

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
10 years agoPDU: pdu-msw: Split $read_oid and $write_oid
Ian Jackson [Thu, 5 Mar 2015 19:02:09 +0000 (14:02 -0500)]
PDU: pdu-msw: Split $read_oid and $write_oid

Some PDUs have a different OID space for turning ports on and off, to
the one for querying.  To make this easier to handle, split the
variable $oid into $read_oid and $write_oid.

Also move $baseoid settings earlier so that we can modify them with
command-line arguments.

No functional change in this patch.

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
10 years agoPDU: msw: support arbitrary arguments
Ian Jackson [Thu, 5 Mar 2015 19:00:34 +0000 (14:00 -0500)]
PDU: msw: support arbitrary arguments

No functional change with existing host properties.

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
10 years agomfi-common, make-flight: create XSM test jobs flight-36584 flight-36700 flight-36701 flight-36702 flight-36703 flight-36704 flight-36705 flight-36706 flight-36707 flight-36708 flight-36709 flight-36710 flight-36711 flight-36712 flight-36713 flight-36714 flight-36715 flight-36716 flight-36717 flight-36718 flight-36719 flight-36720 flight-36722 flight-36723 flight-36725 flight-36726 flight-36727 flight-36728 flight-36729 flight-36730 flight-36731 flight-36732 flight-36733 flight-36734 flight-36735 flight-36736 flight-36737 flight-36738 flight-36739 flight-36740 flight-36741 flight-36742 flight-36743 flight-36744 flight-36745 flight-36746 flight-36747 flight-36748 flight-36749 flight-36750 flight-36751 flight-36752 flight-36753 flight-36754 flight-36755 flight-36756 flight-36758 flight-36759 flight-36760 flight-36761 flight-36762 flight-36763 flight-36764 flight-36765 flight-36766 flight-36767 flight-36768 flight-36769 flight-36770 flight-36771 flight-36772 flight-36773 flight-36774 flight-36775 flight-36776 flight-36777 flight-36778 flight-36779 flight-36780 flight-36781 flight-36782 flight-36783 flight-36784 flight-36785 flight-36786 flight-36787 flight-36788 flight-36789 flight-36790 flight-36791 flight-36792 flight-36793 flight-36794 flight-36795 flight-36796 flight-36797 flight-36798 flight-36799 flight-36800 flight-36801 flight-36802 flight-36803 flight-36804 flight-36805 flight-36806 flight-36807 flight-36808 flight-36809 flight-36810 flight-36811 flight-36812 flight-36813 flight-36814 flight-36815 flight-36816 flight-36817 flight-36818 flight-36819 flight-36820 flight-36821 flight-36822 flight-36823 flight-36824 flight-36825 flight-36826 flight-36827 flight-36828 flight-36829 flight-36830 flight-36831 flight-36832 flight-36833 flight-36834 flight-36835 flight-36836 flight-36837 flight-36838 flight-36839 flight-36840 flight-36841 flight-36842 flight-36843 flight-36844 flight-36845 flight-36846 flight-36847 flight-36848 flight-36849 flight-36850 flight-36851 flight-36852 flight-36853 flight-36854 flight-36855 flight-36856 flight-36857 flight-36858 flight-36859 flight-36860 flight-36861 flight-36862 flight-36863 flight-36864 flight-36865 flight-36866 flight-36867 flight-36868 flight-36869 flight-36870 flight-36871 flight-36872 flight-36873 flight-36874 flight-36875 flight-36876 flight-36877 flight-36878 flight-36879 flight-36880 flight-36881 flight-36882 flight-36883 flight-36884 flight-36885 flight-36886 flight-36887 flight-36888 flight-36889 flight-36890 flight-36891 flight-36892 flight-36893 flight-36894 flight-36895 flight-36896 flight-36897 flight-36898 flight-36899 flight-36900 flight-36901 flight-36902 flight-36903 flight-36904 flight-36905 flight-36906 flight-36907 flight-36908 flight-36909 flight-36910 flight-36911 flight-36912 flight-36913 flight-36914 flight-36917 flight-36918 flight-36921 flight-36922 flight-36923 flight-36924 flight-36925 flight-36927 flight-36928 flight-36929 flight-36930 flight-36931 flight-36932 flight-36933 flight-36934 flight-36935 flight-36936 flight-36937 flight-36938 flight-36939 flight-36940 flight-36941 flight-36942 flight-36945 flight-36946 flight-36947 flight-36948 flight-36949 flight-36950 flight-36951 flight-36952 flight-36953 flight-36954 flight-36955 flight-36956 flight-36957 flight-36958 flight-36959 flight-36960 flight-36961 flight-36962 flight-36963 flight-36964 flight-36965 flight-36966 flight-36967 flight-36968 flight-36969 flight-36970 flight-36971 flight-36972 flight-36973 flight-36974 flight-36975 flight-36976 flight-36977 flight-36978 flight-36979 flight-36980 flight-36981
Wei Liu [Mon, 2 Feb 2015 19:57:13 +0000 (19:57 +0000)]
mfi-common, make-flight: create XSM test jobs

Duplicate Debian PV and HVM test jobs for XSM testing.

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Cc: Ian Campbell <ian.campbell@citrix.com>
Cc: Ian Jackson <ian.jackson@eu.citrix.com>
---
Changes in v8:
1. Make libvirtbuildjob = ${bfi}build-$dom0arch-libvirt

Changes in v6:
1. Skip generating xsm job for different platforms.
2. Use "xsms".
3. Reformat some long lines.

10 years agomake-flight: factor out do_pv_debian_tests
Wei Liu [Mon, 2 Feb 2015 19:53:26 +0000 (19:53 +0000)]
make-flight: factor out do_pv_debian_tests

Pure code motion. No effect on job generation.

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Cc: Ian Campbell <ian.campbell@citrix.com>
Cc: Ian Jackson <ian.jackson@eu.citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
10 years agots-xen-install: install Xen with XSM support if requested
Wei Liu [Mon, 22 Sep 2014 13:13:41 +0000 (14:13 +0100)]
ts-xen-install: install Xen with XSM support if requested

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
---
Changes in v4:
1. Use "true" instead of "y"

10 years agoDebian.pm: load flask policy in uboot
Wei Liu [Fri, 12 Sep 2014 15:29:00 +0000 (16:29 +0100)]
Debian.pm: load flask policy in uboot

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Cc: Ian Campbell <ian.campbell@citrix.com>
Cc: Ian Jackson <ian.jackson@eu.citrix.com>
---
Changes in v15:
1. Use new flask option "flask=enforcing".

Changes in v10:
1. Correctly get $flaskpolicy.

Changes in v9:
1. Add "xen,multiboot-module".

Changes in v8:
1. Append flask_enforcing=1 and flask_enabled=1.

10 years agoDebian.pm: pass in XSM configuration to bootloader setup routines
Wei Liu [Mon, 22 Sep 2014 13:11:51 +0000 (14:11 +0100)]
Debian.pm: pass in XSM configuration to bootloader setup routines

Change to Uboot will come in another patch. GRUB 1 is ignored, as
currently OSSTest only has Wheezy which has GRUB 2.

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
---
Changes in v6:
1. Wrap some overly long lines.

Changes in v4:
1. Modify callsite of debian_boot_setup to avoid regression.

10 years agomfi-common: create build-$arch-xsm job
Wei Liu [Mon, 8 Sep 2014 10:41:44 +0000 (11:41 +0100)]
mfi-common: create build-$arch-xsm job

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
---
Changes in v15:
1. Don't test xsm on 4.5.

Changes in v4:
1. Use "true" and "false" instead of "y" and "n".
2. Rename xenbranch_wants_xsm_tests to xenbranch_xsm_variants.

10 years agots-xen-build: only move hypervisor to xeninstall
Wei Liu [Mon, 23 Feb 2015 12:03:16 +0000 (12:03 +0000)]
ts-xen-build: only move hypervisor to xeninstall

... so that we can leave xenpolicy-* in tools tarball.

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Cc: Ian Campbell <ian.campbell@citrix.com>
Cc: Ian Jackson <ian.jackson@eu.citrix.com>
---
Changes in v13:
1. Use find rune to get list of files to move.

10 years agots-xen-build: build with XSM support if requested
Wei Liu [Mon, 8 Sep 2014 15:06:52 +0000 (16:06 +0100)]
ts-xen-build: build with XSM support if requested

Signed-off-by: Wei Liu <wei.liu2@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>
---
Changes in v14:
1. Use target_cmd_output instead of target_cmd_output_root.

Changes in v5:
1. Only set XSM_ENABLE when runvar is defined.
2. Fix inconsistent whitespace.

Changes in v4:
1. Use "true" instead of "y"

10 years agots-xen-build-prep: install checkpolicy
Wei Liu [Fri, 5 Sep 2014 16:24:36 +0000 (17:24 +0100)]
ts-xen-build-prep: install checkpolicy

This is used to complie Flask policy.

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
10 years agooverlay: update overlay/etc/grub.d/20_linux_xen
Wei Liu [Sun, 12 Oct 2014 16:04:34 +0000 (17:04 +0100)]
overlay: update overlay/etc/grub.d/20_linux_xen

This file was originally created to work around Debian bug #633127
("/etc/grub/20_linux does not recognise some old Xen kernels").

According to Debian bug tracker [0], #633127 bug is fixed in Wheezy. As
we're now using Wheezy in OSSTest we can safely remove the old overlay
file if there's no further bugs discovered.

However we have another bug #690538 ("grub-common: Please make submenu
creation optional or at least allow users to disable it easily") that
would break OSSTest.  We're now using Wheezy in production. There's no
way to disable submenu in Wheezy. And submenu breaks OSSTest's grub menu
parser.

So update this overlay file to the one in Wheezy's grub-common
1.99-27+deb7u2 and take care of Debian bug #690538 by removing the lines
to generate submenu.

Also work around GRUB bug #43420 ("20_linux_xen doesn't support Xen XSM
policy file") by applying a small patch proposed in [2].

Add a note to reference #633127 and #690538 above grub2 setup function.

0: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=633127
1: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=690538
2: https://savannah.gnu.org/bugs/?43420

Signed-off-by: Wei Liu <wei.liu2@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>
---
Changes in v15:
1. Use new flask option "flask=enforcing".

10 years agoDebian: Add "fdt chosen" to boot script
Ian Campbell [Wed, 18 Feb 2015 10:43:26 +0000 (10:43 +0000)]
Debian: Add "fdt chosen" to boot script

This causes u-boot to fill in the various fields in the chosen node
(specifically the bootargs) which would otherwise not be done until
the bootz command. Doing it manually means the following "fdt print
/chosen" will print what is actually going to be used.

This change means that instead of whatever /chosen/bootargs is
embedded in the firmware FDT we end up printing what we will actually
use.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
10 years agots-xen-install: Enable debug level logging in libvirt flight-36067 flight-36323 flight-36373 flight-36485 flight-36511 flight-36512 flight-36513 flight-36514 flight-36515 flight-36516 flight-36517 flight-36518 flight-36519 flight-36520 flight-36521 flight-36522 flight-36523 flight-36524 flight-36525 flight-36526 flight-36527 flight-36528 flight-36529 flight-36530 flight-36531 flight-36533 flight-36534 flight-36535 flight-36536 flight-36537 flight-36538 flight-36539 flight-36540 flight-36541 flight-36542 flight-36543 flight-36544 flight-36545 flight-36546 flight-36547 flight-36548 flight-36549 flight-36550 flight-36551 flight-36552 flight-36553 flight-36554 flight-36555 flight-36556 flight-36557 flight-36558 flight-36559 flight-36560 flight-36561 flight-36562 flight-36563 flight-36564 flight-36565 flight-36566 flight-36567 flight-36568 flight-36569 flight-36570 flight-36571 flight-36572 flight-36573 flight-36574 flight-36575 flight-36576 flight-36577 flight-36578 flight-36579 flight-36580 flight-36581 flight-36582 flight-36583 flight-36585 flight-36586 flight-36587 flight-36588 flight-36589 flight-36590 flight-36591 flight-36592 flight-36593 flight-36594 flight-36595 flight-36596 flight-36597 flight-36598 flight-36599 flight-36600 flight-36601 flight-36602 flight-36603 flight-36604 flight-36605 flight-36606 flight-36607 flight-36608 flight-36609 flight-36610 flight-36611 flight-36612 flight-36613 flight-36614 flight-36615 flight-36616 flight-36617 flight-36618 flight-36619 flight-36620 flight-36621 flight-36622 flight-36623 flight-36624 flight-36625 flight-36626 flight-36627 flight-36628 flight-36629 flight-36630 flight-36631 flight-36632 flight-36633 flight-36634 flight-36635 flight-36636 flight-36637 flight-36638 flight-36639 flight-36640 flight-36641 flight-36642 flight-36643 flight-36644 flight-36645 flight-36646 flight-36647 flight-36648 flight-36649 flight-36650 flight-36651 flight-36652 flight-36653 flight-36654 flight-36655 flight-36656 flight-36657 flight-36658 flight-36659 flight-36660 flight-36661 flight-36662 flight-36663 flight-36664 flight-36665 flight-36666 flight-36667 flight-36668 flight-36669 flight-36670 flight-36671 flight-36672 flight-36673 flight-36674 flight-36675 flight-36676 flight-36677 flight-36678 flight-36679 flight-36680 flight-36681 flight-36682 flight-36683 flight-36684 flight-36685 flight-36686 flight-36687 flight-36688 flight-36689 flight-36690 flight-36691 flight-36692 flight-36693 flight-36694 flight-36695 flight-36696 flight-36697 flight-36698 flight-36699
Ian Campbell [Mon, 2 Mar 2015 10:02:56 +0000 (10:02 +0000)]
ts-xen-install: Enable debug level logging in libvirt

This should make diagnosing libvirt issues a bit easier.

Refactor the existing loop to edit the xencommons kvp style config
file editing code so it can be reused for libvirtd.conf.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Cc: Jim Fehlig <jfehlig@suse.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
10 years agoallow: Allow rumpuserxen-demo-xenstorels/xenstorels failures on all branches flight-35962 flight-35963 flight-35964 flight-35965 flight-35966 flight-35967 flight-35968 flight-35969 flight-35970 flight-35971 flight-35972 flight-35973 flight-35974 flight-35975 flight-35976 flight-35977 flight-35978 flight-35979 flight-35980 flight-35981 flight-35982 flight-35983 flight-35984 flight-35985 flight-35986 flight-35987 flight-35988 flight-35989 flight-35990 flight-35991 flight-35992 flight-35993 flight-35994 flight-35995 flight-35996 flight-35997 flight-35998 flight-35999 flight-36000 flight-36001 flight-36002 flight-36003 flight-36004 flight-36005 flight-36006 flight-36007 flight-36008 flight-36009 flight-36010 flight-36011 flight-36012 flight-36013 flight-36014 flight-36015 flight-36016 flight-36017 flight-36060 flight-36061 flight-36062 flight-36063 flight-36064 flight-36065 flight-36066 flight-36068 flight-36069 flight-36070 flight-36071 flight-36072 flight-36073 flight-36074 flight-36075 flight-36076 flight-36077 flight-36078 flight-36079 flight-36080 flight-36081 flight-36082 flight-36083 flight-36084 flight-36085 flight-36086 flight-36087 flight-36088 flight-36089 flight-36090 flight-36091 flight-36092 flight-36093 flight-36094 flight-36095 flight-36096 flight-36097 flight-36098 flight-36099 flight-36100 flight-36101 flight-36102 flight-36103 flight-36104 flight-36105 flight-36106 flight-36107 flight-36108 flight-36109 flight-36110 flight-36111 flight-36112 flight-36113 flight-36114 flight-36115 flight-36116 flight-36117 flight-36118 flight-36119 flight-36120 flight-36121 flight-36122 flight-36123 flight-36124 flight-36125 flight-36126 flight-36127 flight-36128 flight-36129 flight-36130 flight-36131 flight-36132 flight-36133 flight-36134 flight-36135 flight-36136 flight-36137 flight-36138 flight-36139 flight-36141 flight-36142 flight-36143 flight-36144 flight-36145 flight-36146 flight-36147 flight-36148 flight-36149 flight-36150 flight-36151 flight-36152 flight-36153 flight-36154 flight-36155 flight-36156 flight-36157 flight-36158 flight-36159 flight-36160 flight-36161 flight-36162 flight-36163 flight-36164 flight-36165 flight-36166 flight-36167 flight-36168 flight-36169 flight-36170 flight-36171 flight-36172 flight-36173 flight-36174 flight-36175 flight-36176 flight-36177 flight-36178 flight-36179 flight-36180 flight-36181 flight-36182 flight-36183 flight-36184 flight-36185 flight-36186 flight-36187 flight-36188 flight-36189 flight-36191 flight-36192 flight-36193 flight-36194 flight-36195 flight-36196 flight-36197 flight-36198 flight-36199 flight-36200 flight-36201 flight-36202 flight-36203 flight-36204 flight-36205 flight-36206 flight-36207 flight-36208 flight-36209 flight-36210 flight-36211 flight-36212 flight-36214 flight-36215 flight-36216 flight-36217 flight-36219 flight-36220 flight-36222 flight-36223 flight-36224 flight-36226 flight-36227 flight-36228 flight-36229 flight-36230 flight-36231 flight-36232 flight-36233 flight-36235 flight-36238 flight-36239 flight-36240 flight-36241 flight-36242 flight-36243 flight-36244 flight-36246 flight-36247 flight-36248 flight-36249 flight-36250 flight-36251 flight-36252 flight-36253 flight-36254 flight-36255 flight-36256 flight-36257 flight-36258 flight-36259 flight-36260 flight-36261 flight-36262 flight-36263 flight-36264 flight-36265 flight-36266 flight-36267 flight-36268 flight-36269 flight-36270 flight-36271 flight-36272 flight-36273 flight-36275 flight-36276 flight-36277 flight-36278 flight-36279 flight-36280 flight-36281 flight-36282 flight-36284 flight-36285 flight-36286 flight-36287 flight-36288 flight-36289 flight-36290 flight-36291 flight-36292 flight-36293 flight-36294 flight-36295 flight-36296 flight-36297 flight-36298 flight-36299 flight-36300 flight-36301 flight-36302 flight-36303 flight-36304 flight-36305 flight-36307 flight-36308 flight-36310 flight-36311 flight-36312 flight-36314 flight-36316 flight-36317 flight-36324 flight-36325 flight-36326 flight-36328 flight-36332 flight-36333 flight-36340 flight-36341 flight-36343 flight-36344 flight-36346 flight-36347 flight-36348 flight-36349 flight-36350 flight-36351 flight-36353 flight-36354 flight-36355 flight-36356 flight-36357 flight-36358 flight-36359 flight-36361 flight-36362 flight-36364 flight-36365 flight-36366 flight-36369 flight-36370 flight-36371 flight-36372 flight-36381 flight-36382 flight-36388 flight-36390 flight-36391 flight-36392 flight-36393 flight-36394 flight-36395 flight-36396 flight-36397 flight-36398 flight-36399 flight-36400 flight-36401 flight-36402 flight-36403 flight-36404 flight-36405 flight-36406 flight-36409 flight-36410 flight-36411 flight-36413 flight-36414 flight-36415 flight-36416 flight-36417 flight-36418 flight-36419 flight-36420 flight-36421 flight-36422 flight-36423 flight-36424 flight-36425 flight-36426 flight-36427 flight-36428 flight-36429 flight-36430 flight-36432 flight-36433 flight-36434 flight-36438 flight-36439 flight-36440 flight-36458 flight-36459 flight-36460 flight-36461 flight-36462 flight-36463 flight-36464 flight-36465 flight-36466 flight-36467 flight-36468 flight-36469 flight-36470 flight-36471 flight-36472 flight-36473 flight-36474 flight-36475 flight-36476 flight-36477 flight-36478 flight-36480 flight-36483 flight-36484 flight-36487 flight-36489 flight-36491 flight-36492 flight-36494 flight-36495 flight-36497 flight-36498 flight-36499 flight-36500 flight-36501 flight-36503 flight-36504 flight-36505 flight-36506 flight-36507
Ian Campbell [Fri, 6 Mar 2015 10:07:49 +0000 (10:07 +0000)]
allow: Allow rumpuserxen-demo-xenstorels/xenstorels failures on all branches

This test is subject to a heisenbug. The next step after this one is a
repetition (50 times) of the same test which should reliably hit the
issue.

In the meantime this individual attempt sometimes hits and sometimes
doesn't, causing unhelpful false regressions.

The repeated test has never passed in any branch and so is not yet
considered a regression.

Since the repeated test will catch the actual heisenbug I haven't
bothered to add a rumpuserxen specific override which makes this step
blocking again.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
10 years agoallow files: Allow all libvirt test failures on other branches flight-35858 flight-35859 flight-35860 flight-35861 flight-35862 flight-35863 flight-35864 flight-35866 flight-35867 flight-35868 flight-35869 flight-35870 flight-35871 flight-35872 flight-35873 flight-35874 flight-35875 flight-35876 flight-35877 flight-35878 flight-35879 flight-35880 flight-35881 flight-35882 flight-35883 flight-35884 flight-35885 flight-35886 flight-35887 flight-35888 flight-35889 flight-35890 flight-35891 flight-35892 flight-35893 flight-35894 flight-35895 flight-35896 flight-35897 flight-35898 flight-35899 flight-35900 flight-35901 flight-35902 flight-35903 flight-35904 flight-35906 flight-35907 flight-35908 flight-35909 flight-35910 flight-35911 flight-35912 flight-35913 flight-35914 flight-35915 flight-35916 flight-35917 flight-35918 flight-35919 flight-35920 flight-35921 flight-35922 flight-35923 flight-35924 flight-35925 flight-35926 flight-35927 flight-35928 flight-35929 flight-35930 flight-35931 flight-35932 flight-35933 flight-35934 flight-35935 flight-35936 flight-35937 flight-35938 flight-35939 flight-35940 flight-35941 flight-35942 flight-35943 flight-35944 flight-35945 flight-35946 flight-35947 flight-35948 flight-35949 flight-35950 flight-35951 flight-35952 flight-35953 flight-35954 flight-35955 flight-35956 flight-35957 flight-35958 flight-35959 flight-35960 flight-35961
Ian Jackson [Tue, 3 Mar 2015 13:15:27 +0000 (13:15 +0000)]
allow files: Allow all libvirt test failures on other branches

We have a problem where virtd crashes, and this is causing problems
for other branches.  So ignore libvirt test failures.

Use the new ability to override allowances to cause libvirt failures
to still block libvirt pushes.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
10 years agoallow files: Support negation syntax
Ian Jackson [Tue, 3 Mar 2015 13:13:02 +0000 (13:13 +0000)]
allow files: Support negation syntax

We now support !<pattern>, which undoes the effect of a <pattern>
specified previously (perhaps in another file).

Note that the logic is a bit poor: !... only undoes the effect of an
identical (or equivalent) earlier pattern; it doesn't provide a
specific override.

Improving that would involve a more invasive change to
sg-report-flight which I don't want to do right now.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
10 years agoallow files: Pass branch-specific allow file last to sg-report-flight
Ian Jackson [Tue, 3 Mar 2015 13:12:02 +0000 (13:12 +0000)]
allow files: Pass branch-specific allow file last to sg-report-flight

We are going to make it possible for a branch-specific allow file to
override general allow information from allow.all.

No functional change yet.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
10 years agorump kernels: Send build mails to new list flight-35611 flight-35612 flight-35614 flight-35615 flight-35616 flight-35617 flight-35618 flight-35619 flight-35620 flight-35621 flight-35622 flight-35623 flight-35624 flight-35625 flight-35626 flight-35627 flight-35628 flight-35629 flight-35630 flight-35631 flight-35632 flight-35633 flight-35634 flight-35635 flight-35636 flight-35637 flight-35638 flight-35639 flight-35640 flight-35641 flight-35642 flight-35643 flight-35644 flight-35645 flight-35646 flight-35647 flight-35648 flight-35649 flight-35650 flight-35651 flight-35652 flight-35653 flight-35654 flight-35655 flight-35656 flight-35657 flight-35658 flight-35659 flight-35660 flight-35661 flight-35662 flight-35663 flight-35664 flight-35665 flight-35666 flight-35667 flight-35668 flight-35669 flight-35670 flight-35671 flight-35672 flight-35673 flight-35674 flight-35675 flight-35676 flight-35677 flight-35678 flight-35679 flight-35680 flight-35681 flight-35682 flight-35683 flight-35684 flight-35685 flight-35686 flight-35688 flight-35689 flight-35690 flight-35691 flight-35692 flight-35693 flight-35694 flight-35695 flight-35696 flight-35697 flight-35698 flight-35699 flight-35700 flight-35701 flight-35702 flight-35703 flight-35704 flight-35705 flight-35706 flight-35707 flight-35708 flight-35709 flight-35710 flight-35711 flight-35712 flight-35713 flight-35714 flight-35715 flight-35716 flight-35717 flight-35718 flight-35719 flight-35720 flight-35721 flight-35722 flight-35723 flight-35724 flight-35725 flight-35726 flight-35727 flight-35728 flight-35729 flight-35730 flight-35731 flight-35732 flight-35733 flight-35734 flight-35735 flight-35736 flight-35737 flight-35738 flight-35739 flight-35740 flight-35741 flight-35742 flight-35743 flight-35744 flight-35745 flight-35746 flight-35747 flight-35748 flight-35749 flight-35750 flight-35751 flight-35752 flight-35753 flight-35754 flight-35755 flight-35756 flight-35757 flight-35758 flight-35759 flight-35760 flight-35761 flight-35762 flight-35763 flight-35764 flight-35765 flight-35766 flight-35767 flight-35768 flight-35769 flight-35770 flight-35771 flight-35772 flight-35773 flight-35774 flight-35775 flight-35776 flight-35777 flight-35778 flight-35779 flight-35780 flight-35781 flight-35782 flight-35783 flight-35784 flight-35785 flight-35786 flight-35787 flight-35788 flight-35789 flight-35790 flight-35791 flight-35792 flight-35800 flight-35801 flight-35802 flight-35803 flight-35804 flight-35805 flight-35806 flight-35807 flight-35808 flight-35809 flight-35810 flight-35811 flight-35812 flight-35813 flight-35814 flight-35815 flight-35818 flight-35819 flight-35820 flight-35821 flight-35822 flight-35825 flight-35826 flight-35827 flight-35828 flight-35829 flight-35830 flight-35831 flight-35832 flight-35833 flight-35834 flight-35835 flight-35836 flight-35837 flight-35838 flight-35839 flight-35840 flight-35841 flight-35842 flight-35843 flight-35844 flight-35845 flight-35846 flight-35847 flight-35848 flight-35849 flight-35850 flight-35851 flight-35852 flight-35853 flight-35854 flight-35855 flight-35857
Ian Jackson [Thu, 26 Feb 2015 17:45:25 +0000 (17:45 +0000)]
rump kernels: Send build mails to new list

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
CC: Antti Kantee <pooka@rumpkernel.org>
---
v2: Bisections, too.

10 years agorump kernel tests: Fix testid of repeat xenstorels test flight-34913 flight-34914 flight-34918 flight-34919 flight-34920 flight-34921 flight-34922 flight-34923 flight-34924 flight-34925 flight-34926 flight-34927 flight-34928 flight-34930 flight-34931 flight-34932 flight-34933 flight-34934 flight-34937 flight-34938 flight-34939 flight-34940 flight-34941 flight-34942 flight-34943 flight-34944 flight-34945 flight-34946 flight-34947 flight-34948 flight-34949 flight-34950 flight-34951 flight-34952 flight-34953 flight-34954 flight-34955 flight-34956 flight-34957 flight-34958 flight-34959 flight-34960 flight-34961 flight-34962 flight-34963 flight-34964 flight-34965 flight-34966 flight-34967 flight-34968 flight-34969 flight-34970 flight-34971 flight-34972 flight-34973 flight-34974 flight-34975 flight-34976 flight-34977 flight-34978 flight-34979 flight-34980 flight-34981 flight-34982 flight-34983 flight-34984 flight-34985 flight-34986 flight-34987 flight-34988 flight-34989 flight-34990 flight-34991 flight-34992 flight-34993 flight-34994 flight-34995 flight-34996 flight-34997 flight-34998 flight-34999 flight-35000 flight-35001 flight-35002 flight-35003 flight-35004 flight-35005 flight-35006 flight-35007 flight-35008 flight-35009 flight-35010 flight-35011 flight-35012 flight-35013 flight-35014 flight-35015 flight-35016 flight-35017 flight-35018 flight-35019 flight-35020 flight-35021 flight-35022 flight-35023 flight-35024 flight-35025 flight-35026 flight-35027 flight-35028 flight-35029 flight-35030 flight-35031 flight-35032 flight-35033 flight-35034 flight-35035 flight-35036 flight-35037 flight-35038 flight-35039 flight-35040 flight-35041 flight-35042 flight-35043 flight-35044 flight-35045 flight-35046 flight-35047 flight-35048 flight-35049 flight-35050 flight-35051 flight-35052 flight-35053 flight-35054 flight-35055 flight-35056 flight-35057 flight-35058 flight-35059 flight-35060 flight-35061 flight-35062 flight-35063 flight-35064 flight-35065 flight-35066 flight-35067 flight-35068 flight-35069 flight-35070 flight-35071 flight-35072 flight-35073 flight-35074 flight-35075 flight-35076 flight-35077 flight-35078 flight-35079 flight-35080 flight-35081 flight-35082 flight-35083 flight-35084 flight-35085 flight-35086 flight-35087 flight-35088 flight-35089 flight-35090 flight-35091 flight-35092 flight-35093 flight-35094 flight-35095 flight-35096 flight-35097 flight-35098 flight-35099 flight-35100 flight-35101 flight-35102 flight-35103 flight-35104 flight-35105 flight-35106 flight-35107 flight-35108 flight-35109 flight-35110 flight-35111 flight-35112 flight-35113 flight-35114 flight-35115 flight-35116 flight-35117 flight-35118 flight-35119 flight-35120 flight-35121 flight-35122 flight-35123 flight-35124 flight-35125 flight-35126 flight-35127 flight-35128 flight-35129 flight-35130 flight-35131 flight-35132 flight-35133 flight-35134 flight-35135 flight-35136 flight-35137 flight-35138 flight-35139 flight-35140 flight-35141 flight-35142 flight-35143 flight-35144 flight-35145 flight-35146 flight-35147 flight-35148 flight-35149 flight-35150 flight-35151 flight-35152 flight-35153 flight-35154 flight-35155 flight-35156 flight-35157 flight-35158 flight-35159 flight-35160 flight-35161 flight-35162 flight-35163 flight-35164 flight-35165 flight-35166 flight-35167 flight-35168 flight-35169 flight-35170 flight-35171 flight-35172 flight-35173 flight-35174 flight-35175 flight-35176 flight-35177 flight-35178 flight-35179 flight-35180 flight-35181 flight-35182 flight-35183 flight-35184 flight-35185 flight-35186 flight-35187 flight-35188 flight-35189 flight-35190 flight-35191 flight-35192 flight-35193 flight-35194 flight-35195 flight-35196 flight-35197 flight-35198 flight-35199 flight-35200 flight-35201 flight-35202 flight-35203 flight-35204 flight-35205 flight-35206 flight-35207 flight-35208 flight-35209 flight-35210 flight-35211 flight-35212 flight-35213 flight-35214 flight-35215 flight-35216 flight-35217 flight-35218 flight-35219 flight-35220 flight-35221 flight-35222 flight-35223 flight-35224 flight-35225 flight-35226 flight-35227 flight-35228 flight-35229 flight-35230 flight-35231 flight-35232 flight-35233 flight-35234 flight-35235 flight-35236 flight-35237 flight-35238 flight-35239 flight-35240 flight-35241 flight-35242 flight-35243 flight-35244 flight-35245 flight-35246 flight-35247 flight-35248 flight-35249 flight-35250 flight-35251 flight-35252 flight-35253 flight-35254 flight-35256 flight-35257 flight-35258 flight-35259 flight-35260 flight-35261 flight-35262 flight-35263 flight-35264 flight-35265 flight-35266 flight-35267 flight-35268 flight-35269 flight-35270 flight-35271 flight-35272 flight-35275 flight-35276 flight-35277 flight-35278 flight-35279 flight-35280 flight-35281 flight-35282 flight-35283 flight-35284 flight-35285 flight-35286 flight-35287 flight-35288 flight-35289 flight-35290 flight-35291 flight-35292 flight-35293 flight-35294 flight-35295 flight-35296 flight-35297 flight-35298 flight-35299 flight-35300 flight-35301 flight-35302 flight-35303 flight-35304 flight-35305 flight-35306 flight-35307 flight-35308 flight-35309 flight-35310 flight-35311 flight-35312 flight-35313 flight-35314 flight-35315 flight-35316 flight-35317 flight-35318 flight-35319 flight-35320 flight-35321 flight-35322 flight-35323 flight-35324 flight-35325 flight-35326 flight-35327 flight-35328 flight-35329 flight-35330 flight-35331 flight-35332 flight-35333 flight-35334 flight-35335 flight-35336 flight-35337 flight-35338 flight-35339 flight-35340 flight-35341 flight-35342 flight-35343 flight-35344 flight-35345 flight-35346 flight-35348 flight-35349 flight-35350 flight-35351 flight-35352 flight-35353 flight-35354 flight-35355 flight-35356 flight-35357 flight-35358 flight-35359 flight-35360 flight-35361 flight-35362 flight-35363 flight-35364 flight-35365 flight-35366 flight-35367 flight-35368 flight-35369 flight-35370 flight-35371 flight-35372 flight-35373 flight-35374 flight-35375 flight-35376 flight-35377 flight-35378 flight-35379 flight-35380 flight-35381 flight-35382 flight-35383 flight-35384 flight-35385 flight-35386 flight-35387 flight-35388 flight-35389 flight-35390 flight-35391 flight-35392 flight-35393 flight-35394 flight-35395 flight-35396 flight-35397 flight-35398 flight-35399 flight-35400 flight-35401 flight-35402 flight-35403 flight-35404 flight-35405 flight-35406 flight-35407 flight-35408 flight-35409 flight-35410 flight-35411 flight-35412 flight-35413 flight-35414 flight-35415 flight-35416 flight-35417 flight-35418 flight-35419 flight-35420 flight-35421 flight-35422 flight-35423 flight-35424 flight-35425 flight-35426 flight-35427 flight-35428 flight-35429 flight-35430 flight-35431 flight-35432 flight-35433 flight-35434 flight-35435 flight-35436 flight-35437 flight-35438 flight-35439 flight-35440 flight-35441 flight-35442 flight-35443 flight-35444 flight-35445 flight-35446 flight-35447 flight-35449 flight-35450 flight-35451 flight-35452 flight-35453 flight-35454 flight-35455 flight-35460 flight-35461 flight-35467 flight-35470 flight-35471 flight-35472 flight-35473 flight-35474 flight-35475 flight-35476 flight-35477 flight-35478 flight-35479 flight-35480 flight-35481 flight-35482 flight-35483 flight-35484 flight-35485 flight-35486 flight-35487 flight-35488 flight-35489 flight-35490 flight-35491 flight-35492 flight-35493 flight-35494 flight-35495 flight-35496 flight-35497 flight-35498 flight-35499 flight-35500 flight-35501 flight-35502 flight-35503 flight-35504 flight-35505 flight-35506 flight-35507 flight-35508 flight-35509 flight-35510 flight-35511 flight-35512 flight-35513 flight-35514 flight-35515 flight-35516 flight-35517 flight-35518 flight-35519 flight-35520 flight-35521 flight-35522 flight-35523 flight-35524 flight-35525 flight-35526 flight-35527 flight-35528 flight-35529 flight-35530 flight-35531 flight-35532 flight-35533 flight-35534 flight-35535 flight-35536 flight-35537 flight-35538 flight-35539 flight-35541 flight-35542 flight-35543 flight-35544 flight-35545 flight-35548 flight-35549 flight-35550 flight-35551 flight-35552 flight-35553 flight-35554 flight-35555 flight-35556 flight-35557 flight-35558 flight-35559 flight-35560 flight-35561 flight-35562 flight-35563 flight-35564 flight-35565 flight-35566 flight-35567 flight-35568 flight-35569 flight-35570 flight-35571 flight-35572 flight-35573 flight-35574 flight-35575 flight-35576 flight-35577 flight-35578 flight-35579 flight-35580 flight-35581 flight-35582 flight-35583 flight-35584 flight-35585 flight-35586 flight-35587 flight-35588 flight-35589 flight-35590 flight-35591 flight-35592 flight-35593 flight-35594 flight-35595 flight-35596 flight-35597 flight-35598 flight-35599 flight-35600 flight-35601 flight-35602 flight-35603 flight-35604 flight-35605 flight-35606 flight-35607 flight-35608 flight-35609 flight-35610
Ian Jackson [Thu, 19 Feb 2015 11:57:08 +0000 (11:57 +0000)]
rump kernel tests: Fix testid of repeat xenstorels test

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
CC: Ian Campbell <ian.campbell@citrix.com>
10 years agoNTP servers: Work around Debian's failure to honour preseed flight-34695 flight-34887
Ian Jackson [Tue, 17 Feb 2015 17:35:57 +0000 (17:35 +0000)]
NTP servers: Work around Debian's failure to honour preseed

Setting clock-setup/ntp-server is not sufficient: it only takes effect
in the installer (!)

I have reported this as Debian #778564.  In the meantime we should
work around it for current releases (including jessie, which is
frozen).

For later releases, the new ntp.conf editing code arranges to bomb out
if we have an NTP server configured and find it hasn't been honoured
during the install.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
10 years agoNTP servers: Use NtpServer host property
Ian Jackson [Tue, 17 Feb 2015 17:44:01 +0000 (17:44 +0000)]
NTP servers: Use NtpServer host property

Move the specification of NTP servers in the production-config from
the ad-hoc entry in DebianPreseed to a dedicated NtpServer host
property.

This results in no overall functional change, except that the order of
elements in the preseed file is slightly different.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
diff --git a/Osstest/Debian.pm b/Osstest/Debian.pm
index a044f8f..cc075a4 100644
--- a/Osstest/Debian.pm
+++ b/Osstest/Debian.pm
@@ -506,7 +506,7 @@ sub di_installcmdline_core ($$;@) {
 sub preseed_base ($$$;@) {
     my ($ho,$suite,$extra_packages,%xopts) = @_;

-    return <<"END";
+    my $preseed = <<"END";
 d-i mirror/suite string $suite

 d-i debian-installer/locale string en_GB
@@ -572,10 +572,22 @@ d-i pkgsel/include string openssh-server, ntp, ntpdate, ethtool, chiark-utils-bi

 $xopts{ExtraPreseed}

-### END OF DEBIAN PRESEED BASE
+END
+
+    my $ntpserver = get_target_property($ho,'NtpServer');
+use Data::Dumper;
+print STDERR "PRESEED NTP ", Dumper($ntpserver);
+    $preseed .= <<"END" if $ntpserver;
+d-i clock-setup/ntp-server string $ntpserver
+END

+    $preseed .= <<"END";
+
+### END OF DEBIAN PRESEED BASE
 END
-}
+
+    return $preseed;
+}

 sub preseed_create ($$;@) {
     my ($ho, $sfx, %xopts) = @_;
diff --git a/README b/README
index 6e63e97..0a0242c 100644
--- a/README
+++ b/README
@@ -334,6 +334,11 @@ HostProp_<testbox>_TftpScope
    Defines the Tftp scope (i.e. subnet) where this host resides. See
    "TftpFoo_<scope> and TftpFoo" below.

+HostProp_<testbox>_NtpServer
+   NTP server to use.  You should probably have your own local
+   NTP server for production use; the default is to use the operating
+   system's default (normally, Debian's pool.ntp.org servers).
+
 HostFlags_<testbox>
    Defines a set of flags for the host. Flags is a list separated by
    whitespace, comma or semi-colon. A flag can be unset by prepending
@@ -357,9 +362,7 @@ HostGroupFlags_<group>
    merged with the host specific flags. Only used in standalone mode.

 DebianPreseed
-   Text to add to the debian-installer preseed file.  Optional
-   but you will need to set some NTP servers here if your firewall
-   doesn't permit NTP to Debian's pool.ntp.org servers.
+   Text to add to the debian-installer preseed file.  Optional.

 ========================================

diff --git a/production-config b/production-config
index 515bd98..5fbca50 100644
--- a/production-config
+++ b/production-config
@@ -77,8 +77,9 @@ XenUseUser osstest
 #DebianMirrorHost debian.uk.xensource.com
 DebianMirrorHost 10.80.16.196

+HostProp_NtpServer ntp.uk.xensource.com
+
 DebianPreseed= <<'END'
-d-i clock-setup/ntp-server string ntp.uk.xensource.com
 END

 HostProp_Serial sympathy woking

10 years agoNTP servers: Introduce new NtpServer host property
Ian Jackson [Tue, 17 Feb 2015 17:42:42 +0000 (17:42 +0000)]
NTP servers: Introduce new NtpServer host property

Allow the specification of NTP servers in a dedicated NtpServer host
property, which we honour in preseed_create.

Change the documentation to recommend this, rather than use of
ad-hoc text in DebianPreseed.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
diff --git a/Osstest/Debian.pm b/Osstest/Debian.pm
index a044f8f..cc075a4 100644
--- a/Osstest/Debian.pm
+++ b/Osstest/Debian.pm
@@ -506,7 +506,7 @@ sub di_installcmdline_core ($$;@) {
 sub preseed_base ($$$;@) {
     my ($ho,$suite,$extra_packages,%xopts) = @_;

-    return <<"END";
+    my $preseed = <<"END";
 d-i mirror/suite string $suite

 d-i debian-installer/locale string en_GB
@@ -572,10 +572,22 @@ d-i pkgsel/include string openssh-server, ntp, ntpdate, ethtool, chiark-utils-bi

 $xopts{ExtraPreseed}

-### END OF DEBIAN PRESEED BASE
+END
+
+    my $ntpserver = get_target_property($ho,'NtpServer');
+use Data::Dumper;
+print STDERR "PRESEED NTP ", Dumper($ntpserver);
+    $preseed .= <<"END" if $ntpserver;
+d-i clock-setup/ntp-server string $ntpserver
+END

+    $preseed .= <<"END";
+
+### END OF DEBIAN PRESEED BASE
 END
-}
+
+    return $preseed;
+}

 sub preseed_create ($$;@) {
     my ($ho, $sfx, %xopts) = @_;
diff --git a/README b/README
index 6e63e97..0a0242c 100644
--- a/README
+++ b/README
@@ -334,6 +334,11 @@ HostProp_<testbox>_TftpScope
    Defines the Tftp scope (i.e. subnet) where this host resides. See
    "TftpFoo_<scope> and TftpFoo" below.

+HostProp_<testbox>_NtpServer
+   NTP server to use.  You should probably have your own local
+   NTP server for production use; the default is to use the operating
+   system's default (normally, Debian's pool.ntp.org servers).
+
 HostFlags_<testbox>
    Defines a set of flags for the host. Flags is a list separated by
    whitespace, comma or semi-colon. A flag can be unset by prepending
@@ -357,9 +362,7 @@ HostGroupFlags_<group>
    merged with the host specific flags. Only used in standalone mode.

 DebianPreseed
-   Text to add to the debian-installer preseed file.  Optional
-   but you will need to set some NTP servers here if your firewall
-   doesn't permit NTP to Debian's pool.ntp.org servers.
+   Text to add to the debian-installer preseed file.  Optional.

 ========================================

diff --git a/production-config b/production-config
index 515bd98..5fbca50 100644
--- a/production-config
+++ b/production-config
@@ -77,8 +77,9 @@ XenUseUser osstest
 #DebianMirrorHost debian.uk.xensource.com
 DebianMirrorHost 10.80.16.196

+HostProp_NtpServer ntp.uk.xensource.com
+
 DebianPreseed= <<'END'
-d-i clock-setup/ntp-server string ntp.uk.xensource.com
 END

 HostProp_Serial sympathy woking

10 years agoDebian.pm: Slightly refactor preseed_base
Ian Jackson [Tue, 17 Feb 2015 17:40:47 +0000 (17:40 +0000)]
Debian.pm: Slightly refactor preseed_base

Arrange for preseed_base to accumulate its result in a variable.  This
is going to make it easier to add entries which are determined
programatically.

No functional change.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
10 years agoDebian.pm: Pass $ho/$gho to preseed_base
Ian Jackson [Tue, 17 Feb 2015 17:20:53 +0000 (17:20 +0000)]
Debian.pm: Pass $ho/$gho to preseed_base

This is going to be useful soon.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
10 years agoTestSupport: Provide get_target_property
Ian Jackson [Tue, 17 Feb 2015 17:21:47 +0000 (17:21 +0000)]
TestSupport: Provide get_target_property

This looks in the supplied $ho, but if that's a $gho (ie it has a
$gho->{Host}) it also looks in its host.

This is going to be useful for a fair variety of host-specific or
infrastructure-determined properties.

It seems to me that whether a property ought to be looked up in the
host if not found in a particular guest depends mostly on the
property, and not on the way the guest is configured.  The easiest way
to represent that in the osstest codebase is probably to call
get_target_property instead of get_host_property in the appropriate
places.

The use of recursion will make this look through a series of nested
hosts if we have nested virtualisation going on.  Indeed, nested
virtualisation may benefit from replacement of get_host_property by
get_target_property in a number of cases.  (At the time of writing
there is no nested virt in osstest mainline, but it's on the way.)

Currently there are no callers of get_target_property.  One will
appear shortly.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
CC: Robert Hu <robert.hu@intel.com>
CC: LongtaoX Pang <longtaox.pang@intel.com>
10 years agoconfig: Tiny fixes
Ian Jackson [Tue, 17 Feb 2015 17:27:38 +0000 (17:27 +0000)]
config: Tiny fixes

* Default $c{DebianPreseed} to '' (previously, if it wasn't specified,
  there would be undefined variable warnings).

* Cope with empty <<END-notated config items in the configuration file
  parser.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
10 years agosg-report-job-history: Increase default history depth to 500
Ian Jackson [Tue, 17 Feb 2015 17:35:05 +0000 (17:35 +0000)]
sg-report-job-history: Increase default history depth to 500

We are putting through a lot more jobs and branches.  Older history is
still interesting.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
10 years agocs-adjust-flight: Add missing `use Data::Dumper'
Ian Jackson [Tue, 17 Feb 2015 17:34:25 +0000 (17:34 +0000)]
cs-adjust-flight: Add missing `use Data::Dumper'

Dumper is used in some of the error reporting so we need to `use' it.

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

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

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

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

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

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

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

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

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

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

No callers yet.

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

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

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

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

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

Therefore there is no functional change for any existing calls.

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

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

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

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

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

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

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

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

No callers yet.

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

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

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

No functional change.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Set all logfiles to 0666, modified by umask.

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

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

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
CC: Martin Lucina <martin@lucina.net>