Uploaded image for project: 'Puppet Server'
  1. Puppet Server
  2. SERVER-2517

puppetserver logs the same error twice

    Details

    • Type: Bug
    • Status: Accepted
    • Priority: Normal
    • Resolution: Unresolved
    • Affects Version/s: SERVER 5.3.7, SERVER 6.0.3
    • Fix Version/s: None
    • Component/s: Puppet Server
    • Labels:
      None
    • Template:
      PUP Bug Template
    • Team:
      Server
    • Method Found:
      Customer Feedback
    • QA Risk Assessment:
      Needs Assessment

      Description

      Puppet Version: 5.5.10
      Puppet Server Version: 2018.1.0.109

      Desired Behavior:

      puppetserver logs the same error once

      Actual Behavior:

      puppetserver logs the same error twice, complicating the use of report processors like jamtur01/puppet-snmp

      Reproduction:

      Declare non-existent class for an agent:

      [root@pe-201817-master ~]# cat /etc/puppetlabs/code/environments/production/manifests/site.pp 
      node 'pe-201817-agent.puppetdebug.vlan' {
        include role::bad
      }
      

      Run puppet on the agent:

      [root@pe-201817-agent ~]# puppet agent -t
      Info: Using configured environment 'production'
      Info: Retrieving pluginfacts
      Info: Retrieving plugin
      Info: Retrieving locales
      Info: Loading facts
      Error: Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: Evaluation Error: Error while evaluating a Function Call, Could not find class ::role::bad for pe-201817-agent.puppetdebug.vlan (file: /etc/puppetlabs/code/environments/production/manifests/site.pp, line: 4, column: 3) on node pe-201817-agent.puppetdebug.vlan
      Warning: Not using cache on failed catalog
      Error: Could not retrieve catalog; skipping run
      

      "Puppet Evaluation Error" is logged twice (not including the "Puppet Server Error") identically:

      [root@pe-201902-master ~]#  tail -f /var/log/puppetlabs/puppetserver/puppetserver.log | grep "Error"
      2019-04-10T22:36:14.180Z ERROR [qtp338004690-79] [puppetserver] Puppet Evaluation Error: Error while evaluating a Function Call, Could not find class ::role::bad ...
      /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/parser/compiler.rb:373:in `block in evaluate_classes'
      ...
      2019-04-10T22:36:14.180Z ERROR [qtp338004690-79] [puppetserver] Puppet Evaluation Error: Error while evaluating a Function Call, Could not find class ::role::bad ...
      /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/parser/compiler.rb:373:in `block in evaluate_classes'
      ...
      2019-04-10T22:36:14.181Z ERROR [qtp338004690-79] [puppetserver] Puppet Server Error: Evaluation Error: Error while evaluating a Function Call, Could not find class ::role::bad for pe-201902-agent.puppetdebug.vlan (file: /etc/puppetlabs/code/environments/production/manifests/site.pp, line: 4, column: 3) on node pe-201902-agent.puppetdebug.vlan
      

      See attached for the log with puppetserver with loglevel=debug

        Attachments

          Activity

            jsd-sla-details-panel

              People

              • Assignee:
                Unassigned
                Reporter:
                tom.kishel Thomas Kishel
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:

                  Zendesk Support