tripleo-ci-centos-9-content-provider is failing to build the base container - No public keys imported

Bug #2015309 reported by Ronelle Landy
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tripleo
Fix Released
Critical
Unassigned

Bug Description

tripleo-ci-centos-9-content-provider jobs started failing on 04/03 with the following errors:

Failing on pulling the latest ubi image:

Example:

STEP 1/32: FROM registry.access.redhat.com/ubi9:latest
Trying to pull registry.access.redhat.com/ubi9:latest...

https://d15ccef79b7cb117246b-e83f59cb28c35abf698237caf57ec38b.ssl.cf1.rackcdn.com/878669/9/check/tripleo-ci-centos-9-content-provider/3ef7e52/logs/container-builds/ed744668-adb7-45e8-884b-13ec32fb3f32/base/base-build.log

and then in the undercloud/home/zuul/container_image_build.log file:

Command: sudo buildah bud --net=host --volume /etc/pki/rpm-gpg:/etc/pki/rpm-gpg:z --volume /etc/yum.repos.d:/etc/distro.repos.d:z --volume /etc/pki/rpm-gpg:/etc/pki/rpm-gpg:z --volume /etc/dnf/vars:/etc/dnf/vars:z --volume /etc/yum.repos.d:/etc/distro.repos.d:z --format docker --tls-verify=False --logfile /home/zuul/container-builds/4c04e5b4-cb5a-4d9e-8650-f8fb0df6ad87/base/base-build.log -t 127.0.0.1:5001/tripleozedcentos9/openstack-base:a059d11d68ad6bdd402fe57a76e4519f /home/zuul/container-builds/4c04e5b4-cb5a-4d9e-8650-f8fb0df6ad87/base
Exit code: 125
Stdout: ''
Stderr: 'Error: creating build container: copying system image from manifest list: Source image rejected: None of the signatures were accepted, reasons: No public keys imported; No public keys imported; No public keys imported; No public keys imported; No public keys imported; No public keys imported; No public keys imported; No public keys imported\n': oslo_concurrency.processutils.ProcessExecutionError: Unexpected error while running command.
Command: sudo buildah bud --net=host --volume /etc/pki/rpm-gpg:/etc/pki/rpm-gpg:z --volume /etc/yum.repos.d:/etc/distro.repos.d:z --volume /etc/pki/rpm-gpg:/etc/pki/rpm-gpg:z --volume /etc/dnf/vars:/etc/dnf/vars:z --volume /etc/yum.repos.d:/etc/distro.repos.d:z --format docker --tls-verify=False --logfile /home/zuul/container-builds/4c04e5b4-cb5a-4d9e-8650-f8fb0df6ad87/base/base-build.log -t 127.0.0.1:5001/tripleozedcentos9/openstack-base:a059d11d68ad6bdd402fe57a76e4519f /home/zuul/container-builds/4c04e5b4-cb5a-4d9e-8650-f8fb0df6ad87/base
Exit code: 125
Stdout: ''
Stderr: 'Error: creating build container: copying system image from manifest list: Source image rejected: None of the signatures were accepted, reasons: No public keys imported; No public keys imported; No public keys imported; No public keys imported; No public keys imported; No public keys imported; No public keys imported; No public keys imported\n'

Example logs:

https://7796f55c7dac9a6ae6b6-40001c60cc2cc6a7bddcc7547f0d5486.ssl.cf1.rackcdn.com/878668/4/check/tripleo-ci-centos-9-content-provider/510145d/logs/undercloud/home/zuul/container_image_build.log

https://d15ccef79b7cb117246b-e83f59cb28c35abf698237caf57ec38b.ssl.cf1.rackcdn.com/878669/9/check/tripleo-ci-centos-9-content-provider/3ef7e52/logs/container-builds/ed744668-adb7-45e8-884b-13ec32fb3f32/base/base-build.log

https://d15ccef79b7cb117246b-e83f59cb28c35abf698237caf57ec38b.ssl.cf1.rackcdn.com/878669/9/check/tripleo-ci-centos-9-content-provider/3ef7e52/logs/undercloud/home/zuul/container_image_build.log

https://catalog.redhat.com/software/containers/ubi9/ubi-init/615bdc22075b022acc111bf6?container-tabs=overview shows that the latest tag was updated on 03/28.

Ronelle Landy (rlandy)
Changed in tripleo:
milestone: none → antelope-1
status: New → Triaged
importance: Undecided → Critical
Revision history for this message
Ronelle Landy (rlandy) wrote :

