Bug 11983

Summary: dnf selftest has date wrapping bug?
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Richard Purdie <richard.purdie>
Component: Scripts and ToolsAssignee: Alexander Kanavin <alex.kanavin>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium+ CC: markus.lehtonen, ross.burton
Version: 2.2   
Target Milestone: 2.4 M4   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description Richard Purdie 2017-08-27 16:00:18 UTC
NOTE: test_verify_package_feeds (dnf_runtime.DnfSelftest)
NOTE:  ... FAIL
NOTE: ======================================================================
NOTE: FAIL: test_verify_package_feeds (dnf_runtime.DnfSelftest)
NOTE: ----------------------------------------------------------------------
NOTE: Traceback (most recent call last):
  File "/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-oe-selftest/build/meta/lib/oeqa/core/decorator/__init__.py", line 32, in wrapped_f
    return func(*args, **kwargs)
  File "/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-oe-selftest/build/meta-selftest/lib/oeqa/runtime/cases/dnf_runtime.py", line 40, in test_verify_package_feeds
    output_makecache = self.dnf('-vy makecache')
  File "/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-oe-selftest/build/meta/lib/oeqa/runtime/cases/dnf.py", line 18, in dnf
    self.assertEqual(status, expected, message)
AssertionError: 1 != 0 : dnf -vy makecache
DNF version: 2.6.3
cachedir: /var/cache/dnf
Making cache files for all metadata files.
oe-remote-repo: has expired and will be refreshed.
Curl error (37): Couldn't read a file:// file for file:///etc/pki/packagefeed-gpg/PACKAGEFEED-GPG-KEY-2.3+snapshot-20170827 [Couldn't open file /etc/pki/packagefeed-gpg/PACKAGEFEED-GPG-KEY-2.3+snapshot-20170827]

NOTE: ----------------------------------------------------------------------
NOTE: Ran 4 tests in 2.610s
NOTE: FAILED
NOTE:  (failures=1)
Stopping logging thread
NOTE: Stopping logging thread

from https://autobuilder.yocto.io/builders/nightly-oe-selftest/builds/487/steps/Running%20oe-selftest/logs/stdio

Looks like the date may have wrapped meaning it didn't find the way? (The parent test is oe-selftest -r runtime_test.TestImage.test_testimage_dnf)
Comment 1 Ed Bartosh 2017-08-28 07:51:28 UTC
reassigning to the dnf maintainer
Comment 2 Alexander Kanavin 2017-08-29 11:49:35 UTC
I've replaced DISTRO_VERSION with DISTRO-DISTRO_CODENAME in the key filenames.