* [PATCH OSSTEST RFC 0/2] Test booting hvm guest with empty cdrom drive @ 2016-04-06 13:02 Wei Liu 2016-04-06 13:02 ` [PATCH OSSTEST RFC 1/2] Testsupport: rename guest_editconfig_nocd to _postinstall Wei Liu 2016-04-06 13:02 ` [PATCH OSSTEST RFC 2/2] Make guest cdrom empty after installation completes Wei Liu 0 siblings, 2 replies; 6+ messages in thread From: Wei Liu @ 2016-04-06 13:02 UTC (permalink / raw) To: Xen-devel; +Cc: George Dunlap, ian.jackson, Wei Liu, Roger Pau Monné This can only go in after the bug is fixed and possibly backported to all the trees we care about. It won't pass osstest self pushgate otherwise. Wei. Wei Liu (2): Testsupport: rename guest_editconfig_nocd to _postinstall Make guest cdrom empty after installation completes Osstest/TestSupport.pm | 8 ++++---- ts-debian-hvm-install | 6 +----- ts-redhat-install | 6 +----- 3 files changed, 6 insertions(+), 14 deletions(-) -- 2.1.4 _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel ^ permalink raw reply [flat|nested] 6+ messages in thread
* [PATCH OSSTEST RFC 1/2] Testsupport: rename guest_editconfig_nocd to _postinstall 2016-04-06 13:02 [PATCH OSSTEST RFC 0/2] Test booting hvm guest with empty cdrom drive Wei Liu @ 2016-04-06 13:02 ` Wei Liu 2016-04-06 14:59 ` Ian Jackson 2016-04-06 13:02 ` [PATCH OSSTEST RFC 2/2] Make guest cdrom empty after installation completes Wei Liu 1 sibling, 1 reply; 6+ messages in thread From: Wei Liu @ 2016-04-06 13:02 UTC (permalink / raw) To: Xen-devel; +Cc: George Dunlap, ian.jackson, Wei Liu, Roger Pau Monné It does more than just replacing the disc in cdrom. It also modifies guest reboot action. No functional change. Signed-off-by: Wei Liu <wei.liu2@citrix.com> --- Osstest/TestSupport.pm | 4 ++-- ts-debian-hvm-install | 2 +- ts-redhat-install | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Osstest/TestSupport.pm b/Osstest/TestSupport.pm index 9e6479a..8b15b6d 100644 --- a/Osstest/TestSupport.pm +++ b/Osstest/TestSupport.pm @@ -119,7 +119,7 @@ BEGIN { iso_create_empty iso_gen_flags_basic iso_copy_content_from_image - guest_editconfig_nocd + guest_editconfig_postinstall host_install_postboot_complete target_core_dump_setup ); @@ -2509,7 +2509,7 @@ sub iso_copy_content_from_image($$) { END } -sub guest_editconfig_nocd ($$) { +sub guest_editconfig_postinstall ($$) { my ($gho,$emptyiso) = @_; guest_editconfig($gho->{Host}, $gho, sub { if (m/^\s*disk\s*\=/ .. /\]/) { diff --git a/ts-debian-hvm-install b/ts-debian-hvm-install index 7521d57..d174c55 100755 --- a/ts-debian-hvm-install +++ b/ts-debian-hvm-install @@ -283,7 +283,7 @@ if ($stage<2) { guest_destroy($gho); } -guest_editconfig_nocd($gho,$emptyiso); +guest_editconfig_postinstall($gho,$emptyiso); guest_create($gho); guest_await_dhcp_tcp($gho,300); guest_check_up($gho); diff --git a/ts-redhat-install b/ts-redhat-install index 10da559..89e0a5f 100755 --- a/ts-redhat-install +++ b/ts-redhat-install @@ -158,7 +158,7 @@ if ($stage<2) { guest_destroy($gho); } -guest_editconfig_nocd($gho,$emptyiso); +guest_editconfig_postinstall($gho,$emptyiso); guest_create($gho); guest_await_dhcp_tcp($gho,300); guest_check_up($gho); -- 2.1.4 _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel ^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [PATCH OSSTEST RFC 1/2] Testsupport: rename guest_editconfig_nocd to _postinstall 2016-04-06 13:02 ` [PATCH OSSTEST RFC 1/2] Testsupport: rename guest_editconfig_nocd to _postinstall Wei Liu @ 2016-04-06 14:59 ` Ian Jackson 0 siblings, 0 replies; 6+ messages in thread From: Ian Jackson @ 2016-04-06 14:59 UTC (permalink / raw) To: Wei Liu; +Cc: George Dunlap, Xen-devel, Roger Pau Monné Wei Liu writes ("[PATCH OSSTEST RFC 1/2] Testsupport: rename guest_editconfig_nocd to _postinstall"): > It does more than just replacing the disc in cdrom. It also modifies > guest reboot action. I think this probably ought to be called `midinstall' or something. The installation isn't complete until firstboot stuff is done. With that change, Acked-by: Ian Jackson <ian.jackson@eu.citrix.com> Ian. _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel ^ permalink raw reply [flat|nested] 6+ messages in thread
* [PATCH OSSTEST RFC 2/2] Make guest cdrom empty after installation completes 2016-04-06 13:02 [PATCH OSSTEST RFC 0/2] Test booting hvm guest with empty cdrom drive Wei Liu 2016-04-06 13:02 ` [PATCH OSSTEST RFC 1/2] Testsupport: rename guest_editconfig_nocd to _postinstall Wei Liu @ 2016-04-06 13:02 ` Wei Liu 2016-04-06 15:02 ` Ian Jackson 1 sibling, 1 reply; 6+ messages in thread From: Wei Liu @ 2016-04-06 13:02 UTC (permalink / raw) To: Xen-devel; +Cc: George Dunlap, ian.jackson, Wei Liu, Roger Pau Monné Previously an iso image that contains nothing was inserted to cdrom after guest installation had finished. With this patch we make cdrom really empty. This helps catch bug that prevents booting hvm guest with empty cdrom drive. Remove empty iso image generate in ts-{debian-hvm,redhat}-install as well. Signed-off-by: Wei Liu <wei.liu2@citrix.com> --- Osstest/TestSupport.pm | 6 +++--- ts-debian-hvm-install | 6 +----- ts-redhat-install | 6 +----- 3 files changed, 5 insertions(+), 13 deletions(-) diff --git a/Osstest/TestSupport.pm b/Osstest/TestSupport.pm index 8b15b6d..f06db51 100644 --- a/Osstest/TestSupport.pm +++ b/Osstest/TestSupport.pm @@ -2509,11 +2509,11 @@ sub iso_copy_content_from_image($$) { END } -sub guest_editconfig_postinstall ($$) { - my ($gho,$emptyiso) = @_; +sub guest_editconfig_postinstall ($) { + my ($gho) = @_; guest_editconfig($gho->{Host}, $gho, sub { if (m/^\s*disk\s*\=/ .. /\]/) { - s/\Q$gho->{Rimage}\E/$emptyiso/; + s/\Q$gho->{Rimage}\E//; } s/^on_reboot.*/on_reboot='restart'/; }); diff --git a/ts-debian-hvm-install b/ts-debian-hvm-install index d174c55..b8a2ae2 100755 --- a/ts-debian-hvm-install +++ b/ts-debian-hvm-install @@ -181,8 +181,6 @@ sub prepare_initrd ($$$) { END } -our $emptyiso= "/root/$flight.$job.$gn-empty.iso"; - sub iso_path ($$) { my ($which, $deftail) = @_; my $v = guest_var($gho, "iso_$which", "/install.amd/$deftail"); @@ -213,8 +211,6 @@ sub prep () { -no-emul-boot -r); - iso_create_empty($ho, $emptyiso, $emptydir); - my $extra_config = ''; $extra_config .= "nestedhvm=1\n" if guest_var_boolean($gho,"enable_nestedhvm"); @@ -283,7 +279,7 @@ if ($stage<2) { guest_destroy($gho); } -guest_editconfig_postinstall($gho,$emptyiso); +guest_editconfig_postinstall($gho); guest_create($gho); guest_await_dhcp_tcp($gho,300); guest_check_up($gho); diff --git a/ts-redhat-install b/ts-redhat-install index 89e0a5f..a950778 100755 --- a/ts-redhat-install +++ b/ts-redhat-install @@ -106,8 +106,6 @@ ENDKEYS END } -our $emptyiso= "/root/$flight.$job.$gn-empty.iso"; - sub prep () { target_install_packages_norec($ho, qw(lvm2 rsync genisoimage)); @@ -120,8 +118,6 @@ sub prep () { my $newiso= "/root/$flight.$job.$gn-newiso"; my $emptydir= "/root/$flight.$job.$gn-empty-dir"; - iso_create_empty($ho, $emptyiso, $emptydir); - my @isogen= iso_gen_flags_basic(); more_prepareguest_hvm($ho,$gho, $ram_mb, $disk_mb, @@ -158,7 +154,7 @@ if ($stage<2) { guest_destroy($gho); } -guest_editconfig_postinstall($gho,$emptyiso); +guest_editconfig_postinstall($gho); guest_create($gho); guest_await_dhcp_tcp($gho,300); guest_check_up($gho); -- 2.1.4 _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel ^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [PATCH OSSTEST RFC 2/2] Make guest cdrom empty after installation completes 2016-04-06 13:02 ` [PATCH OSSTEST RFC 2/2] Make guest cdrom empty after installation completes Wei Liu @ 2016-04-06 15:02 ` Ian Jackson 2016-04-06 15:06 ` Wei Liu 0 siblings, 1 reply; 6+ messages in thread From: Ian Jackson @ 2016-04-06 15:02 UTC (permalink / raw) To: Wei Liu; +Cc: George Dunlap, Xen-devel, Roger Pau Monné Wei Liu writes ("[PATCH OSSTEST RFC 2/2] Make guest cdrom empty after installation completes"): > Previously an iso image that contains nothing was inserted to cdrom > after guest installation had finished. > > With this patch we make cdrom really empty. This helps catch bug that > prevents booting hvm guest with empty cdrom drive. > > Remove empty iso image generate in ts-{debian-hvm,redhat}-install as > well. Acked-by: Ian Jackson <ian.jackson@eu.citrix.com> However, given the bugs currently being discussed, and the fact that we're currently in a pre-freeze crunch, I'm reluctant to push this to osstest staging right now. On any stable branches with empty cd bugs, it would immediately fail and cause blockages. I'd like to make this change during the 4.7 freeze period, after fixes for these bugs are available in staging. During the freeze the fixes can be backported to stable branches. Thanks, Ian. _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH OSSTEST RFC 2/2] Make guest cdrom empty after installation completes 2016-04-06 15:02 ` Ian Jackson @ 2016-04-06 15:06 ` Wei Liu 0 siblings, 0 replies; 6+ messages in thread From: Wei Liu @ 2016-04-06 15:06 UTC (permalink / raw) To: Ian Jackson; +Cc: George Dunlap, Xen-devel, Wei Liu, Roger Pau Monné On Wed, Apr 06, 2016 at 04:02:21PM +0100, Ian Jackson wrote: > Wei Liu writes ("[PATCH OSSTEST RFC 2/2] Make guest cdrom empty after installation completes"): > > Previously an iso image that contains nothing was inserted to cdrom > > after guest installation had finished. > > > > With this patch we make cdrom really empty. This helps catch bug that > > prevents booting hvm guest with empty cdrom drive. > > > > Remove empty iso image generate in ts-{debian-hvm,redhat}-install as > > well. > > Acked-by: Ian Jackson <ian.jackson@eu.citrix.com> > > However, given the bugs currently being discussed, and the fact that > we're currently in a pre-freeze crunch, I'm reluctant to push this to > osstest staging right now. > > On any stable branches with empty cd bugs, it would immediately fail > and cause blockages. > > I'd like to make this change during the 4.7 freeze period, after fixes > for these bugs are available in staging. During the freeze the fixes > can be backported to stable branches. > I agree. I stated more or less the same opinion in cover letter. :-) Wei. > Thanks, > Ian. _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel ^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2016-04-06 15:09 UTC | newest] Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2016-04-06 13:02 [PATCH OSSTEST RFC 0/2] Test booting hvm guest with empty cdrom drive Wei Liu 2016-04-06 13:02 ` [PATCH OSSTEST RFC 1/2] Testsupport: rename guest_editconfig_nocd to _postinstall Wei Liu 2016-04-06 14:59 ` Ian Jackson 2016-04-06 13:02 ` [PATCH OSSTEST RFC 2/2] Make guest cdrom empty after installation completes Wei Liu 2016-04-06 15:02 ` Ian Jackson 2016-04-06 15:06 ` Wei Liu
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).