https://progress.opensuse.org/https://progress.opensuse.org/themes/openSUSE/favicon/favicon.ico?15829177842018-03-12T13:20:38ZopenSUSE Project Management ToolopenQA Tests - action #33097: [functional][medium] tty login needles are matched prematurely, username typing gets lost (was: needle for "password-prompt" is incorrect, shows login-prompt instead)https://progress.opensuse.org/issues/33097?journal_id=1002132018-03-12T13:20:38Zrtsvetkovrtsvetkov@suse.com
<ul></ul><p>Also:</p>
<p><a href="https://openqa.suse.de/tests/1517681#" class="external">https://openqa.suse.de/tests/1517681#</a></p>
openQA Tests - action #33097: [functional][medium] tty login needles are matched prematurely, username typing gets lost (was: needle for "password-prompt" is incorrect, shows login-prompt instead)https://progress.opensuse.org/issues/33097?journal_id=1004052018-03-13T09:12:05Zokurzokurz@suse.com
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>In Progress</i></li><li><strong>Assignee</strong> set to <i>okurz</i></li></ul><p>Erroneous needles for password prompt have been deleted. Retriggering -> <a href="https://openqa.suse.de/tests/1537018" class="external">https://openqa.suse.de/tests/1537018</a></p>
openQA Tests - action #33097: [functional][medium] tty login needles are matched prematurely, username typing gets lost (was: needle for "password-prompt" is incorrect, shows login-prompt instead)https://progress.opensuse.org/issues/33097?journal_id=1004082018-03-13T09:12:45Zokurzokurz@suse.com
<ul><li><strong>Due date</strong> set to <i>2018-03-27</i></li><li><strong>Priority</strong> changed from <i>Normal</i> to <i>High</i></li><li><strong>Target version</strong> set to <i>Milestone 15</i></li></ul> openQA Tests - action #33097: [functional][medium] tty login needles are matched prematurely, username typing gets lost (was: needle for "password-prompt" is incorrect, shows login-prompt instead)https://progress.opensuse.org/issues/33097?journal_id=1005462018-03-13T10:27:03Zokurzokurz@suse.com
<ul></ul><p><a href="https://openqa.suse.de/tests/1537018#step/force_cron_run/3" class="external">https://openqa.suse.de/tests/1537018#step/force_cron_run/3</a> shows the current problem. The test module starts with the login prompt on <a href="https://openqa.suse.de/tests/1537018#step/force_cron_run/1" class="external">tty1</a>, then switches to <a href="https://openqa.suse.de/tests/1537018#step/force_cron_run/3" class="external">tty2</a> but fails to type the username "root". Need to check the logfile in detail.</p>
openQA Tests - action #33097: [functional][medium] tty login needles are matched prematurely, username typing gets lost (was: needle for "password-prompt" is incorrect, shows login-prompt instead)https://progress.opensuse.org/issues/33097?journal_id=1011042018-03-13T17:16:59Zokurzokurz@suse.com
<ul></ul><p>So apparently in <em>first_boot</em> the system looks for the login prompt on tty1. Why tty1 I don't know. In <em>force_cron_run</em> the first action done is <code>select_console 'root-console'</code> which triggers an assert_screen looking for "tty2-selected" - which would be fine - as well as "text-logged-in-root" - which should also be fine and does not apply here because the console is not logged in - and "text-login" which is most likely a problem because what is visible on screen is "tty1" which is detected over the tag "text-login" but the system did not yet switch to tty2. Then the switch to tty2 is triggered while the username "root" is typed which in consequence is lost. So maybe it is wrong to look for "text-login" and we should not do this. Let's check if I find from git log why we do this…</p>
openQA Tests - action #33097: [functional][medium] tty login needles are matched prematurely, username typing gets lost (was: needle for "password-prompt" is incorrect, shows login-prompt instead)https://progress.opensuse.org/issues/33097?journal_id=1011132018-03-13T17:35:39Zokurzokurz@suse.com
<ul></ul><p>I guess we are lucky.</p>
<p>commit aa9593ae<br>
Author: Oliver Kurz <a href="mailto:okurz@suse.de">okurz@suse.de</a><br>
Date: Thu Jul 21 14:23:19 2016 +0200</p>
<p>added the look for "tty$nr-selected" when in before we were just looking for "text-login" as a generic one.</p>
<p>Of course the needle "text-login-20140219" is used like everywhere, e.g. see <a href="https://openqa.suse.de/tests/1536747#step/consoletest_setup/2" class="external">https://openqa.suse.de/tests/1536747#step/consoletest_setup/2</a> where we see it being matched but we also have tty2-selected matching so maybe it is not that dramatic. Even more, for SLE15 it seems the old needle does not even match anymore after a console font change: <a href="https://openqa.suse.de/tests/1538565#step/keymap_or_locale/13" class="external">https://openqa.suse.de/tests/1538565#step/keymap_or_locale/13</a> so maybe about right to delete the old needles and do it properly with tty$nr-selected needles.</p>
<p>So I deleted the needles:</p>
<ul>
<li>text-login-20140219</li>
<li>text-login-20160416</li>
<li>text-login-eurlatgr-20180130</li>
</ul>
<p>and checked with <a href="https://openqa.suse.de/admin/needles" class="external">https://openqa.suse.de/admin/needles</a> that at least in each "last match" there is an alternative tty-specific needle match available.</p>
<p>but kept text-login-ipmitool-20170624 which seems to be only used for virtualization tests, e.g. <a href="https://openqa.suse.de/tests/1535048#step/reboot_and_wait_up_normal/5" class="external">https://openqa.suse.de/tests/1535048#step/reboot_and_wait_up_normal/5</a> . Seems like these tests just want to be special :)</p>
<p>-> <a href="https://gitlab.suse.de/openqa/os-autoinst-needles-sles/merge_requests/759" class="external">https://gitlab.suse.de/openqa/os-autoinst-needles-sles/merge_requests/759</a></p>
openQA Tests - action #33097: [functional][medium] tty login needles are matched prematurely, username typing gets lost (was: needle for "password-prompt" is incorrect, shows login-prompt instead)https://progress.opensuse.org/issues/33097?journal_id=1011162018-03-13T17:37:16Zokurzokurz@suse.com
<ul><li><strong>Subject</strong> changed from <i>[functional] needle for "password-prompt" is incorrect, shows login-prompt instead</i> to <i>[functional] tty login needles are matched prematurely, username typing gets lost (was: needle for "password-prompt" is incorrect, shows login-prompt instead)</i></li></ul> openQA Tests - action #33097: [functional][medium] tty login needles are matched prematurely, username typing gets lost (was: needle for "password-prompt" is incorrect, shows login-prompt instead)https://progress.opensuse.org/issues/33097?journal_id=1018992018-03-14T09:23:47Zokurzokurz@suse.com
<ul><li><strong>Has duplicate</strong> <i><a class="issue tracker-4 status-3 priority-4 priority-default closed" href="/issues/32890">action #32890</a>: [sle][functional][sporadic] test fails in consoletest_setup - password typed too soon</i> added</li></ul> openQA Tests - action #33097: [functional][medium] tty login needles are matched prematurely, username typing gets lost (was: needle for "password-prompt" is incorrect, shows login-prompt instead)https://progress.opensuse.org/issues/33097?journal_id=1019232018-03-14T09:27:41Zokurzokurz@suse.com
<ul><li><strong>Related to</strong> <i><a class="issue tracker-4 status-6 priority-4 priority-default closed" href="/issues/32584">action #32584</a>: [sle][functional] improve consoletest_setup stability (test fails in consoletest_setup - password is typed intead of user)</i> added</li></ul> openQA Tests - action #33097: [functional][medium] tty login needles are matched prematurely, username typing gets lost (was: needle for "password-prompt" is incorrect, shows login-prompt instead)https://progress.opensuse.org/issues/33097?journal_id=1019292018-03-14T09:28:07Zokurzokurz@suse.com
<ul><li><strong>Related to</strong> deleted (<i><a class="issue tracker-4 status-6 priority-4 priority-default closed" href="/issues/32584">action #32584</a>: [sle][functional] improve consoletest_setup stability (test fails in consoletest_setup - password is typed intead of user)</i>)</li></ul> openQA Tests - action #33097: [functional][medium] tty login needles are matched prematurely, username typing gets lost (was: needle for "password-prompt" is incorrect, shows login-prompt instead)https://progress.opensuse.org/issues/33097?journal_id=1019352018-03-14T09:28:12Zokurzokurz@suse.com
<ul><li><strong>Has duplicate</strong> <i><a class="issue tracker-4 status-6 priority-4 priority-default closed" href="/issues/32584">action #32584</a>: [sle][functional] improve consoletest_setup stability (test fails in consoletest_setup - password is typed intead of user)</i> added</li></ul> openQA Tests - action #33097: [functional][medium] tty login needles are matched prematurely, username typing gets lost (was: needle for "password-prompt" is incorrect, shows login-prompt instead)https://progress.opensuse.org/issues/33097?journal_id=1020312018-03-14T10:09:23Znicksingernsinger@suse.com
<ul><li><strong>Subject</strong> changed from <i>[functional] tty login needles are matched prematurely, username typing gets lost (was: needle for "password-prompt" is incorrect, shows login-prompt instead)</i> to <i>[functional][medium] tty login needles are matched prematurely, username typing gets lost (was: needle for "password-prompt" is incorrect, shows login-prompt instead)</i></li></ul> openQA Tests - action #33097: [functional][medium] tty login needles are matched prematurely, username typing gets lost (was: needle for "password-prompt" is incorrect, shows login-prompt instead)https://progress.opensuse.org/issues/33097?journal_id=1021932018-03-14T15:00:29Zokurzokurz@suse.com
<ul></ul><p>MR merged. <a href="https://openqa.suse.de/tests/1543334" class="external">https://openqa.suse.de/tests/1543334</a> triggered to check</p>
openQA Tests - action #33097: [functional][medium] tty login needles are matched prematurely, username typing gets lost (was: needle for "password-prompt" is incorrect, shows login-prompt instead)https://progress.opensuse.org/issues/33097?journal_id=1022982018-03-14T20:12:52Zokurzokurz@suse.com
<ul><li><strong>Status</strong> changed from <i>In Progress</i> to <i>Feedback</i></li></ul><p><a href="https://openqa.suse.de/tests/1543334#step/force_cron_run/1" class="external">https://openqa.suse.de/tests/1543334#step/force_cron_run/1</a> passed. Let's keep this open to wait if we broke something else.</p>
openQA Tests - action #33097: [functional][medium] tty login needles are matched prematurely, username typing gets lost (was: needle for "password-prompt" is incorrect, shows login-prompt instead)https://progress.opensuse.org/issues/33097?journal_id=1024602018-03-15T11:10:34Zokurzokurz@suse.com
<ul><li><strong>Status</strong> changed from <i>Feedback</i> to <i>In Progress</i></li></ul><p>seems I have broken migration tests where tty6 must be matched by tty2 is expected by needles -> <a href="https://openqa.suse.de/tests/1545352#step/patch_before_migration/2" class="external">https://openqa.suse.de/tests/1545352#step/patch_before_migration/2</a> I created a new needle "tty2-selected-tty6_fallback_for_migration-poo33097-20180315" as workaround. Triggered test as <a href="https://openqa.suse.de/tests/1546883#live" class="external">https://openqa.suse.de/tests/1546883#live</a> to check</p>
<p>Also, qam tests broken, e.g. <a href="https://openqa.suse.de/tests/1544823#step/consoletest_setup/40" class="external">https://openqa.suse.de/tests/1544823#step/consoletest_setup/40</a> , created new needle, triggered <a href="https://openqa.suse.de/tests/1546884#live" class="external">https://openqa.suse.de/tests/1546884#live</a> to check. Also restarted others</p>
openQA Tests - action #33097: [functional][medium] tty login needles are matched prematurely, username typing gets lost (was: needle for "password-prompt" is incorrect, shows login-prompt instead)https://progress.opensuse.org/issues/33097?journal_id=1027542018-03-15T20:43:37Zokurzokurz@suse.com
<ul><li><strong>Related to</strong> <i><a class="issue tracker-4 status-3 priority-6 priority-high2 closed" href="/issues/33307">action #33307</a>: [qam]test fails in kernel_kexec assuming tty2 but showing tty1, probably `select_console` keypresses got lost</i> added</li></ul> openQA Tests - action #33097: [functional][medium] tty login needles are matched prematurely, username typing gets lost (was: needle for "password-prompt" is incorrect, shows login-prompt instead)https://progress.opensuse.org/issues/33097?journal_id=1027602018-03-15T20:44:53Zokurzokurz@suse.com
<ul></ul><p>I was monitoring about 100 jobs today, all QAM jobs failing in consoletest_setup, keymap_or_locale as well as kernel_kexec which was also failing as a consequence of me removing a needle which I worked around with a corresponding needle. The proper fix would need to go into <a class="issue tracker-4 status-3 priority-6 priority-high2 closed" title="action: [qam]test fails in kernel_kexec assuming tty2 but showing tty1, probably `select_console` keypres... (Resolved)" href="https://progress.opensuse.org/issues/33307">#33307</a> . <a href="https://openqa.suse.de/tests/1546885" class="external">https://openqa.suse.de/tests/1546885</a> is one example of a fixed job. I am still waiting for about 15 jobs to execute (waiting scheduled for about 12h now) which should finish over night.</p>
openQA Tests - action #33097: [functional][medium] tty login needles are matched prematurely, username typing gets lost (was: needle for "password-prompt" is incorrect, shows login-prompt instead)https://progress.opensuse.org/issues/33097?journal_id=1027902018-03-16T03:06:07Zqmsuqingming.su@suse.com
<ul></ul><p>okurz wrote:</p>
<blockquote>
<p>seems I have broken migration tests where tty6 must be matched by tty2 is expected by needles -> <a href="https://openqa.suse.de/tests/1545352#step/patch_before_migration/2" class="external">https://openqa.suse.de/tests/1545352#step/patch_before_migration/2</a> I created a new needle "tty2-selected-tty6_fallback_for_migration-poo33097-20180315" as workaround. Triggered test as <a href="https://openqa.suse.de/tests/1546883#live" class="external">https://openqa.suse.de/tests/1546883#live</a> to check</p>
<p>Also, qam tests broken, e.g. <a href="https://openqa.suse.de/tests/1544823#step/consoletest_setup/40" class="external">https://openqa.suse.de/tests/1544823#step/consoletest_setup/40</a> , created new needle, triggered <a href="https://openqa.suse.de/tests/1546884#live" class="external">https://openqa.suse.de/tests/1546884#live</a> to check. Also restarted others</p>
</blockquote>
<p>It works for migration tests now, thanks for your help.</p>
openQA Tests - action #33097: [functional][medium] tty login needles are matched prematurely, username typing gets lost (was: needle for "password-prompt" is incorrect, shows login-prompt instead)https://progress.opensuse.org/issues/33097?journal_id=1028652018-03-16T07:23:46Zokurzokurz@suse.com
<ul><li><strong>Status</strong> changed from <i>In Progress</i> to <i>Resolved</i></li></ul><p>All jobs I had still open are fine now as well.</p>