Uploaded image for project: 'PuppetDB'
  1. PuppetDB
  2. PDB-3620

PDB terminus fails with "alias" metaparameters in puppet 5

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Normal
    • Resolution: Fixed
    • None
    • PDB 5.1.0
    • PuppetDB
    • None
    • Agent
    • 1
    • Agent 2017-07-26
    • Needs Assessment
    • Bug Fix
    • The puppetdb terminus would fail if the catalog contained resources using the "alias" metaparameter, causing the agent run to fail. This is a regression introduced in Puppet 5.
    • No Action
    • covered by unit tests

    Description

      Puppet 5 change Catalog#to_data_hash so it always returns data types that are safe to serialize as yaml, json, etc, and will never return symbols. We changed the terminus to handle most of this, but we missed the alias case. The following manifest demonstrates the problem:

      package { 'foo':
        ensure => present,
        alias => 'bar'
      }
       
      notify { 'hello':
        require => Package['bar']
      }
      

      Note the package type supports two namevars, which causes the terminus to behave differently.

      Attachments

        Issue Links

          Activity

            People

              qa qa
              josh Josh Cooper
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Zendesk Support