Marking this as a promotion-blocker as more tests are failing now:

https://zuul.opendev.org/t/openstack/builds?job_name=tripleo-ci-centos-9-content-provider&skip=0

tags: added: promotion-blocker
Revision history for this message
Marios Andreou (marios-b) wrote :
Revision history for this message
Marios Andreou (marios-b) wrote :

problem might be with the latest ubi9 image?

Looking at [1] for example in the base-buid.log:

STEP 1/32: FROM registry.access.redhat.com/ubi9:latest
Trying to pull registry.access.redhat.com/ubi9:latest...

and nothing else

[1] https://f58720b81b6e6994f37f-a6e7a7719a505df489be2c28a60c0cf4.ssl.cf2.rackcdn.com/periodic/opendev.org/openstack/tripleo-heat-templates/stable/wallaby/tripleo-ci-centos-9-content-provider-wallaby/5a30f1e/logs/undercloud/home/zuul/workspace/logs/container-builds/430a3a31-2b6e-42c1-8ca9-3acc1951f099/base/base-build.log

Revision history for this message
Marios Andreou (marios-b) wrote (last edit ):

With respect to comment #3, I missed the comment in the description about the update date for the image.

Noting though that per [1] it was updated 28/02/2023 (not 28/03) so it is unlikely to be the ubi9 image itself as we've been using that without issue for a month

I actually sanity checked with an older image at [2] but same result

So something changed that affects how we verify the image signatures

Interesting to note this is in both upstream/opendev and RDO jobs

[1] https://catalog.redhat.com/software/containers/ubi9/ubi-init/615bdc22075b022acc111bf6?container-tabs=overview
[2] https://review.opendev.org/c/openstack/tripleo-ci/+/879529/1/zuul.d/content-provider.yaml

Revision history for this message
Marios Andreou (marios-b) wrote (last edit ):
Revision history for this message
Marios Andreou (marios-b) wrote :

got a green result at [1] with the exclude for gnupg2.x86_64 2.3.3-3.el9

we can go with [2] as a workaround to unblock us for now

[1] https://review.rdoproject.org/r/c/testproject/+/48205/1#message-3b4f3331ad61bef64d76554fda8803f64bdcae75

[2] https://review.opendev.org/c/openstack/tripleo-quickstart/+/879535

Revision history for this message
Marios Andreou (marios-b) wrote :

Noting the release notes at [1] - I wonder if the problem is the SHA-1 digest. In any case we will likely need some followup here the package exclude at [2] is only a workaround and we will be hit by this again when a newer version appears

