Ask Your Question
1

mco puppetd?

asked 2014-10-29 12:28:50 -0500

tek0011 gravatar image

So I am attempting to upgrade puppet. Part of the upgrade process calls out to disable all agents, using mco with puppetd. Everything I google, (since the puppet docs only explain how to do this in the PE version) state, I should have a command under mco for puppetd. Any ideas why its missing?:

root@puppet:~$ mco
The Marionette Collective version 2.5.2

usage: /usr/bin/mco command <options>

Known commands:

   completion           facts                find
   help                 inventory            ping
   plugin               rpc

Type '/usr/bin/mco help' for a detailed list of commands and '/usr/bin/mco help command'
to get detailed help for a command
edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
1

answered 2014-10-29 12:48:07 -0500

ramindk gravatar image

updated 2014-10-30 12:05:48 -0500

Try the following to see the help. Remember if you didn't install the mcollective puppet agent, not just the mcollective agent, on the servers and the mcollective puppet client on your local machine mco won't be able to run (or see) the puppet plugin. Or the service pluging. Or the nrpe plugin. Or the package plugin.

mco help puppet

and list of mcollective plugsin I have installed

~ $ dpkg --list | grep mcollective
ii  mcollective                      2.5.2-1puppetlabs1 
ii  mcollective-common               2.5.2-1puppetlabs1
ii  mcollective-filemgr-agent        1.0.1-1
ii  mcollective-filemgr-common       1.0.1-1 
ii  mcollective-iptables-agent       3.0.1-1
ii  mcollective-iptables-common      3.0.1-1
ii  mcollective-nrpe-agent           3.0.2-1 
ii  mcollective-nrpe-common          3.0.2-1
ii  mcollective-package-agent        4.3.0-1puppetlabs1
ii  mcollective-package-common       4.3.0-1puppetlabs1
ii  mcollective-puppet-agent         1.7.2-1puppetlabs1 
ii  mcollective-puppet-common        1.7.2-1puppetlabs1 
ii  mcollective-service-agent        3.1.2-1 
ii  mcollective-service-common       3.1.2-1

When you install a plugin you will need the -client package on the machine from which you run your mco command line statements. The agent packages need to be on all the other machines.

I prefer to stop the service completely for an upgrade. mco puppet disable will leave the daemon running which makes the upgrade more likely to fail. Here are the command I use. Stop, upgrade using batch sizes so all the the agent aren't started at once, and then check status.

mco service puppet stop -S "environment=stage" # or whatever filter
mco package puppet upgrade --batch 2 --batch-sleep 30 -S "environment=stage" 
mco puppet status -S "environment=stage"
edit flag offensive delete link more

Comments

mco service is also not a known command.

tek0011 gravatar imagetek0011 ( 2014-10-29 13:24:54 -0500 )edit

"Remember if you didn't install the agent on the servers and the client on your local machine mco won't be able to run (or see) the puppet plugin." covers your problem.

ramindk gravatar imageramindk ( 2014-10-29 14:22:28 -0500 )edit

mco is installed on the master and all agents.

tek0011 gravatar imagetek0011 ( 2014-10-29 14:32:40 -0500 )edit

Alright I'll admit the plugin was unclear since there is the agent and then the plugin agents, mcollective-puppet-client mcollective-puppet-common mcollective-puppet-agent https://docs.puppetlabs.com/mcollective/deploy/plugins.html

ramindk gravatar imageramindk ( 2014-10-29 15:01:35 -0500 )edit

ah, ok. So it is just likely that I am missing the puppet plugin for MCO, on the server side?

tek0011 gravatar imagetek0011 ( 2014-10-30 06:54:32 -0500 )edit
0

answered 2014-10-29 13:14:17 -0500

tek0011 gravatar image

updated 2014-10-29 13:14:59 -0500

While this does provide some intuitive information when I get to the upgrade, it does not address the question at hand. mco help <x> works, but puppetd and puppet are not showing as command so it fails. Is it neccessary to disable the puppet agents, by using mco and puppetd, as called out here:

Upgrading Puppet

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

1 follower

Stats

Asked: 2014-10-29 12:28:50 -0500

Seen: 620 times

Last updated: Oct 30 '14