Issue #7326 has been updated by Nigel Kersten.

Subject changed from Puppet invokation is broken with faces and invalid 
commands to Puppet invokation is broken with faces and invalid commands with 
Ruby 1.8.5

So you've only observed this on 1.8.5 Dom?
----------------------------------------
Bug #7326: Puppet invokation is broken with faces and invalid commands with 
Ruby 1.8.5
https://projects.puppetlabs.com/issues/7326

Author: Dominic Maraglia
Status: Accepted
Priority: High
Assignee: Nigel Kersten
Category: Faces
Target version: Statler
Affected Puppet version: 2.7.0rc1
Keywords: faces stack trace
Branch: 


Depending on the invoking of "Puppet" a Ruby stack trace is dumped vs. a proper 
usage statement.  Invalid calling of Puppet dumps a stack trace; likewise, 
calling faces commands results in the same stack trace:

Test Configuration:
<pre>
Ruby: ruby 1.8.5 (2006-08-25) [i386-linux]
cent-55-64-1 centos-5-x86_64
cent-55-386-1 centos-5-i386
Role for cent-55-64-1 master
Role for cent-55-386-1 agent
puppet_ver "origin/2.7.x"
puppet=>"2.7.0rc1-170-ga71bfa1
facter=>"1.5.8
</pre>


Calling puppet with agent -t behaves as normal.
<pre>
[root@cent-55-386-1 ~]# puppet agent -t
warning: peer certificate won't be verified in this SSL session
info: Caching certificate for cent-55-386-1.local
info: Caching certificate_revocation_list for ca
info: Caching catalog for cent-55-386-1.local
info: Applying configuration version '1304371274'
info: Creating state file /var/lib/puppet/state/state.yaml
notice: Finished catalog run in 0.03 seconds
</pre>


Call puppet with faces:
<pre>
[root@cent-55-386-1 ~]# puppet parser validate /tmp/good.pp 
/usr/lib/ruby/site_ruby/1.8/puppet/interface/documentation.rb:9:in `each_line': 
no block given (LocalJumpError)
        from /usr/lib/ruby/site_ruby/1.8/puppet/interface/documentation.rb:9:in 
`strip_whitespace'
        from 
/usr/lib/ruby/site_ruby/1.8/puppet/interface/documentation.rb:45:in `license='
        from 
/usr/lib/ruby/site_ruby/1.8/puppet/interface/documentation.rb:40:in `license'
        from /usr/lib/ruby/site_ruby/1.8/puppet/face/parser.rb:6
        from /usr/lib/ruby/site_ruby/1.8/puppet/interface.rb:47:in 
`instance_eval'
        from /usr/lib/ruby/site_ruby/1.8/puppet/interface.rb:47:in `define'
        from /usr/lib/ruby/site_ruby/1.8/puppet/face/parser.rb:4
        from 
/usr/lib/ruby/site_ruby/1.8/puppet/interface/face_collection.rb:91:in `require'
         ... 7 levels...
        from /usr/lib/ruby/site_ruby/1.8/puppet/application.rb:402:in 
`exit_on_fail'
        from /usr/lib/ruby/site_ruby/1.8/puppet/application.rb:303:in `run'
        from /usr/lib/ruby/site_ruby/1.8/puppet/util/command_line.rb:62:in 
`execute
</pre>

Calling puppet alone should return a usage statement:
<pre>
[root@cent-55-386-1 ~]# puppet
/usr/lib/ruby/site_ruby/1.8/puppet/interface/documentation.rb:9:in `each_line': 
no block given (LocalJumpError)
        from /usr/lib/ruby/site_ruby/1.8/puppet/interface/documentation.rb:9:in 
`strip_whitespace'
        from 
/usr/lib/ruby/site_ruby/1.8/puppet/interface/documentation.rb:45:in `license='
        from 
/usr/lib/ruby/site_ruby/1.8/puppet/interface/documentation.rb:40:in `license'
        from /usr/lib/ruby/site_ruby/1.8/puppet/face/help.rb:8
        from /usr/lib/ruby/site_ruby/1.8/puppet/interface.rb:47:in 
`instance_eval'
        from /usr/lib/ruby/site_ruby/1.8/puppet/interface.rb:47:in `define'
        from /usr/lib/ruby/site_ruby/1.8/puppet/face/help.rb:6
        from 
/usr/lib/ruby/site_ruby/1.8/puppet/interface/face_collection.rb:91:in `require'
        from 
/usr/lib/ruby/site_ruby/1.8/puppet/interface/face_collection.rb:91:in 
`load_face'
        from 
/usr/lib/ruby/site_ruby/1.8/puppet/interface/face_collection.rb:69:in `[]'
        from /usr/lib/ruby/site_ruby/1.8/puppet/interface.rb:57:in `[]'
        from /usr/lib/ruby/site_ruby/1.8/puppet/util/command_line.rb:75:in 
`execute'
</pre>



-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://projects.puppetlabs.com/my/account

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-bugs?hl=en.

Reply via email to