Bug 7957 - oe-selftest fails on the autobuilder when testing devtool
Summary: oe-selftest fails on the autobuilder when testing devtool
Status: VERIFIED WORKSFORME
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: Scripts and Tools (show other bugs)
Version: unspecified
Hardware: x86 Multiple
: Medium+ major
Target Milestone: 2.0
Assignee: Paul Eggleton
QA Contact: Alexandru Georgescu
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2015-07-06 05:13 UTC by Saul Wold
Modified: 2015-10-23 06:56 UTC (History)
4 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: Regression (Used to work)
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Saul Wold 2015-07-06 05:13:18 UTC
======================================================================
FAIL: test_devtool_deploy_target (oeqa.selftest.devtool.DevtoolTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-oe-selftest/build/meta/lib/oeqa/selftest/devtool.py", line 822, in test_devtool_deploy_target
    result = runCmd('ssh %s root@%s %s' % (sshargs, testhost, testcommand))
  File "/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-oe-selftest/build/meta/lib/oeqa/utils/commands.py", line 104, in runCmd
    raise AssertionError("Command '%s' returned non-zero exit status %d:\n%s" % (command, result.status, result.output))
AssertionError: Command 'ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no root@192.168.7.2 /sbin/mdadm --help' returned non-zero exit status 2:
Warning: Permanently added '192.168.7.2' (RSA) to the list of known hosts.
/sbin/mdadm: line 1: syntax error: unexpected "("

----------------------------------------------------------------------
Ran 125 tests in 10250.674s

FAILED (failures=1)
2015-07-03 19:43:56,928 - selftest - INFO - Finished
2015-07-03 19:43:56,929 - selftest - INFO - Removing the include from local.conf
Comment 2 Paul Eggleton 2015-07-09 14:54:53 UTC
I can't reproduce this and am not quite sure how it would come up. This test has succeeded on this same autobuilder before and succeeds on my machines (on the same distro as the autobuilder where it failed). 

After discussion with Richard I'm marking this as WORKSFORME; if it happens again we can reopen.
Comment 3 Markus Lehtonen 2015-07-09 15:18:08 UTC
Yeah, the error is strange. Looks like the /sbin/mdadm file on the target had got overwritten by something else at some point.
Comment 4 Markus Lehtonen 2015-07-09 15:48:34 UTC
Set back to worksforme
Comment 5 Paul Eggleton 2015-07-23 10:33:40 UTC
Sadly there is still some kind of underlying issue here:

https://autobuilder.yoctoproject.org/main/builders/nightly-oe-selftest/builds/86/steps/Running%20oe-selftest/logs/stdio

Fedora 21 again.
Comment 6 Paul Eggleton 2015-07-28 08:38:33 UTC
The following fix that has been merged to master doesn't resolve this bug, but it should give us a way to look at the image after the fact the next time it comes up:

http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=edc7780ab749534176780a247ab36d4a1575bc30
Comment 7 Paul Eggleton 2015-10-22 15:07:52 UTC
So we've done some pretty heavy fixing in the way these tests are run, and we've been running oe-selftest fairly intensively and we haven't seen the failure again since the time that prompted reopening this bug. After briefly discussing this at triage the conclusion was to mark it as resolved again.
Comment 8 Alexandru Georgescu 2015-10-23 06:56:38 UTC
Verified with https://autobuilder.yoctoproject.org/main/builders/nightly-oe-selftest/builds/231 build.