* [PATCH OSSTEST 0/6] Fixes for switching to Jessie as base OS for test hosts
@ 2015-09-29 9:44 Ian Campbell
2015-09-29 9:44 ` [PATCH OSSTEST 1/6] Debian: Uninstall flash-kernel when creating our own boot.scr Ian Campbell
` (8 more replies)
0 siblings, 9 replies; 25+ messages in thread
From: Ian Campbell @ 2015-09-29 9:44 UTC (permalink / raw)
To: Ian.Jackson, xen-devel; +Cc: Roger Pau Monné
5 of these patches are fixes for issues which I noticed when trying to do
an adhoc xen-unstable flight with Jessie but which are safe to go in
whenever (i.e. they work with Wheezy too).
The 6th patch actually switches to Jessie which we will want to schedule a
bit more carefully. In particular this requires:
* Switch to apt-cacher-ng on the cache host, since a bug in Jessie's apt
apparently interacts badly with apt-cacher's handling of Ranges in http
requests[0]. I've deployed apt-cacher-ng on an alternative port on the
production cache and tested that it works with Jessie and Wheezy.
* A firmware upgrade on the Arndale boards, since the new version of gcc
seems to trigger an SoC errata when building the kernel.
The reason I care about upgrading to Jessie is that this adds the arm64
architecture which we hope to eventually have hardware for.
Roger, I will only CC you on the ts-install-freebsd script change.
Ian.
[0] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=795284
^ permalink raw reply [flat|nested] 25+ messages in thread
* [PATCH OSSTEST 1/6] Debian: Uninstall flash-kernel when creating our own boot.scr
2015-09-29 9:44 [PATCH OSSTEST 0/6] Fixes for switching to Jessie as base OS for test hosts Ian Campbell
@ 2015-09-29 9:44 ` Ian Campbell
2015-09-29 14:05 ` Ian Jackson
2015-09-29 9:44 ` [PATCH OSSTEST 2/6] Debian: Search for kernel in /boot as well as / when making u-boot script Ian Campbell
` (7 subsequent siblings)
8 siblings, 1 reply; 25+ messages in thread
From: Ian Campbell @ 2015-09-29 9:44 UTC (permalink / raw)
To: ian.jackson, xen-devel; +Cc: Ian Campbell
flash-kernel will run from various kernel postinst hooks and overwrite
our own boot scripts. While this might be tollerable for the initial
installation we don't want to risk it occuring after we have created
our own boot.scr to boot xen.
dpkg --purge succeeds if the package wasn't installed.
This happened to show up with Jessie since it now supports the two
boards in our test lab while Wheezy didn't (so flash-kernel didn't
know about them and did nothing).
Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
---
Osstest/Debian.pm | 2 ++
1 file changed, 2 insertions(+)
diff --git a/Osstest/Debian.pm b/Osstest/Debian.pm
index a158f34..f7275de 100644
--- a/Osstest/Debian.pm
+++ b/Osstest/Debian.pm
@@ -1106,6 +1106,8 @@ echo Booting
bootz \\\${kernel_addr_r} \\\${ramdisk_addr_r}:\\\${filesize} \\\${fdt_addr}
EOF
+in-target dpkg --purge flash-kernel
+
in-target mkimage -A arm -T script -d /boot/boot.deb /boot/boot.scr.deb
in-target cp /boot/boot.scr.deb /boot/boot.scr
END
--
2.5.3
^ permalink raw reply related [flat|nested] 25+ messages in thread
* [PATCH OSSTEST 2/6] Debian: Search for kernel in /boot as well as / when making u-boot script
2015-09-29 9:44 [PATCH OSSTEST 0/6] Fixes for switching to Jessie as base OS for test hosts Ian Campbell
2015-09-29 9:44 ` [PATCH OSSTEST 1/6] Debian: Uninstall flash-kernel when creating our own boot.scr Ian Campbell
@ 2015-09-29 9:44 ` Ian Campbell
2015-09-29 14:07 ` Ian Jackson
2015-09-29 9:44 ` [PATCH OSSTEST 3/6] Debian: uboot: Use di_vg_name() and lv_dev_mapper() for root= Ian Campbell
` (6 subsequent siblings)
8 siblings, 1 reply; 25+ messages in thread
From: Ian Campbell @ 2015-09-29 9:44 UTC (permalink / raw)
To: ian.jackson, xen-devel; +Cc: Ian Campbell
The vmlinuz and initrd.img symlinks appear to have moved to /boot when
installing Jessie on armhf systems compared to Wheezy.
Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
---
Osstest/Debian.pm | 17 +++++++++++++++--
1 file changed, 15 insertions(+), 2 deletions(-)
diff --git a/Osstest/Debian.pm b/Osstest/Debian.pm
index f7275de..36d9ca3 100644
--- a/Osstest/Debian.pm
+++ b/Osstest/Debian.pm
@@ -1092,8 +1092,21 @@ set -ex
r=/target #/
-kernel=`readlink \$r/vmlinuz | sed -e 's|boot/||'`
-initrd=`readlink \$r/initrd.img | sed -e 's|boot/||'`
+if [ -f \$r/vmlinuz ] ; then
+ echo "Kernel+initrd symlinks are in /"
+ kernel=`readlink \$r/vmlinuz | sed -e 's|boot/||'`
+ initrd=`readlink \$r/initrd.img | sed -e 's|boot/||'`
+elif [ -f \$r/boot/vmlinuz ] ; then
+ echo "Kernel+initrd symlinks are in /boot"
+ kernel=`readlink \$r/boot/vmlinuz`
+ initrd=`readlink \$r/boot/initrd.img`
+else
+ echo "No kernel found!"
+ exit 1
+fi
+
+echo Using kernel \$kernel
+echo Using initrd \$initrd
cat >\$r/boot/boot.deb <<EOF
setenv bootargs $bootargs
--
2.5.3
^ permalink raw reply related [flat|nested] 25+ messages in thread
* [PATCH OSSTEST 3/6] Debian: uboot: Use di_vg_name() and lv_dev_mapper() for root=
2015-09-29 9:44 [PATCH OSSTEST 0/6] Fixes for switching to Jessie as base OS for test hosts Ian Campbell
2015-09-29 9:44 ` [PATCH OSSTEST 1/6] Debian: Uninstall flash-kernel when creating our own boot.scr Ian Campbell
2015-09-29 9:44 ` [PATCH OSSTEST 2/6] Debian: Search for kernel in /boot as well as / when making u-boot script Ian Campbell
@ 2015-09-29 9:44 ` Ian Campbell
2015-09-29 14:08 ` Ian Jackson
2015-09-29 9:44 ` [PATCH OSSTEST 4/6] ts-freebsd-install: Use $gho->{Lvdev} instead of target_guest_lv_name Ian Campbell
` (5 subsequent siblings)
8 siblings, 1 reply; 25+ messages in thread
From: Ian Campbell @ 2015-09-29 9:44 UTC (permalink / raw)
To: ian.jackson, xen-devel; +Cc: Ian Campbell
root is not a "guest lv", so using target_guest_lv_name is misleading.
target_guest_lv_name also fails to properly handle the guest vg name
correctly, which di_vg_name does.
Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
---
Osstest/Debian.pm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Osstest/Debian.pm b/Osstest/Debian.pm
index 36d9ca3..f7a599c 100644
--- a/Osstest/Debian.pm
+++ b/Osstest/Debian.pm
@@ -130,7 +130,7 @@ sub uboot_common_kernel_bootargs ($)
{
my ($ho) = @_;
- my $root= target_guest_lv_name($ho,"root");
+ my $root= lv_dev_mapper(di_vg_name($ho),"root");
my $rootdelay= get_host_property($ho, "rootdelay");
my @bootargs;
--
2.5.3
^ permalink raw reply related [flat|nested] 25+ messages in thread
* [PATCH OSSTEST 4/6] ts-freebsd-install: Use $gho->{Lvdev} instead of target_guest_lv_name
2015-09-29 9:44 [PATCH OSSTEST 0/6] Fixes for switching to Jessie as base OS for test hosts Ian Campbell
` (2 preceding siblings ...)
2015-09-29 9:44 ` [PATCH OSSTEST 3/6] Debian: uboot: Use di_vg_name() and lv_dev_mapper() for root= Ian Campbell
@ 2015-09-29 9:44 ` Ian Campbell
2015-09-29 14:09 ` Ian Jackson
` (2 more replies)
2015-09-29 9:44 ` [PATCH OSSTEST 5/6] TestSupport: Remove now unused target_guest_lv_name Ian Campbell
` (4 subsequent siblings)
8 siblings, 3 replies; 25+ messages in thread
From: Ian Campbell @ 2015-09-29 9:44 UTC (permalink / raw)
To: ian.jackson, xen-devel; +Cc: Ian Campbell, Roger Pau Monné
prepareguest has already assigned this so we should use it instead of
replicating (perhaps wrongly since target_guest_lv_name and
target_choose_vg can behave differently if multiple vgs are present).
Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Cc: Roger Pau Monné <roger.pau@citrix.com>
---
ts-freebsd-install | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/ts-freebsd-install b/ts-freebsd-install
index 98dad24..d1f4bd3 100755
--- a/ts-freebsd-install
+++ b/ts-freebsd-install
@@ -49,7 +49,7 @@ sub prep () {
target_put_guest_image($ho, $gho);
- my $rootpartition_dev = target_guest_lv_name($ho, $gho->{Name}) . "--disk3";
+ my $root_part_nr = 3;
target_cmd_root($ho, "umount $gho->{Lvdev} ||:");
@@ -64,7 +64,7 @@ sub prep () {
kpartx -a $gho->{Lvdev}
mkdir -p $mnt
- mount -t ufs -o ufstype=ufs2,rw $rootpartition_dev $mnt
+ mount -t ufs -o ufstype=ufs2,rw $gho->{Lvdev}${root_part_nr} $mnt
END
target_cmd_root($ho, <<END, 15);
--
2.5.3
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel
^ permalink raw reply related [flat|nested] 25+ messages in thread
* [PATCH OSSTEST 5/6] TestSupport: Remove now unused target_guest_lv_name.
2015-09-29 9:44 [PATCH OSSTEST 0/6] Fixes for switching to Jessie as base OS for test hosts Ian Campbell
` (3 preceding siblings ...)
2015-09-29 9:44 ` [PATCH OSSTEST 4/6] ts-freebsd-install: Use $gho->{Lvdev} instead of target_guest_lv_name Ian Campbell
@ 2015-09-29 9:44 ` Ian Campbell
2015-09-29 14:10 ` Ian Jackson
2015-09-29 9:44 ` [PATCH OSSTEST 6/6] Switch to Debian 8.0 (jessie) as OS for test hosts Ian Campbell
` (3 subsequent siblings)
8 siblings, 1 reply; 25+ messages in thread
From: Ian Campbell @ 2015-09-29 9:44 UTC (permalink / raw)
To: ian.jackson, xen-devel; +Cc: Ian Campbell
Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
---
Osstest/TestSupport.pm | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
diff --git a/Osstest/TestSupport.pm b/Osstest/TestSupport.pm
index 2b67e32..c55b847 100644
--- a/Osstest/TestSupport.pm
+++ b/Osstest/TestSupport.pm
@@ -62,7 +62,7 @@ BEGIN {
target_install_packages target_install_packages_norec
target_jobdir target_extract_jobdistpath_subdir
target_extract_jobdistpath
- lv_dev_mapper target_guest_lv_name
+ lv_dev_mapper
poll_loop tcpconnect await_tcp
contents_make_cpio file_simple_write_contents
@@ -710,11 +710,6 @@ sub lv_dev_mapper ($$) {
return "/dev/mapper/$vg-$lv";
}
-sub target_guest_lv_name($$) {
- my ($ho, $lv) = @_;
- return lv_dev_mapper("$ho->{Name}", $lv);
-}
-
#---------- dhcp watching ----------
sub dhcp_watch_setup ($$) {
--
2.5.3
^ permalink raw reply related [flat|nested] 25+ messages in thread
* [PATCH OSSTEST 6/6] Switch to Debian 8.0 (jessie) as OS for test hosts
2015-09-29 9:44 [PATCH OSSTEST 0/6] Fixes for switching to Jessie as base OS for test hosts Ian Campbell
` (4 preceding siblings ...)
2015-09-29 9:44 ` [PATCH OSSTEST 5/6] TestSupport: Remove now unused target_guest_lv_name Ian Campbell
@ 2015-09-29 9:44 ` Ian Campbell
2015-09-29 14:11 ` Ian Jackson
2015-09-29 10:27 ` [PATCH OSSTEST 0/6] Fixes for switching to Jessie as base " Ian Campbell
` (2 subsequent siblings)
8 siblings, 1 reply; 25+ messages in thread
From: Ian Campbell @ 2015-09-29 9:44 UTC (permalink / raw)
To: ian.jackson, xen-devel; +Cc: Ian Campbell
mg-debian-installer-update-all has been run on the production instance
and TftpDiVersion is also updated to match.
The resulting binaries have also been copied to the Cambridge
instance, so update Cambridge config too.
Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
---
---
Osstest.pm | 2 +-
production-config | 2 +-
production-config-cambridge | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/Osstest.pm b/Osstest.pm
index 4a763c6..fc8334d 100644
--- a/Osstest.pm
+++ b/Osstest.pm
@@ -73,7 +73,7 @@ our %c = qw(
Images images
- DebianSuite wheezy
+ DebianSuite jessie
DebianMirrorSubpath debian
TestHostKeypairPath id_rsa_osstest
diff --git a/production-config b/production-config
index 3eed55f..96c8072 100644
--- a/production-config
+++ b/production-config
@@ -87,7 +87,7 @@ TftpPxeTemplatesReal pxelinux.cfg/%ipaddrhex%
TftpPxeGroup osstest
# Update with ./mg-debian-installer-update(-all)
-TftpDiVersion 2015-09-07
+TftpDiVersion 2015-09-18
# These should normally be the same.
# Update with ./mg-cpu-microcode-update
diff --git a/production-config-cambridge b/production-config-cambridge
index f801303..5d68ede 100644
--- a/production-config-cambridge
+++ b/production-config-cambridge
@@ -69,7 +69,7 @@ TftpPxeTemplates %name%/pxelinux.cfg
TftpPxeTemplatesReal pxelinux.cfg/%ipaddrhex%
TftpPxeGroup osstest
-TftpDiVersion 2015-09-07
+TftpDiVersion 2015-09-18
# These should normally be the same.
MicrocodeUpdateAmd64 microcode.x86.2015-06-12.cpio
--
2.5.3
^ permalink raw reply related [flat|nested] 25+ messages in thread
* Re: [PATCH OSSTEST 0/6] Fixes for switching to Jessie as base OS for test hosts
2015-09-29 9:44 [PATCH OSSTEST 0/6] Fixes for switching to Jessie as base OS for test hosts Ian Campbell
` (5 preceding siblings ...)
2015-09-29 9:44 ` [PATCH OSSTEST 6/6] Switch to Debian 8.0 (jessie) as OS for test hosts Ian Campbell
@ 2015-09-29 10:27 ` Ian Campbell
2015-09-29 14:12 ` Ian Jackson
2015-09-29 14:11 ` Ian Jackson
2015-09-30 14:30 ` Ian Campbell
8 siblings, 1 reply; 25+ messages in thread
From: Ian Campbell @ 2015-09-29 10:27 UTC (permalink / raw)
To: Ian.Jackson, xen-devel; +Cc: Roger Pau Monné
On Tue, 2015-09-29 at 10:44 +0100, Ian Campbell wrote:
> * Switch to apt-cacher-ng on the cache host, since a bug in Jessie's apt
> apparently interacts badly with apt-cacher's handling of Ranges in http
> requests[0]. I've deployed apt-cacher-ng on an alternative port on the
> production cache and tested that it works with Jessie and Wheezy.
I was assuming we'd want to switch out apt-cacher for apt-cacher-ng on port
cache:3142. Instead you suggested just changing the config to use the
alternative port 3143.
-----<8-------
>From b9558e5202b6ade9dc91f0ebf5eac2ff94a57ba4 Mon Sep 17 00:00:00 2001
From: Ian Campbell <ian.campbell@citrix.com>
Date: Tue, 29 Sep 2015 11:24:53 +0100
Subject: [PATCH] production-config: Switch DebianMirrorProxy to port 3143
This is running apt-cacher-ng rather than apt-cacher (which remains on
port 3142 for the time being). It seems that apt-cacher exposes a bug
(#795284) in Jessie's version of apt.
apt-cacher-ng also seems more popular these days.
Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
---
The arrangements for caching of the Debian mirror in the Cambridge
instance are different and so no change is required.
---
production-config | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/production-config b/production-config
index 96c8072..b21153b 100644
--- a/production-config
+++ b/production-config
@@ -103,7 +103,7 @@ XenUseUser osstest
# We use the IP address because Citrix can't manage reliable nameservice
#DebianMirrorHost debian.uk.xensource.com
#DebianMirrorHost 10.80.16.196
-DebianMirrorProxy http://cache:3142/
+DebianMirrorProxy http://cache:3143/
HostProp_NtpServer infra.test-lab.xenproject.org
--
2.5.3
^ permalink raw reply related [flat|nested] 25+ messages in thread
* Re: [PATCH OSSTEST 1/6] Debian: Uninstall flash-kernel when creating our own boot.scr
2015-09-29 9:44 ` [PATCH OSSTEST 1/6] Debian: Uninstall flash-kernel when creating our own boot.scr Ian Campbell
@ 2015-09-29 14:05 ` Ian Jackson
0 siblings, 0 replies; 25+ messages in thread
From: Ian Jackson @ 2015-09-29 14:05 UTC (permalink / raw)
To: Ian Campbell; +Cc: xen-devel
Ian Campbell writes ("[PATCH OSSTEST 1/6] Debian: Uninstall flash-kernel when creating our own boot.scr"):
> flash-kernel will run from various kernel postinst hooks and overwrite
> our own boot scripts. While this might be tollerable for the initial
> installation we don't want to risk it occuring after we have created
> our own boot.scr to boot xen.
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
^ permalink raw reply [flat|nested] 25+ messages in thread
* Re: [PATCH OSSTEST 2/6] Debian: Search for kernel in /boot as well as / when making u-boot script
2015-09-29 9:44 ` [PATCH OSSTEST 2/6] Debian: Search for kernel in /boot as well as / when making u-boot script Ian Campbell
@ 2015-09-29 14:07 ` Ian Jackson
0 siblings, 0 replies; 25+ messages in thread
From: Ian Jackson @ 2015-09-29 14:07 UTC (permalink / raw)
To: Ian Campbell; +Cc: xen-devel
Ian Campbell writes ("[PATCH OSSTEST 2/6] Debian: Search for kernel in /boot as well as / when making u-boot script"):
> The vmlinuz and initrd.img symlinks appear to have moved to /boot when
> installing Jessie on armhf systems compared to Wheezy.
How inconvenient.
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
^ permalink raw reply [flat|nested] 25+ messages in thread
* Re: [PATCH OSSTEST 3/6] Debian: uboot: Use di_vg_name() and lv_dev_mapper() for root=
2015-09-29 9:44 ` [PATCH OSSTEST 3/6] Debian: uboot: Use di_vg_name() and lv_dev_mapper() for root= Ian Campbell
@ 2015-09-29 14:08 ` Ian Jackson
2015-09-29 14:18 ` Ian Campbell
0 siblings, 1 reply; 25+ messages in thread
From: Ian Jackson @ 2015-09-29 14:08 UTC (permalink / raw)
To: Ian Campbell; +Cc: xen-devel
Ian Campbell writes ("[PATCH OSSTEST 3/6] Debian: uboot: Use di_vg_name() and lv_dev_mapper() for root="):
> root is not a "guest lv", so using target_guest_lv_name is misleading.
>
> target_guest_lv_name also fails to properly handle the guest vg name
> correctly, which di_vg_name does.
WDYM `the guest vg name' ? If it's not a guest lv then is it a guest
vg ? Sorry if I am simply confused.
Ian.
^ permalink raw reply [flat|nested] 25+ messages in thread
* Re: [PATCH OSSTEST 4/6] ts-freebsd-install: Use $gho->{Lvdev} instead of target_guest_lv_name
2015-09-29 9:44 ` [PATCH OSSTEST 4/6] ts-freebsd-install: Use $gho->{Lvdev} instead of target_guest_lv_name Ian Campbell
@ 2015-09-29 14:09 ` Ian Jackson
2015-09-30 14:48 ` Roger Pau Monné
2015-10-01 10:45 ` Ian Campbell
2 siblings, 0 replies; 25+ messages in thread
From: Ian Jackson @ 2015-09-29 14:09 UTC (permalink / raw)
To: Ian Campbell; +Cc: Roger Pau Monné, xen-devel
Ian Campbell writes ("[PATCH OSSTEST 4/6] ts-freebsd-install: Use $gho->{Lvdev} instead of target_guest_lv_name"):
> prepareguest has already assigned this so we should use it instead of
> replicating (perhaps wrongly since target_guest_lv_name and
> target_choose_vg can behave differently if multiple vgs are present).
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
^ permalink raw reply [flat|nested] 25+ messages in thread
* Re: [PATCH OSSTEST 5/6] TestSupport: Remove now unused target_guest_lv_name.
2015-09-29 9:44 ` [PATCH OSSTEST 5/6] TestSupport: Remove now unused target_guest_lv_name Ian Campbell
@ 2015-09-29 14:10 ` Ian Jackson
0 siblings, 0 replies; 25+ messages in thread
From: Ian Jackson @ 2015-09-29 14:10 UTC (permalink / raw)
To: Ian Campbell; +Cc: ian.jackson, xen-devel
Ian Campbell writes ("[PATCH OSSTEST 5/6] TestSupport: Remove now unused target_guest_lv_name."):
> Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
^ permalink raw reply [flat|nested] 25+ messages in thread
* Re: [PATCH OSSTEST 6/6] Switch to Debian 8.0 (jessie) as OS for test hosts
2015-09-29 9:44 ` [PATCH OSSTEST 6/6] Switch to Debian 8.0 (jessie) as OS for test hosts Ian Campbell
@ 2015-09-29 14:11 ` Ian Jackson
0 siblings, 0 replies; 25+ messages in thread
From: Ian Jackson @ 2015-09-29 14:11 UTC (permalink / raw)
To: Ian Campbell; +Cc: xen-devel
Ian Campbell writes ("[PATCH OSSTEST 6/6] Switch to Debian 8.0 (jessie) as OS for test hosts"):
> mg-debian-installer-update-all has been run on the production instance
> and TftpDiVersion is also updated to match.
>
> The resulting binaries have also been copied to the Cambridge
> instance, so update Cambridge config too.
Jolly good.
Subject to the prerequisites,
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
^ permalink raw reply [flat|nested] 25+ messages in thread
* Re: [PATCH OSSTEST 0/6] Fixes for switching to Jessie as base OS for test hosts
2015-09-29 9:44 [PATCH OSSTEST 0/6] Fixes for switching to Jessie as base OS for test hosts Ian Campbell
` (6 preceding siblings ...)
2015-09-29 10:27 ` [PATCH OSSTEST 0/6] Fixes for switching to Jessie as base " Ian Campbell
@ 2015-09-29 14:11 ` Ian Jackson
2015-09-30 14:30 ` Ian Campbell
8 siblings, 0 replies; 25+ messages in thread
From: Ian Jackson @ 2015-09-29 14:11 UTC (permalink / raw)
To: Ian Campbell; +Cc: xen-devel
Ian Campbell writes ("[PATCH OSSTEST 0/6] Fixes for switching to Jessie as base OS for test hosts"):
> * Switch to apt-cacher-ng on the cache host, since a bug in Jessie's apt
> apparently interacts badly with apt-cacher's handling of Ranges in http
> requests[0]. I've deployed apt-cacher-ng on an alternative port on the
> production cache and tested that it works with Jessie and Wheezy.
Did we not decide to do this with a change to production-config ?
Ian.
^ permalink raw reply [flat|nested] 25+ messages in thread
* Re: [PATCH OSSTEST 0/6] Fixes for switching to Jessie as base OS for test hosts
2015-09-29 10:27 ` [PATCH OSSTEST 0/6] Fixes for switching to Jessie as base " Ian Campbell
@ 2015-09-29 14:12 ` Ian Jackson
0 siblings, 0 replies; 25+ messages in thread
From: Ian Jackson @ 2015-09-29 14:12 UTC (permalink / raw)
To: Ian Campbell; +Cc: xen-devel
Ian Campbell writes ("Re: [Xen-devel] [PATCH OSSTEST 0/6] Fixes for switching to Jessie as base OS for test hosts"):
> On Tue, 2015-09-29 at 10:44 +0100, Ian Campbell wrote:
> > * Switch to apt-cacher-ng on the cache host, since a bug in Jessie's apt
> > apparently interacts badly with apt-cacher's handling of Ranges in http
> > requests[0]. I've deployed apt-cacher-ng on an alternative port on the
> > production cache and tested that it works with Jessie and Wheezy.
>
> I was assuming we'd want to switch out apt-cacher for apt-cacher-ng on port
> cache:3142. Instead you suggested just changing the config to use the
> alternative port 3143.
Ah here we are.
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
^ permalink raw reply [flat|nested] 25+ messages in thread
* Re: [PATCH OSSTEST 3/6] Debian: uboot: Use di_vg_name() and lv_dev_mapper() for root=
2015-09-29 14:08 ` Ian Jackson
@ 2015-09-29 14:18 ` Ian Campbell
2015-09-29 15:04 ` Ian Jackson
0 siblings, 1 reply; 25+ messages in thread
From: Ian Campbell @ 2015-09-29 14:18 UTC (permalink / raw)
To: Ian Jackson; +Cc: xen-devel
On Tue, 2015-09-29 at 15:08 +0100, Ian Jackson wrote:
> Ian Campbell writes ("[PATCH OSSTEST 3/6] Debian: uboot: Use di_vg_name()
> and lv_dev_mapper() for root="):
> > root is not a "guest lv", so using target_guest_lv_name is misleading.
> >
> > target_guest_lv_name also fails to properly handle the guest vg name
> > correctly, which di_vg_name does.
>
> WDYM `the guest vg name' ? If it's not a guest lv then is it a guest
> vg ?
Sorry, I think I meant "the d-i vg name". Specifically the default VG name
created by D-I changed in Jessie to append "-vg" to the hostname.
i.e. under Squeeze and Wheezy a machine foo would end up with /dev/foo/root
while under Jessie it becomes /dev/foo-vg/root.
> Sorry if I am simply confused.
I think I said something unhelpfully confusing and wrong.
Ian.
^ permalink raw reply [flat|nested] 25+ messages in thread
* Re: [PATCH OSSTEST 3/6] Debian: uboot: Use di_vg_name() and lv_dev_mapper() for root=
2015-09-29 14:18 ` Ian Campbell
@ 2015-09-29 15:04 ` Ian Jackson
0 siblings, 0 replies; 25+ messages in thread
From: Ian Jackson @ 2015-09-29 15:04 UTC (permalink / raw)
To: Ian Campbell; +Cc: xen-devel
Ian Campbell writes ("Re: [PATCH OSSTEST 3/6] Debian: uboot: Use di_vg_name() and lv_dev_mapper() for root="):
> On Tue, 2015-09-29 at 15:08 +0100, Ian Jackson wrote:
> > Ian Campbell writes ("[PATCH OSSTEST 3/6] Debian: uboot: Use di_vg_name()
> > and lv_dev_mapper() for root="):
> > > root is not a "guest lv", so using target_guest_lv_name is misleading.
> > >
> > > target_guest_lv_name also fails to properly handle the guest vg name
> > > correctly, which di_vg_name does.
> >
> > WDYM `the guest vg name' ? If it's not a guest lv then is it a guest
> > vg ?
>
> Sorry, I think I meant "the d-i vg name". Specifically the default VG name
> created by D-I changed in Jessie to append "-vg" to the hostname.
Right.
With that one-word change to the commit message:
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
> i.e. under Squeeze and Wheezy a machine foo would end up with /dev/foo/root
> while under Jessie it becomes /dev/foo-vg/root.
Aha. (You might mention that too in the commit message.)
Ian.
^ permalink raw reply [flat|nested] 25+ messages in thread
* Re: [PATCH OSSTEST 0/6] Fixes for switching to Jessie as base OS for test hosts
2015-09-29 9:44 [PATCH OSSTEST 0/6] Fixes for switching to Jessie as base OS for test hosts Ian Campbell
` (7 preceding siblings ...)
2015-09-29 14:11 ` Ian Jackson
@ 2015-09-30 14:30 ` Ian Campbell
8 siblings, 0 replies; 25+ messages in thread
From: Ian Campbell @ 2015-09-30 14:30 UTC (permalink / raw)
To: Ian.Jackson, xen-devel; +Cc: Roger Pau Monné
On Tue, 2015-09-29 at 10:44 +0100, Ian Campbell wrote:
> * A firmware upgrade on the Arndale boards, since the new version of gcc
> seems to trigger an SoC errata when building the kernel.
Now done.
> The reason I care about upgrading to Jessie is that this adds the arm64
> architecture which we hope to eventually have hardware for.
I forgot that this will(/should) also enable the -vhd/-raw and -qcow2 tests
on ARM (since they rely on d-i for guest install and only Jessie onwards
can run in an ARM domU).
Ian.
^ permalink raw reply [flat|nested] 25+ messages in thread
* Re: [PATCH OSSTEST 4/6] ts-freebsd-install: Use $gho->{Lvdev} instead of target_guest_lv_name
2015-09-29 9:44 ` [PATCH OSSTEST 4/6] ts-freebsd-install: Use $gho->{Lvdev} instead of target_guest_lv_name Ian Campbell
2015-09-29 14:09 ` Ian Jackson
@ 2015-09-30 14:48 ` Roger Pau Monné
2015-09-30 15:06 ` Ian Jackson
2015-10-01 10:45 ` Ian Campbell
2 siblings, 1 reply; 25+ messages in thread
From: Roger Pau Monné @ 2015-09-30 14:48 UTC (permalink / raw)
To: Ian Campbell, ian.jackson, xen-devel
El 29/09/15 a les 11.44, Ian Campbell ha escrit:
> prepareguest has already assigned this so we should use it instead of
> replicating (perhaps wrongly since target_guest_lv_name and
> target_choose_vg can behave differently if multiple vgs are present).
>
> Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
> Cc: Roger Pau Monné <roger.pau@citrix.com>
I'm not officially the maintainer of this, but for the record:
Acked-by: Roger Pau Monné <roger.pau@citrix.com>
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel
^ permalink raw reply [flat|nested] 25+ messages in thread
* Re: [PATCH OSSTEST 4/6] ts-freebsd-install: Use $gho->{Lvdev} instead of target_guest_lv_name
2015-09-30 14:48 ` Roger Pau Monné
@ 2015-09-30 15:06 ` Ian Jackson
0 siblings, 0 replies; 25+ messages in thread
From: Ian Jackson @ 2015-09-30 15:06 UTC (permalink / raw)
To: Roger Pau Monné; +Cc: Ian Campbell, xen-devel
Roger Pau Monné writes ("Re: [PATCH OSSTEST 4/6] ts-freebsd-install: Use $gho->{Lvdev} instead of target_guest_lv_name"):
> El 29/09/15 a les 11.44, Ian Campbell ha escrit:
> > prepareguest has already assigned this so we should use it instead of
> > replicating (perhaps wrongly since target_guest_lv_name and
> > target_choose_vg can behave differently if multiple vgs are present).
> >
> > Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
> > Cc: Roger Pau Monné <roger.pau@citrix.com>
>
> I'm not officially the maintainer of this, but for the record:
>
> Acked-by: Roger Pau Monné <roger.pau@citrix.com>
Your review and ack are very welcome, thanks.
Ian.
^ permalink raw reply [flat|nested] 25+ messages in thread
* Re: [PATCH OSSTEST 4/6] ts-freebsd-install: Use $gho->{Lvdev} instead of target_guest_lv_name
2015-09-29 9:44 ` [PATCH OSSTEST 4/6] ts-freebsd-install: Use $gho->{Lvdev} instead of target_guest_lv_name Ian Campbell
2015-09-29 14:09 ` Ian Jackson
2015-09-30 14:48 ` Roger Pau Monné
@ 2015-10-01 10:45 ` Ian Campbell
2015-10-01 10:48 ` Ian Campbell
2015-10-02 9:36 ` Ian Campbell
2 siblings, 2 replies; 25+ messages in thread
From: Ian Campbell @ 2015-10-01 10:45 UTC (permalink / raw)
To: ian.jackson, xen-devel; +Cc: Roger Pau Monné
On Tue, 2015-09-29 at 10:44 +0100, Ian Campbell wrote:
> prepareguest has already assigned this so we should use it instead of
> replicating (perhaps wrongly since target_guest_lv_name and
> target_choose_vg can behave differently if multiple vgs are present).
This is wrong in practice because
kpartx -a /dev/some-vg/some-device
produces /dev/mapper/some--vg-some--device1 etc but not /dev/some-vg/some
-device1.
The right fix probably involves lv_dev_mapper($gho-{Vg}, "$gho->{Lv}3")
instead.
I'm in two minds about having guest_find_lv use lv_dev_mapper to populate
$gho->{Lvdev} in the first place as an alternative fix though.
>
> Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
> Cc: Roger Pau Monné <roger.pau@citrix.com>
> ---
> ts-freebsd-install | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/ts-freebsd-install b/ts-freebsd-install
> index 98dad24..d1f4bd3 100755
> --- a/ts-freebsd-install
> +++ b/ts-freebsd-install
> @@ -49,7 +49,7 @@ sub prep () {
>
> target_put_guest_image($ho, $gho);
>
> - my $rootpartition_dev = target_guest_lv_name($ho, $gho->{Name}) . "-
> -disk3";
> + my $root_part_nr = 3;
>
> target_cmd_root($ho, "umount $gho->{Lvdev} ||:");
>
> @@ -64,7 +64,7 @@ sub prep () {
>
> kpartx -a $gho->{Lvdev}
> mkdir -p $mnt
> - mount -t ufs -o ufstype=ufs2,rw $rootpartition_dev $mnt
> + mount -t ufs -o ufstype=ufs2,rw $gho->{Lvdev}${root_part_nr}
> $mnt
> END
>
> target_cmd_root($ho, <<END, 15);
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel
^ permalink raw reply [flat|nested] 25+ messages in thread
* Re: [PATCH OSSTEST 4/6] ts-freebsd-install: Use $gho->{Lvdev} instead of target_guest_lv_name
2015-10-01 10:45 ` Ian Campbell
@ 2015-10-01 10:48 ` Ian Campbell
2015-10-02 9:36 ` Ian Campbell
1 sibling, 0 replies; 25+ messages in thread
From: Ian Campbell @ 2015-10-01 10:48 UTC (permalink / raw)
To: ian.jackson, xen-devel; +Cc: Roger Pau Monné
On Thu, 2015-10-01 at 11:45 +0100, Ian Campbell wrote:
> On Tue, 2015-09-29 at 10:44 +0100, Ian Campbell wrote:
> > prepareguest has already assigned this so we should use it instead of
> > replicating (perhaps wrongly since target_guest_lv_name and
> > target_choose_vg can behave differently if multiple vgs are present).
>
> This is wrong in practice because
> kpartx -a /dev/some-vg/some-device
> produces /dev/mapper/some--vg-some--device1 etc but not /dev/some-vg/some
> -device1.
And in case it wasn't clear ->{Lvdev} contains /dev/some-vg/some-device.
>
> The right fix probably involves lv_dev_mapper($gho-{Vg}, "$gho->{Lv}3")
> instead.
>
> I'm in two minds about having guest_find_lv use lv_dev_mapper to populate
> $gho->{Lvdev} in the first place as an alternative fix though.
>
> >
> > Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
> > Cc: Roger Pau Monné <roger.pau@citrix.com>
> > ---
> > ts-freebsd-install | 4 ++--
> > 1 file changed, 2 insertions(+), 2 deletions(-)
> >
> > diff --git a/ts-freebsd-install b/ts-freebsd-install
> > index 98dad24..d1f4bd3 100755
> > --- a/ts-freebsd-install
> > +++ b/ts-freebsd-install
> > @@ -49,7 +49,7 @@ sub prep () {
> >
> > target_put_guest_image($ho, $gho);
> >
> > - my $rootpartition_dev = target_guest_lv_name($ho, $gho->{Name}) .
> > "-
> > -disk3";
> > + my $root_part_nr = 3;
> >
> > target_cmd_root($ho, "umount $gho->{Lvdev} ||:");
> >
> > @@ -64,7 +64,7 @@ sub prep () {
> >
> > kpartx -a $gho->{Lvdev}
> > mkdir -p $mnt
> > - mount -t ufs -o ufstype=ufs2,rw $rootpartition_dev $mnt
> > + mount -t ufs -o ufstype=ufs2,rw $gho
> > ->{Lvdev}${root_part_nr}
> > $mnt
> > END
> >
> > target_cmd_root($ho, <<END, 15);
>
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xen.org
> http://lists.xen.org/xen-devel
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel
^ permalink raw reply [flat|nested] 25+ messages in thread
* Re: [PATCH OSSTEST 4/6] ts-freebsd-install: Use $gho->{Lvdev} instead of target_guest_lv_name
2015-10-01 10:45 ` Ian Campbell
2015-10-01 10:48 ` Ian Campbell
@ 2015-10-02 9:36 ` Ian Campbell
2015-10-05 16:31 ` Ian Jackson
1 sibling, 1 reply; 25+ messages in thread
From: Ian Campbell @ 2015-10-02 9:36 UTC (permalink / raw)
To: ian.jackson, xen-devel; +Cc: Roger Pau Monné
On Thu, 2015-10-01 at 11:45 +0100, Ian Campbell wrote:
> On Tue, 2015-09-29 at 10:44 +0100, Ian Campbell wrote:
> > prepareguest has already assigned this so we should use it instead of
> > replicating (perhaps wrongly since target_guest_lv_name and
> > target_choose_vg can behave differently if multiple vgs are present).
>
> This is wrong in practice because
> kpartx -a /dev/some-vg/some-device
> produces /dev/mapper/some--vg-some--device1 etc but not /dev/some-vg/some
> -device1.
>
> The right fix probably involves lv_dev_mapper($gho-{Vg}, "$gho->{Lv}3")
> instead.
>
> I'm in two minds about having guest_find_lv use lv_dev_mapper to populate
> $gho->{Lvdev} in the first place as an alternative fix though.
I decided I liked this route more. It's as yet untested other than "perl
-c", but I have inserted the patch below before this one.
commit 9ba9a4f1d3fb7f01a1c76e9bff9f4b23187d855b
Author: Ian Campbell <ian.campbell@citrix.com>
Date: Fri Oct 2 10:31:13 2015 +0100
TestSupport: Use lv_dev_mapper in guest_find_lv
This has the effect of switching $gho->{Lvdev} from /dev/$VG/$LV to
/dev/mapper/$VG-$LV (where $VG and $LV have an s/-/--/ transformation
applied).
The two paths point to the samedevice and most call sites don't care
about the distinction. Some places which use "kpartx $dev" to Lvdev
expect to be able to append a partition number to $dev, while kpartx
only creates the /dev/mapper form, meaning such places cannot use
Lvdev. By making this switch we allow these places (such as
ts-freebsd-install) to use kpartx.
The only other place I'm aware of which requires one form or the other
is the Debian initramfs code which expects root=/dev/mapper/vg-lv and
does not accept /dev/vg/lv. However this is already handled correctly.
Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
diff --git a/Osstest/TestSupport.pm b/Osstest/TestSupport.pm
index c55b847..1365ee5 100644
--- a/Osstest/TestSupport.pm
+++ b/Osstest/TestSupport.pm
@@ -1382,7 +1382,7 @@ sub guest_find_lv ($) {
$gho->{Vg}= $r{"${gn}_vg"};
$gho->{Lv}= $r{"${gn}_disk_lv"};
$gho->{Lvdev}= (defined $gho->{Vg} && defined $gho->{Lv})
- ? '/dev/'.$gho->{Vg}.'/'.$gho->{Lv} : undef;
+ ? lv_dev_mapper($gho->{Vg},$gho->{Lv}) : undef;
}
sub guest_find_diskimg($)
^ permalink raw reply related [flat|nested] 25+ messages in thread
* Re: [PATCH OSSTEST 4/6] ts-freebsd-install: Use $gho->{Lvdev} instead of target_guest_lv_name
2015-10-02 9:36 ` Ian Campbell
@ 2015-10-05 16:31 ` Ian Jackson
0 siblings, 0 replies; 25+ messages in thread
From: Ian Jackson @ 2015-10-05 16:31 UTC (permalink / raw)
To: Ian Campbell; +Cc: Roger Pau Monné, xen-devel
Ian Campbell writes ("Re: [Xen-devel] [PATCH OSSTEST 4/6] ts-freebsd-install: Use $gho->{Lvdev} instead of target_guest_lv_name"):
> On Thu, 2015-10-01 at 11:45 +0100, Ian Campbell wrote:
> > I'm in two minds about having guest_find_lv use lv_dev_mapper to populate
> > $gho->{Lvdev} in the first place as an alternative fix though.
>
> I decided I liked this route more. It's as yet untested other than "perl
> -c", but I have inserted the patch below before this one.
Right.
> commit 9ba9a4f1d3fb7f01a1c76e9bff9f4b23187d855b
> Author: Ian Campbell <ian.campbell@citrix.com>
> Date: Fri Oct 2 10:31:13 2015 +0100
>
> TestSupport: Use lv_dev_mapper in guest_find_lv
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
Thanks,
Ian.
^ permalink raw reply [flat|nested] 25+ messages in thread
end of thread, other threads:[~2015-10-05 16:31 UTC | newest]
Thread overview: 25+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-09-29 9:44 [PATCH OSSTEST 0/6] Fixes for switching to Jessie as base OS for test hosts Ian Campbell
2015-09-29 9:44 ` [PATCH OSSTEST 1/6] Debian: Uninstall flash-kernel when creating our own boot.scr Ian Campbell
2015-09-29 14:05 ` Ian Jackson
2015-09-29 9:44 ` [PATCH OSSTEST 2/6] Debian: Search for kernel in /boot as well as / when making u-boot script Ian Campbell
2015-09-29 14:07 ` Ian Jackson
2015-09-29 9:44 ` [PATCH OSSTEST 3/6] Debian: uboot: Use di_vg_name() and lv_dev_mapper() for root= Ian Campbell
2015-09-29 14:08 ` Ian Jackson
2015-09-29 14:18 ` Ian Campbell
2015-09-29 15:04 ` Ian Jackson
2015-09-29 9:44 ` [PATCH OSSTEST 4/6] ts-freebsd-install: Use $gho->{Lvdev} instead of target_guest_lv_name Ian Campbell
2015-09-29 14:09 ` Ian Jackson
2015-09-30 14:48 ` Roger Pau Monné
2015-09-30 15:06 ` Ian Jackson
2015-10-01 10:45 ` Ian Campbell
2015-10-01 10:48 ` Ian Campbell
2015-10-02 9:36 ` Ian Campbell
2015-10-05 16:31 ` Ian Jackson
2015-09-29 9:44 ` [PATCH OSSTEST 5/6] TestSupport: Remove now unused target_guest_lv_name Ian Campbell
2015-09-29 14:10 ` Ian Jackson
2015-09-29 9:44 ` [PATCH OSSTEST 6/6] Switch to Debian 8.0 (jessie) as OS for test hosts Ian Campbell
2015-09-29 14:11 ` Ian Jackson
2015-09-29 10:27 ` [PATCH OSSTEST 0/6] Fixes for switching to Jessie as base " Ian Campbell
2015-09-29 14:12 ` Ian Jackson
2015-09-29 14:11 ` Ian Jackson
2015-09-30 14:30 ` Ian Campbell
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).