Bug 12736 - 2.5 rc1: CentOS 7 oe-selftest fail at runtime_test.TestImage.test_testimage_dnf
Summary: 2.5 rc1: CentOS 7 oe-selftest fail at runtime_test.TestImage.test_testimage_dnf
Status: RESOLVED NOTABUG
Alias: None
Product: Runtime Testing
Classification: QA/Testing
Component: general (show other bugs)
Version: 2.5
Hardware: x86 x86_64
: Medium+ normal
Target Milestone: 2.6 M1
Assignee: Mohamad Noor Alim
QA Contact: Mohamad Noor Alim
URL: http://centaurus02.png.intel.com:8010...
Whiteboard:
Depends on:
Blocks:
 
Reported: 2018-05-07 19:38 UTC by Mohamad Noor Alim
Modified: 2018-05-12 22:07 UTC (History)
1 user (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: Don't know


Attachments
contain log files for test_testimage_dnf (12.15 KB, application/x-zip-compressed)
2018-05-07 19:38 UTC, Mohamad Noor Alim
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mohamad Noor Alim 2018-05-07 19:38:19 UTC
Created attachment 4297 [details]
contain log files for test_testimage_dnf

test_testimage_dnf failed and throw an error message as follow:

ERROR: core-image-full-cmdline-1.0-r0 do_testimage: core-image-full-cmdline

file masterimage missing from /etc/masterimage
| DEBUG: [Running]$ ssh -l root -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o LogLevel=ERROR 192.168.7.2 export PATH=/usr/sbin:/sbin:/usr/bin:/bin; cat /etc/masterimage
| DEBUG: time: 1525577553.6506371, endtime: 1525577853.638967
| DEBUG: Partial data from SSH call: cat: /etc/masterimage: No such file or directory
| 
| DEBUG: time: 1525577553.7870603, endtime: 1525577853.787056
| DEBUG: [Command returned '1' after 0.15 seconds]
| DEBUG: Command: cat /etc/masterimage
| Output:  cat: /etc/masterimage: No such file or directory

| NOTE: FAIL [0.848s]: test_verify_package_feeds (dnf_runtime.DnfSelftest)
| NOTE: ----------------------------------------------------------------------
| NOTE: Traceback (most recent call last):
|   File "/home/ab/yocto-worker/nightly-oe-selftest/build/meta/lib/oeqa/core/decorator/__init__.py", line 32, in wrapped_f
|     return func(*args, **kwargs)
|   File "/home/ab/yocto-worker/nightly-oe-selftest/build/meta-selftest/lib/oeqa/runtime/cases/dnf_runtime.py", line 41, in test_verify_package_feeds
|     self.assertTrue(re.match(r".*Failed to synchronize cache", output_makecache, re.DOTALL) is None, msg = "dnf makecache failed to synchronize repo: %s" %(output_makecache))
| AssertionError: False is not true : dnf makecache failed to synchronize repo: DNF version: 2.7.5
| cachedir: /var/cache/dnf
| Making cache files for all metadata files.
| oe-remote-repo: has expired and will be refreshed.
| Cannot download 'http://192.168.7.1:35033': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried.
| Failed to synchronize cache for repo 'oe-remote-repo', disabling.

Log files
=========
1. run manually
 - 2.5rc1-autobuilder2-result-oe-selftest-centos7.log
2. run from Autobuilder2
 - log.do_testimage.30950

Reproduce by running test manually. Here are the steps to run the test.
1. $ git clone git://git.yoctoproject.org/poky
2. $ git checkout da3625c52e1ab8985fba4fc3d133edf92142f182
3. unset SANITY_TESTED_DISTROS by remove all distro name to error message from
   ~/poky/meta-poky/conf/distro/poky.conf
4. $ source .oe-init-build-env
5. $ oe-selftest -r runtime_test.TestImage.test_testimage_dnf
Comment 1 Alexander Kanavin 2018-05-10 08:08:20 UTC
I just got a PASSED here on Debian testing with that commit and that test, so in the absence of a reproducer and no CentOS machine that I can access for testing, this becomes harder to pinpoint.

Did this pass before on CentOS 7? If so, can you go back to the commit that passed, and try it again? Once you have a passing commit and a failing commit, you can try to use git bisect to see where things break.

If that previous passing commit now fails too, then there is something in your machine setup that has changed.
Comment 2 Mohamad Noor Alim 2018-05-11 01:47:36 UTC
I run test_testimage_dnf manually by disable firewall on CentOS7. The test result is pass. 

Firewall on CentOS 7 would cause 2 tests fail which are 
- runtime_test.TestImage.test_testimage_dnf and
- dnf_runtime.DnfSelftest.test_verify_package_feeds.

highlight: we need to disable firewall on Autobuilder workers in order to run test_testimage_dnf.
Comment 3 Alexander Kanavin 2018-05-11 07:23:30 UTC
Thanks. NOTABUG I guess?
Comment 4 Mohamad Noor Alim 2018-05-12 22:07:05 UTC
yes. I think this is a false bug due to filrewall.