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

Puppet apply breaks when an ENC returns an environment

    Details

    • Template:
    • Story Points:
      2
    • Sprint:
      Language 2015-01-21, Client 2015-05-13
    • Release Notes:
      Bug Fix
    • UX Priority:
      Normal

      Description

      Given the following ENC script (/tmp/enc)

      #!/bin/sh
      echo 'classes: []'
      echo 'environment: production'
      

      and two manifests
      1. a manifest to apply (/tmp/manifest.pp)

      notify { 'it works': }
       

      2. a pseudo site-manifest (/tmp/site.pp)

      notify { 'FAIL': }
       

      Invoking puppet apply in the following fashion should print "itworks", but does not.

      $ bundle exec puppet apply /tmp/manifest.pp --node_terminus exec --external_nodes /tmp/enc --manifest /tmp/site.pp 
      ...
      Notice: FAIL
      


      Summary

      Previously, if the master was configured to use an ENC, and the ENC returned an environment for a node, then puppet apply manifest.pp would apply the catalog from that environment instead of the manifest specified on the command line.

      Now, puppet apply manifest.pp will use the specified manifest from the command line, even if the ENC returns an environment.


      QA Risk Analysis

      Risk Level High (a broken apply can break production)
      Probability High (it seems highly likely an ENC will return an envrionment)
      Severity Medium (puppet apply should work)
      Test Level Acceptance (crosses component boundaries)

        Attachments

          Issue Links

            Activity

              jsd-sla-details-panel

                People

                • Assignee:
                  Unassigned
                  Reporter:
                  ffrank Felix Frank
                  QA Contact:
                  Kurt Wall
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  8 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: