Re: [Puppet Users] Re: mcollective puppetd plugin does not work

2013-02-01 Thread snlsinghal . 9
Hey i have installed mcollective server cleint and puppet master, agent 
successfully. I have also installed puppet agent plugin. But when i run 
mco puppet runonce

 * [  ] 2 / 2

Finished processing 2 / 2 hosts in 1093.05 ms
 This command runs successfully for all nodes. But i want to run puppet agent 
for only the specified server. For this i m using ..

mco puppet runonce --server puppet.example.net
I m getting following error ===

The puppet application failed to run, use -v for full error details: Cannot 
validate input server: Unknown validator: 'puppet_server_address'.
I m unable to find put the issue. Please help me??

-- 
You received this message because you are subscribed to the Google Groups 
Puppet Users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Puppet Users] Re: mcollective puppetd plugin does not work

2013-02-01 Thread Keith Burdis
I can't check at the moment but shouldn't that be 'mco puppet runonce fqdn=
puppet.example.net' ?

  - Keith


On 1 February 2013 11:23, snlsingha...@gmail.com wrote:

 Hey i have installed mcollective server cleint and puppet master, agent
 successfully. I have also installed puppet agent plugin. But when i run
 mco puppet runonce

  * [  ] 2 / 2

 Finished processing 2 / 2 hosts in 1093.05 ms
  This command runs successfully for all nodes. But i want to run puppet
 agent for only the specified server. For this i m using ..

 mco puppet runonce --server puppet.example.net
 I m getting following error ===

 The puppet application failed to run, use -v for full error details:
 Cannot validate input server: Unknown validator: 'puppet_server_address'.
 I m unable to find put the issue. Please help me??

 --
 You received this message because you are subscribed to the Google Groups
 Puppet Users group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to puppet-users+unsubscr...@googlegroups.com.
 To post to this group, send email to puppet-users@googlegroups.com.
 Visit this group at http://groups.google.com/group/puppet-users?hl=en.
 For more options, visit https://groups.google.com/groups/opt_out.




-- 
You received this message because you are subscribed to the Google Groups 
Puppet Users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Puppet Users] Re: mcollective puppetd plugin does not work

2012-07-30 Thread Hai Tao
This makes sense and is interesting. I was suspecting disable means
turning off in chkconfig, but it is not as I checked.

# puppet agent --server=puppet --test --noop
notice: Run of Puppet configuration client already in progress; skipping

so can you explain what administratively disables mean, and where I
can find doc for this?

Thanks.

Hai T.


On Mon, Jul 30, 2012 at 8:27 AM, pmbuko pmb...@gmail.com wrote:
 On Monday, July 30, 2012 12:17:33 AM UTC-4, Hai wrote:

 I used the puppetd plugin to disable the puppet service on a node,
 however the puppet is still running on the node. Can someone explain
 why?

 # mco puppetd -I test-01 disable

  * [  ] 1 / 1


 test-01  Request Aborted
Already disabled

 Finished processing 1 / 1 hosts in 64.07 ms
 # mco puppetd -I test-01 status

  * [  ] 1 / 1

 test-01  Currently disabled; last
 completed run 1550 seconds ago

 Finished processing 1 / 1 hosts in 60.37 ms


 Hai,

 When you tell mcollective to disable puppet on a node, it *administratively
 disables* the agent but it does not stop the puppetd process. If you try
 'puppet agent -t' on an node that has been administratively disabled you
 will see that puppet won't actually run.

 --
 Peter


 --
 You received this message because you are subscribed to the Google Groups
 Puppet Users group.
 To view this discussion on the web visit
 https://groups.google.com/d/msg/puppet-users/-/AFPGM7_T5SwJ.

 To post to this group, send email to puppet-users@googlegroups.com.
 To unsubscribe from this group, send email to
 puppet-users+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/puppet-users?hl=en.



-- 
Hai Tao

-- 
You received this message because you are subscribed to the Google Groups 
Puppet Users group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



Re: [Puppet Users] Re: mcollective puppetd plugin does not work

2012-07-30 Thread Peter Bukowinski
The agent enable/disable is documented in the output of 'puppet help agent' as 
well as here:

http://docs.puppetlabs.com/man/agent.html

Your output of 'puppet agent --server=puppet --test --noop' shows that you have 
a 'puppetdlock' file (in /var/lib/puppet/state by default), but that puppet is 
interpreting the lock file's presence as a run in progress. If there is no run 
in progress when you disable the agent, then you should be seeing this output 
when you try to run puppet (with version 2.6+) :

