https://progress.opensuse.org/https://progress.opensuse.org/themes/openSUSE/favicon/favicon.ico?15829177842021-02-24T07:50:12ZopenSUSE Project Management ToolopenQA Tests - action #89041: [sle][sle15sp4][s390x][zkvm] "reconnect_mgmt_console" after rebooting the vm didn't work as expectedhttps://progress.opensuse.org/issues/89041?journal_id=3852222021-02-24T07:50:12Zrfan1richard.fan@suse.com
<ul></ul><p>Please refer to <a href="https://github.com/os-autoinst/os-autoinst-distri-opensuse/pull/12011#discussion_r580936548" class="external">https://github.com/os-autoinst/os-autoinst-distri-opensuse/pull/12011#discussion_r580936548</a> for the background.<br>
The issue can only be seen on s390x platform now,create this poo to track.</p>
<p>During my test, I found some abnormal issue with the below openqa code:</p>
<pre><code> power_action("reboot", textmode => 1);
reconnect_mgmt_console;
$self->wait_boot(textmode => 1, bootloader_time => 400, ready_time => 600);
$self->select_serial_terminal;
</code></pre>
<p>It seems that there are duplicated checking point on "grub" and "host login". </p>
<p>I did a try with the following code changes for "lib/utils", it can work now: <a href="https://openqa.suse.de/tests/5519541" class="external">https://openqa.suse.de/tests/5519541</a><br>
However, we have to do enough tests to make sure the changes are safe.</p>
<pre><code>diff --git a/lib/utils.pm b/lib/utils.pm
index 4beaa1e8e..25bee9477 100644
--- a/lib/utils.pm
+++ b/lib/utils.pm
@@ -1372,9 +1372,11 @@ sub reconnect_mgmt_console {
diag 'Could not find boot selection, continuing nevertheless, trying to boot';
type_line_svirt '';
}
- wait_serial('GNU GRUB', $args{grub_timeout}) ||
- diag 'Could not find GRUB screen, continuing nevertheless, trying to boot';
- type_line_svirt '', expect => $login_ready, timeout => $args{timeout}, fail_message => 'Could not find login prompt';
+ if (check_var('UPGRADE', '1') || check_var('INSTALLONLY', '1')) {
+ wait_serial('GNU GRUB', $args{grub_timeout}) ||
+ diag 'Could not find GRUB screen, continuing nevertheless, trying to boot';
+ type_line_svirt '', expect => $login_ready, timeout => $args{timeout}, fail_message => 'Could not find login prompt';
+ }
}
}
</code></pre>
<p>Thanks to Lemon and Yutao' suggestion:<br>
(check_var('UPGRADE', '1') || check_var('INSTALLONLY', '1')) => if (is_upgrade || check_var('INSTALLONLY', '1'))</p>
openQA Tests - action #89041: [sle][sle15sp4][s390x][zkvm] "reconnect_mgmt_console" after rebooting the vm didn't work as expectedhttps://progress.opensuse.org/issues/89041?journal_id=3859512021-02-26T07:05:38Zrfan1richard.fan@suse.com
<ul></ul><p>I can find the below cases are using this function<br>
#:~/data/os-autoinst-distri-opensuse/tests # find . -type f |xargs egrep reconnect_mgmt_console|grep -v is_pvm<br>
./autoyast/installation.pm: reconnect_mgmt_console(timeout => 500, grub_timeout => 180);<br>
./autoyast/installation.pm: reconnect_mgmt_console(timeout => 500);<br>
./boot/reconnect_mgmt_console.pm:use utils 'reconnect_mgmt_console';<br>
./boot/reconnect_mgmt_console.pm: reconnect_mgmt_console;<br>
./boot/grub_test_snapshot.pm:use utils qw(workaround_type_encrypted_passphrase reconnect_mgmt_console);<br>
./migration/version_switch_upgrade_target.pm: reconnect_mgmt_console;</p>
<p>@Rodion Iafarov, Can I ask for your kindly help to double check this?</p>
openQA Tests - action #89041: [sle][sle15sp4][s390x][zkvm] "reconnect_mgmt_console" after rebooting the vm didn't work as expectedhttps://progress.opensuse.org/issues/89041?journal_id=3859572021-02-26T07:16:51Zrfan1richard.fan@suse.com
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>Workable</i></li></ul> openQA Tests - action #89041: [sle][sle15sp4][s390x][zkvm] "reconnect_mgmt_console" after rebooting the vm didn't work as expectedhttps://progress.opensuse.org/issues/89041?journal_id=3862482021-03-01T06:46:10Zrfan1richard.fan@suse.com
<ul></ul><p><a href="https://github.com/os-autoinst/os-autoinst-distri-opensuse/compare/master...rfan1:recon_mgmt_console?expand=1" class="external">https://github.com/os-autoinst/os-autoinst-distri-opensuse/compare/master...rfan1:recon_mgmt_console?expand=1</a></p>
openQA Tests - action #89041: [sle][sle15sp4][s390x][zkvm] "reconnect_mgmt_console" after rebooting the vm didn't work as expectedhttps://progress.opensuse.org/issues/89041?journal_id=3868362021-03-02T09:58:07Zrfan1richard.fan@suse.com
<ul></ul><p>Will try to schedule some tests</p>
openQA Tests - action #89041: [sle][sle15sp4][s390x][zkvm] "reconnect_mgmt_console" after rebooting the vm didn't work as expectedhttps://progress.opensuse.org/issues/89041?journal_id=4097122021-05-24T06:12:53Zrfan1richard.fan@suse.com
<ul><li><strong>Subject</strong> changed from <i>[sle][sle15sp3][s390x][zkvm] "reconnect_mgmt_console" after rebooting the vm didn't work as expected</i> to <i>[sle][sle15sp4][s390x][zkvm] "reconnect_mgmt_console" after rebooting the vm didn't work as expected</i></li></ul> openQA Tests - action #89041: [sle][sle15sp4][s390x][zkvm] "reconnect_mgmt_console" after rebooting the vm didn't work as expectedhttps://progress.opensuse.org/issues/89041?journal_id=4854302022-01-30T05:03:05Zrfan1richard.fan@suse.com
<ul><li><strong>Status</strong> changed from <i>Workable</i> to <i>Resolved</i></li><li><strong>% Done</strong> changed from <i>0</i> to <i>100</i></li></ul><p>The issue is not seen and we don't need reconnect it any more on the platform other then powervm<br>
reconnect_mgmt_console if is_pvm;</p>