Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

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

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 ... Agents: discovery rpcutil Data Plugins: agent fstat pupept recource ...


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!

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

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


[root@Client ~]#mco ping 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 server1

Inventory for sever1: sever1:

    Server Statistics:
                                   Version:  2.2.3
                             Start Time:  Fri Jun 30 15:23:32 +0800 2017
                             Config File:  /etc/mcollective/server.cfg
                             ...
      Agents:
               discovery                     rpcutil
     Data Plugins:
                agent             fstat                pupept
                recource
         ...

...

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

MCollective Version: 2.2.3 2.2.3

mcollective puppet agent countversion: 1.11.1-1.el6 1.11.1-1.el6

How can I fix this probelm?

Thank you! you!