Skip to content

[BUG] RHEL repo gpg error due to incorrect key #89

@denyka

Description

@denyka
----------
          ID: jenkins
    Function: pkg.installed
      Result: False
     Comment: Error occurred installing package(s). Additional info follows:

              errors:
                  - Running scope as unit: run-ra5684b079467415dbb0c6ac1ff786386.scope
                    Last metadata expiration check: 0:00:02 ago on Mon Mar 25 19:48:31 2024.
                    Dependencies resolved.
                    ================================================================================
                     Package          Architecture    Version                Repository        Size
                    ================================================================================
                    Installing:
                     jenkins          noarch          2.440.2-1.1            jenkins           82 M

                    Transaction Summary
                    ================================================================================
                    Install  1 Package

                    Total download size: 82 M
                    Installed size: 83 M
                    Downloading Packages:
                    jenkins-2.440.2-1.1.noarch.rpm                   45 MB/s |  82 MB     00:01
                    --------------------------------------------------------------------------------
                    Total                                            44 MB/s |  82 MB     00:01
                    Jenkins upstream package repository              40 kB/s | 3.1 kB     00:00
                    Importing GPG key 0x45F2C3D5:
                     Userid     : "Jenkins Project <[email protected]>"
                     Fingerprint: 62A9 756B FD78 0C37 7CF2 4BA8 FCEF 32E7 45F2 C3D5
                     From       : https://pkg.jenkins.io/redhat-stable/jenkins.io.key
                    Key imported successfully
                    Import of key(s) didn't help, wrong key(s)?
                    Public key for jenkins-2.440.2-1.1.noarch.rpm is not installed. Failing package is: jenkins-2.440.2-1.1.noarch
                     GPG Keys are configured as: https://pkg.jenkins.io/redhat-stable/jenkins.io.key
                    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
     Started: 19:48:26.886320
    Duration: 9909.231 ms
     Changes:
              ----------
              gpg-pubkey.(none):
                  ----------
                  new:
                      3228467c-613798eb,350d275d-6279464b,45f2c3d5-5e81efb9,621e9f35-58adea78,73d76b3f-63dace60,7bd9bf62-5762b5f8
                  old:
                      3228467c-613798eb,350d275d-6279464b,621e9f35-58adea78,73d76b3f-63dace60,7bd9bf62-5762b5f8

Formula commit hash / release tag

- jenkins-formula:
          rev: 'da763dd'    # 2024.03 - git rev-parse --short HEAD, tags are not available for the repo

Problem line is https://github.com/saltstack-formulas/jenkins-formula/blob/da763dd88f0b7871ff01272b3a894e0bebf680f7/jenkins/init.sls#L46C7-L46C76

Fix

- gpgkey: https://pkg.jenkins.io/redhat{{ repo_suffix }}/jenkins.io.key
should be replaced with line
- gpgkey: https://pkg.jenkins.io/redhat{{ repo_suffix }}/jenkins.io-2023.key

or move key name to defaults so it could be changed via lookup

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions