add distro domU testing flight
v7 cover add distro domU testing flight
Hi,
Since v6 I've refactored into multiple flights (one per Debian release) as well as moving all the configuration of URLs etc into make flight, so the test scripts are now generic. I also defaulted to running on the Cambridge instance as discussed.
I think I've dropped the acks where appropriate, since some of those involved some bigger refactoring.
More details in the individual patches.
An initial portion of cleanup/refactoring has been applied so it's a shorter series this time.
Summary of (A)cks, (M)odified and (N)ew (NM==Replaced something):
M TestSupport: Add helper to fetch a URL on a host
M distros: add support for installing Debian PV guests via d-i, flight and jobs
AM distros: support booting Debian PV (d-i installed) guests with pvgrub.
M distros: Support pvgrub for Wheezy too.
M distros: support PV guest install from Debian netinst media.
AM Test pygrub and pvgrub on the regular flights
M distros: add branch infrastructure
MN distros: Run one suite per day on a weekly basis
Debian: Handle lack of bootloader support in d-i on ARM.
ts-debian-di-install: Refactor root_disk specification
make-flight: refactor PV debian tests
M Add testing of non-LVM/phy disk backends.
mfi-common: Allow make-*flight to filter the set of build jobs to include
make-distros-flight: don't bother building for XSM or libvirt.
make-distros-flight: Use ftp.debian.org directly
Ian.
adhoc xen-unstable test result, followed by one for distros-debian-wheezy as an example (which reused a build job due to the way in invoked it, by default it would build too, but I wanted to save time).
------8>-----------------------------
37589: regressions - FAIL
flight 37589 xen-unstable play [play]
http://osstest.xs.citrite.net/~osstest/testlogs/logs/37589/
Regressions :-(
Tests which did not succeed and are blocking,
including tests which could not be run:
test-amd64-i386-xl-qemuu-win7-amd64 16 guest-stop fail REGR. vs. 37590 test-amd64-amd64-xl-qemut-winxpsp3 9 windows-install fail REGR. vs. 37590 test-amd64-amd64-xl-qemuu-winxpsp3 9 windows-install fail REGR. vs. 37590
Tests which did not succeed, but are not blocking:
test-amd64-amd64-xl-qemut-debianhvm-amd64-xsm 9 debian-hvm-install fail never pass test-amd64-amd64-xl-qemuu-debianhvm-amd64-xsm 9 debian-hvm-install fail never pass test-amd64-i386-xl-qemuu-debianhvm-amd64-xsm 9 debian-hvm-install fail never pass test-amd64-amd64-rumpuserxen-amd64 15 rumpuserxen-demo-xenstorels/xenstorels.repeat fail never pass
test-amd64-amd64-libvirt-xsm 11 guest-start fail never pass test-armhf-armhf-libvirt-xsm 11 guest-start fail never pass test-armhf-armhf-xl-xsm 11 guest-start fail never pass test-amd64-i386-xl-qemut-debianhvm-amd64-xsm 9 debian-hvm-install fail never pass test-amd64-i386-libvirt 12 migrate-support-check fail never pass test-amd64-amd64-xl-pvh-amd 11 guest-start fail never pass test-amd64-amd64-xl-pvh-intel 11 guest-start fail never pass test-amd64-i386-libvirt-xsm 11 guest-start fail never pass test-amd64-amd64-xl-xsm 11 guest-start fail never pass test-amd64-i386-xl-xsm 11 guest-start fail never pass test-armhf-armhf-xl-sedf 12 migrate-support-check fail never pass test-armhf-armhf-xl-credit2 12 migrate-support-check fail never pass test-armhf-armhf-xl-sedf-pin 12 migrate-support-check fail never pass test-armhf-armhf-xl-multivcpu 12 migrate-support-check fail never pass test-armhf-armhf-xl-midway 12 migrate-support-check fail never pass test-armhf-armhf-xl 12 migrate-support-check fail never pass test-armhf-armhf-libvirt 12 migrate-support-check fail never pass test-amd64-amd64-libvirt 12 migrate-support-check fail never pass test-amd64-amd64-xl-qemuu-win7-amd64 16 guest-stop fail never pass test-amd64-amd64-xl-qemut-win7-amd64 16 guest-stop fail never pass test-amd64-i386-xl-qemut-win7-amd64 16 guest-stop fail never pass test-armhf-armhf-xl-raw 9 debian-di-install fail never pass test-amd64-amd64-xl-raw 16 guest-localmigrate/x10 fail never pass test-amd64-i386-libvirt-qcow2 11 migrate-support-check fail never pass test-amd64-amd64-pygrub 10 guest-start fail never pass test-armhf-armhf-libvirt-qcow2 9 debian-di-install fail never pass test-amd64-i386-libvirt-raw 9 debian-di-install fail never pass test-armhf-armhf-libvirt-raw 9 debian-di-install fail never pass test-amd64-i386-libvirt-vhd 11 migrate-support-check fail never pass test-amd64-amd64-libvirt-vhd 11 migrate-support-check fail never pass test-amd64-amd64-libvirt-raw 11 migrate-support-check fail never pass test-amd64-amd64-libvirt-qcow2 11 migrate-support-check fail never pass test-armhf-armhf-libvirt-vhd 9 debian-di-install fail never pass test-armhf-armhf-xl-qcow2 9 debian-di-install fail never pass test-armhf-armhf-xl-vhd 9 debian-di-install fail never pass
baseline version:
flight 37590
jobs:
build-amd64-xsm pass build-armhf-xsm pass build-i386-xsm pass build-amd64 pass build-armhf pass build-i386 pass build-amd64-libvirt pass build-armhf-libvirt pass build-i386-libvirt pass build-amd64-oldkern pass build-i386-oldkern pass build-amd64-pvops pass build-armhf-pvops pass build-i386-pvops pass build-amd64-rumpuserxen pass build-i386-rumpuserxen pass test-amd64-amd64-xl pass test-armhf-armhf-xl pass test-amd64-i386-xl pass test-amd64-amd64-xl-qemut-debianhvm-amd64-xsm fail test-amd64-i386-xl-qemut-debianhvm-amd64-xsm fail test-amd64-amd64-xl-qemuu-debianhvm-amd64-xsm fail test-amd64-i386-xl-qemuu-debianhvm-amd64-xsm fail test-amd64-amd64-libvirt-xsm fail test-armhf-armhf-libvirt-xsm fail test-amd64-i386-libvirt-xsm fail test-amd64-amd64-xl-xsm fail test-armhf-armhf-xl-xsm fail test-amd64-i386-xl-xsm fail test-amd64-amd64-xl-pvh-amd fail test-amd64-i386-qemut-rhel6hvm-amd pass test-amd64-i386-qemuu-rhel6hvm-amd pass test-amd64-amd64-xl-qemut-debianhvm-amd64 pass test-amd64-i386-xl-qemut-debianhvm-amd64 pass test-amd64-amd64-xl-qemuu-debianhvm-amd64 pass test-amd64-i386-xl-qemuu-debianhvm-amd64 pass test-amd64-i386-freebsd10-amd64 pass test-amd64-amd64-xl-qemuu-ovmf-amd64 pass test-amd64-i386-xl-qemuu-ovmf-amd64 pass test-amd64-amd64-rumpuserxen-amd64 fail test-amd64-amd64-xl-qemut-win7-amd64 fail test-amd64-i386-xl-qemut-win7-amd64 fail test-amd64-amd64-xl-qemuu-win7-amd64 fail test-amd64-i386-xl-qemuu-win7-amd64 fail test-amd64-amd64-xl-credit2 pass test-armhf-armhf-xl-credit2 pass test-amd64-i386-freebsd10-i386 pass test-amd64-i386-rumpuserxen-i386 pass test-amd64-amd64-xl-pvh-intel fail test-amd64-i386-qemut-rhel6hvm-intel pass test-amd64-i386-qemuu-rhel6hvm-intel pass test-amd64-amd64-libvirt pass test-armhf-armhf-libvirt pass test-amd64-i386-libvirt pass test-armhf-armhf-xl-midway pass test-amd64-amd64-xl-multivcpu pass test-armhf-armhf-xl-multivcpu pass test-amd64-amd64-pair pass test-amd64-i386-pair pass test-amd64-amd64-xl-sedf-pin pass test-armhf-armhf-xl-sedf-pin pass test-amd64-amd64-amd64-pvgrub pass test-amd64-amd64-i386-pvgrub pass test-amd64-amd64-pygrub fail test-amd64-amd64-libvirt-qcow2 pass test-armhf-armhf-libvirt-qcow2 fail test-amd64-i386-libvirt-qcow2 pass test-amd64-amd64-xl-qcow2 pass test-armhf-armhf-xl-qcow2 fail test-amd64-i386-xl-qcow2 pass test-amd64-amd64-libvirt-raw pass test-armhf-armhf-libvirt-raw fail test-amd64-i386-libvirt-raw fail test-amd64-amd64-xl-raw fail test-armhf-armhf-xl-raw fail test-amd64-i386-xl-raw pass test-amd64-amd64-xl-sedf pass test-armhf-armhf-xl-sedf pass test-amd64-i386-xl-qemut-winxpsp3-vcpus1 pass test-amd64-i386-xl-qemuu-winxpsp3-vcpus1 pass test-amd64-amd64-libvirt-vhd pass test-armhf-armhf-libvirt-vhd fail test-amd64-i386-libvirt-vhd pass test-amd64-amd64-xl-vhd pass test-armhf-armhf-xl-vhd fail test-amd64-i386-xl-vhd pass test-amd64-amd64-xl-qemut-winxpsp3 fail test-amd64-i386-xl-qemut-winxpsp3 pass test-amd64-amd64-xl-qemuu-winxpsp3 fail test-amd64-i386-xl-qemuu-winxpsp3 pass
------------------------------------------------------------
sg-report-flight on osstest.xs.citrite.net
logs: /home/xc_osstest/logs
images: /home/xc_osstest/images
Logs, config files, etc. are available at
http://osstest.xs.citrite.net/~osstest/testlogs/logs
Test harness code can be found at
http://xenbits.xensource.com/gitweb?p=osstest.git;a=summary
-----8>-----------
flight 37595 distros-debian-wheezy play [play]
http://osstest.xs.citrite.net/~osstest/testlogs/logs/37595/
Failures :-/ but no regressions.
Tests which did not succeed, but are not blocking:
test-amd64-i386-i386-wheezy-netboot-pvgrub 10 guest-start fail never pass
baseline version:
flight 37567
jobs:
build-amd64 pass build-armhf pass build-i386 pass build-amd64-pvops pass build-armhf-pvops pass build-i386-pvops pass test-amd64-amd64-amd64-wheezy-netboot-pvgrub pass test-amd64-i386-i386-wheezy-netboot-pvgrub fail test-amd64-i386-amd64-wheezy-netboot-pygrub pass test-amd64-amd64-i386-wheezy-netboot-pygrub pass
------------------------------------------------------------
sg-report-flight on osstest.xs.citrite.net
logs: /home/xc_osstest/logs
images: /home/xc_osstest/images
Logs, config files, etc. are available at
http://osstest.xs.citrite.net/~osstest/testlogs/logs
Test harness code can be found at
http://xenbits.xensource.com/gitweb?p=osstest.git;a=summary
Push not applicable.
PATCH v7 1/15 TestSupport: Add helper to fetch a URL on a host
---
v7: Quote $url and $path, switch to a heredoc to avoid resulting over
long line
v5: Support http_proxy via $c{HttpProxy}
v3: Make sure wget is installed
--- Osstest/Debian.pm | 2 +- Osstest/TestSupport.pm | 12 +++++++++++- 2 files changed, 12 insertions(+), 2 deletions(-)
Osstest/Debian.pm +1 -1
@@ -685,7 +685,7 @@ d-i apt-setup/another boolean false d-i apt-setup/non-free boolean false d-i apt-setup/contrib boolean false -d-i pkgsel/include string openssh-server, ntp, ntpdate, ethtool, chiark-utils-bin, $extra_packages +d-i pkgsel/include string openssh-server, ntp, ntpdate, ethtool, chiark-utils-bin, wget, $extra_packages $xopts{ExtraPreseed}
Osstest/TestSupport.pm +11 -1
@@ -55,7 +55,7 @@ BEGIN { target_putfilecontents_stash target_putfilecontents_root_stash target_put_guest_image target_editfile - target_editfile_cancel + target_editfile_cancel target_fetchurl target_editfile_root target_file_exists target_editfile_kvp_replace target_run_apt
@@ -1589,6 +1589,16 @@ END return $cfgpath; } +sub target_fetchurl($$$;$) { + my ($ho, $url, $path, $timeo) = @_; + $timeo ||= 2000; + my $useproxy = "export http_proxy=$c{HttpProxy};" if $c{HttpProxy}; + target_cmd_root($ho, <<END, $timeo); + $useproxy wget --progress=dot:mega -O \"$path\" \"$url\" +END +} + + sub target_put_guest_image ($$;$) { my ($ho, $gho, $default) = @_; my $specimage = $r{"$gho->{Guest}_image"};
Signature · 1 line
2.1.4
Re: [PATCH OSSTEST v7 01/15] TestSupport: Add helper to fetch a URL on a host
Ian Campbell writes ("[PATCH OSSTEST v7 01/15] TestSupport: Add helper to fetch a URL on a host"):
Quoted 4 lines
Signed-off-by Ian Campbell <[email protected]>---
v7: Quote $url and $path, switch to a heredoc to avoid resulting over
long line
...
Last time I wrote:
Do we care that this will break badly if the url contains shell metacharacters ? I think we may do.
but:
Quoted 1 line
+ $useproxy wget --progress=dot:mega -O \"$path\" \"$url\"
Did you try this with $path or $url containing $ or or " or \ or ` or
starting with - ?
There are a fair few places in osstest where we're quite lax with this kind of thing, but (hopefully) only where the information definitely comes from the configuration (or some other trusted source). A general helper like this ought to be robust against that kind of input (which may well mean failing, but it should not include potentially executing bits of the input or misinterpreting it as command line options to wget.
\Q may be of some help.
Ian.
Re: [PATCH OSSTEST v7 01/15] TestSupport: Add helper to fetch a URL on a host
Quoted 12 lines · Ian Jackson
Ian Campbell writes ("[PATCH OSSTEST v7 01/15] TestSupport: Add helper to fetch a URL on a host"):
Quoted 4 lines
Signed-off-by Ian Campbell <[email protected]>---
v7: Quote $url and $path, switch to a heredoc to avoid resulting over
long line...
Last time I wrote:
Do we care that this will break badly if the url contains shell metacharacters ? I think we may do.
Quoted 6 lines
but:
Quoted 1 line
+ $useproxy wget --progress=dot:mega -O \"$path\" \"$url\"
Did you try this with $path or $url containing $ or or " or \ or ` or
starting with - ?
No, I think I just hadn't thought very clearly enough about what you meant.
Quoted 9 lines
There are a fair few places in osstest where we're quite lax with this kind of thing, but (hopefully) only where the information definitely comes from the configuration (or some other trusted source). A general helper like this ought to be robust against that kind of input (which may well mean failing, but it should not include potentially executing bits of the input or misinterpreting it as command line options to wget.
\Q may be of some help.
Really? I thought that escaped things at the Perl level, is that sufficient for the shell stuff within the Perl too?
I suspect I just don't understand clearly enough what \Q actually does.
Ian.
Re: [PATCH OSSTEST v7 01/15] TestSupport: Add helper to fetch a URL on a host
Ian Campbell writes ("Re: [PATCH OSSTEST v7 01/15] TestSupport: Add helper to fetch a URL on a host"):
Quoted 3 lines · Ian Jackson
Quoted 2 lines
Ian Campbell writes ("[PATCH OSSTEST v7 01/15] TestSupport: Add helper to fetch a URL on a host"):
Quoted 1 line
+ $useproxy wget --progress=dot:mega -O \"$path\" \"$url\"
...
Quoted 4 lines
Quoted 1 line
\Q may be of some help.
Really? I thought that escaped things at the Perl level, is that sufficient for the shell stuff within the Perl too?
If you wrote
+ target_cmd_root($ho, <<END, $timeo);
+ $useproxy wget --progress=dot:mega -O \Q$path\E \Q$url\E
and $url contained
http://chars $"'\ considered harmful.iso
then target_cmd_root would get
http_proxy=something wget --progress=dot:mega -O \/some\/path \
http\:\/\/chars\ \$\"\'\\\ considered\ harmful\.isoAnd:
mariner:~> echo http\:\/\/chars\ \$\"\'\\\ considered\ harmful\.iso
http://chars $"'\ considered harmful.iso
mariner:~>
But maybe this is too ugly, in which case you could use '' and some regexp like s/['\\]/'\\$&'/g (not tested).
Ian.
Re: [PATCH OSSTEST v7 01/15] TestSupport: Add helper to fetch a URL on a host
Quoted 15 lines · Ian Jackson
Ian Campbell writes ("Re: [PATCH OSSTEST v7 01/15] TestSupport: Add helper to fetch a URL on a host"):
Quoted 3 lines · Ian Jackson
Quoted 2 lines
Ian Campbell writes ("[PATCH OSSTEST v7 01/15] TestSupport: Add helper to fetch a URL on a host"):
Quoted 1 line
+ $useproxy wget --progress=dot:mega -O \"$path\" \"$url\"
...
Quoted 4 lines
Quoted 1 line
\Q may be of some help.
Really? I thought that escaped things at the Perl level, is that sufficient for the shell stuff within the Perl too?
If you wrote
+
target_cmd_root($ho, <<END, $timeo);
+ $useproxy wget --progress=dot:mega -O \Q$path\E \Q$url\E
Quoted 8 lines
and $url contained
http://chars $"'\ considered harmful.iso
then
target_cmd_rootwould gethttp_proxy=something wget --progress=dot:mega -O \/some\/path \ http\:\/\/chars\ \$\"\'\\\ considered\ harmful\.iso
Interesting, I had assumed \Q...\E was some sort of lexer/parser level thing, when actually it "just" rewrites what is between it.
And as it happens Perl and shell need a very similar set of things quoting.
Quoted 8 lines
And:
mariner:~> echo http\:\/\/chars\ \$\"\'\\\ considered\ harmful\.iso
http://chars $"'\ considered harmful.iso
mariner:~>But maybe this is too ugly,
I think it is ok actually.
Quoted 4 lines
in which case you could use ''
and some regexp like s/['\\]/'\\$&'/g (not tested).Ian.
PATCH v7 2/15 distros: add support for installing Debian PV guests via d-i, flight and jobs
In reply to Ian CampbellThis patch introduces ts-debian-di-install which can install Debian from a netboot (PXE) debian installer image. By default it installs from the d-i image used by osstest (using the special Xen PV guest enabled flavour where necessary) but it can also fetch the kernel and ramdisk from URLs specified in runvars. The resulting guests boot the distro kernel using pygrub (pvgrub will follow).
The distros flights differ substantially from the existing flights. Introduce make-distros-flight using the functionality previously refactored into mfi-common. The new flight tests all versions of Debian from Squeeze onward as an amd64, i386 and armhf guests (armhf from Jessie onwards only) using the usual smoke tests.
Test names are suffixed -pygrub pending the addition of pvgrub variants in a future commit.
Add the new cases to sg-run-job
---
v7: Use {Guest}_suite as runvar. Also use $suite not $dist in
make-distros-flight for consistency.
Switch to a flight per Debian suite model rather than one enourmous flight.
Switch to constructing the URLs in make-distros-flight
v6: Only apply -xen suffix to x86 images when doing a netboot using
the osstest version of d-i, since that is the only arch where we create such files, other arches can use the bare names.
Use the guest $arch not the host $r{arch} when finding the
kernel+initrd to use for d-i install using the osstest d-i.
v4: use guest create
v3: $BUILD_LVEXTEND_MAX now handled in mfi-common
Consolidate setting of ruvars
Include $flight and $job in tmpdir name
Use Osstest::Debian::di_installcmdline_core
Document the usage of get_host_property on a guest object Correct ARM netboot paths
Include bootloader in test name
Should include -pv too?
console= repetition for Jessie onwards.
Wait for up to an hour for the install. I'd seen timeouts right at the end of the install with the previous value
--- Osstest/TestSupport.pm | 3 + make-distros-flight | 126 ++++++++++++++++++++++++++++++++++++++ sg-run-job | 11 ++++ ts-debian-di-install | 161 +++++++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 301 insertions(+) create mode 100755 make-distros-flight create mode 100755 ts-debian-di-install
Osstest/TestSupport.pm +3 -0
@@ -934,8 +934,11 @@ sub propname_massage ($) { return $prop; } +# It is fine to call this on a guest object too, in which case it will +# always return $defval. sub get_host_property ($$;$) { my ($ho, $prop, $defval) = @_; + return $defval unless $ho->{Properties}; my $val = $ho->{Properties}{propname_massage($prop)}; return defined($val) ? $val : $defval; }
make-distros-flight new file +126 -0
126 lines not on this page · raw message
sg-run-job +11 -0
@@ -258,6 +258,17 @@ proc run-job/test-debian {} { test-guest debian } +proc install-guest-debian-di {} { + run-ts . = ts-debian-di-install + run-ts . = ts-guest-start + debian +} + +proc need-hosts/test-debian-di {} { return host } +proc run-job/test-debian-di {} { + install-guest-debian-di + test-guest debian +} + proc need-hosts/test-freebsd {} { return host } proc run-job/test-freebsd {} { run-ts . = ts-freebsd-install
ts-debian-di-install new file +161 -0
161 lines not on this page · raw message
Signature · 1 line
2.1.4
Re: [PATCH OSSTEST v7 02/15] distros: add support for installing Debian PV guests via d-i, flight and jobs
Ian Campbell writes ("[PATCH OSSTEST v7 02/15] distros: add support for installing Debian PV guests via d-i, flight and jobs"):
Quoted 13 lines
This patch introduces ts-debian-di-install which can install Debian from a netboot (PXE) debian installer image. By default it installs from the d-i image used by osstest (using the special Xen PV guest enabled flavour where necessary) but it can also fetch the kernel and ramdisk from URLs specified in runvars. The resulting guests boot the distro kernel using pygrub (pvgrub will follow).
The distros flights differ substantially from the existing flights. Introduce make-distros-flight using the functionality previously refactored into mfi-common. The new flight tests all versions of Debian from Squeeze onward as an amd64, i386 and armhf guests (armhf from Jessie onwards only) using the usual smoke tests.
Quoted 6 lines
Test names are suffixed -pygrub pending the addition of pvgrub variants in a future commit.
Add the new cases to sg-run-job
Signed-off-by Ian Campbell <[email protected]>
PATCH v7 3/15 distros: support booting Debian PV (d-i installed) guests with pvgrub.
In reply to Ian CampbellThis requires the use of the pv-grub-menu package which is in Jessie onwards. (it is in wheezy-backports which is the subject of a subsequent patch).
The bootloader to use is specified via a runvar {Guest}_bootloader.
Adjust make-distros-flight to use pvgrub for some subset of i386 and amd64 guests to get coverage.
---
v7: Move definition of $extra_packages variable to here which is its
first usage.
Use {Guest}_suite not {Guest}_dist as runvar to choose version.
v3: Define and use arch_debian2xen and arch_xen2debian
Avoid pv-grub-x86_64.gz on i386 dom0, we don't built it there. Fiddle with py vs pv grub stripy a bit.
--- Osstest.pm | 7 +++++++ Osstest/Debian.pm | 4 +++- make-distros-flight | 20 +++++++++++++++++++- ts-debian-di-install | 11 +++++++++-- 4 files changed, 38 insertions(+), 4 deletions(-)
Osstest.pm +7 -0
@@ -38,6 +38,7 @@ BEGIN { db_begin_work ensuredir get_filecontents_core_quiet system_checked nonempty visible_undef show_abs_time + %arch_debian2xen %arch_xen2debian ); %EXPORT_TAGS = ( );
@@ -49,6 +50,12 @@ our $mjobdb; our $dbh_tests; +our %arch_debian2xen = qw(i386 x86_32 + amd64 x86_64 + armhf armhf); +our %arch_xen2debian; +$arch_xen2debian{$arch_debian2xen{$_}} = $_ foreach keys %arch_debian2xen; + #---------- static default config settings ---------- our %c = qw(
Osstest/Debian.pm +3 -1
@@ -709,7 +709,9 @@ sub preseed_create_guest ($$;@) { my $suite= $xopts{Suite} || $c{DebianSuite}; - my $preseed_file= preseed_base($ho, $suite, $sfx, '', %xopts); + my $extra_packages = "pv-grub-menu" if $xopts{PvMenuLst}; + + my $preseed_file= preseed_base($ho, $suite, $sfx, $extra_packages, %xopts); $preseed_file.= (<<END); d-i partman-auto/method string regular d-i partman-auto/choose_recipe \\
make-distros-flight +19 -1
@@ -78,6 +78,11 @@ test_do_one_netboot () { *) ;; esac + stripy bootloader pvgrub pygrub \ + "$xenarch" "amd64" \ + "$dom0arch" "i386" \ + "$domU" "amd64" \ + case $domU in i386|amd64) diurl="$diurl/xen";;
@@ -85,8 +90,20 @@ test_do_one_netboot () { diurl="$diurl/debian-installer/arm64";; esac + case ${dom0arch}_${domU}_${gsuite} in + arm*_arm*_*) bootloader="pygrub";; # no pvgrub for arm + + # Needs a menu.lst, not present in Squeeze+ due to switch to grub2, + # workedaround in Jessie+ with pv-grub-menu package. + *_squeeze) bootloader="pygrub";; + *_wheezy) bootloader="pygrub";; + + # pv-grub-x86_64.gz is not built by 32-bit dom0 userspace build. + i386_amd64_*) bootloader="pygrub";; + esac + job_create_test \ - test-$xenarch$kern-$dom0arch-$domU-$gver-netboot-pygrub \ + test-$xenarch$kern-$dom0arch-$domU-$gver-netboot-$bootloader \ test-debian-di xl $xenarch $dom0arch \ kernbuildjob=${bfi}build-$dom0arch-$kernbuild \ debian_arch=$domU \
@@ -94,6 +111,7 @@ test_do_one_netboot () { debian_method=netboot \ debian_netboot_kernel="$diurl/vmlinuz" \ debian_netboot_ramdisk="$diurl/initrd.gz" \ + debian_bootloader=$bootloader \ all_hostflags=$most_hostflags }
ts-debian-di-install +9 -2
@@ -88,6 +88,8 @@ sub ginstall () { my $method= $r{"$gho->{Guest}_method"}; my $tmpdir= "/root/$flight-$job-di"; + my $bl= $r{"$gho->{Guest}_bootloader"}; + target_cmd_root($ho, <<END); rm -rf $tmpdir mkdir $tmpdir
@@ -102,7 +104,7 @@ END $method_cfg = setup_netboot($tmpdir, $arch, $suite); - $ps_url = preseed_create_guest($gho, '', Suite=>$suite); + $ps_url = preseed_create_guest($gho, '', Suite=>$suite, PvMenuLst=>($bl eq "pvgrub")); $extra_disk = ""; }
@@ -143,7 +145,12 @@ END guest_await_shutdown($ho,$gho,3600); guest_destroy($gho); - my $blcfg = <<END; + my $xenarch = $arch_debian2xen{$arch}; + my $pvgrub = "/usr/local/lib/xen/boot/pv-grub-$xenarch.gz"; + my $blcfg = $bl eq "pvgrub" ? <<END : <<END; +kernel = "$pvgrub" +extra = "(hd0,0)/boot/grub/menu.lst" +END bootloader = "pygrub" END
Signature · 1 line
2.1.4
PATCH v7 4/15 distros: Support pvgrub for Wheezy too.
In reply to Ian CampbellThis requires us to install pv-grub-menu from backports, which we do using a late_command.
---
v7:
- Remove vestigial attempts to enable -backports via d-i preseeding.
v3:
- Remove spurious () from <<(END) (and the prexisting "" too)
- Remove $xopts{EnableBackports} and automatically handle the need to add backports in preseed_base.
- Install via late_command not apt-setup, since the former has issues, hence subject drops "attempt to..."
--- Osstest/Debian.pm | 33 ++++++++++++++++++++++++++++++++- make-distros-flight | 4 ++-- 2 files changed, 34 insertions(+), 3 deletions(-)
Osstest/Debian.pm +32 -1
@@ -709,7 +709,38 @@ sub preseed_create_guest ($$;@) { my $suite= $xopts{Suite} || $c{DebianSuite}; - my $extra_packages = "pv-grub-menu" if $xopts{PvMenuLst}; + my $extra_packages = ""; + if ($xopts{PvMenuLst}) { + if ($suite =~ m/wheezy/) { + # pv-grub-menu/wheezy-backports + using apt-setup to add + # backports results in iproute, ifupdown and + # isc-dhcp-client getting removed because tasksel's + # invocation of apt-get install somehow decides the + # iproute2 from wheezy-backports is a thing it wants to + # install. So instead lets fake it with a late command... + # + # This also has the bonus of working round an issue with + # 1.2.1~bpo70+1 which created an invalid menu.lst using + # "root(/dev/xvda,0)" which pvgrub cannot parse because + # the Grub device.map isn't present at pkgsel/include time + # but it is by late_command time. This was fixed by + # version 1.3 which is in Jessie onwards. + preseed_hook_command($ho, 'late_command', $sfx, <<END); +#!/bin/sh +set -ex + +( + echo + echo \\\# $suite backports + echo deb http://$c{DebianMirrorHost}/$c{DebianMirrorSubpath} $suite-backports main +) >> /target/etc/apt/sources.list +in-target apt-get update +in-target apt-get install -y -t wheezy-backports pv-grub-menu +END + } else { + $extra_packages = "pv-grub-menu"; + } + } my $preseed_file= preseed_base($ho, $suite, $sfx, $extra_packages, %xopts); $preseed_file.= (<<END);
make-distros-flight +2 -2
@@ -94,9 +94,9 @@ test_do_one_netboot () { arm*_arm*_*) bootloader="pygrub";; # no pvgrub for arm # Needs a menu.lst, not present in Squeeze+ due to switch to grub2, - # workedaround in Jessie+ with pv-grub-menu package. + # workedaround in Wheezy+ with pv-grub-menu package (backports in Wheezy, + # in Jessie+ main). *_squeeze) bootloader="pygrub";; - *_wheezy) bootloader="pygrub";; # pv-grub-x86_64.gz is not built by 32-bit dom0 userspace build. i386_amd64_*) bootloader="pygrub";;
Signature · 1 line
2.1.4
Re: [PATCH OSSTEST v7 04/15] distros: Support pvgrub for Wheezy too.
Ian Campbell writes ("[PATCH OSSTEST v7 04/15] distros: Support pvgrub for Wheezy too."):
Quoted 2 lines
This requires us to install pv-grub-menu from backports, which we do using a
late_command.
However:
Osstest/Debian.pm sub preseed_create_guest ($$;@) { · line 739
Quoted 12 lines
Osstest/Debian.pm +12
-0+ preseed_hook_command($ho, 'late_command', $sfx, <<END); +#!/bin/sh +set -ex + +( + echo + echo \\\# $suite backports + echo deb http://$c{DebianMirrorHost}/$c{DebianMirrorSubpath} $suite-backports main +) >> /target/etc/apt/sources.list +in-target apt-get update +in-target apt-get install -y -t wheezy-backports pv-grub-menu +END
This way of saying this requires quite a lot of quoting! Have you considered using a nested here document ? In shell you can say <<'END2' or something and the content will not be subject to $-expansion.
Ian.
Re: [PATCH OSSTEST v7 04/15] distros: Support pvgrub for Wheezy too.
Quoted 8 lines · Ian Jackson
Ian Campbell writes ("[PATCH OSSTEST v7 04/15] distros: Support pvgrub for Wheezy too."):
Quoted 2 lines
This requires us to install pv-grub-menu from backports, which we do using a
late_command.Acked-by Ian Jackson <[email protected]>However:
Quoted 14 lines
Osstest/Debian.pm sub preseed_create_guest ($$;@) { · line 739
Quoted 12 lines
Osstest/Debian.pm +12
-0+ preseed_hook_command($ho, 'late_command', $sfx, <<END); +#!/bin/sh +set -ex + +( + echo + echo \\\# $suite backports + echo deb http://$c{DebianMirrorHost}/$c{DebianMirrorSubpath} $suite-backports main +) >> /target/etc/apt/sources.list +in-target apt-get update +in-target apt-get install -y -t wheezy-backports pv-grub-menu +ENDThis way of saying this requires quite a lot of quoting!
I don't follow, the only thing above which I think you might be referring to is the "\\\#". There isn't any other quoting.
Or do you mean that this needs quoting and is lacking it and that adding it would make the here document useful? (I don't think you did)
Quoted 4 lines
Have you
considered using a nested here document ? In shell you can say <<'END2' or something and the content will not be subject to $-expansion.
All of the $ here are intended to be expanded at the Perl level.
Ian.
Re: [PATCH OSSTEST v7 04/15] distros: Support pvgrub for Wheezy too.
Ian Campbell writes ("Re: [PATCH OSSTEST v7 04/15] distros: Support pvgrub for Wheezy too."):
Quoted 2 lines · Ian Jackson
Quoted 1 line
Ian Campbell writes ("[PATCH OSSTEST v7 04/15] distros: Support pvgrub for Wheezy too."):
...
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Osstest/Debian.pm +2
-0+ echo \\\# $suite backports + echo deb http://$c{DebianMirrorHost}/$c{DebianMirrorSubpath} $suite-backports main
...
Quoted 7 lines
Quoted 1 line
This way of saying this requires quite a lot of quoting!
I don't follow, the only thing above which I think you might be referring to is the "\\\#". There isn't any other quoting.
Or do you mean that this needs quoting and is lacking it and that adding it would make the here document useful? (I don't think you did)
I meant the \\\# (which seems like a lot' of quoting all by itself), but of course also the unnecessary ( ) and the multiple echo' (which in this context is a kind of quoting of new lines).
But if you prefer it this way, fine.
Quoted 6 lines
Quoted 4 lines
Have you
considered using a nested here document ? In shell you can say <<'END2' or something and the content will not be subject to $-expansion.All of the $ here are intended to be expanded at the Perl level.
Indeed. So <<'END2' is exactly what you want.
Ian.
PATCH v7 5/15 distros: support PV guest install from Debian netinst media.
In reply to Ian CampbellThe netinst media are iso images containing a base Debian install and some (image size dependent) additional tasks.
On x86 the "multiarch" iso flavour contains a Xen capable kernel for both i386 and amd64 so use that.
This adds support for two classes of ISO, the CD sized ones which are built nightly and the DVD sized ones which are built weekly.
The images are downloaded using jigdo which sources the majority of the data from a local Debian mirror, for this reason I have not worried about the fact that the i386 and amd64 tests are downloading the same thing (adding a specific download job would require finding up to 4GB of scratch space for each flight).
The ISOs booted using pygrub which can extract the kernel and initrd from a ISO image. The resulting guests are also booted with pygrub since the pv-grub-menu package is not available on the ISO images and we have pvgrub coverage from the netboot tests.
This is configured from make*flight using runvars:
- <gident>_netinst_baseurl:
Base URL of directory containing the netinst jigdo images.
- <gident>_netinst_filere:
Regular expression to match actual file within baseurl to use (without .jigdo suffix)
<gident>_netinst_kernel:
Path to kernel within the netinst image
<gident>_netinst_ramdisk
Path to ramdisk within the netinst image
---
v7: Use {Guest}_suite not {Guest}_dist as runvar to choose version.
Use shorter lined method for $arch_props definition
Switch to flight-per-suite model
Handle lack of both $c{DebianMirrorProxy} and $c{HttpProxy} Construct URLs in make-distros-flight
v4: Support http_proxy in jigdo download
v3:
- Indent jigdo-lite script line to improve readability
- Wrap bootloader_args
- Fetch URL on target, to get a timeout. Use wget since that is arranged to be present.
- include bootloader in test name.
--- Osstest/Debian.pm | 7 ++++-- make-distros-flight | 54 ++++++++++++++++++++++++++++++++++++++++++++ ts-debian-di-install | 64 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 123 insertions(+), 2 deletions(-)
Osstest/Debian.pm +5 -2
@@ -623,8 +623,6 @@ sub preseed_base ($$$$;@) { preseed_hook_overlay($ho, $sfx, $c{OverlayLocal}, 'overlay-local.tar'); my $preseed = <<"END"; -d-i mirror/suite string $suite - d-i debian-installer/locale string en_GB d-i console-keymaps-at/keymap select gb d-i keyboard-configuration/xkb-keymap string en_GB
@@ -696,6 +694,11 @@ END d-i clock-setup/ntp-server string $ntpserver END + # For CDROM the suite is part of the image + $preseed .= <<END unless $xopts{CDROM}; +d-i mirror/suite string $suite +END + $preseed .= <<"END"; ### END OF DEBIAN PRESEED BASE
make-distros-flight +54 -0
66 lines not on this page · raw message
ts-debian-di-install +64 -0
76 lines not on this page · raw message
Signature · 1 line
2.1.4
Re: [PATCH OSSTEST v7 05/15] distros: support PV guest install from Debian netinst media.
Ian Campbell writes ("[PATCH OSSTEST v7 05/15] distros: support PV guest install from Debian netinst media."):
Quoted 2 lines
The netinst media are iso images containing a base Debian install and some (image size dependent) additional tasks.
...
Quoted 11 lines
This is configured from make*flight using runvars:
- <gident>_netinst_baseurl:
Base URL of directory containing the netinst jigdo images.
- <gident>_netinst_filere:
Regular expression to match actual file within baseurl to use (without .jigdo suffix)
<gident>_netinst_kernel:
Path to kernel within the netinst image
<gident>_netinst_ramdisk
Path to ramdisk within the netinst image
This documentation could profitably be placed in the script itself. I've acked this anyway because existing practice is very sloppy.
Ian.
Re: [PATCH OSSTEST v7 05/15] distros: support PV guest install from Debian netinst media.
Quoted 16 lines · Ian Jackson
Ian Campbell writes ("[PATCH OSSTEST v7 05/15] distros: support PV guest install from Debian netinst media."):
Quoted 2 lines
The netinst media are iso images containing a base Debian install and some (image size dependent) additional tasks.
...
Quoted 11 lines
This is configured from make*flight using runvars:
- <gident>_netinst_baseurl:
Base URL of directory containing the netinst jigdo images.
- <gident>_netinst_filere:
Regular expression to match actual file within baseurl to use (without .jigdo suffix)
<gident>_netinst_kernel:
Path to kernel within the netinst image
<gident>_netinst_ramdisk
Path to ramdisk within the netinst image
Quoted 4 lines
Acked-by Ian Jackson <[email protected]>This documentation could profitably be placed in the script itself. I've acked this anyway because existing practice is very sloppy.
I did this, which implied changes to previous patches which added the script and other runvars, I have retained your ack where those were the only changes.
For this specific patch I noticed an unused <gident>_cd thing while documenting, which I have removed, hence I didn't take the ack above.
Ian.
PATCH v7 6/15 Test pygrub and pvgrub on the regular flights
In reply to Ian CampbellSince we now have the ability to test these drop one of each of pygrub, pvgrub-32 and pvgrub-64 into the standard flights. Omitting the {Guest}_diver runvar causes ts-debian-di-install to use the d-i images in the location configured via TftpDiVersion, so they are Version Controlled along with the d-i version used for the host.
This adds three new jobs:
+test-amd64-amd64-amd64-pvgrub all_hostflags arch-amd64,arch-xen-amd64,suite-wheezy,purpose-test +test-amd64-amd64-amd64-pvgrub arch amd64 +test-amd64-amd64-amd64-pvgrub buildjob build-amd64 +test-amd64-amd64-amd64-pvgrub debian_arch amd64 +test-amd64-amd64-amd64-pvgrub debian_bootloader pvgrub +test-amd64-amd64-amd64-pvgrub debian_method netboot +test-amd64-amd64-amd64-pvgrub debian_suite wheezy +test-amd64-amd64-amd64-pvgrub kernbuildjob build-amd64-pvops +test-amd64-amd64-amd64-pvgrub kernkind pvops +test-amd64-amd64-amd64-pvgrub toolstack xl +test-amd64-amd64-amd64-pvgrub xenbuildjob build-amd64
+test-amd64-amd64-i386-pvgrub all_hostflags arch-amd64,arch-xen-amd64,suite-wheezy,purpose-test +test-amd64-amd64-i386-pvgrub arch amd64 +test-amd64-amd64-i386-pvgrub buildjob build-amd64 +test-amd64-amd64-i386-pvgrub debian_arch i386 +test-amd64-amd64-i386-pvgrub debian_bootloader pvgrub +test-amd64-amd64-i386-pvgrub debian_method netboot +test-amd64-amd64-i386-pvgrub debian_suite wheezy +test-amd64-amd64-i386-pvgrub kernbuildjob build-amd64-pvops +test-amd64-amd64-i386-pvgrub kernkind pvops +test-amd64-amd64-i386-pvgrub toolstack xl +test-amd64-amd64-i386-pvgrub xenbuildjob build-amd64
+test-amd64-amd64-pygrub all_hostflags arch-amd64,arch-xen-amd64,suite-wheezy,purpose-test +test-amd64-amd64-pygrub arch amd64 +test-amd64-amd64-pygrub buildjob build-amd64 +test-amd64-amd64-pygrub debian_arch amd64 +test-amd64-amd64-pygrub debian_bootloader pygrub +test-amd64-amd64-pygrub debian_method netboot +test-amd64-amd64-pygrub debian_suite wheezy +test-amd64-amd64-pygrub kernbuildjob build-amd64-pvops +test-amd64-amd64-pygrub kernkind pvops +test-amd64-amd64-pygrub toolstack xl +test-amd64-amd64-pygrub xenbuildjob build-amd64
---
v7: Use {Guest}_suite not {Guest}_dist as runvar to choose version.
Refreshed runvars i ncommit message.
v3: added runvar details
--- make-flight | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+)
make-flight +39 -0
@@ -313,6 +313,42 @@ do_passthrough_tests () { done } +do_pygrub_tests () { + if [ $xenarch != amd64 -o $dom0arch != amd64 -o "$kern" != "" ]; then + return + fi + + job_create_test test-$xenarch$kern-$dom0arch-pygrub \ + test-debian-di xl $xenarch $dom0arch \ + debian_arch=amd64 \ + debian_suite=$guestsuite \ + debian_method=netboot \ + debian_bootloader=pygrub \ + all_hostflags=$most_hostflags +} + +do_pvgrub_tests () { + if [ $xenarch != amd64 -o $dom0arch != amd64 -o "$kern" != "" ]; then + return + fi + + job_create_test test-$xenarch$kern-$dom0arch-amd64-pvgrub \ + test-debian-di xl $xenarch $dom0arch \ + debian_arch=amd64 \ + debian_suite=$guestsuite \ + debian_method=netboot \ + debian_bootloader=pvgrub \ + all_hostflags=$most_hostflags \ + + job_create_test test-$xenarch$kern-$dom0arch-i386-pvgrub \ + test-debian-di xl $xenarch $dom0arch \ + debian_arch=i386 \ + debian_suite=$guestsuite \ + debian_method=netboot \ + debian_bootloader=pvgrub \ + all_hostflags=$most_hostflags +} + do_pv_debian_tests () { xsms=$(xenbranch_xsm_variants)
@@ -448,6 +484,9 @@ test_matrix_do_one () { fi #do_passthrough_tests + + do_pygrub_tests + do_pvgrub_tests } test_matrix_iterate
Signature · 1 line
2.1.4
PATCH v7 7/15 distros: add branch infrastructure
In reply to Ian CampbellSince the distro nightlies are not version controlled we cannot use the usual mechanisms for detecting regressions. Special case things appropriately. We use an OLD_REVISION of "flight-NNN" to signify that the old revision is another flight and not a tree revision.
A grep over $NEW_REVISION needed adjusting since NEW_REVISION is empty in this mode, leading to "grep <filename>" which hangs waiting for stdin.
---
v7:
Handle empty $NEW_REVISION by quoting it instead of a needless test -n Switch to flight-per-suite model
v3:
Handle within cr-daily-branch, since ap-fetch-version* don't make sense for a branch such as this.
--- cr-daily-branch | 36 ++++++++++++++++++++++++++++-------- cri-common | 1 + 2 files changed, 29 insertions(+), 8 deletions(-)
cr-daily-branch +28 -8
@@ -68,23 +68,34 @@ fetch_version () { printf '%s\n' "$fetch_version_result" } -treeurl=`./ap-print-url $branch` +case $branch in + distros-*) + treeurl=none;; + *) + treeurl=`./ap-print-url $branch`;; +esac force_baseline=false skipidentical=true wantpush=$OSSTEST_PUSH -if [ "x$OLD_REVISION" = x ]; then - OLD_REVISION="`./ap-fetch-version-old $branch`" - export OLD_REVISION -fi - check_tested () { ./sg-check-tested --debug --branch=$branch \ --blessings=${DAILY_BRANCH_TESTED_BLESSING:-$OSSTEST_BLESSING} \ "$@" } +if [ "x$OLD_REVISION" = x ]; then + case $branch in + distros-*) + OSSTEST_NO_BASELINE=y + OLD_REVISION=flight-`check_tested` + ;; + *) OLD_REVISION="`./ap-fetch-version-old $branch`";; + esac + export OLD_REVISION +fi + if [ "x$OSSTEST_NO_BASELINE" != xy ] ; then testedflight=`check_tested --revision-$tree="$OLD_REVISION"`
@@ -227,6 +238,11 @@ if [ "x$OLD_REVISION" = xdetermine-late ]; then OLD_REVISION="`./ap-fetch-version-baseline-late $branch $NEW_REVISION`" fi +case $branch in +distros-*) makeflight=./make-distros-flight ;; +*) makeflight=./make-flight ;; +esac + if [ "x$NEW_REVISION" = "x$OLD_REVISION" ]; then wantpush=false for checkbranch in x $BRANCHES_ALWAYS; do
@@ -241,7 +257,7 @@ if [ "x$NEW_REVISION" = "x$OLD_REVISION" ]; then fi $DAILY_BRANCH_PREMAKE_HOOK -flight=`./make-flight $branch $xenbranch $OSSTEST_BLESSING "$@"` +flight=`$makeflight $branch $xenbranch $OSSTEST_BLESSING "$@"` $DAILY_BRANCH_POSTMAKE_HOOK heading=tmp/$flight.heading-info
@@ -261,6 +277,10 @@ fi revlog=tmp/$flight.revision-log case "$NEW_REVISION/$OLD_REVISION" in +/flight-[0-9]*) + echo >&2 "SGR COMPARISON AGAINST ${OLD_REVISION}" + sgr_args+=" --that-flight=${OLD_REVISION#flight-}" + ;; */*[^0-9a-f]* | *[^0-9a-f]*/*) echo >&2 "NO SGR COMPARISON badchar $NEW_REVISION/$OLD_REVISION" ;;
@@ -321,7 +341,7 @@ start_email $flight $branch "$sgr_args" "$subject_prefix" push=false if grep '^tolerable$' $mrof >/dev/null 2>&1; then push=$wantpush; fi if test -f $branch.force; then push=$OSSTEST_PUSH; fi -if grep -xF $NEW_REVISION $branch.force-rev; then push=$OSSTEST_PUSH; fi +if grep -xF "$NEW_REVISION" $branch.force-rev; then push=$OSSTEST_PUSH; fi if test -f $branch.block; then push=false; fi if test -e $mrof && test -e $tree_bisect && ! grep '^broken' $mrof; then
cri-common +1 -0
@@ -72,6 +72,7 @@ select_xenbranch () { rumpuserxen) tree=rumpuserxen; xenbranch=xen-unstable ;; seabios) tree=seabios; xenbranch=xen-unstable ;; ovmf) tree=ovmf; xenbranch=xen-unstable ;; + distros-*) tree=none; xenbranch=xen-unstable ;; osstest) tree=osstest; xenbranch=xen-unstable ;; esac if [ "x$tree" = xlinux ]; then
Signature · 1 line
2.1.4
Re: [PATCH OSSTEST v7 07/15] distros: add branch infrastructure
Ian Campbell writes ("[PATCH OSSTEST v7 07/15] distros: add branch infrastructure"):
Quoted 4 lines
Since the distro nightlies are not version controlled we cannot use the usual mechanisms for detecting regressions. Special case things appropriately. We use an
OLD_REVISIONof "flight-NNN" to signify that the old revision is another flight and not a tree revision.
PATCH v7 8/15 distros: Run one suite per day on a weekly basis
In reply to Ian CampbellOnce a week should be sufficient for these tests. Perhaps in the future we will want to increase the frequency for the suites under active development (testing, unstable)
For now run this on the Citrix Cambridge instance until the XenProject instance has sufficient capacity.
Switch to tabs for alignment.
---
v7: Replaces "distros: Run a flight over the weekend."
Now run in Cambridge
Run separate flight per-suite
Dropped Ack
--- crontab-cambridge | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-)
crontab-cambridge +8 -3
@@ -1,5 +1,10 @@ PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin [email protected],[email protected] -# m h dom mon dow command -4-59/30 * * * * cd testing.git && BRANCHES=osstest ./cr-for-branches branches -q "./cr-daily-branch --real" -3 4 * * * savelog -c28 testing.git/tmp/cr-for-branches.log >/dev/null +# m h dom mon dow command +4-59/30 * * * * cd testing.git && BRANCHES='osstest' ./cr-for-branches branches -q "./cr-daily-branch --real" +46 7 * * 6 cd testing.git && BRANCHES='distros-debian-snapshot' ./cr-for-branches branches -w "./cr-daily-branch --real" +46 7 * * 5 cd testing.git && BRANCHES='distros-debian-sid' ./cr-for-branches branches -w "./cr-daily-branch --real" +46 7 * * 4 cd testing.git && BRANCHES='distros-debian-jessie' ./cr-for-branches branches -w "./cr-daily-branch --real" +46 7 * * 3 cd testing.git && BRANCHES='distros-debian-wheezy' ./cr-for-branches branches -w "./cr-daily-branch --real" +46 7 * * 2 cd testing.git && BRANCHES='distros-debian-squeeze' ./cr-for-branches branches -w "./cr-daily-branch --real" +3 4 * * * savelog -c28 testing.git/tmp/cr-for-branches.log >/dev/null
Signature · 1 line
2.1.4
Re: [PATCH OSSTEST v7 08/15] distros: Run one suite per day on a weekly basis
Ian Campbell writes ("[PATCH OSSTEST v7 08/15] distros: Run one suite per day on a weekly basis"):
Quoted 8 lines
Once a week should be sufficient for these tests. Perhaps in the future we will want to increase the frequency for the suites under active development (testing, unstable)
For now run this on the Citrix Cambridge instance until the XenProject instance has sufficient capacity.
Switch to tabs for alignment.
Please can you split this whitespace change out ? It makes the actual diff hard to spot.
Thanks,
Ian.
PATCH v7 9/15 Debian: Handle lack of bootloader support in d-i on ARM.
In reply to Ian CampbellDebian doesn't currently know what bootloader to install in a Xen guest on ARM. We install pv-grub-menu above which actually does what we need, but the installer doesn't treat that as a "bootloader".
Most ARM platforms end up installing a u-boot boot.scr, based on a platform whitelist. This doesn't seem appropriate for us. Grub is not available for arm32. For arm64 we will eventually end up with in-guest UEFI and therefore grub-efi and things will work normally. I'm not sure what the answer is going to be for arm32.
This patch enables the workaround for Wheezy, Jessie and Sid, post-Jessie should be enabled as we add them. (Pre-wheezy does not support running as a Xen guest on ARM so we don't test them at all).
---
v4: Handle sid too
v3: New
--- Osstest/Debian.pm | 14 ++++++++++++-- ts-debian-di-install | 6 ++++-- 2 files changed, 16 insertions(+), 4 deletions(-)
Osstest/Debian.pm +12 -2
@@ -707,8 +707,8 @@ END return $preseed; } -sub preseed_create_guest ($$;@) { - my ($ho, $sfx, %xopts) = @_; +sub preseed_create_guest ($$$;@) { + my ($ho, $arch, $sfx, %xopts) = @_; my $suite= $xopts{Suite} || $c{DebianSuite};
@@ -755,6 +755,16 @@ d-i grub-installer/bootdev string /dev/xvda END + # Debian doesn't currently know what bootloader to install in a + # Xen guest on ARM. We install pv-grub-menu above which actually + # does what we need, but the installer doesn't treat that as a + # "bootloader". + logm("\$arch is $arch, \$suite is $suite"); + $preseed_file.= (<<END) if $arch =~ /^arm/ && $suite =~ /wheezy|jessie|sid/; +d-i nobootloader/confirmation_common boolean true + +END + $preseed_file .= preseed_hook_cmds(); return create_webfile($ho, "preseed$sfx", $preseed_file);
ts-debian-di-install +4 -2
@@ -158,7 +158,9 @@ END $method_cfg = setup_netboot($tmpdir, $arch, $suite); - $ps_url = preseed_create_guest($gho, '', Suite=>$suite, PvMenuLst=>($bl eq "pvgrub")); + $ps_url = preseed_create_guest($gho, $arch, '', + Suite=>$suite, + PvMenuLst=>($bl eq "pvgrub")); $extra_disk = ""; }
@@ -170,7 +172,7 @@ END ($method_cfg,$extra_disk) = setup_netinst($tmpdir, $arch, $cd); - $ps_url = preseed_create_guest($gho, '', CDROM=>1); + $ps_url = preseed_create_guest($gho, $arch, '', CDROM=>1); } else {
Signature · 1 line
2.1.4
Re: [PATCH OSSTEST v7 09/15] Debian: Handle lack of bootloader support in d-i on ARM.
Ian Campbell writes ("[PATCH OSSTEST v7 09/15] Debian: Handle lack of bootloader support in d-i on ARM."):
Quoted 3 lines
Debian doesn't currently know what bootloader to install in a Xen guest on ARM. We install pv-grub-menu above which actually does what we need, but the installer doesn't treat that as a "bootloader".
PATCH v7 10/15 ts-debian-di-install: Refactor root_disk specification
In reply to Ian Campbell---
v4: new patch
--- ts-debian-di-install | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)
ts-debian-di-install +4 -2
@@ -195,12 +195,14 @@ END OnPowerOff => "preserve" ); + my $root_disk = "'phy:$gho->{Lvdev},xvda,w'"; + prepareguest_part_xencfg($ho, $gho, $ram_mb, \%install_xopts, <<END); $method_cfg extra = "$cmdline" # disk = [ - $extra_disk 'phy:$gho->{Lvdev},xvda,w' + $extra_disk $root_disk ] END
@@ -224,7 +226,7 @@ END $blcfg # disk = [ - 'phy:$gho->{Lvdev},xvda,w' + $root_disk ] END return;
Signature · 1 line
2.1.4
Re: [PATCH OSSTEST v7 10/15] ts-debian-di-install: Refactor root_disk specification
Ian Campbell writes ("[PATCH OSSTEST v7 10/15] ts-debian-di-install: Refactor root_disk specification"):
Quoted 1 line
Signed-off-by Ian Campbell <[email protected]>
PATCH v7 11/15 make-flight: refactor PV debian tests
In reply to Ian CampbellNo functional change, standalone-generate-dump-flight-runvars confirms no change to the runvars.
Includes a hook which is not used yet, $recipe_sfx.
---
v4: new patch
--- make-flight | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-)
make-flight +14 -10
@@ -349,6 +349,17 @@ do_pvgrub_tests () { all_hostflags=$most_hostflags } +do_pv_debian_test_one () { + testname=$1; shift + recipe_sfx=$1; shift + toolstack=$1; shift + + job_create_test test-$xenarch$kern-$dom0arch-$testname \ + test-debian$recipe_sfx $toolstack \ + $xenarch $dom0arch \ + $debian_runvars all_hostflags=$most_hostflags $@ +} + do_pv_debian_tests () { xsms=$(xenbranch_xsm_variants)
@@ -364,20 +375,13 @@ do_pv_debian_tests () { suffix=${platform:+-$platform} hostflags=${most_hostflags}${platform:+,platform-$platform} - job_create_test test-$xenarch$kern-$dom0arch-xl$suffix \ - test-debian xl \ - $xenarch $dom0arch \ - enable_xsm=$xsm \ - $debian_runvars all_hostflags=$hostflags + do_pv_debian_test_one xl$suffix '' xl enable_xsm=$xsm + done done for xsm in $xsms ; do - job_create_test test-$xenarch$kern-$dom0arch-libvirt \ - test-debian libvirt \ - $xenarch $dom0arch \ - enable_xsm=$xsm \ - $debian_runvars all_hostflags=$most_hostflags + do_pv_debian_test_one libvirt '' libvirt enable_xsm=$xsm done }
Signature · 1 line
2.1.4
Re: [PATCH OSSTEST v7 11/15] make-flight: refactor PV debian tests
Ian Campbell writes ("[PATCH OSSTEST v7 11/15] make-flight: refactor PV debian tests"):
Quoted 2 lines
No functional change, standalone-generate-dump-flight-runvars confirms no change to the runvars.
PATCH v7 12/15 Add testing of non-LVM/phy disk backends.
In reply to Ian Campbellxen-create-image makes this tricky to do since it is rather LVM centric. Now that we have the ability to install from d-i it's possible to arrange fairly easily that they use non-LVM disk backend arrangements.
Here we add support to the test script and infra and create a bunch of new jobs testing the cross product of {xl,libvirt} x {raw,qcow2,vhd}.
The test scripts are modified such that when constructing a domain with a non-LVM diskfmt runvar:
- the LVM device is slightly enlarged to account for file format headers (1M should be plenty).
- the LVM device will have an ext3 filesystem created on it instead of being used as a phy device for the guest. Reusing the LVM volume in this way means we don't need to do more storage management in dom0 (i.e. arranging for / to be large enough, or managing a special "images" LV)
- the relevant type of container is created within the filesystem using the appropriate tool.
- New properties Disk{fmt,spec} are added to all $gho, containing the format used for the root disk and the xl diskspec to load it.
- lvm backed guests use a xend/xm compatible spec, everything else uses the improved xl syntax which libvirt also supports. We won't test non-LVM on xend.
- New properties Disk{mnt,img} are added to $gho which are not using LVM. These contain the mount point to use (configurable via OSSTEST_CONFIG and runvars) and the full path (including mount point) to the image itself.
- When starting or stopping a guest we arrange for the filesystem to be (u)mounted.
- The prepearation when starting a guest copes gracefully with the disk already being prepared.
- Hooks are called from guest_create() and guest_destroy() to manipulate the disk as needed.
Using standalong-generate-dump-flight-runvars a representative set of runvars is:
+test-amd64-amd64-xl-qcow2 all_hostflags arch-amd64,arch-xen-amd64,suite-wheezy,purpose-test +test-amd64-amd64-xl-qcow2 arch amd64 +test-amd64-amd64-xl-qcow2 buildjob build-amd64 +test-amd64-amd64-xl-qcow2 debian_arch amd64 +test-amd64-amd64-xl-qcow2 debian_bootloader pygrub +test-amd64-amd64-xl-qcow2 debian_diskfmt qcow2 +test-amd64-amd64-xl-qcow2 debian_kernkind pvops +test-amd64-amd64-xl-qcow2 debian_method netboot +test-amd64-amd64-xl-qcow2 debian_suite wheezy +test-amd64-amd64-xl-qcow2 kernbuildjob build-amd64-pvops +test-amd64-amd64-xl-qcow2 kernkind pvops +test-amd64-amd64-xl-qcow2 toolstack xl +test-amd64-amd64-xl-qcow2 xenbuildjob build-amd64
Compared to test-amd64-amd64-pygrub (which is the most similar job) and normalising the test name the difference is:
test-amd64-amd64-SUFFIX all_hostflags arch-amd64,arch-xen-amd64,suite-wheezy,purpose-test test-amd64-amd64-SUFFIX arch amd64 test-amd64-amd64-SUFFIX buildjob build-amd64 test-amd64-amd64-SUFFIX debian_arch amd64 test-amd64-amd64-SUFFIX debian_bootloader pygrub +test-amd64-amd64-SUFFIX debian_diskfmt qcow2 +test-amd64-amd64-SUFFIX debian_kernkind pvops test-amd64-amd64-SUFFIX debian_method netboot test-amd64-amd64-SUFFIX debian_suite wheezy test-amd64-amd64-SUFFIX kernbuildjob build-amd64-pvops test-amd64-amd64-SUFFIX kernkind pvops test-amd64-amd64-SUFFIX toolstack xl test-amd64-amd64-SUFFIX xenbuildjob build-amd64
---
v7: Use the right arch for tests, not always amd64 (doesn't work well
on arm!)
Defer guest_find_diskimg until _vg runvar and thence Lvdev are setup:
selectguest calls guest_find_lv then guest_find_diskimg, using preexisting runvars.
But prepare_guest calls selectguest before setting disk_lv, so Lvdev ends up undefined, after setting disk_lv prepare_guest calls guest_find_lv+guest_find_diskimg again and things get configured.
This follows how guest_find_lv only sets Lvdev iff Vg and Lv are both set.
Use {Guest}_suite not {Guest}_dist as runvar to choose version. Assume slower dd for raw population, since I was still seeing timeouts, assume at worst 1/2 the speed I happened to see in a local test
Refresh the runvars in the commit log and drop the list of flights.
v6: Use bs=1MB (=1*1000) when creating the raw images instead of bs=1M
(=1*1024), this matches the units used by lvcreate's -L option and therefore arranges that the imaage actually fits.
v5: Assume 100MB/s dd from /dev/zero when creating a raw disk image
Allow 10M of slack on filesystem for raw, qcow and vhd. 1M wasn't enough in practice for raw.
v4: new patch
--- Osstest/TestSupport.pm | 100 ++++++++++++++++++++++++++++++++++++++++++++++++- make-flight | 16 ++++++++ ts-debian-di-install | 10 ++--- ts-guest-start | 1 - 4 files changed, 117 insertions(+), 10 deletions(-)
Osstest/TestSupport.pm +98 -2
@@ -91,7 +91,8 @@ BEGIN { target_var target_var_prefix selectguest prepareguest more_prepareguest_hvm guest_var guest_var_commalist - prepareguest_part_lvmdisk prepareguest_part_xencfg + prepareguest_part_lvmdisk prepareguest_part_diskimg + prepareguest_part_xencfg guest_umount_lv guest_await guest_await_dhcp_tcp guest_checkrunning guest_check_ip guest_find_ether guest_find_domid guest_check_up guest_check_up_quick
@@ -99,6 +100,7 @@ BEGIN { guest_await_shutdown guest_await_destroy guest_destroy guest_vncsnapshot_begin guest_vncsnapshot_stash guest_check_remus_ok guest_editconfig + guest_prepare_disk guest_unprepare_disk host_involves_pcipassthrough host_get_pcipassthrough_devs toolstack guest_create
@@ -1347,6 +1349,7 @@ sub selectguest ($$) { } logm("guest: using $gn on $gho->{Host}{Name}"); guest_find_lv($gho); + guest_find_diskimg($gho); guest_find_ether($gho); guest_find_tcpcheckport($gho); dhcp_watch_setup($ho,$gho);
@@ -1362,6 +1365,25 @@ sub guest_find_lv ($) { ? '/dev/'.$gho->{Vg}.'/'.$gho->{Lv} : undef; } +sub guest_find_diskimg($) +{ + my ($gho) = @_; + + return unless $gho->{Lvdev}; + + $gho->{Diskfmt} = $r{"$gho->{Guest}_diskfmt"} // "lvm"; + $gho->{Diskspec} = "phy:$gho->{Lvdev},xvda,w"; + + return if $gho->{Diskfmt} eq "lvm"; + + my $mntroot = get_host_property($gho->{Host}, "DiskImageMount", + $c{DiskImageMount} // "/var/lib/xen/images"); + + $gho->{Diskmnt} = "$mntroot/$gho->{Guest}"; + $gho->{Diskimg} = "$gho->{Diskmnt}/disk.$gho->{Diskfmt}"; + $gho->{Diskspec} = "format=$gho->{Diskfmt},vdev=xvda,target=$gho->{Diskimg}"; +} + sub guest_find_ether ($) { my ($gho) = @_; $gho->{Ether}= $r{"$gho->{Guest}_ether"};
@@ -1401,6 +1423,7 @@ sub guest_destroy ($) { my ($gho) = @_; my $ho = $gho->{Host}; toolstack($ho)->destroy($gho); + guest_unprepare_disk($gho); } sub guest_await_destroy ($$) {
@@ -1412,9 +1435,32 @@ sub guest_await_destroy ($$) { sub guest_create ($) { my ($gho) = @_; my $ho = $gho->{Host}; + guest_prepare_disk($gho); toolstack($ho)->create($gho); } +sub guest_prepare_disk ($) { + my ($gho) = @_; + + guest_umount_lv($gho->{Host}, $gho); + + return if $gho->{Diskfmt} eq "lvm"; + + target_cmd_root($gho->{Host}, <<END); +mkdir -p $gho->{Diskmnt} +mount $gho->{Lvdev} $gho->{Diskmnt}; +END +} + +sub guest_unprepare_disk ($) { + my ($gho) = @_; + return if $gho->{Diskfmt} eq "lvm"; + target_cmd_root($gho->{Host}, <<END); +umount $gho->{Lvdev} || : +END +} + + sub target_choose_vg ($$) { my ($ho, $mbneeded) = @_;
@@ -1546,6 +1592,7 @@ sub prepareguest ($$$$$$) { } guest_find_lv($gho); + guest_find_diskimg($gho); guest_find_ether($gho); guest_find_tcpcheckport($gho); return $gho;
@@ -1556,7 +1603,56 @@ sub prepareguest_part_lvmdisk ($$$) { target_cmd_root($ho, "lvremove -f $gho->{Lvdev} ||:"); target_cmd_root($ho, "lvcreate -L ${disk_mb}M -n $gho->{Lv} $gho->{Vg}"); target_cmd_root($ho, "dd if=/dev/zero of=$gho->{Lvdev} count=10"); -} +} + +sub make_vhd ($$$) { + my ($ho, $gho, $disk_mb) = @_; + target_cmd_root($ho, "vhd-util create -n $gho->{Rootimg} -s $disk_mb"); +} +sub make_qcow2 ($$$) { + my ($ho, $gho, $disk_mb) = @_; + # upstream qemu's version. Seems preferable to qemu-xen-img from qemu-trad. + my $qemu_img = "/usr/local/lib/xen/bin/qemu-img"; + target_cmd_root($ho, "$qemu_img create -f qcow2 $gho->{Rootimg} ${disk_mb}M"); +} +sub make_raw ($$$) { + my ($ho, $gho, $disk_mb) = @_; + # In local tests this reported 130MB/s, so calculate a timeout assuming 65MB/s. + target_cmd_root($ho, "dd if=/dev/zero of=$gho->{Rootimg} bs=1MB count=${disk_mb}", + ${disk_mb} / 65); +} + +sub prepareguest_part_diskimg ($$$) { + my ($ho, $gho, $disk_mb) = @_; + + my $diskfmt = $gho->{Diskfmt}; + # Allow an extra 10 megabytes for image format headers + my $disk_overhead = $diskfmt eq "lvm" ? 0 : 10; + + logm("preparing guest disks in $diskfmt format"); + + target_cmd_root($ho, "umount $gho->{Lvdev} ||:"); + + prepareguest_part_lvmdisk($ho, $gho, $disk_mb + $disk_overhead); + + if ($diskfmt ne "lvm") { + + $gho->{Rootimg} = "$gho->{Diskmnt}/disk.$diskfmt"; + $gho->{Rootcfg} = "format=$diskfmt,vdev=xvda,target=$gho->{Rootimg}"; + + target_cmd_root($ho, <<END); +mkfs.ext3 $gho->{Lvdev} +mkdir -p $gho->{Diskmnt} +mount $gho->{Lvdev} $gho->{Diskmnt} +END + no strict qw(refs); + &{"make_$diskfmt"}($ho, $gho, $disk_mb); + + target_cmd_root($ho, <<END); +umount $gho->{Lvdev} +END + } +} sub prepareguest_part_xencfg ($$$$$) { my ($ho, $gho, $ram_mb, $xopts, $cfgrest) = @_;
make-flight +16 -0
@@ -383,6 +383,22 @@ do_pv_debian_tests () { for xsm in $xsms ; do do_pv_debian_test_one libvirt '' libvirt enable_xsm=$xsm done + + for ts in xl libvirt ; do + + for fmt in raw vhd qcow2 ; do + + fmt_runvar="debian_diskfmt=$fmt" + + do_pv_debian_test_one $ts-$fmt '-di' $ts \ + debian_arch=$dom0arch \ + debian_suite=$guestsuite \ + debian_method=netboot \ + debian_bootloader=pygrub \ + $fmt_runvar + + done + done } test_matrix_do_one () {
ts-debian-di-install +3 -7
@@ -41,9 +41,7 @@ sub prep () { $gho= prepareguest($ho, $gn, $guesthost, 22, $disk_mb, 40); - prepareguest_part_lvmdisk($ho, $gho, $disk_mb); - - target_cmd_root($ho, "umount $gho->{Lvdev} ||:"); + prepareguest_part_diskimg($ho, $gho, $disk_mb); } sub setup_netinst($$$)
@@ -195,14 +193,12 @@ END OnPowerOff => "preserve" ); - my $root_disk = "'phy:$gho->{Lvdev},xvda,w'"; - prepareguest_part_xencfg($ho, $gho, $ram_mb, \%install_xopts, <<END); $method_cfg extra = "$cmdline" # disk = [ - $extra_disk $root_disk + $extra_disk '$gho->{Diskspec}' ] END
@@ -226,7 +222,7 @@ END $blcfg # disk = [ - $root_disk + '$gho->{Diskspec}' ] END return;
ts-guest-start +0 -1
@@ -25,7 +25,6 @@ tsreadconfig(); our ($ho,$gho) = ts_get_host_guest(@ARGV); sub start () { - guest_umount_lv($ho, $gho); guest_create($gho); }
Signature · 1 line
2.1.4
Re: [PATCH OSSTEST v7 12/15] Add testing of non-LVM/phy disk backends.
Ian Campbell writes ("[PATCH OSSTEST v7 12/15] Add testing of non-LVM/phy disk backends."):
Quoted 7 lines
xen-create-image makes this tricky to do since it is rather LVM centric. Now that we have the ability to install from d-i it's possible to arrange fairly easily that they use non-LVM disk backend arrangements.
Here we add support to the test script and infra and create a bunch of new jobs testing the cross product of {xl,libvirt} x {raw,qcow2,vhd}.
This looks pretty good.
I have just two minor questions:
Osstest/TestSupport.pm sub prepareguest_part_lvmdisk ($$$) { · line 1634
Quoted 10 lines
Osstest/TestSupport.pm +10
-0+sub prepareguest_part_diskimg ($$$) { + my ($ho, $gho, $disk_mb) = @_; + + my $diskfmt = $gho->{Diskfmt}; + # Allow an extra 10 megabytes for image format headers + my $disk_overhead = $diskfmt eq "lvm" ? 0 : 10; + + logm("preparing guest disks in $diskfmt format"); + + target_cmd_root($ho, "umount $gho->{Lvdev} ||:");
Does this not sometimes produce an undefined variable warning ?
Quoted 11 lines
make-flight +3
-0@@ -383,6 +383,22 @@ do_pv_debian_tests () { for xsm in $xsms ; do do_pv_debian_test_one libvirt '' libvirt enable_xsm=$xsm done + + for ts in xl libvirt ; do +
make-flight do_pv_debian_tests () { · line 398
Quoted 10 lines
make-flight +10
-0+ for fmt in raw vhd qcow2 ; do + + fmt_runvar="debian_diskfmt=$fmt" + + do_pv_debian_test_one $ts-$fmt '-di' $ts \ + debian_arch=$dom0arch \ + debian_suite=$guestsuite \ + debian_method=netboot \ + debian_bootloader=pygrub \ + $fmt_runvar
Are some of these jobs not very similar to existing ones ?
Ian.
Re: [PATCH OSSTEST v7 12/15] Add testing of non-LVM/phy disk backends.
Quoted 13 lines · Ian Jackson
Ian Campbell writes ("[PATCH OSSTEST v7 12/15] Add testing of non-LVM/phy disk backends."):
Quoted 7 lines
xen-create-image makes this tricky to do since it is rather LVM centric. Now that we have the ability to install from d-i it's possible to arrange fairly easily that they use non-LVM disk backend arrangements.
Here we add support to the test script and infra and create a bunch of new jobs testing the cross product of {xl,libvirt} x {raw,qcow2,vhd}.
This looks pretty good.
I have just two minor questions:
Quoted 12 lines
Osstest/TestSupport.pm sub prepareguest_part_lvmdisk ($$$) { · line 1634
Quoted 10 lines
Osstest/TestSupport.pm +10
-0+sub prepareguest_part_diskimg ($$$) { + my ($ho, $gho, $disk_mb) = @_; + + my $diskfmt = $gho->{Diskfmt}; + # Allow an extra 10 megabytes for image format headers + my $disk_overhead = $diskfmt eq "lvm" ? 0 : 10; + + logm("preparing guest disks in $diskfmt format"); + + target_cmd_root($ho, "umount $gho->{Lvdev} ||:");Does this not sometimes produce an undefined variable warning ?
I don't think so, but I'll keep a look out next time I run a flight.
Quoted 15 lines
Quoted 15 lines
make-flight +7
-0@@ -383,6 +383,22 @@ do_pv_debian_tests () { for xsm in $xsms ; do do_pv_debian_test_one libvirt '' libvirt enable_xsm=$xsm done + + for ts in xl libvirt ; do + + for fmt in raw vhd qcow2 ; do + + fmt_runvar="debian_diskfmt=$fmt" +
Quoted 8 lines
make-flight do_pv_debian_tests () { · line 398
Quoted 6 lines
make-flight +6
-0+ do_pv_debian_test_one $ts-$fmt '-di' $ts \ + debian_arch=$dom0arch \ + debian_suite=$guestsuite \ + debian_method=netboot \ + debian_bootloader=pygrub \ + $fmt_runvarAre some of these jobs not very similar to existing ones ?
They differ in the backing store used for the guest's disks, but otherwise they are quite similar to the existing flight, except they are installed with d-i not xen-create-image.
The use of d-i is simply because it was easier to reuse ts-debian-di-install than to convince xen-create-image to using non-LVM, rather than a particular desire to test d-i in this context.
Ian.
Re: [PATCH OSSTEST v7 12/15] Add testing of non-LVM/phy disk backends.
Ian Campbell writes ("Re: [PATCH OSSTEST v7 12/15] Add testing of non-LVM/phy disk backends."):
Quoted 6 lines · Ian Jackson
Quoted 1 line
Are some of these jobs not very similar to existing ones ?
They differ in the backing store used for the guest's disks, but otherwise they are quite similar to the existing flight, except they are installed with d-i not xen-create-image.
I meant the lvm ones.
Quoted 3 lines
The use of d-i is simply because it was easier to reuse ts-debian-di-install than to convince xen-create-image to using non-LVM, rather than a particular desire to test d-i in this context.
So we are add d-i pv storage-on-lvm tests here, as well as storage-not-on-lvm tests. That's good.
Ian.
Re: [PATCH OSSTEST v7 12/15] Add testing of non-LVM/phy disk backends.
Quoted 9 lines · Ian Jackson
Ian Campbell writes ("Re: [PATCH OSSTEST v7 12/15] Add testing of non-LVM/phy disk backends."):
Quoted 6 lines · Ian Jackson
Quoted 1 line
Are some of these jobs not very similar to existing ones ?
They differ in the backing store used for the guest's disks, but otherwise they are quite similar to the existing flight, except they are installed with d-i not xen-create-image.
I meant the lvm ones.
The list here was:
for fmt in raw vhd qcow2 ; do
i.e. no LVM.
(as an implementation detail each of the above will in its own LVM LV, but that's not what I think you were getting at).
Quoted 7 lines
Quoted 4 lines
The use of d-i is simply because it was easier to reuse ts-debian-di-install than to convince xen-create-image to using non-LVM, rather than a particular desire to test d-i in this context.
So we are add d-i pv storage-on-lvm tests here, as well as storage-not-on-lvm tests. That's good.
We aren't adding that, but we could if you wanted.
Ian.
Re: [PATCH OSSTEST v7 12/15] Add testing of non-LVM/phy disk backends.
Quoted 9 lines · Ian Campbell
Quoted 8 lines · Ian Jackson
Ian Campbell writes ("Re: [PATCH OSSTEST v7 12/15] Add testing of non-LVM/phy disk backends."):
Quoted 6 lines · Ian Jackson
Quoted 1 line
Are some of these jobs not very similar to existing ones ?
They differ in the backing store used for the guest's disks, but otherwise they are quite similar to the existing flight, except they are installed with d-i not xen-create-image.
Quoted 5 lines
Quoted 1 line
I meant the lvm ones.
The list here was:
for fmt in raw vhd qcow2 ; do
i.e. no LVM.
After f2f discussion the upshot is I should change the default diskfmt to be "none" rather than "lvm", i.e. in
+ return if $gho->{Diskfmt} eq "lvm";
so that there is less confusion between "raw" and "lvm".
I should also update the commit message to talk less about "non-LVM backends" and more about "file formats" or some such.
Ian.
PATCH v7 13/15 mfi-common: Allow make-*flight to filter the set of build jobs to include
In reply to Ian CampbellBy using the same job_create_build(_filter_callback) scheme used for the test jobs.
Will be used in make-distros-flight.
--- make-distros-flight | 4 ++++ make-flight | 4 ++++ mfi-common | 21 +++++++++++++++------ 3 files changed, 23 insertions(+), 6 deletions(-)
make-distros-flight +4 -0
@@ -38,6 +38,10 @@ case $branch in *) echo $branch >&2; exit 1 ;; esac +job_create_build_filter_callback () { + : +} + if [ x$buildflight = x ]; then WANT_XEND=false REVISION_LINUX_OLD=disable
make-flight +4 -0
@@ -34,6 +34,10 @@ flight=`./cs-flight-create $blessing $branch` defsuite=`getconfig DebianSuite` defguestsuite=`getconfig GuestDebianSuite` +job_create_build_filter_callback () { + : +} + if [ x$buildflight = x ]; then create_build_jobs
mfi-common +15 -6
@@ -54,6 +54,15 @@ xenbranch_xsm_variants () { esac } +job_create_build () { + job_create_build_filter_callback "$@" || return 0 + + local job=$1; shift + local recipe=$1; shift + + ./cs-job-create $flight $job $recipe "$@" +} + create_build_jobs () { local arch
@@ -164,7 +173,7 @@ create_build_jobs () { else xsm_suffix="" fi - ./cs-job-create $flight build-$arch$xsm_suffix build \ + job_create_build build-$arch$xsm_suffix build \ arch=$arch enable_xend=$build_defxend enable_ovmf=$enable_ovmf\ enable_xsm=$enable_xsm \ tree_qemu=$TREE_QEMU \
@@ -183,7 +192,7 @@ create_build_jobs () { done if [ $build_extraxend = "true" ] ; then - ./cs-job-create $flight build-$arch-xend build \ + job_create_build build-$arch-xend build \ arch=$arch enable_xend=true enable_ovmf=$enable_ovmf \ tree_qemu=$TREE_QEMU \ tree_qemuu=$TREE_QEMU_UPSTREAM \
@@ -196,7 +205,7 @@ create_build_jobs () { revision_qemuu=$REVISION_QEMU_UPSTREAM fi - ./cs-job-create $flight build-$arch-pvops build-kern \ + job_create_build build-$arch-pvops build-kern \ arch=$arch kconfighow=xen-enable-xen-config \ $RUNVARS $BUILD_RUNVARS $BUILD_LINUX_RUNVARS $arch_runvars \ $suite_runvars \
@@ -208,7 +217,7 @@ create_build_jobs () { if [ "x$REVISION_LIBVIRT" != xdisable ]; then - ./cs-job-create $flight build-$arch-libvirt build-libvirt \ + job_create_build build-$arch-libvirt build-libvirt \ arch=$arch \ tree_xen=$TREE_XEN \ $RUNVARS $BUILD_RUNVARS $BUILD_LIBVIRT_RUNVARS $arch_runvars \
@@ -223,7 +232,7 @@ create_build_jobs () { case $arch in i386|amd64) - ./cs-job-create $flight build-$arch-rumpuserxen build-rumpuserxen \ + job_create_build build-$arch-rumpuserxen build-rumpuserxen \ arch=$arch \ tree_xen=$TREE_XEN \ $RUNVARS $BUILD_RUNVARS $BUILD_RUMPUSERXEN_RUNVARS $arch_runvars \
@@ -252,7 +261,7 @@ create_build_jobs () { if [ "x$REVISION_LINUX_OLD" != xdisable ]; then - ./cs-job-create $flight build-$arch-oldkern build-kern \ + job_create_build build-$arch-oldkern build-kern \ arch=$arch kconfighow=create-config-sh \ kimagefile=vmlinux \ $RUNVARS $BUILD_RUNVARS $BUILD_LINUX_OLD_RUNVARS \
Signature · 1 line
2.1.4
Re: [PATCH OSSTEST v7 13/15] mfi-common: Allow make-*flight to filter the set of build jobs to include
Ian Campbell writes ("[PATCH OSSTEST v7 13/15] mfi-common: Allow make-*flight to filter the set of build jobs to include"):
Quoted 2 lines
By using the same
job_create_build(_filter_callback)scheme used for the test jobs.
I would like this for my xen-unstable-smoke series. Can you put it at the front of your series ?
Thanks,
Ian.
Re: [PATCH OSSTEST v7 13/15] mfi-common: Allow make-*flight to filter the set of build jobs to include
Quoted 8 lines · Ian Jackson
Ian Campbell writes ("[PATCH OSSTEST v7 13/15] mfi-common: Allow make-*flight to filter the set of build jobs to include"):
Quoted 2 lines
By using the same
job_create_build(_filter_callback)scheme used for the test jobs.Acked-by Ian Jackson <[email protected]>I would like this for my xen-unstable-smoke series. Can you put it at the front of your series ?
I've done this. Would you like me to resend sooner rather than later (i.e. without having run a flight after the mods associated with all the feedback you gave on this posting, not just the one change suggested here).
Re: [PATCH OSSTEST v7 13/15] mfi-common: Allow make-*flight to filter the set of build jobs to include
Ian Campbell writes ("Re: [PATCH OSSTEST v7 13/15] mfi-common: Allow make-*flight to filter the set of build jobs to include"):
Quoted 8 lines · Ian Jackson
Quoted 2 lines
I would like this for my xen-unstable-smoke series. Can you put it at the front of your series ?
I've done this. Would you like me to resend sooner rather than later (i.e. without having run a flight after the mods associated with all the feedback you gave on this posting, not just the one change suggested here).
Or, just a repost of that one patch. Whatever is easiest.
Ian.
PATCH v7 14/15 make-distros-flight: don't bother building for XSM or libvirt.
In reply to Ian Campbell--- make-distros-flight | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-)
make-distros-flight +9 -1
@@ -39,7 +39,15 @@ case $branch in esac job_create_build_filter_callback () { - : + local job=$1; shift + + case "$job" in + build-*-libvirt) return 1;; + esac + case " $* " in + *" enable_xsm=true "*) return 1;; + esac + return 0 } if [ x$buildflight = x ]; then
Signature · 1 line
2.1.4
Re: [PATCH OSSTEST v7 14/15] make-distros-flight: don't bother building for XSM or libvirt.
Ian Campbell writes ("[PATCH OSSTEST v7 14/15] make-distros-flight: don't bother building for XSM or libvirt."):
Quoted 1 line
Signed-off-by Ian Campbell <[email protected]>
PATCH v7 15/15 make-distros-flight: Use ftp.debian.org directly
In reply to Ian CampbellThe local proxy seems to serve stale packages for Jessie etc, I blame the intercepting cache on the way out of our network, similar to b5f15136900d "mg-debian-installer-update: workaround caching proxies", except it is between the apt-cache and the world not the osstest vm and the world.
Since the netboot kernel+initrd are reasonably small, these flights are infrequent and they are intended to test the current upstream version I think this is tollerable.
--- make-distros-flight | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
make-distros-flight +3 -1
@@ -79,7 +79,9 @@ test_do_one_netboot () { gsuite=sid gver=daily else - local mirror="http://`getconfig DebianMirrorHost`/`getconfig DebianMirrorSubpath`" + #local mirror="http://`getconfig DebianMirrorHost`/`getconfig DebianMirrorSubpath`" + # XXX local mirror seems to serve up stale files. + local mirror="http://ftp.debian.org/debian" diurl="$mirror/dists/$gsuite/main/installer-$domU/current/images/netboot" gver=$gsuite fi
Signature · 1 line
2.1.4
Re: [PATCH OSSTEST v7 15/15] make-distros-flight: Use ftp.debian.org directly
Ian Campbell writes ("[PATCH OSSTEST v7 15/15] make-distros-flight: Use ftp.debian.org directly"):
Quoted 9 lines
The local proxy seems to serve stale packages for Jessie etc, I blame the intercepting cache on the way out of our network, similar to
b5f15136900d"mg-debian-installer-update: workaround caching proxies", except it is between the apt-cache and the world not the osstest vm and the world.Since the netboot kernel+initrd are reasonably small, these flights are infrequent and they are intended to test the current upstream version I think this is tollerable.
I bet we don't need this in the new colo.
Can we make this conditional on a config var set in production-config-cambridge ?
I'm not sure what the precise scope ought to be.
Ian.
Re: [PATCH OSSTEST v7 15/15] make-distros-flight: Use ftp.debian.org directly
Quoted 11 lines · Ian Jackson
Ian Campbell writes ("[PATCH OSSTEST v7 15/15] make-distros-flight: Use ftp.debian.org directly"):
Quoted 9 lines
The local proxy seems to serve stale packages for Jessie etc, I blame the intercepting cache on the way out of our network, similar to
b5f15136900d"mg-debian-installer-update: workaround caching proxies", except it is between the apt-cache and the world not the osstest vm and the world.Since the netboot kernel+initrd are reasonably small, these flights are infrequent and they are intended to test the current upstream version I think this is tollerable.
Quoted 6 lines
I bet we don't need this in the new colo.
Can we make this conditional on a config var set in production-config-cambridge ?
I'm not sure what the precise scope ought to be.
It's hard to say, since we don't want to do this for all uses of DebianMirrorHost (i.e. host install, regular use of stable).
So the wording of the name probably wants to somehow imply that it wants to avoid the caching mirror only for things which are more "volatile" than Debian stable or something?
Alternatively, perhaps target_fetchurl should gain an option to bypas the proxy (as mg-debian-installer-update does), the argument there might be that we definitely want the very latest thing from upstream for these cases, and even a well managed cache timeout from the new colo's http proxy should be avoided.
I'm not sure. I'll not let this hold up a potential v8 while we think about the best approach.
Ian.