Bug 2186332

Summary: ami-0768bb682163b6c10 - Unable to update/install packages using DNF/YUM - GPG Public Key Not Installed
Product: Red Hat Enterprise Linux 9 Reporter: gilnath+redhat
Component: dnfAssignee: Packaging Maintenance Team <packaging-team-maint>
Status: CLOSED DUPLICATE QA Contact: swm-qe
Severity: high Docs Contact:
Priority: unspecified    
Version: CentOS StreamCC: asamalik, bstinson, james.antill, jwboyer
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-04-13 11:50:10 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description gilnath+redhat 2023-04-12 21:21:07 UTC
Description of problem:
Using AMI ami-0768bb682163b6c10 (AWS eu-west-1) I am unable to update/install packages. 


Version-Release number of selected component (if applicable):


How reproducible:
Every time

Steps to Reproduce:
1. Launch instance using AMI above with internet access (used m5.large in testing)
2. Run `sudo dnf update -y`

Actual results:
```
$ sudo dnf update -v
Loaded plugins: builddep, changelog, config-manager, copr, debug, debuginfo-install, download, generate_completion_cache, groups-manager, needs-restarting, playground, repoclosure, repodiff, repograph, repomanage, reposync, system-upgrade
DNF version: 4.14.0
cachedir: /var/cache/dnf
User-Agent: constructed: 'libdnf (CentOS Stream 9; generic; Linux.x86_64)'
repo: using cache for: baseos
baseos: using metadata from Mon 10 Apr 2023 03:03:22 PM UTC.
repo: using cache for: appstream
appstream: using metadata from Mon 10 Apr 2023 03:05:46 PM UTC.
repo: using cache for: extras-common
extras-common: using metadata from Fri 07 Apr 2023 12:16:55 PM UTC.
Last metadata expiration check: 0:42:35 ago on Wed 12 Apr 2023 07:56:26 PM UTC.
--> Starting dependency resolution
---> Package kernel.x86_64 5.14.0-295.el9 will be installed
---> Package kernel-core.x86_64 5.14.0-295.el9 will be installed
---> Package kernel-modules.x86_64 5.14.0-295.el9 will be installed
---> Package kernel-modules-core.x86_64 5.14.0-295.el9 will be installed
---> Package centos-gpg-keys.noarch 9.0-20.el9 will be upgraded
---> Package centos-gpg-keys.noarch 9.0-21.el9 will be an upgrade
---> Package centos-stream-release.noarch 9.0-20.el9 will be upgraded
---> Package centos-stream-release.noarch 9.0-21.el9 will be an upgrade
---> Package centos-stream-repos.noarch 9.0-20.el9 will be upgraded
---> Package centos-stream-repos.noarch 9.0-21.el9 will be an upgrade
---> Package glibc.x86_64 2.34-61.el9 will be upgraded
---> Package glibc.x86_64 2.34-63.el9 will be an upgrade
---> Package glibc-common.x86_64 2.34-61.el9 will be upgraded
---> Package glibc-common.x86_64 2.34-63.el9 will be an upgrade
---> Package glibc-gconv-extra.x86_64 2.34-61.el9 will be upgraded
---> Package glibc-gconv-extra.x86_64 2.34-63.el9 will be an upgrade
---> Package glibc-langpack-en.x86_64 2.34-61.el9 will be upgraded
---> Package glibc-langpack-en.x86_64 2.34-63.el9 will be an upgrade
---> Package hwdata.noarch 0.348-9.7.el9 will be upgraded
---> Package hwdata.noarch 0.348-9.9.el9 will be an upgrade
---> Package kernel-tools.x86_64 5.14.0-293.el9 will be upgraded
---> Package kernel-tools.x86_64 5.14.0-295.el9 will be an upgrade
---> Package kernel-tools-libs.x86_64 5.14.0-293.el9 will be upgraded
---> Package kernel-tools-libs.x86_64 5.14.0-295.el9 will be an upgrade
---> Package kexec-tools.x86_64 2.0.25-14.el9 will be upgraded
---> Package kexec-tools.x86_64 2.0.26-1.el9 will be an upgrade
---> Package libgcc.x86_64 11.3.1-4.3.el9 will be upgraded
---> Package libgcc.x86_64 11.3.1-4.4.el9 will be an upgrade
---> Package libgomp.x86_64 11.3.1-4.3.el9 will be upgraded
---> Package libgomp.x86_64 11.3.1-4.4.el9 will be an upgrade
---> Package libstdc++.x86_64 11.3.1-4.3.el9 will be upgraded
---> Package libstdc++.x86_64 11.3.1-4.4.el9 will be an upgrade
---> Package which.x86_64 2.21-28.el9 will be upgraded
---> Package which.x86_64 2.21-29.el9 will be an upgrade
--> Finished dependency resolution
Dependencies resolved.
======================================================================================================================================================================
 Package                                          Architecture                      Version                                   Repository                         Size
======================================================================================================================================================================
Installing:
 kernel                                           x86_64                            5.14.0-295.el9                            baseos                            3.6 M
Upgrading:
 centos-gpg-keys                                  noarch                            9.0-21.el9                                baseos                             15 k
 centos-stream-release                            noarch                            9.0-21.el9                                baseos                             26 k
 centos-stream-repos                              noarch                            9.0-21.el9                                baseos                             12 k
 glibc                                            x86_64                            2.34-63.el9                               baseos                            1.9 M
 glibc-common                                     x86_64                            2.34-63.el9                               baseos                            316 k
 glibc-gconv-extra                                x86_64                            2.34-63.el9                               baseos                            1.7 M
 glibc-langpack-en                                x86_64                            2.34-63.el9                               baseos                            671 k
 hwdata                                           noarch                            0.348-9.9.el9                             baseos                            1.6 M
 kernel-tools                                     x86_64                            5.14.0-295.el9                            baseos                            3.9 M
 kernel-tools-libs                                x86_64                            5.14.0-295.el9                            baseos                            3.6 M
 kexec-tools                                      x86_64                            2.0.26-1.el9                              baseos                            495 k
 libgcc                                           x86_64                            11.3.1-4.4.el9                            baseos                             98 k
 libgomp                                          x86_64                            11.3.1-4.4.el9                            baseos                            274 k
 libstdc++                                        x86_64                            11.3.1-4.4.el9                            baseos                            743 k
 which                                            x86_64                            2.21-29.el9                               baseos                             41 k
Installing dependencies:
 kernel-core                                      x86_64                            5.14.0-295.el9                            baseos                             17 M
 kernel-modules                                   x86_64                            5.14.0-295.el9                            baseos                             36 M
 kernel-modules-core                              x86_64                            5.14.0-295.el9                            baseos                             35 M

Transaction Summary
======================================================================================================================================================================
Install   4 Packages
Upgrade  15 Packages

Total size: 107 M
Is this ok [y/N]: y
Downloading Packages:
[SKIPPED] kernel-5.14.0-295.el9.x86_64.rpm: Already downloaded
[SKIPPED] kernel-core-5.14.0-295.el9.x86_64.rpm: Already downloaded
[SKIPPED] kernel-modules-5.14.0-295.el9.x86_64.rpm: Already downloaded
[SKIPPED] kernel-modules-core-5.14.0-295.el9.x86_64.rpm: Already downloaded
[SKIPPED] centos-gpg-keys-9.0-21.el9.noarch.rpm: Already downloaded
[SKIPPED] centos-stream-release-9.0-21.el9.noarch.rpm: Already downloaded
[SKIPPED] centos-stream-repos-9.0-21.el9.noarch.rpm: Already downloaded
[SKIPPED] glibc-2.34-63.el9.x86_64.rpm: Already downloaded
[SKIPPED] glibc-common-2.34-63.el9.x86_64.rpm: Already downloaded
[SKIPPED] glibc-gconv-extra-2.34-63.el9.x86_64.rpm: Already downloaded
[SKIPPED] glibc-langpack-en-2.34-63.el9.x86_64.rpm: Already downloaded
[SKIPPED] hwdata-0.348-9.9.el9.noarch.rpm: Already downloaded
[SKIPPED] kernel-tools-5.14.0-295.el9.x86_64.rpm: Already downloaded
[SKIPPED] kernel-tools-libs-5.14.0-295.el9.x86_64.rpm: Already downloaded
[SKIPPED] kexec-tools-2.0.26-1.el9.x86_64.rpm: Already downloaded
[SKIPPED] libgcc-11.3.1-4.4.el9.x86_64.rpm: Already downloaded
[SKIPPED] libgomp-11.3.1-4.4.el9.x86_64.rpm: Already downloaded
[SKIPPED] libstdc++-11.3.1-4.4.el9.x86_64.rpm: Already downloaded
[SKIPPED] which-2.21-29.el9.x86_64.rpm: Already downloaded
Using rpmkeys executable at /bin/rpmkeys to verify signatures
CentOS Stream 9 - BaseOS                                                                                                              1.6 MB/s | 1.6 kB     00:00
The GPG keys listed for the "CentOS Stream 9 - BaseOS" repository are already installed but they are not correct for this package.
Check that the correct key URLs are configured for this repository.. Failing package is: kernel-5.14.0-295.el9.x86_64
 GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
Public key for kernel-core-5.14.0-295.el9.x86_64.rpm is not installed. Failing package is: kernel-core-5.14.0-295.el9.x86_64
 GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
Public key for kernel-modules-5.14.0-295.el9.x86_64.rpm is not installed. Failing package is: kernel-modules-5.14.0-295.el9.x86_64
 GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
Public key for kernel-modules-core-5.14.0-295.el9.x86_64.rpm is not installed. Failing package is: kernel-modules-core-5.14.0-295.el9.x86_64
 GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
Public key for centos-gpg-keys-9.0-21.el9.noarch.rpm is not installed. Failing package is: centos-gpg-keys-9.0-21.el9.noarch
 GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
Public key for centos-stream-release-9.0-21.el9.noarch.rpm is not installed. Failing package is: centos-stream-release-9.0-21.el9.noarch
 GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
Public key for centos-stream-repos-9.0-21.el9.noarch.rpm is not installed. Failing package is: centos-stream-repos-9.0-21.el9.noarch
 GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
Public key for glibc-2.34-63.el9.x86_64.rpm is not installed. Failing package is: glibc-2.34-63.el9.x86_64
 GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
Public key for glibc-common-2.34-63.el9.x86_64.rpm is not installed. Failing package is: glibc-common-2.34-63.el9.x86_64
 GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
Public key for glibc-gconv-extra-2.34-63.el9.x86_64.rpm is not installed. Failing package is: glibc-gconv-extra-2.34-63.el9.x86_64
 GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
Public key for glibc-langpack-en-2.34-63.el9.x86_64.rpm is not installed. Failing package is: glibc-langpack-en-2.34-63.el9.x86_64
 GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
Public key for hwdata-0.348-9.9.el9.noarch.rpm is not installed. Failing package is: hwdata-0.348-9.9.el9.noarch
 GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
Public key for kernel-tools-5.14.0-295.el9.x86_64.rpm is not installed. Failing package is: kernel-tools-5.14.0-295.el9.x86_64
 GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
Public key for kernel-tools-libs-5.14.0-295.el9.x86_64.rpm is not installed. Failing package is: kernel-tools-libs-5.14.0-295.el9.x86_64
 GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
Public key for kexec-tools-2.0.26-1.el9.x86_64.rpm is not installed. Failing package is: kexec-tools-2.0.26-1.el9.x86_64
 GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
Public key for libgcc-11.3.1-4.4.el9.x86_64.rpm is not installed. Failing package is: libgcc-11.3.1-4.4.el9.x86_64
 GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
Public key for libgomp-11.3.1-4.4.el9.x86_64.rpm is not installed. Failing package is: libgomp-11.3.1-4.4.el9.x86_64
 GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
Public key for libstdc++-11.3.1-4.4.el9.x86_64.rpm is not installed. Failing package is: libstdc++-11.3.1-4.4.el9.x86_64
 GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
Public key for which-2.21-29.el9.x86_64.rpm is not installed. Failing package is: which-2.21-29.el9.x86_64
 GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
The downloaded packages were saved in cache until the next successful transaction.
You can remove cached packages by executing 'dnf clean packages'.
Error: GPG check FAILED
```

