Uploaded image for project: 'Modules'
  1. Modules
  2. MODULES-4686

puppetlabs-apt: gpg keyserver import fails in Debian stretch

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: apt
    • Template:
      MODULES Bug Template
    • Epic Link:
    • Team:
      Modules
    • Sprint:
      Modules Triage
    • QA Risk Assessment:
      Needs Assessment

      Description

      Basic Info
      Module Version: 2.4.0
      Puppet Version: 4.8.2 from debian.org (master is 4.9 with package version 2.7.2-1puppetlabs1)
      OS Name/Version: Agent running Debian 9 (master is Debian 8)

      I realize this is not exactly the best pairing of agent and master. Puppetlabs is yet to release a copy of puppet-agent all-in-one for Debian 9, even though it's in its final freeze stage. So, to test my infrastructure with Debian 9, I have to use the Debian 4.8.2 release of the puppet agent...

      When I add a repo with the key has specifying and id and server, I get an error like the following:

      Error: Execution of '/usr/bin/apt-key adv --keyserver keyring.debian.org --recv-keys ED6D65271AACF0FF15D123036FB2A1C265FFB764' returned 2: Warning: apt-key output should not be parsed (stdout is not a terminal)
      Executing: /tmp/apt-key-gpghome.NbQnqZRGfW/gpg.1.sh --keyserver keyring.debian.org --recv-keys ED6D65271AACF0FF15D123036FB2A1C265FFB764
      gpg: failed to start the dirmngr '/usr/bin/dirmngr': No such file or directory
      gpg: connecting dirmngr at '/tmp/apt-key-gpghome.NbQnqZRGfW/S.dirmngr' failed: No such file or directory
      gpg: keyserver receive failed: No dirmngr
      Error: /Stage[main]/Aptconf/Apt::Source[debian]/Apt::Key[Add key: ED6D65271AACF0FF15D123036FB2A1C265FFB764 from Apt::Source debian]/Apt_key[Add key: ED6D65271AACF0FF15D123036FB2A1C265FFB764 from Apt::Source debian]/ensure: change from absent to present failed: Execution of '/usr/bin/apt-key adv --keyserver keyring.debian.org --recv-keys ED6D65271AACF0FF15D123036FB2A1C265FFB764' returned 2: Warning: apt-key output should not be parsed (stdout is not a terminal)
      Executing: /tmp/apt-key-gpghome.NbQnqZRGfW/gpg.1.sh --keyserver keyring.debian.org --recv-keys ED6D65271AACF0FF15D123036FB2A1C265FFB764
      gpg: failed to start the dirmngr '/usr/bin/dirmngr': No such file or directory
      gpg: connecting dirmngr at '/tmp/apt-key-gpghome.NbQnqZRGfW/S.dirmngr' failed: No such file or directory
      gpg: keyserver receive failed: No dirmngr
      

      Adding the package dirmngr eliminates the error message but the agent just hangs instead.

      root     15835  0.0  0.0  40300  3624 ?        SL   22:50   0:00 gpg --ignore-time-conflict --no-options --no-default-keyring --homedir /tmp/apt-key-gpghome.I1PlE2ou2b --no-auto-check-trustdb --trust-model always --keyring /tmp/apt-key-gpghome.I1PlE2ou2b/pubring.gpg --keyserver keyring.debian.org --recv-keys ED6D65271AACF0FF15D123036FB2A1C265FFB764
      root     15838  0.0  0.0 133592  8716 ?        Ssl  22:50   0:00 dirmngr --daemon --homedir /tmp/apt-key-gpghome.I1PlE2ou2b
      

      I suspect the underlying issue is the large jump in the gpgv package between Debian 8 and 9. Hopefully this is enough info to address this problem before puppet-agent is formally released for Debian 9.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              hailee Hailee Kenney
              Reporter:
              tpdownes Tom Downes
              Votes:
              7 Vote for this issue
              Watchers:
              15 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Zendesk Support