Project

General

Profile

Actions

action #46574

closed

[sle][migration][sle15sp1]test fails in sshd -Login incorrect

Added by coolgw about 5 years ago. Updated almost 5 years ago.

Status:
Rejected
Priority:
Normal
Assignee:
Category:
Bugs in existing tests
Target version:
-
Start date:
2019-01-24
Due date:
% Done:

100%

Estimated time:
40.00 h
Difficulty:
medium

Description

Observation

openQA test in scenario OpenQA::Schema::Result::TestSuites=HASH(0xa297e98) fails in
sshd

Reproducible

Fails since (at least) Build 125.1

Expected result

Last good: (unknown) (or more recent)

Further details

Always latest result in this scenario: latest

Actions #1

Updated by coolgw about 5 years ago

  • Assignee set to coolgw
Actions #3

Updated by okurz about 5 years ago

This is an autogenerated message for openQA integration by the openqa_review script:

This bug is still referenced in a failing openQA test: offline_sles11sp4_media_ha+geo_sdk_all
https://openqa.suse.de/tests/2447650

Actions #4

Updated by coolgw about 5 years ago

After code check and compare with the log, i suspect retype user name will get the promot, we need give a try, first try to reproduce in local env.

os-autoinst-distri-opensuse/lib/opensusebasetest.pm:654:sub select_serial_terminal {
select_console($console); console= root-virtio-terminal
serial_terminal::login($user, $self->{serial_term_prompt}); <===activate_console

./os-autoinst-distri-opensuse/lib/serial_terminal.pm

sub login {
die 'Login expects two arguments' unless @_ == 2;
my $user = shift;
my $escseq = qr/(\e [([] [\d\w]{1,2})/x;
my $pass_prompt = get_var('JEOSINSTLANG') =~ 'DE' ? 'Passwort:' : 'Password:';

 $serial_term_prompt = shift;

 bmwqemu::log_call;

 # newline nudges the guest to display the login prompt, if this behaviour
 # changes then remove it
 type_string("\n");
 wait_serial(qr/login:\s*$/i);
 type_string("$user\n");             <===
 wait_serial(qr/$pass_prompt\s*$/i);    <====
 type_password;
 type_string("\n");
 wait_serial(qr/$escseq* \w+:~\s\# $escseq* \s*$/x);
 type_string(qq/PS1="$serial_term_prompt"\n/);
 wait_serial(qr/PS1="$serial_term_prompt"/);
 # TODO: Send 'tput rmam' instead/also
 assert_script_run('export TERM=dumb; stty cols 2048');
 assert_script_run('echo Logged into $(tty)', $bmwqemu::default_timeout, result_title => 'vconsole_login');

}

Actions #5

Updated by coolgw about 5 years ago

  • Status changed from New to In Progress
  • % Done changed from 0 to 10
  • Estimated time set to 40.00 h
  • Difficulty set to medium
Actions #6

Updated by coolgw about 5 years ago

try run 3 times on openqa
linux-4360:/home/suse/test #
linux-4360:/home/suse/test # /usr/share/openqa/script/clone_job.pl --from http://openqa.suse.de --host http://openqa.suse.de 2493354 --skip-download _GROUP=0 BUILD=188.1 ISO=SLE-15-SP1-Installer-DVD-x86_64-Build188.1-Media1.iso ISO_1=SLE-15-SP1-Packages-x86_64-Build188.1-Media1.iso
Created job #2538626: sle-15-SP1-Installer-DVD-POST-x86_64-Build175.4-offline_sles11sp4_media_ha+geo_sdk_all@64bit -> http://openqa.suse.de/t2538626
linux-4360:/home/suse/test #
linux-4360:/home/suse/test #
linux-4360:/home/suse/test # /usr/share/openqa/script/clone_job.pl --from http://openqa.suse.de --host http://openqa.suse.de 2493354 --skip-download _GROUP=0 BUILD=188.1 ISO=SLE-15-SP1-Installer-DVD-x86_64-Build188.1-Media1.iso ISO_1=SLE-15-SP1-Packages-x86_64-Build188.1-Media1.iso
Created job #2538627: sle-15-SP1-Installer-DVD-POST-x86_64-Build175.4-offline_sles11sp4_media_ha+geo_sdk_all@64bit -> http://openqa.suse.de/t2538627
linux-4360:/home/suse/test #
linux-4360:/home/suse/test #
linux-4360:/home/suse/test # /usr/share/openqa/script/clone_job.pl --from http://openqa.suse.de --host http://openqa.suse.de 2493354 --skip-download _GROUP=0 BUILD=188.1 ISO=SLE-15-SP1-Installer-DVD-x86_64-Build188.1-Media1.iso ISO_1=SLE-15-SP1-Packages-x86_64-Build188.1-Media1.iso
Created job #2538628: sle-15-SP1-Installer-DVD-POST-x86_64-Build175.4-offline_sles11sp4_media_ha+geo_sdk_all@64bit -> http://openqa.suse.de/t2538628

Actions #7

Updated by coolgw about 5 years ago

  • Assignee changed from coolgw to hjluo
Actions #8

Updated by hjluo almost 5 years ago

  • % Done changed from 10 to 30

still hit this issue in the milestone test: https://openqa.suse.de/tests/2816267

Actions #9

Updated by hjluo almost 5 years ago

  • Status changed from In Progress to Rejected
  • % Done changed from 30 to 100

After check the issue we found that it failed at select_serial_terminal() it send the password as the login ID.
there was a ticket #44888 for this a long time ago. it just hit the s390 but we hit on the x64.
so we'd use that ticket to track it.

And this issue have been fixed and merged in the the gate https://github.com/os-autoinst/os-autoinst-distri-opensuse/pull/6360.
but from the conversation it shows the fix still not works and they are still trying to find ways to tack it.

So we'd close this ticket as resolved.

Actions #10

Updated by okurz almost 5 years ago

This is an autogenerated message for openQA integration by the openqa_review script:

This bug is still referenced in a failing openQA test: offline_sles11sp4_media_ha+geo_sdk_all
https://openqa.suse.de/tests/2816267

Actions

Also available in: Atom PDF