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

File and line numbers often missing from errors

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: PUP 3.7.5
    • Component/s: Compiler
    • Labels:
      None
    • Template:
    • Story Points:
      1
    • Sprint:
      Language 2015-03-18, Language 2015-04-01

      Description

      I've noticed that some classes of error don't include the name and line number of the .pp file where they occurred. I haven't been paying attention to whether it's a particular type of error, but in this example it's failure from a stdlib function.

      Let me know if you want me to do any further debugging.

      2015-03-04 13:35:32,131 DEBUG [puppet-server] Puppet importing '/etc/puppet/environments/SYSAD2994/modules/elasticsearch/manifests/service.pp' in environment SYSAD2994
      2015-03-04 13:35:32,143 DEBUG [puppet-server] Puppet Automatically imported elasticsearch::service from elasticsearch/service into SYSAD2994
      2015-03-04 13:35:32,219 ERROR [puppet-server] Puppet pick(): must receive at least one non empty value on node disri.lnx.warwick.ac.uk
      /usr/share/ruby/vendor_ruby/puppet/util/errors.rb:104:in `fail'
      /etc/puppet/environments/SYSAD2994/modules/stdlib/lib/puppet/parser/functions/pick.rb:24:in `real_function_pick'
      /usr/share/ruby/vendor_ruby/puppet/parser/functions.rb:164:in `function_pick'
      /usr/share/ruby/vendor_ruby/puppet/util/profiler/around_profiler.rb:58:in `profile'
      /usr/share/ruby/vendor_ruby/puppet/util/profiler.rb:51:in `profile'
      /usr/share/ruby/vendor_ruby/puppet/parser/functions.rb:157:in `function_pick'
      /usr/share/ruby/vendor_ruby/puppet/pops/evaluator/runtime3_support.rb:248:in `call_function'
      /usr/share/ruby/vendor_ruby/puppet/pops/evaluator/evaluator_impl.rb:771:in `eval_CallNamedFunctionExpression'
      /usr/share/ruby/vendor_ruby/puppet/pops/visitor.rb:64:in `visit_this_1'
      /usr/share/ruby/vendor_ruby/puppet/pops/evaluator/evaluator_impl.rb:77:in `evaluate'
      /usr/share/ruby/vendor_ruby/puppet/pops/evaluator/evaluator_impl.rb:722:in `eval_AttributeOperation'
      /usr/share/ruby/vendor_ruby/puppet/pops/visitor.rb:64:in `visit_this_1'
      /usr/share/ruby/vendor_ruby/puppet/pops/evaluator/evaluator_impl.rb:77:in `evaluate'
      /usr/share/ruby/vendor_ruby/puppet/pops/evaluator/evaluator_impl.rb:689:in `eval_ResourceExpression'
      org/jruby/RubyArray.java:1613:in `each'
      org/jruby/RubyEnumerable.java:865:in `inject'
      /usr/share/ruby/vendor_ruby/puppet/pops/evaluator/evaluator_impl.rb:688:in `eval_ResourceExpression'
      org/jruby/RubyArray.java:2412:in `map'
      /usr/share/ruby/vendor_ruby/puppet/pops/evaluator/evaluator_impl.rb:649:in `eval_ResourceExpression'
      /usr/share/ruby/vendor_ruby/puppet/pops/visitor.rb:64:in `visit_this_1'
      ...
      ringutils.clj:75:in `invoke'
      ringutils.clj:81:in `invoke'
      core.clj:112:in `invoke'
      core.clj:2443:in `invoke'
      core.clj:112:in `doInvoke'
      master_service.clj:28:in `invoke'
      core.clj:176:in `invoke'
      core.clj:45:in `invoke'
      jetty9_core.clj:317:in `invoke'
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                nickh Nick Howes
                QA Contact:
                Kurt Wall
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Zendesk Support