Uploaded image for project: 'Puppet'
  1. Puppet
  2. PUP-6606

Regression with inherited variables lookup

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Cannot Reproduce
    • Affects Version/s: PUP 4.6.0
    • Fix Version/s: PUP 4.6.1
    • Component/s: Language
    • Labels:
    • Environment:

      A simple case with puppetlabs-apt and use of apt::key

    • Template:
    • Team:
      Puppet Developer Experience

      Description

      The problem appeared right after upgrade to 4.6.0

      Error message: "Error: Could not retrieve catalog from remote server: Error 500 on
      SERVER: Server Error: Evaluation Error: Error while evaluating a Resource Statement, Evaluation Error: Unknown variable: '::apt::keyserver'. at /etc/puppetlabs/code/environments/production/modules/apt/manifests/key.pp:7:18...."

      Investigation:
      1. `apt::key` has the following line

       $server      = $::apt::keyserver,
      

      2. However, `$keyserver` is defined in `apt::params` and then inherited apt `class`

      I do not think the problem is in the module. It should be solved on Puppet Language level as it was working before. Also, there are many other modules which can get broken.

        Attachments

          Activity

            jsd-sla-details-panel

              People

              • Assignee:
                andvgal Andrey Galkin
                Reporter:
                andvgal Andrey Galkin
              • Votes:
                2 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: