Bug 9776

Summary: RPM/SMART fail on qemuarm
Product: [Build System, Metadata & Runtime] BSPs Reporter: Alexandru Roman <alexandru.costinx.roman>
Component: bsps-meta-yoctoAssignee: Ross Burton <ross.burton>
Status: VERIFIED DUPLICATE QA Contact:
Severity: normal    
Priority: Medium+ CC: jose.perez.carranza, randy.macleod, richard.purdie, sgw
Version: 2.0   
Target Milestone: 2.2 M3   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: Regression (Used to work)
Verified: Documentation change: No (bug/feature does not impact docs)
Attachments:
Description Flags
results-log none

Description Alexandru Roman 2016-06-15 07:17:41 UTC
Created attachment 3236 [details]
results-log

Appears on master: 6c5d7f1fb276cbe0a461ece6c8f0ca17a478fa8c

When testing qemuarm 2 tests: smart and rpm fail with this error:

FAIL: test_smart_add_rpmdir (oeqa.runtime.smart.SmartRepoTest)
| ----------------------------------------------------------------------
| Traceback (most recent call last):
|   File "/home/romanalx/master2.2/poky/meta/lib/oeqa/utils/decorators.py", line 109, in wrapped_f
|     return func(*args, **kwargs)
|   File "/home/romanalx/master2.2/poky/meta/lib/oeqa/runtime/smart.py", line 161, in test_smart_add_rpmdir
|     self.smart('channel --add myrpmdir type=rpm-dir path=/tmp/myrpmdir -y')
|   File "/home/romanalx/master2.2/poky/meta/lib/oeqa/utils/decorators.py", line 97, in wrapped_f
|     return f(*args, **kwargs)
|   File "/home/romanalx/master2.2/poky/meta/lib/oeqa/runtime/smart.py", line 22, in smart
|     self.assertEqual(status, expected, message)
| AssertionError: 1 != 0 : smart channel --add myrpmdir type=rpm-dir path=/tmp/myrpmdir -y
| Channel alias 'myrpmdir' is already in use.
| Channel alias: Traceback (most recent call last):
|   File "/usr/bin/smart", line 200, in <module>
|     main(sys.argv[1:])
|   File "/usr/bin/smart", line 173, in main
|     exitcode = iface.run(opts.command, opts.argv)
|   File "/usr/lib/python2.7/site-packages/smart/interface.py", line 53, in run
|     result = _command.main(self._ctrl, opts)
|   File "/usr/lib/python2.7/site-packages/smart/commands/channel.py", line 247, in main
|     alias = raw_input(_("Channel alias: ")).strip()
|   File "/usr/lib/python2.7/site-packages/smart/__init__.py", line 72, in raw_input
|     res = _raw_input(prompt)
| EOFError: EOF when reading a line
| 
| ======================================================================
| FAIL: test_smart_local_dir (oeqa.runtime.smart.SmartRepoTest)
| ----------------------------------------------------------------------
| Traceback (most recent call last):
|   File "/home/romanalx/master2.2/poky/meta/lib/oeqa/utils/decorators.py", line 109, in wrapped_f
|     return func(*args, **kwargs)
|   File "/home/romanalx/master2.2/poky/meta/lib/oeqa/runtime/smart.py", line 143, in test_smart_local_dir
|     self.smart('channel --add myrpmdir type=rpm-dir path=/tmp/myrpmdir -y')
|   File "/home/romanalx/master2.2/poky/meta/lib/oeqa/utils/decorators.py", line 97, in wrapped_f
|     return f(*args, **kwargs)
|   File "/home/romanalx/master2.2/poky/meta/lib/oeqa/runtime/smart.py", line 22, in smart
|     self.assertEqual(status, expected, message)
| AssertionError: 1 != 0 : smart channel --add myrpmdir type=rpm-dir path=/tmp/myrpmdir -y
| Channel alias 'myrpmdir' is already in use.
| Channel alias: Traceback (most recent call last):
|   File "/usr/bin/smart", line 200, in <module>
|     main(sys.argv[1:])
|   File "/usr/bin/smart", line 173, in main
|     exitcode = iface.run(opts.command, opts.argv)
|   File "/usr/lib/python2.7/site-packages/smart/interface.py", line 53, in run
|     result = _command.main(self._ctrl, opts)
|   File "/usr/lib/python2.7/site-packages/smart/commands/channel.py", line 247, in main
|     alias = raw_input(_("Channel alias: ")).strip()
|   File "/usr/lib/python2.7/site-packages/smart/__init__.py", line 72, in raw_input
|     res = _raw_input(prompt)
| EOFError: EOF when reading a line


I'm mentioning this happens only on qemuarm machine.
Comment 1 Robert Yang 2016-07-12 11:23:11 UTC
I can't reproduce it:

MACHINE = "qemuarm"
IMAGE_CLASSES += "testimage"

bitbake core-image-sato -ctestimage

All are passed.
Comment 2 Richard Purdie 2016-07-18 20:48:25 UTC
Also in the log is:

14:04:52 - bitbake-worker - RESULTS - Testcase 1096:
Traceback (most recent call last):
  File "/home/romanalx/master2.2/poky/meta/lib/oeqa/utils/decorators.py", line 109, in wrapped_f
    return func(*args, **kwargs)
  File "/home/romanalx/master2.2/poky/meta/lib/oeqa/utils/decorators.py", line 97, in wrapped_f
    return f(*args, **kwargs)
  File "/home/romanalx/master2.2/poky/meta/lib/oeqa/runtime/rpm.py", line 55, in test_rpm_query_nonroot
    self.assertTrue(status == 0, msg="Failed to create new user: " + output)
AssertionError: False is not true : Failed to create new user: useradd: user 'test1' already exists

Was the same test run twice on the same image or something like that?
Comment 3 Saul Wold 2016-07-18 20:51:09 UTC
.
Comment 4 Ross Burton 2016-07-18 20:52:29 UTC
From memory the test case should be cleaning up the users afterwards.

The useradd failure is the first instance of bug 8988 that I've seen since the logging was added, and it's good to see it failed as the user already existed.  I'll do a bit more digging.

It's entirely possibly that all the failures are due to the useradd failure.
Comment 5 Ross Burton 2016-09-08 11:06:39 UTC
Edwin has a patch in progress for the older bug 9204.

*** This bug has been marked as a duplicate of bug 9204 ***
Comment 6 Jose Perez C 2016-09-09 16:05:40 UTC
Verified duplicate