Uploaded image for project: 'Satellite'
  1. Satellite
  2. SAT-28351

Upgrading to Satellite 6.15+ breaks puppet production using hiera

XMLWordPrintable

    • False
    • Moderate
    • sat-rocket
    • None
    • None
    • None
    • Manual

      Description of problem:

      When upgrading Satellite 6.15, Puppet-agent 7 rpm is replacing the custom "/etc/puppetlabs/code/environments/production/hiera.yaml" file with its default one. This breaks all puppet agents in the production environments if hiera.yaml is used as data lookup for the puppet.

      How reproducible:

      Easy

       

      Is this issue a regression from an earlier version:

      Yes

       

      Steps to Reproduce:

      1. Install a Satellite 6.14.

      2. Write a puppet module that uses hiera for data lookup. See. https://www.puppet.com/docs/puppet/6/hiera_quick#hiera_quick

      3. Define one or more data source in "/etc/puppetlabs/code/environments/production/hiera.yaml"

      4. Set some class parameters in the defined data source.

      5. In Satellite  web  ui, import the class  into Satellite and add it to the Satellite host.

      6. Make sure "puppet agent -t" can be run successfully.

      7. Upgrade Satellite to 6.15

      8. Run "puppet agent -t"

       

      Actual behavior:
      Error: Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: Evaluation Error: Error while evaluating a Resource Statement, Class[Test::Something]:
        expects a value for parameter 'foo'
        expects a value for parameter 'bar' on node satellite.example.com

      Expected behavior:
      No error{}

       

       

              Unassigned Unassigned
              rhn-support-hyu Hao Chang Yu
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: