ts-debian-install: work around xen-create-image reliance on xend
PATCH 1/1 ts-debian-install: work around xen-create-image reliance on xend
The xen-tools script contains some sanity checks of the xend configuration and fails if the configuration file is not present. This issue has been reported upstream http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=732456.
Workaround this issue by creating a dummy xend-config.sxp if it does not already exist. Include network- and vif- script options to keep the sanity checks happy.
The workaround is enabled for all releases up to and including Wheezy in the hopes that this will be fixed by the time Jessie is released, if not then the osstest pushgate will hopefully catch this when Jessie is pushed to it.
--- ts-debian-install | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-)
ts-debian-install +14 -1
@@ -62,7 +62,20 @@ sub ginstall () { $initrd =~ s,/vmlinuz-,/initrd.img-, or die "$initrd ?"; } my $initrd_opt = $initrd eq 'none' ? '' : "--initrd $initrd"; - + + if ($ho->{Suite} =~ m/lenny|squeeze|wheezy/) { + target_cmd_root($ho, <<END, 10); + set -e + # xen-create-image requires this to exists (see Debian bug #732456) + # even though it is otherwise quite happy on a pure xl system. + if [ ! -f /etc/xen/xend-config.sxp ] ; then + # xen-create-image checks for these and warns if they don't + # exist or are set to "dummy" + echo "(vif-script osstest)" >>/etc/xen/xend-config.sxp + echo "(network-script osstest)" >>/etc/xen/xend-config.sxp + fi +END + } target_cmd_root($ho, <<END, 2000); xen-create-image \\ --dhcp --mac $gho->{Ether} \\
Signature · 1 line
1.7.10.4
Quoted 8 lines · Ian Campbell
The xen-tools script contains some sanity checks of the xend configuration and fails if the configuration file is not present. This issue has been reported upstream http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=732456.
Workaround this issue by creating a dummy xend-config.sxp if it does not already exist. Include network- and vif- script options to keep the sanity checks happy.
Quoted 5 lines
The workaround is enabled for all releases up to and including Wheezy in the hopes that this will be fixed by the time Jessie is released, if not then the osstest pushgate will hopefully catch this when Jessie is pushed to it.
Signed-off-by Ian Campbell <[email protected]>
BTW, Ian, I'd like to get this in ASAP since it is the next blocker on the ARM testing. How is the Wheezy push doing?
Ian.
Ian Campbell writes ("Re: [OSSTEST PATCH] ts-debian-install: work around xen-create-image reliance on xend"):
Quoted 2 lines
BTW, Ian, I'd like to get this in ASAP since it is the next blocker on the ARM testing. How is the Wheezy push doing?
The wheezy push is blocked (still) on 2.6.18. Please go ahead and rebase your patch onto the top of current "incoming" and force-push your patch into "pretest".
Ian.
Quoted 7 lines · Ian Jackson
Ian Campbell writes ("Re: [OSSTEST PATCH] ts-debian-install: work around xen-create-image reliance on xend"):
Quoted 2 lines
BTW, Ian, I'd like to get this in ASAP since it is the next blocker on the ARM testing. How is the Wheezy push doing?
The wheezy push is blocked (still) on 2.6.18. Please go ahead and rebase your patch onto the top of current "incoming" and force-push your patch into "pretest".
Done.
BTW, is there somewhere in the flight logs or results page which tells you the version of osstest which was used?
Ian.
Ian Campbell writes ("Re: [OSSTEST PATCH] ts-debian-install: work around xen-create-image reliance on xend"):
Quoted 4 lines
Done.
BTW, is there somewhere in the flight logs or results page which tells you the version of osstest which was used?
The osstest self-tests obviously contain osstest's own git version number.
The set of versions of osstest which have touched any flight is in the table flights_harness_touched in the database but not currently presented in the logs.
Ian.
Quoted 8 lines · Ian Jackson
Ian Campbell writes ("Re: [OSSTEST PATCH] ts-debian-install: work around xen-create-image reliance on xend"):
Quoted 4 lines
Done.
BTW, is there somewhere in the flight logs or results page which tells you the version of osstest which was used?
The osstest self-tests obviously contain osstest's own git version number.
Right, I was looking for the version used by the latest xen-unstable flight.
The reason was that I just wanted to sanity check I was rebasing onto the right thing by checking what was used for the most recent test.
Quoted 3 lines
The set of versions of osstest which have touched any flight is in the table
flights_harness_touchedin the database but not currently presented in the logs.
Might be a useful addition I guess
Ian Campbell writes ("Re: [OSSTEST PATCH] ts-debian-install: work around xen-create-image reliance on xend"):
Quoted 9 lines · Ian Jackson
Quoted 2 lines
The osstest self-tests obviously contain osstest's own git version number.
Right, I was looking for the version used by the latest xen-unstable flight.
The reason was that I just wanted to sanity check I was rebasing onto the right thing by checking what was used for the most recent test.
For this, git fetch from woking:~osstest/testing.git and rebase onto remotes/origin/incoming (assumign the remote is called "origin")
Quoted 5 lines
Quoted 3 lines
The set of versions of osstest which have touched any flight is in the table
flights_harness_touchedin the database but not currently presented in the logs.Might be a useful addition I guess
I need to refer to it about once every 6 months so I don't think it's urgent.
Ian.