Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
denyka opened this issue Mar 25, 2024 · 1 comment
Open

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

denyka opened this issue Mar 25, 2024 · 1 comment
Labels

Comments

@denyka
Copy link

denyka commented Mar 25, 2024

----------
          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 <jenkinsci-board@googlegroups.com>"
                     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

@denyka denyka added the bug label Mar 25, 2024
@dosercz
Copy link
Contributor

dosercz commented Aug 28, 2024

Fixed in #90

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants