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

Error message for lowercase type in require param is not meaningful.

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Won't Fix
    • Affects Version/s: PUP 4.2.1
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Template:

      Description

      Example manifest to show error:

      sqlserver::config{ "MSSQLSERVER":
      	admin_user => 'sa',
      	admin_pass => "Pupp3t1@",
      	require    => sqlserver_instance['MSSQLSERVER'],
      }
      

      Full Error:

      Error: Evaluation Error: The value 'MSSQLSERVER' cannot be converted to Numeric.
       on node vve958wz2qgs3pn.delivery.puppetlabs.net
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/pops/evaluator/runtime3_su
      pport.rb:37:in `optionally_fail'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/pops/evaluator/runtime3_su
      pport.rb:19:in `fail'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/pops/evaluator/runtime3_su
      pport.rb:229:in `coerce_numeric'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/pops/evaluator/access_oper
      ator.rb:42:in `access_String'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/pops/visitor.rb:46:in `blo
      ck in visit_this'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/pops/visitor.rb:42:in `eac
      h'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/pops/visitor.rb:42:in `vis
      it_this'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/pops/visitor.rb:79:in `vis
      it_this_2'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/pops/evaluator/access_oper
      ator.rb:26:in `access'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/pops/evaluator/evaluator_i
      mpl.rb:418:in `eval_AccessExpression'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/pops/visitor.rb:46:in `blo
      ck in visit_this'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/pops/visitor.rb:42:in `eac
      h'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/pops/visitor.rb:42:in `vis
      it_this'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/pops/visitor.rb:69:in `vis
      it_this_1'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/pops/evaluator/evaluator_i
      mpl.rb:73:in `evaluate'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/pops/evaluator/evaluator_i
      mpl.rb:772:in `eval_AttributeOperation'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/pops/visitor.rb:67:in `vis
      it_this_1'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/pops/evaluator/evaluator_i
      mpl.rb:73:in `evaluate'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/pops/evaluator/evaluator_i
      mpl.rb:739:in `block (2 levels) in eval_ResourceExpression'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/pops/evaluator/evaluator_i
      mpl.rb:738:in `each'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/pops/evaluator/evaluator_i
      mpl.rb:738:in `reduce'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/pops/evaluator/evaluator_i
      mpl.rb:738:in `block in eval_ResourceExpression'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/pops/evaluator/evaluator_i
      mpl.rb:699:in `map'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/pops/evaluator/evaluator_i
      mpl.rb:699:in `eval_ResourceExpression'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/pops/visitor.rb:67:in `vis
      it_this_1'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/pops/evaluator/evaluator_i
      mpl.rb:73:in `evaluate'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/pops/evaluator/evaluator_i
      mpl.rb:569:in `block in eval_BlockExpression'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/pops/evaluator/evaluator_i
      mpl.rb:569:in `each'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/pops/evaluator/evaluator_i
      mpl.rb:569:in `eval_BlockExpression'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/pops/visitor.rb:46:in `blo
      ck in visit_this'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/pops/visitor.rb:42:in `eac
      h'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/pops/visitor.rb:42:in `vis
      it_this'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/pops/visitor.rb:69:in `vis
      it_this_1'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/pops/evaluator/evaluator_i
      mpl.rb:73:in `evaluate'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/pops/evaluator/evaluator_i
      mpl.rb:640:in `eval_Program'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/pops/visitor.rb:46:in `blo
      ck in visit_this'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/pops/visitor.rb:42:in `eac
      h'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/pops/visitor.rb:42:in `vis
      it_this'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/pops/visitor.rb:69:in `vis
      it_this_1'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/pops/evaluator/evaluator_i
      mpl.rb:73:in `evaluate'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/pops/parser/evaluating_par
      ser.rb:57:in `evaluate'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/parser/ast/pops_bridge.rb:
      105:in `evaluate'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/parser/ast.rb:31:in `safee
      valuate'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/resource/type.rb:120:in `e
      valuate_code'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/parser/resource.rb:79:in `
      evaluate'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/parser/compiler.rb:409:in
      `evaluate_main'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/parser/compiler.rb:131:in
      `block (2 levels) in compile'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/util/profiler/around_profi
      ler.rb:58:in `profile'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/util/profiler.rb:51:in `pr
      ofile'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/parser/compiler.rb:131:in
      `block in compile'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/context.rb:64:in `override
      '
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet.rb:223:in `override'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/parser/compiler.rb:121:in
      `compile'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/parser/compiler.rb:34:in `
      compile'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/indirector/catalog/compile
      r.rb:93:in `block (2 levels) in compile'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/util/profiler/around_profi
      ler.rb:58:in `profile'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/util/profiler.rb:51:in `pr
      ofile'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/indirector/catalog/compile
      r.rb:91:in `block in compile'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/util.rb:129:in `block in b
      enchmark'
      C:/Program Files/Puppet Labs/Puppet/sys/ruby/lib/ruby/2.1.0/benchmark.rb:294:in
      `realtime'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/util.rb:128:in `benchmark'
       
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/indirector/catalog/compile
      r.rb:90:in `compile'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/indirector/catalog/compile
      r.rb:50:in `find'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/indirector/indirection.rb:
      194:in `find'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/application/apply.rb:256:i
      n `block in main'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/context.rb:64:in `override
      '
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet.rb:223:in `override'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/application/apply.rb:225:i
      n `main'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/application/apply.rb:170:i
      n `run_command'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/application.rb:344:in `blo
      ck in run'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/util.rb:446:in `exit_on_fa
      il'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/application.rb:344:in `run
      '
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/util/command_line.rb:128:i
      n `run'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/util/command_line.rb:72:in
       `execute'
      C:/Program Files/Puppet Labs/Puppet/puppet/bin/puppet:5:in `<main>'
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              zach.reichert Zach Reichert
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Zendesk Support