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

Relationships on resource aliases don't work with Puppet 4.x

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: PDB 2.3.5
    • Fix Version/s: PDB 2.3.6
    • Component/s: None
    • Labels:
      None
    • Template:
    • Story Points:
      2
    • Sprint:
      PuppetDB 2015-07-01

      Description

      When doing a dependency on a resource alias the puppetdb-terminus fails in the synthesize_edges method when caching the catalog.

      The following code snippet illustrates the issue:

      package { foo:
        ensure => installed,
        alias=>bar,
      }
      service{ baz:
        ensure => running,
        require => Package[bar]
      }
      

      It fails silently, but with some debug output added I can see it fails with the exception

      Puppet::Error: Invalid relationship: Service[baz] { require => Package[bar] }, because Package[bar] doesn't seem to be in the catalog
      

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            dalen Erik Dalén
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Zendesk Support