Uploaded image for project: 'Community Package Repository'
  1. Community Package Repository
  2. CPR-357

Nightlies GPG public key file breaks on EL6 with signatures

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 2017/08/02
    • Labels:
      None
    • Environment:

      EL6.8

    • Template:
    • Sub-team:
    • Story Points:
      2
    • Sprint:
      RE 2016-06-01

      Description

      When using the nightlies repo on EL6, the GPG key download fails as it contains a key with additional signatures, but yum throws this error when importing it:

      [root@plain ~]# curl -o /etc/yum.repos.d/puppet-agent.repo http://nightlies.puppetlabs.com/puppet-agent/latest/repo_configs/rpm/pl-puppet-agent-latest-el-6-x86_64.repo
        % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                       Dload  Upload   Total   Spent    Left  Speed
      112   224  112   224    0     0    867      0 --:--:-- --:--:-- --:--:--  1792
      [root@plain ~]# yum install puppet-agent
      Loaded plugins: fastestmirror
      Setting up Install Process
      Loading mirror speeds from cached hostfile
       * base: mirror.sov.uk.goscomb.net
       * extras: mirror.sov.uk.goscomb.net
       * updates: centos.hyve.com
      Resolving Dependencies
      --> Running transaction check
      ---> Package puppet-agent.x86_64 0:1.5.0.16.g48e27ba-1.el6 will be installed
      --> Finished Dependency Resolution
       
      Dependencies Resolved
       
      ===============================================================================================================================================================================================================================================================================
       Package                                                       Arch                                                    Version                                                                   Repository                                                               Size
      ===============================================================================================================================================================================================================================================================================
      Installing:
       puppet-agent                                                  x86_64                                                  1.5.0.16.g48e27ba-1.el6                                                   pl-puppet-agent-latest                                                   26 M
       
      Transaction Summary
      ===============================================================================================================================================================================================================================================================================
      Install       1 Package(s)
       
      Total download size: 26 M
      Installed size: 134 M
      Is this ok [y/N]: y
      Downloading Packages:
      puppet-agent-1.5.0.16.g48e27ba-1.el6.x86_64.rpm                                                                                                                                                                                                         |  26 MB     00:04     
      warning: rpmts_HdrFromFdno: Header V4 RSA/SHA1 Signature, key ID 07bb6c57: NOKEY
      Retrieving key from http://nightlies.puppetlabs.com/07BB6C57
       
       
      Invalid GPG Key from http://nightlies.puppetlabs.com/07BB6C57: first PGP packet should be a public-key packet, not signature packet
      

      I tried exporting the public key from GnuPG 2 with this command, which excludes all signatures except for the self-signatures, and it imported into yum correctly: gpg -a --export-options export-minimal --export 07BB6C57

      Probably changed in the fix for CPR-347.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                ryan.mckern Ryan McKern
                Reporter:
                domcleal Dominic Cleal
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Zendesk Support