Ask Your Question

undefined method 'str_to_bool' for MCollective::Util::Module

asked 2017-07-02 20:40:23 -0600

weiping gravatar image

updated 2017-07-02 20:45:40 -0600

Hi, everyone! I have a problem when I install MCollective agent plugin. MCollective has already been installed correctly.

[root@Client ~]#mco ping

server1 time=108.22 ms

---- ping statistics ----

1 replies max: 108.22 min: 108.22 avg: 108.22

But, it cannot load MCollective server as puppet agent.

[root@Client ~]#mco inventory server1

Inventory for sever1:

    Server Statistics:

                                 Version:  2.2.3

                           Start Time:  Fri Jun 30 15:23:32 +0800 2017

                           Config File:  /etc/mcollective/server.cfg


              discovery                     rpcutil
    Data Plugins:
               agent             fstat                pupept

It seems that MCollective Data plugin has already loaded, but Agent Plugin hasn't. here is MCollective log on server1:

ERROR -- : agents.rb:71:in 'loadagent' Loading agent puppet failed: Counld not create instance of plugin MCollective::Agent::Puppet: undefined method 'strtobool' for MCollective::Util::Module

I don't know how this happen. Environment:

MCollective Version: 2.2.3

mcollective puppet agent countversion: 1.11.1-1.el6

How can I fix this probelm?

Thank you!

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2017-07-02 22:08:41 -0600

weiping gravatar image

I found that MCollective 2.3.2 and 2.4 had changed the method 'strtobool', so mcollective puppet plugin version 1.11 is too new to use. Then I tried verions 1.6 , finally it works!

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools


Asked: 2017-07-02 20:40:23 -0600

Seen: 27 times

Last updated: Jul 02 '17