Uploaded image for project: 'Modules'
  1. Modules
  2. MODULES-10749

Puppet_agent : Puppet agent reporting that a Puppet 6.17 system is pre-Puppet 4

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Cannot Reproduce
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: puppet_agent
    • Labels:
      None
    • Environment:

      CentOS 7 VM running Puppet 6.17 against a Puppet 6 server with puppet_agent version 4.0.0 installed.

       

       

       

    • Template:
      MODULES Bug Template
    • Acceptance Criteria:
      Hide

      Puppet agent module should properly determine that it is running on a system with a current puppet agent and run appropriately.

      Show
      Puppet agent module should properly determine that it is running on a system with a current puppet agent and run appropriately.
    • Method Found:
      Needs Assessment
    • QA Risk Assessment:
      Needs Assessment

      Description

      Basic Info
      Module Version:  4.0
      Puppet Version:   6.17
      OS Name/Version:  CentOS 7

       

      Desired Behavior:  Puppet agent obtains a catalog from remote server

      Actual Behavior:  Puppet agent fails to obtain catalog with an error that the puppet agent module doesn't support pre version 4 Upgrades.

      I have a CentOS 7 machine that is the first of a bunch of new database systems we need to create.  This is not our first CentOS/RHEL 7 system.  However, this is the first system where we find issues running puppet.  Specifically, when the puppet_agent module does it's check for version, it's complaining that the system is running a puppet agent that is pre-Puppet 4 and can't be updated as follows:

      [dmatz@fbdadacdd01 ~]$ sudo puppet agent -t
      Info: Using configured environment 'production'
      Info: Retrieving pluginfacts
      Info: Retrieving plugin
      Info: Retrieving locales
      Error: Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: Evaluation Error: Error while evaluating a Function Call, The puppet_agent module does not support pre-Puppet 4 upgrades. (file: /etc/puppetlabs/code/environments/production/modules/puppet_agent/manifests/init.pp, line: 120, column: 5) on node fbdadacdd01.asf.alaska.edu
      Warning: Not using cache on failed catalog
      Error: Could not retrieve catalog; skipping run

      Looking in init.pp for puppet agent,  I find that the affected error message is produced when the facter value aio_agent_version is undef.  However, a puppet run with debug produces:

      [dmatz@fbdadacdd01 ~]$ sudo puppet agent -td | grep aio
      Debug: Facter: fact "aio_agent_version" has resolved to "6.17.0".
      Error: Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: Evaluation Error: Error while evaluating a Function Call, The puppet_agent module does not support pre-Puppet 4 upgrades. (file: /etc/puppetlabs/code/environments/production/modules/puppet_agent/manifests/init.pp, line: 120, column: 5) on node fbdadacdd01.asf.alaska.edu
      Warning: Not using cache on failed catalog
      Error: Could not retrieve catalog; skipping run

      There is apparently some underlying subtle issue that is leading to the aio_agent_version getting set to undef by the puppet_agent module leading to this issue.

       

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            djmatz@alaska.edu David Matz
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Zendesk Support