Bug 10514

Summary: test_parselogs on genericx86-lsb minnow board max 32 FAILED LOGIN (1) on '/dev/tty1' FOR 'UNKNOWN', Authentication failure
Product: [Build System, Metadata & Runtime] BSPs Reporter: Francisco Pedraza <francisco.j.pedraza.gonzalez>
Component: bsps-runtimeAssignee: David Lopez Barriba <davidx.lopez.barriba>
Status: VERIFIED INVALID QA Contact: Francisco Pedraza <francisco.j.pedraza.gonzalez>
Severity: normal    
Priority: Medium CC: davidx.lopez.barriba, jose.perez.carranza, sgw, sonia.delgado, yp.kernel.watcher, yp.watcher
Version: 2.2   
Target Milestone: 2.3   
Hardware: MinnowBoard Max   
OS: x86   
URL: http://autobuilder.yoctoproject.org/pub/releases/yocto-2.2.rc6/machines/genericx86-lsb/core-image-lsb-sdk-genericx86.hddimg
Whiteboard: possible 2.2.1
OS type for building Yocto: --- Type of Regression: Regression (Found by QA test)
Verified: Documentation change: No (bug/feature does not impact docs)
Attachments:
Description Flags
log.do_testimage_parselogs
none
Log none

Description Francisco Pedraza 2016-10-27 23:40:55 UTC
Created attachment 3510 [details]
log.do_testimage_parselogs

STATUS: FAILED
BUILD: 2.2 rc6: dc8508f609974cc99606b9042bfa7f870ce80228
ENVIRONMENT: genericx86-lsb on MMAX32bit
PRECONDITION: 
1. Clone poky
2. Configure local.conf
INHERIT += "testimage"
TEST_TARGET = "simpleremote"
TEST_TARGET_IP = "DUT IP"
TEST_SERVER_IP = "Workstation IP"

MACHINE = "genericx86"
DISTRO = "poky-lsb"

3. Configure bblayer
include "meta-selftest" on layers.

4. Make a source 

5. Build the image
$ bitbake core-image-lsb-sdk 


STEPS TO REPRODUCE: 
Once you have completed the precondition phase
From terminal
1. $ bitbake rpm plsplash
2. $ bitbake package-index
3. $ bitbake core-image-lsb-sdk -c testimage



EXPECTED OUTCOME: 
  
 No errors or fails should be present in logs

ACTUAL OUTCOME: 
The following error message was displayed
Central error: Oct 26 13:23:36 genericx86 login[794]: FAILED LOGIN (1) on '/dev/tty1' FOR 'UNKNOWN', Authentication failure
***********************
217 Oct 26 13:23:34 genericx86 login[794]: pam_unix(login:auth): check pass; user unknown
218 Oct 26 13:23:34 genericx86 login[794]: pam_unix(login:auth): authentication failure; logname=LOGIN uid=0 euid=0 tty=/dev/tty1 ruser= rhost=
219 Oct 26 13:23:36 genericx86 login[794]: FAILED LOGIN (1) on '/dev/tty1' FOR 'UNKNOWN', Authentication failure
220 Oct 26 13:23:37 genericx86 login[794]: pam_unix(login:session): session opened for user root by LOGIN(uid=0)
221 Oct 26 13:23:37 genericx86 login[798]: ROOT LOGIN  on '/dev/tty1'
222 Oct 26 13:27:36 genericx86 sshd[803]: Accepted none for root from 10.219.128.64 port 39182 ssh2
223 Oct 26 13:27:36 genericx86 sshd[803]: pam_unix(sshd:session): session opened for user root by (uid=0)
224 Oct 26 13:27:36 genericx86 sshd[803]: Received disconnect from 10.219.128.64 port 39182:11: disconnected by user
225 Oct 26 13:27:36 genericx86 sshd[803]: Disconnected from 10.219.128.64 port 39182
226 Oct 26 13:27:36 genericx86 sshd[803]: pam_unix(sshd:session): session closed for user root
227 Oct 26 13:27:36 genericx86 sshd[808]: Accepted none for root from 10.219.128.64 port 39184 ssh2
228 Oct 26 13:27:36 genericx86 sshd[808]: pam_unix(sshd:session): session opened for user root by (uid=0)
229 Oct 26 13:27:36 genericx86 sshd[808]: Received disconnect from 10.219.128.64 port 39184:11: disconnected by user


NOTE: Attached you can find logs.
Comment 1 Francisco Pedraza 2016-10-27 23:45:49 UTC
You can find the build image here: http://autobuilder.yoctoproject.org/pub/releases/yocto-2.2.rc6/machines/genericx86-lsb/core-image-lsb-sdk-genericx86.hddimg

I executed 4 times, failed 4/4.
Comment 2 Francisco Pedraza 2016-11-24 00:51:19 UTC
I just retested again:
with dc8508f609974cc99606b9042bfa7f870ce80228
and compiled image:
Getting good results, I am going to close this one as invalid.

NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
core-image-lsb-sdk-1.0-r0 do_testimage: test_ping (oeqa.runtime.ping.PingTest) ... ok
core-image-lsb-sdk-1.0-r0 do_testimage: test_syslog_running (oeqa.runtime.syslog.SyslogTest) ... ok
core-image-lsb-sdk-1.0-r0 do_testimage: test_syslog_logger (oeqa.runtime.syslog.SyslogTestConfig) ... ok
core-image-lsb-sdk-1.0-r0 do_testimage: test_syslog_restart (oeqa.runtime.syslog.SyslogTestConfig) ... ok
core-image-lsb-sdk-1.0-r0 do_testimage: test_syslog_startup_config (oeqa.runtime.syslog.SyslogTestConfig) ... skipped 'Non-busybox syslog'
core-image-lsb-sdk-1.0-r0 do_testimage: test_gcc_compile (oeqa.runtime.gcc.GccCompileTest) ... ok
core-image-lsb-sdk-1.0-r0 do_testimage: test_gpp2_compile (oeqa.runtime.gcc.GccCompileTest) ... ok
core-image-lsb-sdk-1.0-r0 do_testimage: test_gpp_compile (oeqa.runtime.gcc.GccCompileTest) ... ok
core-image-lsb-sdk-1.0-r0 do_testimage: test_make (oeqa.runtime.gcc.GccCompileTest) ... ok
core-image-lsb-sdk-1.0-r0 do_testimage: test_perl_exists (oeqa.runtime.perl.PerlTest) ... ok
core-image-lsb-sdk-1.0-r0 do_testimage: test_perl_works (oeqa.runtime.perl.PerlTest) ... ok
core-image-lsb-sdk-1.0-r0 do_testimage: test_python_exists (oeqa.runtime.python.PythonTest) ... ok
core-image-lsb-sdk-1.0-r0 do_testimage: test_python_stdout (oeqa.runtime.python.PythonTest) ... ok
core-image-lsb-sdk-1.0-r0 do_testimage: test_python_testfile (oeqa.runtime.python.PythonTest) ... ok
core-image-lsb-sdk-1.0-r0 do_testimage: test_ssh (oeqa.runtime.ssh.SshTest) ... ok
core-image-lsb-sdk-1.0-r0 do_testimage: test_df (oeqa.runtime.df.DfTest) ... ok
core-image-lsb-sdk-1.0-r0 do_testimage: test_date (oeqa.runtime.date.DateTest) ... ok
core-image-lsb-sdk-1.0-r0 do_testimage: test_scp_file (oeqa.runtime.scp.ScpTest) ... ok
core-image-lsb-sdk-1.0-r0 do_testimage: test_cvs (oeqa.runtime.buildcvs.BuildCvsTest) ... ok
core-image-lsb-sdk-1.0-r0 do_testimage: test_iptables (oeqa.runtime.buildiptables.BuildIptablesTest) ... ok
core-image-lsb-sdk-1.0-r0 do_testimage: test_galculator (oeqa.runtime.buildgalculator.GalculatorTest) ... ok
core-image-lsb-sdk-1.0-r0 do_testimage: test_connmand_help (oeqa.runtime.connman.ConnmanTest) ... ok
core-image-lsb-sdk-1.0-r0 do_testimage: test_connmand_running (oeqa.runtime.connman.ConnmanTest) ... ok
core-image-lsb-sdk-1.0-r0 do_testimage: test_kernel_module (oeqa.runtime.kernelmodule.KernelModuleTest) ... ok
core-image-lsb-sdk-1.0-r0 do_testimage: test_ldd_exists (oeqa.runtime.ldd.LddTest) ... ok
core-image-lsb-sdk-1.0-r0 do_testimage: test_ldd_rtldlist_check (oeqa.runtime.ldd.LddTest) ... ok
core-image-lsb-sdk-1.0-r0 do_testimage: test_pam (oeqa.runtime.pam.PamBasicTest) ... ok
core-image-lsb-sdk-1.0-r0 do_testimage: test_parselogs (oeqa.runtime.parselogs.ParseLogsTest) ... ok
core-image-lsb-sdk-1.0-r0 do_testimage: test_smart_help (oeqa.runtime.smart.SmartBasicTest) ... ok
core-image-lsb-sdk-1.0-r0 do_testimage: test_smart_info (oeqa.runtime.smart.SmartBasicTest) ... ok
core-image-lsb-sdk-1.0-r0 do_testimage: test_smart_query (oeqa.runtime.smart.SmartBasicTest) ... ok
core-image-lsb-sdk-1.0-r0 do_testimage: test_smart_search (oeqa.runtime.smart.SmartBasicTest) ... ok
core-image-lsb-sdk-1.0-r0 do_testimage: test_smart_stats (oeqa.runtime.smart.SmartBasicTest) ... ok
core-image-lsb-sdk-1.0-r0 do_testimage: test_smart_version (oeqa.runtime.smart.SmartBasicTest) ... ok
core-image-lsb-sdk-1.0-r0 do_testimage: test_smart_add_rpmdir (oeqa.runtime.smart.SmartRepoTest) ... ok
core-image-lsb-sdk-1.0-r0 do_testimage: test_smart_channel (oeqa.runtime.smart.SmartRepoTest) ... ok
core-image-lsb-sdk-1.0-r0 do_testimage: test_smart_channel_add (oeqa.runtime.smart.SmartRepoTest) ... ok
core-image-lsb-sdk-1.0-r0 do_testimage: test_smart_channel_help (oeqa.runtime.smart.SmartRepoTest) ... ok
core-image-lsb-sdk-1.0-r0 do_testimage: test_smart_channel_list (oeqa.runtime.smart.SmartRepoTest) ... ok
core-image-lsb-sdk-1.0-r0 do_testimage: test_smart_channel_rpmsys (oeqa.runtime.smart.SmartRepoTest) ... ok
core-image-lsb-sdk-1.0-r0 do_testimage: test_smart_channel_show (oeqa.runtime.smart.SmartRepoTest) ... ok
core-image-lsb-sdk-1.0-r0 do_testimage: test_smart_install (oeqa.runtime.smart.SmartRepoTest) ... ok
core-image-lsb-sdk-1.0-r0 do_testimage: test_smart_install_dependency (oeqa.runtime.smart.SmartRepoTest) ... ok
core-image-lsb-sdk-1.0-r0 do_testimage: test_smart_install_from_disk (oeqa.runtime.smart.SmartRepoTest) ... ok
core-image-lsb-sdk-1.0-r0 do_testimage: test_smart_install_from_http (oeqa.runtime.smart.SmartRepoTest) ... ok
core-image-lsb-sdk-1.0-r0 do_testimage: test_smart_local_dir (oeqa.runtime.smart.SmartRepoTest) ... ok
core-image-lsb-sdk-1.0-r0 do_testimage: test_smart_reinstall (oeqa.runtime.smart.SmartRepoTest) ... ok
core-image-lsb-sdk-1.0-r0 do_testimage: test_smart_remote_repo (oeqa.runtime.smart.SmartRepoTest) ... ok
core-image-lsb-sdk-1.0-r0 do_testimage: test_smart_remove_package (oeqa.runtime.smart.SmartRepoTest) ... ok
core-image-lsb-sdk-1.0-r0 do_testimage: test_rpm_help (oeqa.runtime.rpm.RpmBasicTest) ... ok
core-image-lsb-sdk-1.0-r0 do_testimage: test_rpm_query (oeqa.runtime.rpm.RpmBasicTest) ... ok
core-image-lsb-sdk-1.0-r0 do_testimage: test_check_rpm_install_removal_log_file_size (oeqa.runtime.rpm.RpmInstallRemoveTest) ... ok
core-image-lsb-sdk-1.0-r0 do_testimage: test_rpm_install (oeqa.runtime.rpm.RpmInstallRemoveTest) ... ok
core-image-lsb-sdk-1.0-r0 do_testimage: test_rpm_query_nonroot (oeqa.runtime.rpm.RpmInstallRemoveTest) ... ok
core-image-lsb-sdk-1.0-r0 do_testimage: test_rpm_remove (oeqa.runtime.rpm.RpmInstallRemoveTest) ... ok
core-image-lsb-sdk-1.0-r0 do_testimage: 
core-image-lsb-sdk-1.0-r0 do_testimage: ----------------------------------------------------------------------
core-image-lsb-sdk-1.0-r0 do_testimage: Ran 55 tests in 671.068s
core-image-lsb-sdk-1.0-r0 do_testimage: 
core-image-lsb-sdk-1.0-r0 do_testimage: OK (skipped=1)
core-image-lsb-sdk-1.0-r0 do_testimage: core-image-lsb-sdk - Ran 55 tests in 671.069s
core-image-lsb-sdk-1.0-r0 do_testimage: core-image-lsb-sdk - OK - All required tests passed (skipped=1)
NOTE: Tasks Summary: Attempted 253 tasks of which 252 didn't need to be rerun and all succeeded.
Comment 3 David Lopez Barriba 2017-04-11 19:24:06 UTC
I found it again on 
BUILD: 2.3 M3: meta-intel-rc1-eff56e4f0d59b1d965a68e4f009b7f07717b7edd
ENVIRONMENT: corei7-64_lsb_MMAX64

See the attached Log
Comment 4 David Lopez Barriba 2017-04-11 19:25:29 UTC
Created attachment 3711 [details]
Log
Comment 5 Saul Wold 2017-04-26 15:26:48 UTC
This really looks like a test setup issue, possibly some bad login attempt while initializing the console login during testing, this does not appear to be a kernel failure or message generated from the kernel, this is a failed login attempt on tty1 (qemu console).
Comment 6 Sonia Delgado 2017-05-08 20:38:07 UTC
David please review and set the status accordingly
Comment 7 Sonia Delgado 2017-05-08 20:38:44 UTC
David please review and set the status accordingly
Comment 8 David Lopez Barriba 2017-05-08 20:58:56 UTC
I retested with 381897c64069ea43d595380a3ae913bcc79cf7e1
And works OK, I'm going to change this as Invalid
Comment 9 David Lopez Barriba 2017-05-08 21:00:03 UTC
(In reply to comment #7)
> David please review and set the status accordingly

Sure
Comment 10 David Lopez Barriba 2017-05-08 21:01:07 UTC
Verified with 381897c64069ea43d595380a3ae913bcc79cf7e1