Expected results:
```
$ sudo dnf update -v
Loaded plugins: builddep, changelog, config-manager, copr, debug, debuginfo-install, download, generate_completion_cache, groups-manager, needs-restarting, playground, repoclosure, repodiff, repograph, repomanage, reposync, system-upgrade
DNF version: 4.14.0
cachedir: /var/cache/dnf
User-Agent: constructed: 'libdnf (CentOS Stream 9; generic; Linux.x86_64)'
repo: using cache for: baseos
baseos: using metadata from Mon 10 Apr 2023 03:03:22 PM UTC.
repo: using cache for: appstream
appstream: using metadata from Mon 10 Apr 2023 03:05:46 PM UTC.
repo: using cache for: extras-common
extras-common: using metadata from Fri 07 Apr 2023 12:16:55 PM UTC.
Last metadata expiration check: 0:08:30 ago on Wed 12 Apr 2023 08:30:17 PM UTC.
--> Starting dependency resolution
---> Package kernel.x86_64 5.14.0-295.el9 will be installed
---> Package kernel-core.x86_64 5.14.0-295.el9 will be installed
---> Package kernel-modules.x86_64 5.14.0-295.el9 will be installed
---> Package kernel-modules-core.x86_64 5.14.0-295.el9 will be installed
---> Package centos-gpg-keys.noarch 9.0-20.el9 will be upgraded
---> Package centos-gpg-keys.noarch 9.0-21.el9 will be an upgrade
---> Package centos-stream-release.noarch 9.0-20.el9 will be upgraded
---> Package centos-stream-release.noarch 9.0-21.el9 will be an upgrade
---> Package centos-stream-repos.noarch 9.0-20.el9 will be upgraded
---> Package centos-stream-repos.noarch 9.0-21.el9 will be an upgrade
---> Package glibc.x86_64 2.34-61.el9 will be upgraded
---> Package glibc.x86_64 2.34-63.el9 will be an upgrade
---> Package glibc-common.x86_64 2.34-61.el9 will be upgraded
---> Package glibc-common.x86_64 2.34-63.el9 will be an upgrade
---> Package glibc-gconv-extra.x86_64 2.34-61.el9 will be upgraded
---> Package glibc-gconv-extra.x86_64 2.34-63.el9 will be an upgrade
---> Package glibc-langpack-en.x86_64 2.34-61.el9 will be upgraded
---> Package glibc-langpack-en.x86_64 2.34-63.el9 will be an upgrade
---> Package hwdata.noarch 0.348-9.7.el9 will be upgraded
---> Package hwdata.noarch 0.348-9.9.el9 will be an upgrade
---> Package kernel-tools.x86_64 5.14.0-289.el9 will be upgraded
---> Package kernel-tools.x86_64 5.14.0-295.el9 will be an upgrade
---> Package kernel-tools-libs.x86_64 5.14.0-289.el9 will be upgraded
---> Package kernel-tools-libs.x86_64 5.14.0-295.el9 will be an upgrade
---> Package kexec-tools.x86_64 2.0.25-14.el9 will be upgraded
---> Package kexec-tools.x86_64 2.0.26-1.el9 will be an upgrade
---> Package kmod.x86_64 28-7.el9 will be upgraded
---> Package kmod.x86_64 28-8.el9 will be an upgrade
---> Package kmod-libs.x86_64 28-7.el9 will be upgraded
---> Package kmod-libs.x86_64 28-8.el9 will be an upgrade
---> Package libgcc.x86_64 11.3.1-4.3.el9 will be upgraded
---> Package libgcc.x86_64 11.3.1-4.4.el9 will be an upgrade
---> Package libgomp.x86_64 11.3.1-4.3.el9 will be upgraded
---> Package libgomp.x86_64 11.3.1-4.4.el9 will be an upgrade
---> Package libstdc++.x86_64 11.3.1-4.3.el9 will be upgraded
---> Package libstdc++.x86_64 11.3.1-4.4.el9 will be an upgrade
---> Package selinux-policy.noarch 38.1.9-1.el9 will be upgraded
---> Package selinux-policy.noarch 38.1.11-2.el9 will be an upgrade
---> Package selinux-policy-targeted.noarch 38.1.9-1.el9 will be upgraded
---> Package selinux-policy-targeted.noarch 38.1.11-2.el9 will be an upgrade
---> Package which.x86_64 2.21-28.el9 will be upgraded
---> Package which.x86_64 2.21-29.el9 will be an upgrade
--> Finished dependency resolution
Dependencies resolved.
======================================================================================================================================================================
 Package                                           Architecture                     Version                                    Repository                        Size
======================================================================================================================================================================
Installing:
 kernel                                            x86_64                           5.14.0-295.el9                             baseos                           3.6 M
Upgrading:
 centos-gpg-keys                                   noarch                           9.0-21.el9                                 baseos                            15 k
 centos-stream-release                             noarch                           9.0-21.el9                                 baseos                            26 k
 centos-stream-repos                               noarch                           9.0-21.el9                                 baseos                            12 k
 glibc                                             x86_64                           2.34-63.el9                                baseos                           1.9 M
 glibc-common                                      x86_64                           2.34-63.el9                                baseos                           316 k
 glibc-gconv-extra                                 x86_64                           2.34-63.el9                                baseos                           1.7 M
 glibc-langpack-en                                 x86_64                           2.34-63.el9                                baseos                           671 k
 hwdata                                            noarch                           0.348-9.9.el9                              baseos                           1.6 M
 kernel-tools                                      x86_64                           5.14.0-295.el9                             baseos                           3.9 M
 kernel-tools-libs                                 x86_64                           5.14.0-295.el9                             baseos                           3.6 M
 kexec-tools                                       x86_64                           2.0.26-1.el9                               baseos                           495 k
 kmod                                              x86_64                           28-8.el9                                   baseos                           126 k
 kmod-libs                                         x86_64                           28-8.el9                                   baseos                            64 k
 libgcc                                            x86_64                           11.3.1-4.4.el9                             baseos                            98 k
 libgomp                                           x86_64                           11.3.1-4.4.el9                             baseos                           274 k
 libstdc++                                         x86_64                           11.3.1-4.4.el9                             baseos                           743 k
 selinux-policy                                    noarch                           38.1.11-2.el9                              baseos                            55 k
 selinux-policy-targeted                           noarch                           38.1.11-2.el9                              baseos                           6.8 M
 which                                             x86_64                           2.21-29.el9                                baseos                            41 k
Installing dependencies:
 kernel-core                                       x86_64                           5.14.0-295.el9                             baseos                            17 M
 kernel-modules                                    x86_64                           5.14.0-295.el9                             baseos                            36 M
 kernel-modules-core                               x86_64                           5.14.0-295.el9                             baseos                            35 M

Transaction Summary
======================================================================================================================================================================
Install   4 Packages
Upgrade  19 Packages

Total download size: 114 M
Is this ok [y/N]: y
Downloading Packages:
(1/23): kernel-5.14.0-295.el9.x86_64.rpm                                                                                               23 MB/s | 3.6 MB     00:00
(2/23): kernel-core-5.14.0-295.el9.x86_64.rpm                                                                                          33 MB/s |  17 MB     00:00
(3/23): centos-gpg-keys-9.0-21.el9.noarch.rpm                                                                                         572 kB/s |  15 kB     00:00
(4/23): centos-stream-release-9.0-21.el9.noarch.rpm                                                                                   1.4 MB/s |  26 kB     00:00
(5/23): kernel-modules-5.14.0-295.el9.x86_64.rpm                                                                                       35 MB/s |  36 MB     00:01
(6/23): centos-stream-repos-9.0-21.el9.noarch.rpm                                                                                      26 kB/s |  12 kB     00:00
(7/23): kernel-modules-core-5.14.0-295.el9.x86_64.rpm                                                                                  27 MB/s |  35 MB     00:01
(8/23): glibc-common-2.34-63.el9.x86_64.rpm                                                                                           766 kB/s | 316 kB     00:00
(9/23): glibc-2.34-63.el9.x86_64.rpm                                                                                                  3.9 MB/s | 1.9 MB     00:00
(10/23): glibc-gconv-extra-2.34-63.el9.x86_64.rpm                                                                                      10 MB/s | 1.7 MB     00:00
(11/23): glibc-langpack-en-2.34-63.el9.x86_64.rpm                                                                                     3.8 MB/s | 671 kB     00:00
(12/23): hwdata-0.348-9.9.el9.noarch.rpm                                                                                               14 MB/s | 1.6 MB     00:00
(13/23): kexec-tools-2.0.26-1.el9.x86_64.rpm                                                                                          3.5 MB/s | 495 kB     00:00
(14/23): kernel-tools-libs-5.14.0-295.el9.x86_64.rpm                                                                                   15 MB/s | 3.6 MB     00:00
(15/23): kernel-tools-5.14.0-295.el9.x86_64.rpm                                                                                        10 MB/s | 3.9 MB     00:00
(16/23): kmod-28-8.el9.x86_64.rpm                                                                                                     522 kB/s | 126 kB     00:00
(17/23): kmod-libs-28-8.el9.x86_64.rpm                                                                                                416 kB/s |  64 kB     00:00
(18/23): libgcc-11.3.1-4.4.el9.x86_64.rpm                                                                                             9.0 MB/s |  98 kB     00:00
(19/23): libgomp-11.3.1-4.4.el9.x86_64.rpm                                                                                             16 MB/s | 274 kB     00:00
(20/23): libstdc++-11.3.1-4.4.el9.x86_64.rpm                                                                                           10 MB/s | 743 kB     00:00
(21/23): selinux-policy-38.1.11-2.el9.noarch.rpm                                                                                      786 kB/s |  55 kB     00:00
(22/23): selinux-policy-targeted-38.1.11-2.el9.noarch.rpm                                                                              35 MB/s | 6.8 MB     00:00
(23/23): which-2.21-29.el9.x86_64.rpm                                                                                                 296 kB/s |  41 kB     00:00
----------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                                  46 MB/s | 114 MB     00:02
Using rpmkeys executable at /bin/rpmkeys to verify signatures
CentOS Stream 9 - BaseOS                                                                                                              1.6 MB/s | 1.6 kB     00:00
Importing GPG key 0x8483C65D:
 Userid     : "CentOS (CentOS Official Signing Key) <security>"
 Fingerprint: 99DB 70FA E1D7 CE22 7FB6 4882 05B5 55B3 8483 C65D
 From       : /etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
Is this ok [y/N]: y
Key imported successfully
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
RPMDB altered outside of DNF.
  Running scriptlet: selinux-policy-targeted-38.1.11-2.el9.noarch                                                                                                 1/1
  Preparing        :                                                                                                                                              1/1
  Upgrading        : libgcc-11.3.1-4.4.el9.x86_64                                                                                                                1/42
  Running scriptlet: libgcc-11.3.1-4.4.el9.x86_64                                                                                                                1/42
  Upgrading        : glibc-common-2.34-63.el9.x86_64                                                                                                             2/42
  Upgrading        : glibc-gconv-extra-2.34-63.el9.x86_64                                                                                                        3/42
  Running scriptlet: glibc-gconv-extra-2.34-63.el9.x86_64                                                                                                        3/42
  Upgrading        : glibc-langpack-en-2.34-63.el9.x86_64                                                                                                        4/42
  Running scriptlet: glibc-2.34-63.el9.x86_64                                                                                                                    5/42
  Upgrading        : glibc-2.34-63.el9.x86_64                                                                                                                    5/42
  Running scriptlet: glibc-2.34-63.el9.x86_64                                                                                                                    5/42
  Installing       : kernel-modules-core-5.14.0-295.el9.x86_64                                                                                                   6/42
  Installing       : kernel-core-5.14.0-295.el9.x86_64                                                                                                           7/42
  Running scriptlet: kernel-core-5.14.0-295.el9.x86_64                                                                                                           7/42
  Installing       : kernel-modules-5.14.0-295.el9.x86_64                                                                                                        8/42
  Running scriptlet: kernel-modules-5.14.0-295.el9.x86_64                                                                                                        8/42
  Upgrading        : kernel-tools-libs-5.14.0-295.el9.x86_64                                                                                                     9/42
  Running scriptlet: kernel-tools-libs-5.14.0-295.el9.x86_64                                                                                                     9/42
  Upgrading        : selinux-policy-38.1.11-2.el9.noarch                                                                                                        10/42
  Running scriptlet: selinux-policy-38.1.11-2.el9.noarch                                                                                                        10/42
  Running scriptlet: selinux-policy-targeted-38.1.11-2.el9.noarch                                                                                               11/42
  Upgrading        : selinux-policy-targeted-38.1.11-2.el9.noarch                                                                                               11/42
  Running scriptlet: selinux-policy-targeted-38.1.11-2.el9.noarch                                                                                               11/42
  Upgrading        : centos-gpg-keys-9.0-21.el9.noarch                                                                                                          12/42
  Upgrading        : centos-stream-repos-9.0-21.el9.noarch                                                                                                      13/42
  Upgrading        : centos-stream-release-9.0-21.el9.noarch                                                                                                    14/42
  Upgrading        : kernel-tools-5.14.0-295.el9.x86_64                                                                                                         15/42
  Running scriptlet: kernel-tools-5.14.0-295.el9.x86_64                                                                                                         15/42
  Installing       : kernel-5.14.0-295.el9.x86_64                                                                                                               16/42
  Running scriptlet: kexec-tools-2.0.26-1.el9.x86_64                                                                                                            17/42
  Upgrading        : kexec-tools-2.0.26-1.el9.x86_64                                                                                                            17/42
  Running scriptlet: kexec-tools-2.0.26-1.el9.x86_64                                                                                                            17/42
  Upgrading        : kmod-28-8.el9.x86_64                                                                                                                       18/42
  Upgrading        : kmod-libs-28-8.el9.x86_64                                                                                                                  19/42
  Upgrading        : libgomp-11.3.1-4.4.el9.x86_64                                                                                                              20/42
  Upgrading        : libstdc++-11.3.1-4.4.el9.x86_64                                                                                                            21/42
  Upgrading        : which-2.21-29.el9.x86_64                                                                                                                   22/42
  Upgrading        : hwdata-0.348-9.9.el9.noarch                                                                                                                23/42
  Running scriptlet: selinux-policy-38.1.9-1.el9.noarch                                                                                                         24/42
  Cleanup          : selinux-policy-38.1.9-1.el9.noarch                                                                                                         24/42
  Running scriptlet: selinux-policy-38.1.9-1.el9.noarch                                                                                                         24/42
  Cleanup          : centos-stream-release-9.0-20.el9.noarch                                                                                                    25/42
  Cleanup          : centos-stream-repos-9.0-20.el9.noarch                                                                                                      26/42
  Cleanup          : centos-gpg-keys-9.0-20.el9.noarch                                                                                                          27/42
  Cleanup          : selinux-policy-targeted-38.1.9-1.el9.noarch                                                                                                28/42
  Running scriptlet: selinux-policy-targeted-38.1.9-1.el9.noarch                                                                                                28/42
  Cleanup          : hwdata-0.348-9.7.el9.noarch                                                                                                                29/42
  Cleanup          : libstdc++-11.3.1-4.3.el9.x86_64                                                                                                            30/42
  Running scriptlet: kernel-tools-5.14.0-289.el9.x86_64                                                                                                         31/42
  Cleanup          : kernel-tools-5.14.0-289.el9.x86_64                                                                                                         31/42
  Running scriptlet: kernel-tools-5.14.0-289.el9.x86_64                                                                                                         31/42
  Running scriptlet: kexec-tools-2.0.25-14.el9.x86_64                                                                                                           32/42
  Cleanup          : kexec-tools-2.0.25-14.el9.x86_64                                                                                                           32/42
  Running scriptlet: kexec-tools-2.0.25-14.el9.x86_64                                                                                                           32/42
  Cleanup          : kmod-28-7.el9.x86_64                                                                                                                       33/42
  Cleanup          : kmod-libs-28-7.el9.x86_64                                                                                                                  34/42
  Cleanup          : libgomp-11.3.1-4.3.el9.x86_64                                                                                                              35/42
  Cleanup          : which-2.21-28.el9.x86_64                                                                                                                   36/42
  Cleanup          : kernel-tools-libs-5.14.0-289.el9.x86_64                                                                                                    37/42
  Running scriptlet: kernel-tools-libs-5.14.0-289.el9.x86_64                                                                                                    37/42
  Cleanup          : glibc-2.34-61.el9.x86_64                                                                                                                   38/42
  Cleanup          : glibc-langpack-en-2.34-61.el9.x86_64                                                                                                       39/42
  Cleanup          : glibc-gconv-extra-2.34-61.el9.x86_64                                                                                                       40/42
  Running scriptlet: glibc-gconv-extra-2.34-61.el9.x86_64                                                                                                       40/42
  Cleanup          : glibc-common-2.34-61.el9.x86_64                                                                                                            41/42
  Cleanup          : libgcc-11.3.1-4.3.el9.x86_64                                                                                                               42/42
  Running scriptlet: libgcc-11.3.1-4.3.el9.x86_64                                                                                                               42/42
  Running scriptlet: kernel-modules-core-5.14.0-295.el9.x86_64                                                                                                  42/42
  Running scriptlet: kernel-core-5.14.0-295.el9.x86_64                                                                                                          42/42
  Running scriptlet: kernel-modules-5.14.0-295.el9.x86_64                                                                                                       42/42
  Running scriptlet: selinux-policy-targeted-38.1.11-2.el9.noarch                                                                                               42/42
  Running scriptlet: kexec-tools-2.0.26-1.el9.x86_64                                                                                                            42/42
  Running scriptlet: libgcc-11.3.1-4.3.el9.x86_64                                                                                                               42/42
  Verifying        : kernel-5.14.0-295.el9.x86_64                                                                                                                1/42
  Verifying        : kernel-core-5.14.0-295.el9.x86_64                                                                                                           2/42
  Verifying        : kernel-modules-5.14.0-295.el9.x86_64                                                                                                        3/42
  Verifying        : kernel-modules-core-5.14.0-295.el9.x86_64                                                                                                   4/42
  Verifying        : centos-gpg-keys-9.0-21.el9.noarch                                                                                                           5/42
  Verifying        : centos-gpg-keys-9.0-20.el9.noarch                                                                                                           6/42
  Verifying        : centos-stream-release-9.0-21.el9.noarch                                                                                                     7/42
  Verifying        : centos-stream-release-9.0-20.el9.noarch                                                                                                     8/42
  Verifying        : centos-stream-repos-9.0-21.el9.noarch                                                                                                       9/42
  Verifying        : centos-stream-repos-9.0-20.el9.noarch                                                                                                      10/42
  Verifying        : glibc-2.34-63.el9.x86_64                                                                                                                   11/42
  Verifying        : glibc-2.34-61.el9.x86_64                                                                                                                   12/42
  Verifying        : glibc-common-2.34-63.el9.x86_64                                                                                                            13/42
  Verifying        : glibc-common-2.34-61.el9.x86_64                                                                                                            14/42
  Verifying        : glibc-gconv-extra-2.34-63.el9.x86_64                                                                                                       15/42
  Verifying        : glibc-gconv-extra-2.34-61.el9.x86_64                                                                                                       16/42
  Verifying        : glibc-langpack-en-2.34-63.el9.x86_64                                                                                                       17/42
  Verifying        : glibc-langpack-en-2.34-61.el9.x86_64                                                                                                       18/42
  Verifying        : hwdata-0.348-9.9.el9.noarch                                                                                                                19/42
  Verifying        : hwdata-0.348-9.7.el9.noarch                                                                                                                20/42
  Verifying        : kernel-tools-5.14.0-295.el9.x86_64                                                                                                         21/42
  Verifying        : kernel-tools-5.14.0-289.el9.x86_64                                                                                                         22/42
  Verifying        : kernel-tools-libs-5.14.0-295.el9.x86_64                                                                                                    23/42
  Verifying        : kernel-tools-libs-5.14.0-289.el9.x86_64                                                                                                    24/42
  Verifying        : kexec-tools-2.0.26-1.el9.x86_64                                                                                                            25/42
  Verifying        : kexec-tools-2.0.25-14.el9.x86_64                                                                                                           26/42
  Verifying        : kmod-28-8.el9.x86_64                                                                                                                       27/42
  Verifying        : kmod-28-7.el9.x86_64                                                                                                                       28/42
  Verifying        : kmod-libs-28-8.el9.x86_64                                                                                                                  29/42
  Verifying        : kmod-libs-28-7.el9.x86_64                                                                                                                  30/42
  Verifying        : libgcc-11.3.1-4.4.el9.x86_64                                                                                                               31/42
  Verifying        : libgcc-11.3.1-4.3.el9.x86_64                                                                                                               32/42
  Verifying        : libgomp-11.3.1-4.4.el9.x86_64                                                                                                              33/42
  Verifying        : libgomp-11.3.1-4.3.el9.x86_64                                                                                                              34/42
  Verifying        : libstdc++-11.3.1-4.4.el9.x86_64                                                                                                            35/42
  Verifying        : libstdc++-11.3.1-4.3.el9.x86_64                                                                                                            36/42
  Verifying        : selinux-policy-38.1.11-2.el9.noarch                                                                                                        37/42
  Verifying        : selinux-policy-38.1.9-1.el9.noarch                                                                                                         38/42
  Verifying        : selinux-policy-targeted-38.1.11-2.el9.noarch                                                                                               39/42
  Verifying        : selinux-policy-targeted-38.1.9-1.el9.noarch                                                                                                40/42
  Verifying        : which-2.21-29.el9.x86_64                                                                                                                   41/42
  Verifying        : which-2.21-28.el9.x86_64                                                                                                                   42/42
Completion plugin: Generating completion cache...
Upgraded: centos-gpg-keys-9.0-21.el9.noarch
Upgraded: centos-stream-release-9.0-21.el9.noarch
Upgraded: centos-stream-repos-9.0-21.el9.noarch
Upgraded: glibc-2.34-63.el9.x86_64
Upgraded: glibc-common-2.34-63.el9.x86_64
Upgraded: glibc-gconv-extra-2.34-63.el9.x86_64
Upgraded: glibc-langpack-en-2.34-63.el9.x86_64
Upgraded: hwdata-0.348-9.9.el9.noarch
Upgraded: kernel-tools-5.14.0-295.el9.x86_64
Upgraded: kernel-tools-libs-5.14.0-295.el9.x86_64
Upgraded: kexec-tools-2.0.26-1.el9.x86_64
Upgraded: kmod-28-8.el9.x86_64
Upgraded: kmod-libs-28-8.el9.x86_64
Upgraded: libgcc-11.3.1-4.4.el9.x86_64
Upgraded: libgomp-11.3.1-4.4.el9.x86_64
Upgraded: libstdc++-11.3.1-4.4.el9.x86_64
Upgraded: selinux-policy-38.1.11-2.el9.noarch
Upgraded: selinux-policy-targeted-38.1.11-2.el9.noarch
Upgraded: which-2.21-29.el9.x86_64
Installed: kernel-5.14.0-295.el9.x86_64
Installed: kernel-core-5.14.0-295.el9.x86_64
Installed: kernel-modules-5.14.0-295.el9.x86_64
Installed: kernel-modules-core-5.14.0-295.el9.x86_64

Upgraded:
  centos-gpg-keys-9.0-21.el9.noarch      centos-stream-release-9.0-21.el9.noarch         centos-stream-repos-9.0-21.el9.noarch    glibc-2.34-63.el9.x86_64
  glibc-common-2.34-63.el9.x86_64        glibc-gconv-extra-2.34-63.el9.x86_64            glibc-langpack-en-2.34-63.el9.x86_64     hwdata-0.348-9.9.el9.noarch
  kernel-tools-5.14.0-295.el9.x86_64     kernel-tools-libs-5.14.0-295.el9.x86_64         kexec-tools-2.0.26-1.el9.x86_64          kmod-28-8.el9.x86_64
  kmod-libs-28-8.el9.x86_64              libgcc-11.3.1-4.4.el9.x86_64                    libgomp-11.3.1-4.4.el9.x86_64            libstdc++-11.3.1-4.4.el9.x86_64
  selinux-policy-38.1.11-2.el9.noarch    selinux-policy-targeted-38.1.11-2.el9.noarch    which-2.21-29.el9.x86_64
Installed:
  kernel-5.14.0-295.el9.x86_64      kernel-core-5.14.0-295.el9.x86_64      kernel-modules-5.14.0-295.el9.x86_64      kernel-modules-core-5.14.0-295.el9.x86_64

Complete!
````

Additional info:
Previous release works (how I got expected result)
ami-04cd3a2e1e4e40f6f