notice: Skipping run of Puppet configuration client; administratively disabled; 
use 'puppet agent --enable' to re-enable.

If you try 'puppet agent --enable' does the puppetdlock file disappear from 
this location? It should.

--
Peter

On Jul 30, 2012, at 12:23 PM, Hai Tao wrote:

 This makes sense and is interesting. I was suspecting disable means
 turning off in chkconfig, but it is not as I checked.
 
 # puppet agent --server=puppet --test --noop
 notice: Run of Puppet configuration client already in progress; skipping
 
 so can you explain what administratively disables mean, and where I
 can find doc for this?
 
 Thanks.
 
 Hai T.
 
 
 On Mon, Jul 30, 2012 at 8:27 AM, pmbuko pmb...@gmail.com wrote:
 On Monday, July 30, 2012 12:17:33 AM UTC-4, Hai wrote:
 
 I used the puppetd plugin to disable the puppet service on a node,
 however the puppet is still running on the node. Can someone explain
 why?
 
 # mco puppetd -I test-01 disable
 
 * [  ] 1 / 1
 
 
 test-01  Request Aborted
   Already disabled
 
 Finished processing 1 / 1 hosts in 64.07 ms
 # mco puppetd -I test-01 status
 
 * [  ] 1 / 1
 
 test-01  Currently disabled; last
 completed run 1550 seconds ago
 
 Finished processing 1 / 1 hosts in 60.37 ms
 
 
 Hai,
 
 When you tell mcollective to disable puppet on a node, it *administratively
 disables* the agent but it does not stop the puppetd process. If you try
 'puppet agent -t' on an node that has been administratively disabled you
 will see that puppet won't actually run.
 
 --
 Peter
 
 
 --
 You received this message because you are subscribed to the Google Groups
 Puppet Users group.
 To view this discussion on the web visit
 https://groups.google.com/d/msg/puppet-users/-/AFPGM7_T5SwJ.
 
 To post to this group, send email to puppet-users@googlegroups.com.
 To unsubscribe from this group, send email to
 puppet-users+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/puppet-users?hl=en.
 
 
 
 -- 
 Hai Tao
 
 -- 
 You received this message because you are subscribed to the Google Groups 
 Puppet Users group.
 To post to this group, send email to puppet-users@googlegroups.com.
 To unsubscribe from this group, send email to 
 puppet-users+unsubscr...@googlegroups.com.
 For more options, visit this group at 
 http://groups.google.com/group/puppet-users?hl=en.
 

--
Peter

-- 
You received this message because you are subscribed to the Google Groups 
Puppet Users group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



Re: [Puppet Users] Re: mcollective puppetd plugin does not work

2012-07-30 Thread Hai Tao
wired, I installed the service plugin on the puppet master and a node
called nodeA, however,

# mco service sshd -I nodeA status

 | [  ] 0 / 1


 service summary 
   Nodes: 1 / 0
Statuses: No responses received
Elapsed Time: 62.07 s

why do not I get the service sshd status of the node?

