<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>15949</bug_id>
          
          <creation_ts>2025-08-06 09:14:39 +0000</creation_ts>
          <short_desc>AB-INT: signing.Signing.test_signing_packages: key 1 import failed</short_desc>
          <delta_ts>2026-05-14 15:05:53 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>10</classification_id>
          <classification>QA/Testing</classification>
          <product>Functional (self) Testing</product>
          <component>oe-selftest</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WORKSFORME</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard>AB-INT</status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>6.0</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Mathieu Dubois-Briand">mathieu.dubois-briand</reporter>
          <assigned_to name="Unassigned">unassigned</assigned_to>
          <cc>paul</cc>
    
    <cc>randy.macleod</cc>
    
    <cc>yi.zhao</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>102548</commentid>
    <comment_count>0</comment_count>
    <who name="Mathieu Dubois-Briand">mathieu.dubois-briand</who>
    <bug_when>2025-08-06 09:14:39 +0000</bug_when>
    <thetext>2025-08-05 11:31:01,225 - oe-selftest - INFO - signing.Signing.test_signing_packages (subunit.RemotedTestCase)
2025-08-05 11:31:01,226 - oe-selftest - INFO -  ... FAIL

Stderr:
2025-08-05 09:26:36,272 - oe-selftest - INFO - Adding: &quot;include selftest.inc&quot; in /srv/pokybuild/yocto-worker/oe-selftest-fedora/build/build-st-3368757/conf/local.conf
2025-08-05 09:26:36,273 - oe-selftest - INFO - Adding: &quot;include bblayers.inc&quot; in bblayers.conf
2025-08-05 11:31:01,226 - oe-selftest - INFO - 1: 43/58 549/634 (233.48s) (0 failed) (signing.Signing.test_signing_packages)
2025-08-05 11:31:01,226 - oe-selftest - INFO - testtools.testresult.real._StringException: Traceback (most recent call last):
  File &quot;/srv/pokybuild/yocto-worker/oe-selftest-fedora/build/meta/lib/oeqa/selftest/cases/signing.py&quot;, line 113, in test_signing_packages
    runCmd(&apos;%s/rpmkeys --define &quot;_dbpath %s&quot; --import %s&apos; %
  File &quot;/srv/pokybuild/yocto-worker/oe-selftest-fedora/build/meta/lib/oeqa/utils/commands.py&quot;, line 214, in runCmd
    raise AssertionError(&quot;Command &apos;%s&apos; returned non-zero exit status %d:\n%s&quot; % (command, result.status, exc_output))
AssertionError: Command &apos;/srv/pokybuild/yocto-worker/oe-selftest-fedora/build/build-st-3368757/tmp/work/core2-64-poky-linux/ed/1.21.1/recipe-sysroot-native/usr/bin/rpmkeys --define &quot;_dbpath /tmp/oeqa-rpmdbzlvymqxn&quot; --import /srv/pokybuild/yocto-worker/oe-selftest-fedora/build/build-st-3368757/meta-selftest/files/signing/key.pub&apos; returned non-zero exit status 1:
error: Certificate 7B31316B5D64AD52:
  Policy rejects 7B31316B5D64AD52: No binding signature at time 2025-08-05T11:30:40Z
error: /srv/pokybuild/yocto-worker/oe-selftest-fedora/build/build-st-3368757/meta-selftest/files/signing/key.pub: key 1 import failed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>102549</commentid>
    <comment_count>1</comment_count>
    <who name="Mathieu Dubois-Briand">mathieu.dubois-briand</who>
    <bug_when>2025-08-06 09:15:16 +0000</bug_when>
    <thetext>oe-selftest-fedora stream9-vk-1 mathieu/master-next completed at 2025-08-05 12:33:50+00:00
https://autobuilder.yoctoproject.org/valkyrie/#/builders/48/builds/2026/steps/14/logs/stdio</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>102558</commentid>
    <comment_count>2</comment_count>
    <who name="Joshua Watt">JPEWhacker</who>
    <bug_when>2025-08-07 14:49:14 +0000</bug_when>
    <thetext>This might be related to the valid time stamp range of the generated certificate. In general we should make sure that the first valid date of the certificate is sufficiently in the past such that if the wall clock time on the host changes slightly it won&apos;t fall before the first valid date. Generally 24 hours or so should be sufficient to account for most clock discrepancies.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>102635</commentid>
    <comment_count>3</comment_count>
    <who name="Mathieu Dubois-Briand">mathieu.dubois-briand</who>
    <bug_when>2025-08-21 06:55:13 +0000</bug_when>
    <thetext>oe-selftest-fedora stream9-vk-1 mathieu/master-next completed at 2025-08-19 08:50:08+00:00
https://autobuilder.yoctoproject.org/valkyrie/#/builders/48/builds/2105/steps/14/logs/stdio</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>102641</commentid>
    <comment_count>4</comment_count>
    <who name="Mathieu Dubois-Briand">mathieu.dubois-briand</who>
    <bug_when>2025-08-21 14:27:40 +0000</bug_when>
    <thetext>oe-selftest-fedora stream9-vk-1 mathieu/master-next completed at 2025-08-21 11:50:03+00:00
https://autobuilder.yoctoproject.org/valkyrie/#/builders/48/builds/2124/steps/14/logs/stdio</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>103417</commentid>
    <comment_count>5</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2025-11-27 16:11:43 +0000</bug_when>
    <thetext>CC Yi who might check on this bug.
It hasn&apos;t been reported for a while so maybe it&apos;s fixed somehow.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>105089</commentid>
    <comment_count>6</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2026-04-15 20:00:58 +0000</bug_when>
    <thetext>Not seen since: 2025-08-21
bump to 6.0 and likely resolve when we clean-up those bugs.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>105438</commentid>
    <comment_count>7</comment_count>
    <who name="Paul Barker">paul</who>
    <bug_when>2026-05-14 15:05:53 +0000</bug_when>
    <thetext>If this recurs we can look at creating certificates with valid from dates 24h in the past.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>