The Puppet Labs Issue Tracker has Moved:

This issue tracker is now in read-only archive mode and automatic ticket export has been disabled. Redmine users will need to create a new JIRA account to file tickets using See the following page for information on filing tickets with JIRA:

Bug #9040

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

Added by Shanker Balan over 4 years ago. Updated over 2 years ago.

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


Target version:-
Keywords: Affected mCollective version:

We've Moved!

Ticket tracking is now hosted in JIRA:

This ticket is now tracked at:



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'                                                                                                                                                                                                                 

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


#1 Updated by R.I. Pienaar over 4 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 4 years ago

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

Also available in: Atom PDF