Bug 11983 - dnf selftest has date wrapping bug?
Summary: dnf selftest has date wrapping bug?
Status: RESOLVED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: Scripts and Tools (show other bugs)
Version: 2.2
Hardware: x86 Multiple
: Medium+ normal
Target Milestone: 2.4 M4
Assignee: Alexander Kanavin
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2017-08-27 16:00 UTC by Richard Purdie
Modified: 2017-08-31 15:04 UTC (History)
2 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
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 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.