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

PDB terminus fails with "alias" metaparameters in puppet 5

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: PDB 5.1.0
    • Component/s: None
    • Labels:
      None
    • Template:
    • Team:
      Agent
    • Story Points:
      1
    • Sprint:
      Agent 2017-07-26
    • Method Found:
      Needs Assessment
    • Release Notes:
      Bug Fix
    • Release Notes Summary:
      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.
    • QA Risk Assessment:
      No Action
    • QA Risk Assessment Reason:
      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

              jsd-sla-details-panel

                People

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

                  Dates

                  • Created:
                    Updated:
                    Resolved:

                    Zendesk Support