* Thu Mar 30 2023 Jakub Jelen <email address hidden> - 2.3.3-3
- Mark SHA-1 digest as weak to follow SHA-1 disablement in RHEL9 (#2070722)
- Fix interaction with SSH by not requiring the MD5 digest (#2073567)
- Fix creation of AEAD packets (#2128058)

[1] https://kojihub.stream.centos.org/koji/buildinfo?buildID=31391
[2] https://review.opendev.org/c/openstack/tripleo-quickstart/+/879535

Revision history for this message
Cédric Jeanneret (cjeanner) wrote :

Pretty sure we can point to the sha-1 seeing this:

[root@e40833e9c636 yum.repos.d]# gpg --dry-run --import /etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
gpg: keyblock resource '/root/.gnupg/pubring.kbx': No such file or directory
gpg: Note: signatures using the SHA1 algorithm are rejected
gpg: key 05B555B38483C65D: 1 bad signature
gpg: Total number processed: 1

I've also reported this against centos itself here:
https://bugzilla.redhat.com/show_bug.cgi?id=2184640

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to tripleo-quickstart (master)

Reviewed: https://review.opendev.org/c/openstack/tripleo-quickstart/+/879535
Committed: https://opendev.org/openstack/tripleo-quickstart/commit/7467dd032d3873c1e0c1153713298c6b1f56793b
Submitter: "Zuul (22348)"
Branch: master

commit 7467dd032d3873c1e0c1153713298c6b1f56793b
Author: Marios Andreou <email address hidden>
Date: Wed Apr 5 11:07:53 2023 +0300

    Exclude latest gnupg2 & Pin to last good version

    This adds exclude for gnupg2-2.3.3-3.el9 and downgrade to last good
    version gnupg2.x86_64 2.3.3-2.el9 in centos9 branches for the related
    bug hitting check/gate and periodics. This is a workaround to unblock
    the gates.

    Related-Bug: 2015309

    Change-Id: Ifb1c06291b070159b43e4364a527fe8b81157704

Revision history for this message
Alan Pevec (apevec) wrote :

tl;dr problem is with latest gnupg2-2.3.3-3.el9 which removed SHA-1
and registry pubkeys were still using SHA-1
For CS9, updated containers-common is needed: https://bugzilla.redhat.com/show_bug.cgi?id=2185380

Revision history for this message
chandan kumar (chkumar246) wrote :

From CS8 repos, https://storage.gra.cloud.ovh.net/v1/AUTH_dcaab5e32b234d56b626f72581e3644c/zuul_opendev_logs_bcd/periodic/opendev.org/openstack/neutron/stable/zed/tripleo-ci-centos-9-content-provider/bcd6705/logs/undercloud/var/log/extra/rpm-list.txt
```
containers-common-1-50.el9.x86_64
```
 https://gitlab.com/redhat/centos-stream/rpms/containers-common/-/commit/6cc0714194238d59a47d93b7730b3317eebde172 - containers-common-1-51.el9 got tagged 2 weeks ago.

@Alan thank you for adding the bug link.
 https://gitlab.com/redhat/centos-stream/rpms/containers-common/-/commit/6cc0714194238d59a47d93b7730b3317eebde172 - containers-common-1-51.el9 got tagged 2 weeks ago and does contains the updated RPM-GPG-KEY-redhat keys. We need to wait a newer containers-common package.

Revision history for this message
chandan kumar (chkumar246) wrote :

For podified control plane container build line, we need these two reviews:
- https://github.com/openstack-k8s-operators/repo-setup/pull/11
- https://review.rdoproject.org/r/c/rdo-jobs/+/48261

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to tripleo-ansible (stable/wallaby)

Related fix proposed to branch: stable/wallaby
Review: https://review.opendev.org/c/openstack/tripleo-ansible/+/880055

Revision history for this message
chandan kumar (chkumar246) wrote :

https://mirror.stream.centos.org/9-stream/BaseOS/source/tree/Packages/gnupg2-2.3.3-3.el9.src.rpm infected rpm is removed from the mirror. Better to revert all the patches.

Changed in tripleo:
status: Triaged → In Progress
Revision history for this message
chandan kumar (chkumar246) wrote :

https://review.rdoproject.org/r/c/testproject/+/48260/5#message-2f8347cfbd56626465fd516b0ad36d3dba93bbc3

RDO nodepool image is still using the affected rpm. We have to wait for the new images to be built
and then merge the reverts.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to tripleo-ansible (stable/wallaby)

Reviewed: https://review.opendev.org/c/openstack/tripleo-ansible/+/880055
Committed: https://opendev.org/openstack/tripleo-ansible/commit/9ea5b8874a0c6cbaff1f30539fbc671afd013252
Submitter: "Zuul (22348)"
Branch: stable/wallaby

commit 9ea5b8874a0c6cbaff1f30539fbc671afd013252
Author: Chandan Kumar <email address hidden>
Date: Tue Apr 11 19:38:43 2023 +0530

    Exclude latest gnupg2 & Pin to last good version

    This adds exclude for gnupg2-2.3.3-3.el9 and downgrade to last good
    version gnupg2.x86_64 2.3.3-2.el9 in centos9 branches for the related
    bug hitting check/gate and periodics. This is a workaround to unblock
    the gates.

    Related-Bug: 2015309

    Change-Id: I6dd684e65aeaa7d61127f51e97846bc2c65ff62a
    Signed-off-by: Chandan Kumar <email address hidden>

tags: added: in-stable-wallaby
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tripleo-quickstart (master)

Reviewed: https://review.opendev.org/c/openstack/tripleo-quickstart/+/879863
Committed: https://opendev.org/openstack/tripleo-quickstart/commit/5b587a7f65a3537157dd8b0df2415176aec447cd
Submitter: "Zuul (22348)"
Branch: master

commit 5b587a7f65a3537157dd8b0df2415176aec447cd
Author: chandan kumar <email address hidden>
Date: Tue Apr 11 06:35:00 2023 +0000

    Revert "Exclude latest gnupg2 & Pin to last good version"

    This reverts commit 7467dd032d3873c1e0c1153713298c6b1f56793b.

    Reason for revert: https://mirror.stream.centos.org/9-stream/BaseOS/source/tree/Packages/gnupg2-2.3.3-3.el9.src.rpm infected rpm is removed from the mirror.

    Closes-Bug: #2015309

    Change-Id: I6f36ab0a68a1824f3e0b317a9f859c06d73cd7af

Changed in tripleo:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.