On Mon, Jul 30, 2012 at 9:36 AM, Peter Bukowinski pmb...@gmail.com wrote:
 The agent enable/disable is documented in the output of 'puppet help agent'
 as well as here:

 http://docs.puppetlabs.com/man/agent.html

 Your output of 'puppet agent --server=puppet --test --noop' shows that you
 have a 'puppetdlock' file (in /var/lib/puppet/state by default), but that
 puppet is interpreting the lock file's presence as a run in progress. If
 there is no run in progress when you disable the agent, then you should be
 seeing this output when you try to run puppet (with version 2.6+) :

 notice: Skipping run of Puppet configuration client; administratively
 disabled; use 'puppet agent --enable' to re-enable.

 If you try 'puppet agent --enable' does the puppetdlock file disappear from
 this location? It should.

 --
 Peter

 On Jul 30, 2012, at 12:23 PM, Hai Tao wrote:

 This makes sense and is interesting. I was suspecting disable means
 turning off in chkconfig, but it is not as I checked.

 # puppet agent --server=puppet --test --noop
 notice: Run of Puppet configuration client already in progress; skipping

 so can you explain what administratively disables mean, and where I
 can find doc for this?

 Thanks.

 Hai T.


 On Mon, Jul 30, 2012 at 8:27 AM, pmbuko pmb...@gmail.com wrote:

 On Monday, July 30, 2012 12:17:33 AM UTC-4, Hai wrote:


 I used the puppetd plugin to disable the puppet service on a node,

 however the puppet is still running on the node. Can someone explain

 why?


 # mco puppetd -I test-01 disable


 * [  ] 1 / 1



 test-01  Request Aborted

   Already disabled


 Finished processing 1 / 1 hosts in 64.07 ms

 # mco puppetd -I test-01 status


 * [  ] 1 / 1


 test-01  Currently disabled; last

 completed run 1550 seconds ago


 Finished processing 1 / 1 hosts in 60.37 ms



 Hai,


 When you tell mcollective to disable puppet on a node, it *administratively

 disables* the agent but it does not stop the puppetd process. If you try

 'puppet agent -t' on an node that has been administratively disabled you

 will see that puppet won't actually run.


 --

 Peter



 --

 You received this message because you are subscribed to the Google Groups

 Puppet Users group.

 To view this discussion on the web visit

 https://groups.google.com/d/msg/puppet-users/-/AFPGM7_T5SwJ.


 To post to this group, send email to puppet-users@googlegroups.com.

 To unsubscribe from this group, send email to

 puppet-users+unsubscr...@googlegroups.com.

 For more options, visit this group at

 http://groups.google.com/group/puppet-users?hl=en.




 --
 Hai Tao

 --
 You received this message because you are subscribed to the Google Groups
 Puppet Users group.
 To post to this group, send email to puppet-users@googlegroups.com.
 To unsubscribe from this group, send email to
 puppet-users+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/puppet-users?hl=en.


 --
 Peter

 --
 You received this message because you are subscribed to the Google Groups
 Puppet Users group.
 To post to this group, send email to puppet-users@googlegroups.com.
 To unsubscribe from this group, send email to
 puppet-users+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/puppet-users?hl=en.



-- 
Hai Tao

-- 
You received this message because you are subscribed to the Google Groups 
Puppet Users group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



Re: [Puppet Users] Re: mcollective puppetd plugin does not work

2012-07-30 Thread R.I.Pienaar


- Original Message -
 From: Hai Tao ehai...@gmail.com
 To: puppet-users@googlegroups.com
 Sent: Monday, July 30, 2012 4:24:37 PM
 Subject: Re: [Puppet Users] Re: mcollective puppetd plugin does not work
 
 wired, I installed the service plugin on the puppet master and a node
 called nodeA, however,
 
 # mco service sshd -I nodeA status
 
  | [  ]
  | 0 / 1
 
 
  service summary 
Nodes: 1 / 0
 Statuses: No responses received
 Elapsed Time: 62.07 s
 
 why do not I get the service sshd status of the node?

anything weird logged on your server mcollective.log?

-- 
You received this message because you are subscribed to the Google Groups 
Puppet Users group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



Re: [Puppet Users] Re: mcollective puppetd plugin does not work

2012-07-30 Thread Hai Tao
I changed puppet-service.rb to service.rb, and it works now.

why the plugin use puppet-service.rb, but with service.ddl, and we
have to manually change it?

On Mon, Jul 30, 2012 at 5:36 PM, R.I.Pienaar r...@devco.net wrote:


 - Original Message -
 From: Hai Tao ehai...@gmail.com
 To: puppet-users@googlegroups.com
 Sent: Monday, July 30, 2012 4:24:37 PM
 Subject: Re: [Puppet Users] Re: mcollective puppetd plugin does not work

 wired, I installed the service plugin on the puppet master and a node
 called nodeA, however,

 # mco service sshd -I nodeA status

  | [  ]
  | 0 / 1


  service summary 
Nodes: 1 / 0
 Statuses: No responses received
 Elapsed Time: 62.07 s

 why do not I get the service sshd status of the node?

 anything weird logged on your server mcollective.log?

 --
 You received this message because you are subscribed to the Google Groups 
 Puppet Users group.
 To post to this group, send email to puppet-users@googlegroups.com.
 To unsubscribe from this group, send email to 
 puppet-users+unsubscr...@googlegroups.com.
 For more options, visit this group at 
 http://groups.google.com/group/puppet-users?hl=en.




-- 
Hai Tao

-- 
You received this message because you are subscribed to the Google Groups 
Puppet Users group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.