Issue #9040 has been updated by R.I. Pienaar.

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.

----------------------------------------
Bug #9040: mongodb-registration agent: Execution of registration failed: Symbol 
as array index
https://projects.puppetlabs.com/issues/9040

Author: Shanker Balan
Status: Code Insufficient
Priority: Normal
Assignee: 
Category: 
Target version: 
Keywords: 
Branch: 
Affected mCollective version: 


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:in `dispatch'    
                                                                                
                                                                                
                        
/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. :)                                                    


-- 
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