Issue #2889 has been updated by konrad rzentarzewski.

File dev24-namespaceauth.conf added
File dev24-puppetd.strace added

i've found obscured exception in process strace which turns out to 
namespaceauth related bug with pattern matching:


write(4, "n puppet.looney.acme.com at line 2 of
        /usr/lib/ruby/site_ruby/1.8/puppet/network/authconfig.rb:122:in `parse\'
        /usr/lib/ruby/site_ruby/1.8/puppet/network/authconfig.rb:117:in `each\'
        /usr/lib/ruby/site_ruby/1.8/puppet/net
work/authconfig.rb:117:in `parse\'
        /usr/lib/ruby/site_ruby/1.8/puppet/network/authconfig.rb:100:in `each\'
        /usr/lib/ruby/site_ruby/1.8/puppet/network/authconfig.rb:100:in `parse\'
        /usr/lib/ruby/site_ruby/1.8/puppet/network/authcon
fig.rb:97:in `open\'
        /usr/lib/ruby/site_ruby/1.8/puppet/network/authconfig.rb:97:in `parse\'
        /usr/lib/ruby/site_ruby/1.8/puppet/network/authconfig.rb:86:in `read\'
        /usr/lib/ruby/site_ruby/1.8/puppet/network/authconfig.rb:59:in `in
itialize\'
        /usr/lib/ruby/site_ruby/1.8/puppet/network/authconfig.rb:10:in `new\'
        /usr/lib/ruby/site_ruby/1.8/puppet/network/authconfig.rb:10:in `main\'
        /usr/lib/ruby/site_ruby/1.8/puppet/network/authorization.rb:14:in 
`authconfig\
'
        /usr/lib/ruby/site_ruby/1.8/puppet/network/authorization.rb:28:in 
`authorized?\'
        /usr/lib/ruby/site_ruby/1.8/puppet/network/authorization.rb:74:in 
`verify\'
        /usr/lib/ruby/site_ruby/1.8/puppet/network/xmlrpc/processor.rb:40:in `p
rocess\'
        
/usr/lib/ruby/site_ruby/1.8/puppet/network/xmlrpc/webrick_servlet.rb:68:in 
`service\'
        /usr/lib/ruby/1.8/webrick/httpserver.rb:104:in `service\'
        /usr/lib/ruby/1.8/webrick/httpserver.rb:65:in `run\'
        /usr/lib/ruby/1.8/web
rick/server.rb:173:in `start_thread\'
        /usr/lib/ruby/1.8/webrick/server.rb:162:in `start\'
        /usr/lib/ruby/1.8/webrick/server.rb:162:in `start_thread\'
        /usr/lib/ruby/1.8/webrick/server.rb:95:in `start\'
        /usr/lib/ruby/1.8/webrick/s
erver.rb:92:in `each\'
        /usr/lib/ruby/1.8/webrick/server.rb:92:in `start\'
        /usr/lib/ruby/1.8/webrick/server.rb:23:in `start\'
        /usr/lib/ruby/1.8/webrick/server.rb:82:in `start\'
        /usr/lib/ruby/site_ruby/1.8/puppet.rb:293:in `start
\'
        /usr/lib/ruby/site_ruby/1.8/puppet.rb:144:in `newthread\'
        /usr/lib/ruby/site_ruby/1.8/puppet.rb:143:in `initialize\'
        /usr/lib/ruby/site_ruby/1.8/puppet.rb:143:in `new\'
        /usr/lib/ruby/site_ruby/1.8/puppet.rb:143:in `newthread
\'
        /usr/lib/ruby/site_ruby/1.8/puppet.rb:291:in `start\'
        /usr/lib/ruby/site_ruby/1.8/puppet.rb:290:in `each\'
        /usr/lib/ruby/site_ruby/1.8/puppet.rb:290:in `start\'
        /usr/sbin/puppetd:437
[2009-12-04 20:09:39] DEBUG close: 10.0.
4.2:36567
[2009-12-04 20:11:24] DEBUG accept: 10.0.4.2:37430
[2009-12-04 20:11:24] DEBUG Puppet::Network::XMLRPC::WEBrickServlet is invoked.
[2009-12-04 20:11:24] ERROR Puppet::ConfigurationError: Invalid pattern 
puppet.looney.acme.com at
 line 2 of
        /usr/lib/ruby/site_ruby/1.8/puppet/network/authconfig.rb:122:in `parse\'
        /usr/lib/ruby/site_ruby/1.8/puppet/network/authconfig.rb:117:in `each\'
        /usr/lib/ruby/site_ruby/1.8/puppet/network/authconfig.rb:117:in 
`parse\'\
n       /usr/lib/ruby/site_ruby/1.8/puppet/network/authconfig.rb:100:in `each\'
        /usr/lib/ruby/site_ruby/1.8/puppet/network/authconfig.rb:100:in `parse\'
        /usr/lib/ruby/site_ruby/1.8/puppet/network/authconfig.rb:97:in `open\'
        /usr/lib/ru
by/site_ruby/1.8/puppet/network/authconfig.rb:97:in `parse\'
        /usr/lib/ruby/site_ruby/1.8/puppet/network/authconfig.rb:86:in `read\'
        /usr/lib/ruby/site_ruby/1.8/puppet/network/authconfig.rb:59:in 
`initialize\'
        /usr/lib/ruby/site_ru
by/1.8/puppet/network/authconfig.rb:10:in `new\'
        /usr/lib/ruby/site_ruby/1.8/puppet/network/authconfig.rb:10:in `main\'
        /usr/lib/ruby/site_ruby/1.8/puppet/network/authorization.rb:14:in 
`authconfig\'
        /usr/lib/ruby/site_ruby/1.8/pu
ppet/network/authorization.rb:28:in `authorized?\'
        /usr/lib/ruby/site_ruby/1.8/puppet/network/authorization.rb:74:in 
`verify\'
        /usr/lib/ruby/site_ruby/1.8/puppet/network/xmlrpc/processor.rb:40:in 
`process\'
        /usr/lib/ruby/site_ruby
/1.8/puppet/network/xmlrpc/webrick_servlet.rb:68:in `service\'
        /usr/lib/ruby/1.8/webrick/httpserver.rb:104:in `service\'
        /usr/lib/ruby/1.8/webrick/httpserver.rb:65:in `run\'
        /usr/lib/ruby/1.8/webrick/server.rb:173:in `start_thread
\'
        /usr/lib/ruby/1.8/webrick/server.rb:162:in `start\'
        /usr/lib/ruby/1.8/webrick/server.rb:162:in `start_thread\'
        /usr/lib/ruby/1.8/webrick/server.rb:95:in `start\'
        /usr/lib/ruby/1.8/webrick/server.rb:92:in ", 4096) = 4096

(full strace and namespaceauth attached)
----------------------------------------
Bug #2889: puppetrun gives error 500 with no explanation
http://projects.reductivelabs.com/issues/2889

Author: Alex Urbanowicz
Status: Unreviewed
Priority: High
Assigned to: 
Category: 
Target version: 
Affected version: 0.24.8
Keywords: puppetrun 500
Branch: 


Hello!

We have problem using puppetrun:

[r...@stonka alex]# puppetrun --trace --debug --host hostname.fqdn
debug: Parsing /etc/puppet/puppet.conf
debug: Puppet::Network::Client::Runner: defining puppetrunner.run
Triggering hostname.fqdn
debug: Calling puppetrunner.run
err: Could not call puppetrunner.run: #<RuntimeError: HTTP-Error: 500 Internal 
Server Error >
Host hostname.fqdn failed: HTTP-Error: 500 Internal Server Error 
hostname.fqdn finished with exit code 2
Failed: hostname.fqdn

on the puppet the --trace --debug --verbose log looks as follows:

Dec  4 18:06:57 hostname puppetd[30452]: (access[fileserver]) allowing 
puppet.fqdn access

namespaceauth.conf contents is:

[fileserver]
    allow puppet.fqdn

[puppetmaster]
    allow puppet.fqdn

[puppetrunner]
    allow *.fqdn

[puppetbucket]
    allow *.fqdn

[puppetreports]
    allow puppet.fqdn

[resource]
    allow puppet.fqdn

Strace gives unconclusive results. I suspect the problem is somewhat related to 
the network setup (the puppet I try to trigger has no access to reverse dns of 
the fqdn domain, and uses /etc/hosts lookups) but I found no way to confirm 
this.


-- 
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://reductivelabs.com/redmine/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