The Puppet Labs Issue Tracker has Moved: https://tickets.puppetlabs.com

Bug #9040

mongodb-registration agent: Execution of registration failed: Symbol as array index

Added by Shanker Balan over 2 years ago. Updated 5 months ago.

Status:Code InsufficientStart date:08/17/2011
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:-
Target version:-
Keywords: Affected mCollective version:
Branch:

We've Moved!

Ticket tracking is now hosted in JIRA: https://tickets.puppetlabs.com

This ticket is now tracked at: https://tickets.puppetlabs.com/browse/MCO-106


Description

Helo,

The mongodb registration agent croaks if it encounters a non meta.rb
registration message (in my case, it was registration/agentlist.rb which were
sending out agentlist messages) as below:

E, [2011-08-17T01:03:16.027138 #21276] ERROR — : agents.rb:116:in dispatch' Execution of registration failed: Symbol as array index E, [2011-08-10T06:20:22.240545 #2168] ERROR -- : agents.rb:117:indispatch'
/usr/share/mcollective/plugins/mcollective/agent/registration.rb:58:in []' /usr/share/mcollective/plugins/mcollective/agent/registration.rb:58:in handlemsg'

/usr/lib/ruby/1.8/mcollective/agents.rb:104:in `dispatch'                                                                                                                                                                                                           
/usr/lib/ruby/1.8/timeout.rb:62:in `timeout'                                                                                                                                                                                                                        
/usr/lib/ruby/1.8/mcollective/agents.rb:103:in `dispatch'                                                                                                                                                                                                           
/usr/lib/ruby/1.8/mcollective/agents.rb:99:in `initialize'                                                                                                                                                                                                          
/usr/lib/ruby/1.8/mcollective/agents.rb:99:in `new'                                                                                                                                                                                                                 
/usr/lib/ruby/1.8/mcollective/agents.rb:99:in `dispatch'                                                                                                                                                                                                            
/usr/lib/ruby/1.8/mcollective/runner.rb:100:in `agentmsg'                                                                                                                                                                                                           
/usr/lib/ruby/1.8/mcollective/runner.rb:80:in `run'                                                                                                                                                                                                                 
/usr/lib/ruby/1.8/mcollective/runner.rb:57:in `loop'                                                                                                                                                                                                                
/usr/lib/ruby/1.8/mcollective/runner.rb:57:in `run'                                                                                                                                                                                                                 
/usr/sbin/mcollectived:58                                                                                                                                                                                                                                           

I had a hard time narrowing down the problem agents since the logs didn’t say
who is the emitter. :)

registration.rb.diff Magnifier (993 Bytes) Shanker Balan, 08/17/2011 04:07 am

History

#1 Updated by R.I. Pienaar over 2 years ago

  • Status changed from Unreviewed to Code Insufficient

Thanks for this patch, I think we need to be even more strict though.

Instead of just looking if it’s a hash we should check that its a hash and has the desired keys in it.

#2 Updated by R.I. Pienaar over 2 years ago

  • Project changed from MCollective to MCollective Plugins
  • Support Urls deleted ()

Also available in: Atom PDF