[Puppet Users] mco triggered automatic deployments. Effected production/Staging Servers.

2017-02-08 Thread pradeep reddy
Hi All,

We are using a ruby script, which uses mcollective API for initiating the 
puppet run on multiple servers based on the group and track its status. 

It used to do the rolling deployment or in other words initiate puppet 
agent on the servers.

We are using from three years same setup.  But observed that, today we have 
mco automatic trigger issue.  It effected, lot of servers.

Could someone please let us know, or guide us in finding the issue.

Puppet Server Details:-

 puppet -V  > 3.4.2
 mcollective-service-client-3.1.2-1.noarch
 mcollective-client-2.4.0-1.el6.noarch
 mcollective-nettest-common-3.0.3-1.noarch
 mcollective-common-2.4.0-1.el6.noarch
 mcollective-iptables-client-3.0.1-1.noarch
 mcollective-puppet-agent-1.6.0-1.noarch
 mcollective-filemgr-client-1.0.1-1.noarch
 mcollective-puppet-client-1.6.0-1.noarch
 mcollective-package-client-4.2.1-1.el6.noarch
 mcollective-iptables-common-3.0.1-1.noarch
 mcollective-puppet-common-1.6.0-1.noarch
 mcollective-filemgr-common-1.0.1-1.noarch
 mcollective-iptables-agent-3.0.1-1.noarch
 mcollective-package-agent-4.2.1-1.el6.noarch
 mcollective-nettest-client-3.0.3-1.noarch
 mcollective-nettest-agent-3.0.3-1.noarch
 mcollective-package-common-4.2.1-1.el6.noarch
 mcollective-service-common-3.1.2-1.noarch
 mcollective-filemgr-agent-1.0.1-1.noarch
 mcollective-2.4.0-1.el6.noarch

 Puppet agent Details:-
 --
 mcollective-puppet-common-1.9.3-1.el6.noarch
 mcollective-puppet-agent-1.9.3-1.el6.noarch
 puppet-3.7.4-1.el6.noarch


Thanks and Regards,
Pradeep.

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/56f69fe3-f3da-4e70-9fb5-562eed1102a1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] augeas for setting URIEncoding variable in tomcat, server.xml file.

2014-05-08 Thread Pradeep Reddy
Thx Kent.
 On 8 May 2014 18:25, Kenton Brede kbr...@gmail.com wrote:

 Try something like this:

 augeas { 'update_server.xml':
   lens= 'Xml.lns',
   context   =
 '/files/opt/apphome/apache-tomcat-7.0.53/conf/server.xml/Server/Service/Connector[*]/#attribute/',

   incl = /opt/apphome/apache-tomcat-7.0.53/conf/server.xml,
   changes = ['ins URIEncoding after port[. = 8080]',
'set URIEncoding UTF-8',
   ],
 }

 The context is actually the path as augeas sees it.  I wildcarded
 Connector because there can be more than one.  For example Connector[1]
 and Connector[2].

 For changes its actually doing this:

 Insert URIEncoding after, Connector with port=8080, and set URIEncoding
 to UTF-8.

 It helps to use augtool if you haven't.  Try something like:

 $ augtool --transform Xml.lns incl
 /opt/apphome/apache-tomcat-7.0.53/conf/server.xml
 augtool print /files/opt/apphome/apache-tomcat-7.0.53/conf/server.xml
 augtool print
 /files/opt/apphome/apache-tomcat-7.0.53/conf/server.xml/Server/Service/Connector[*]

 Kent




 On Wed, May 7, 2014 at 3:40 PM, Pradeep Reddy 
 pradeep.nars...@gmail.comwrote:

 Hi Team,

 I am using below info in my manifest.  URIEncoding=UTF-8 is not present
 in server.xml.  Trying to inject URIEncoding using below augeas syntax.

  augeas { 'update_server.xml':
 lens= 'Xml.lns',
 incl =
 /opt/apphome/apache-tomcat-7.0.53/conf/server.xml,
 context=
 '/opt/apphome/apache-tomcat-7.0.53/conf/server.xml'/Connector port=8080',
 changes   = flatten([
   set
 Server/Service/Connector[1][#attribute/redirectport='8443']/#attribute/URIEncoding
 UTF-8,]),
   }

 After executing getting below information.  URIEncoding=UTF-8 is not
 getting appended in server.xml.

 Could someone please check and let me know, wehther i am using a wrong
 syntax.


 Debug: Augeas[update_server.xml](provider=augeas): Opening augeas with
 root /, lens path , flags 64
 Debug: Augeas[update_server.xml](provider=augeas): Augeas version 1.0.0
 is installed
 Debug: Augeas[update_server.xml](provider=augeas): Will attempt to save
 and only run if files changed
 Debug: Augeas[update_server.xml](provider=augeas): sending command 'set'
 with params
 [\${brand::tomcat_installdir}/${brand::tomcat_version}/conf/server.xml\/Connector
 port=\8080\/Server/Service/Connector[1][#attribute/redirectport='8443']/#attribute/URIEncoding,
 UTF-8]
 Debug: Augeas[update_server.xml](provider=augeas): Skipping because no
 files were changed
 Debug: Augeas[update_server.xml](provider=augeas): Closed the augeas
 connection

 Regards,
 Pradeeo.

  --
 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 view this discussion on the web visit
 https://groups.google.com/d/msgid/puppet-users/6a327ad9-347a-493a-b32a-89b46645e22b%40googlegroups.comhttps://groups.google.com/d/msgid/puppet-users/6a327ad9-347a-493a-b32a-89b46645e22b%40googlegroups.com?utm_medium=emailutm_source=footer
 .
 For more options, visit https://groups.google.com/d/optout.




 --
 Kent Brede




  --
 You received this message because you are subscribed to a topic in the
 Google Groups Puppet Users group.
 To unsubscribe from this topic, visit
 https://groups.google.com/d/topic/puppet-users/9h5JjWZpOYM/unsubscribe.
 To unsubscribe from this group and all its topics, send an email to
 puppet-users+unsubscr...@googlegroups.com.
 To view this discussion on the web visit
 https://groups.google.com/d/msgid/puppet-users/CA%2BnSE3-%3D_xA2eP65yy95o2%3DZGEkH4ZhSj%3DhhUUWb%3Dvm5wMNpww%40mail.gmail.comhttps://groups.google.com/d/msgid/puppet-users/CA%2BnSE3-%3D_xA2eP65yy95o2%3DZGEkH4ZhSj%3DhhUUWb%3Dvm5wMNpww%40mail.gmail.com?utm_medium=emailutm_source=footer
 .
 For more options, visit https://groups.google.com/d/optout.


-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/CALk7d%2BfSu_SQ8j7rcxr%2BnkYTGhzR78A4ud3qwXNTXr9u8dtu_w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[Puppet Users] augeas for setting URIEncoding variable in tomcat, server.xml file.

2014-05-07 Thread Pradeep Reddy
Hi Team,

I am using below info in my manifest.  URIEncoding=UTF-8 is not present 
in server.xml.  Trying to inject URIEncoding using below augeas syntax.

 augeas { 'update_server.xml':
lens= 'Xml.lns',
incl = /opt/apphome/apache-tomcat-7.0.53/conf/server.xml,
context= 
'/opt/apphome/apache-tomcat-7.0.53/conf/server.xml'/Connector port=8080',
changes   = flatten([
  set 
Server/Service/Connector[1][#attribute/redirectport='8443']/#attribute/URIEncoding
 
UTF-8,]),
  }

After executing getting below information.  URIEncoding=UTF-8 is not 
getting appended in server.xml.

Could someone please check and let me know, wehther i am using a wrong 
syntax.


Debug: Augeas[update_server.xml](provider=augeas): Opening augeas with root 
/, lens path , flags 64
Debug: Augeas[update_server.xml](provider=augeas): Augeas version 1.0.0 is 
installed
Debug: Augeas[update_server.xml](provider=augeas): Will attempt to save and 
only run if files changed
Debug: Augeas[update_server.xml](provider=augeas): sending command 'set' 
with params 
[\${brand::tomcat_installdir}/${brand::tomcat_version}/conf/server.xml\/Connector
 
port=\8080\/Server/Service/Connector[1][#attribute/redirectport='8443']/#attribute/URIEncoding,
 
UTF-8]
Debug: Augeas[update_server.xml](provider=augeas): Skipping because no 
files were changed
Debug: Augeas[update_server.xml](provider=augeas): Closed the augeas 
connection

Regards,
Pradeeo.

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/6a327ad9-347a-493a-b32a-89b46645e22b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[Puppet Users] mco ping command from linux puppet master is unable to fetch information about windows servers.

2014-02-21 Thread Pradeep Reddy
Problem Description:-
---
1) mco agent from windows is unable to communicate to linux puppet master. 
 Both the mco agent in windows and mco server in linux are at 2.4.1 
versions.
Below are the errors in the mcollective.log. Below logs are getting 
generated when mco ping command is executed from linux puppet master server.
*
W, [2014-02-20T18:46:15.703125 #1596]  WARN -- : runner.rb:78:in `rescue in 
block in run' Failed to handle message: incompatible marshal file format 
(can't be read)
format version 4.8 required; 66.65 given - TypeError

W, [2014-02-20T18:46:15.703125 #1596]  WARN -- : runner.rb:79:in `rescue in 
block in run' 
C:/marionette-collective-2.4.1/plugins/mcollective/security/psk.rb:22:in 
`load'
C:/marionette-collective-2.4.1/plugins/mcollective/security/psk.rb:22:in 
`decodemsg'
C:/marionette-collective-2.4.1/lib/mcollective/message.rb:178:in `decode!'
C:/marionette-collective-2.4.1/lib/mcollective/runner.rb:133:in `receive'
C:/marionette-collective-2.4.1/lib/mcollective/runner.rb:59:in `block in 
run'
C:/marionette-collective-2.4.1/lib/mcollective/runner.rb:57:in `loop'
C:/marionette-collective-2.4.1/lib/mcollective/runner.rb:57:in `run'
C:/marionette-collective-2.4.1/lib/mcollective/windows_daemon.rb:17:in 
`service_main'
C:/Ruby193/lib/ruby/gems/1.9.1/gems/win32-service-0.8.4/lib/win32/daemon.rb:305:in
 
`mainloop'
C:/Ruby193/lib/ruby/gems/1.9.1/gems/win32-service-0.8.4/lib/win32/daemon.rb:206:in
 
`mainloop'
C:/marionette-collective-2.4.1/lib/mcollective/windows_daemon.rb:9:in 
`daemonize_runner'
C:/marionette-collective-2.4.1/bin/mcollectived:43:in `main'
D, [2014-02-20T18:46:15.703125 #1596] DEBUG -- : activemq.rb:329:in 
`receive' Waiting for a message from ActiveMQ
*

Steps Followed to install mco agent in windows server 2008 R2 64 bit:-
-

1)  Installed windows puppet agent 3.4.2.  Puppet Master is in Linux 
box(i.e RHEL 6.4 64 bit) with 3.4.2 version.
2)  In puppet master, installed following mcollective version:-Marionette 
Collective version 2.4.1
3)  In puppet windows client, installed puppetlabs/marionette-collective 
2.4.1.zip.(i.e from 
https://github.com/puppetlabs/marionette-collective/tags)
4)  Installed  the following before mcollective.
a) Ruby 1.9.3-p484 from rubyinstaller.org
b) C:\Users\Administratorgem list
*** LOCAL GEMS ***
 bigdecimal (1.1.0),ffi (1.9.3 x86-mingw32),io-console 
(0.3),json (1.5.5),minitest (2.5.1),rake (0.9.2.2),rdoc (3.9.5),stomp 
(1.2.2),sys-admin (1.6.2, 1.5.6 x86-mingw32), win32-api   
 (1.5.1 universal-mingw32, 1.4.8 x86-mingw32),win32-dir 
(0.3.7),win32-process (0.5.5),win32-security (0.1.2),win32-service (0.8.4, 
0.7.2 x86-mingw32),windows-api (0.4.2, 
 0.4.1),windows-pr (1.2.3, 1.2.1)
c) Followed the remaining procedure, mentioned in read.md of 
marionette-collective 2.4.1.zip file.
*

Could some one guide me, whether the process followed is correct for making 
a successful connection between mco client installed in windows with Linux 
Puppet master with mco server.

Guide me if there is any alternate way for making successful communication 
between mco agent in windows to linux puppet master with mco server.

Regards,
Pradeep.

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/b117d478-f3b6-4b6c-a920-07b6eba37fb7%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[Puppet Users] Windows client - mcollective:- incompatible marshal file format (can't be read) error in mcollective.log

2014-02-20 Thread Pradeep Reddy
Hi Team,

We are trying to install mcollective in windows, observing errors in 
mcollective.log.  Following are the steps followed to install mcollective 
in windows.

1)  OS:- windows server 2008 R2 64 bit.
2)  Installed windows puppet agent 3.4.2.  Puppet Master is in Linux 
box(i.e RHEL 6.4 64 bit) with 3.4.2 version.
3)  In puppet master, installed following mcollective version:-Marionette 
Collective version 2.4.1
4)  In puppet windows client, installed puppetlabs/marionette-collective 
2.4.1.zip.(i.e 
from https://github.com/puppetlabs/marionette-collective/tags)
5)  Installed  the following before mcollective.
a) Ruby 1.9.3-p484 from rubyinstaller.org
b) C:\Users\Administratorgem list
*** LOCAL GEMS ***
 bigdecimal (1.1.0),ffi (1.9.3 x86-mingw32),io-console 
(0.3),json (1.5.5),minitest (2.5.1),rake (0.9.2.2),rdoc (3.9.5),stomp 
(1.2.2),sys-admin (1.6.2, 1.5.6 x86-mingw32), win32-api   
 (1.5.1 universal-mingw32, 1.4.8 x86-mingw32),win32-dir 
(0.3.7),win32-process (0.5.5),win32-security (0.1.2),win32-service (0.8.4, 
0.7.2 x86-mingw32),windows-api (0.4.2, 
 0.4.1),windows-pr (1.2.3, 1.2.1)
c) Followed the remaining procedure, mentioned in read.md of 
marionette-collective 2.4.1.zip file.
6) Enclosed are my server.cfg files of puppet linux master and puppet 
windows client.
7)  After starting The Marionette Collective service in windows. 
 Observed connected status in mcollective log of windows.
8)  When i do mco ping from puppet master(i.e Linux), observing error 
messages in mcollective.log of windows client.  Below depicts the error 
messages.


W, [2014-02-20T18:46:15.703125 #1596]  WARN -- : runner.rb:78:in `rescue in 
block in run' Failed to handle message: incompatible marshal file format 
(can't be read)
format version 4.8 required; 66.65 given - TypeError

W, [2014-02-20T18:46:15.703125 #1596]  WARN -- : runner.rb:79:in `rescue in 
block in run' 
C:/marionette-collective-2.4.1/plugins/mcollective/security/psk.rb:22:in 
`load'
C:/marionette-collective-2.4.1/plugins/mcollective/security/psk.rb:22:in 
`decodemsg'
C:/marionette-collective-2.4.1/lib/mcollective/message.rb:178:in `decode!'
C:/marionette-collective-2.4.1/lib/mcollective/runner.rb:133:in `receive'
C:/marionette-collective-2.4.1/lib/mcollective/runner.rb:59:in `block in 
run'
C:/marionette-collective-2.4.1/lib/mcollective/runner.rb:57:in `loop'
C:/marionette-collective-2.4.1/lib/mcollective/runner.rb:57:in `run'
C:/marionette-collective-2.4.1/lib/mcollective/windows_daemon.rb:17:in 
`service_main'
C:/Ruby193/lib/ruby/gems/1.9.1/gems/win32-service-0.8.4/lib/win32/daemon.rb:305:in
 
`mainloop'
C:/Ruby193/lib/ruby/gems/1.9.1/gems/win32-service-0.8.4/lib/win32/daemon.rb:206:in
 
`mainloop'
C:/marionette-collective-2.4.1/lib/mcollective/windows_daemon.rb:9:in 
`daemonize_runner'
C:/marionette-collective-2.4.1/bin/mcollectived:43:in `main'
D, [2014-02-20T18:46:15.703125 #1596] DEBUG -- : activemq.rb:329:in 
`receive' Waiting for a message from ActiveMQ



Could someone please check and help us in getting out of the above errors.

Thanks and Regards,
Pradeep.

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/9d641d7c-0d4c-4dcd-b68b-30e6fdd15493%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
classesfile = /var/lib/puppet/state/classes.txt
collectives = mcollective
connector = activemq
daemonize = 1
direct_addressing = 1
factsource = yaml
libdir = /usr/local/libexec/mcollective:/usr/libexec/mcollective
logfile = /var/log/mcollective.log
loglevel = debug
main_collective = mcollective
plugin.actionpolicy.allow_unconfigured = 1
plugin.activemq.base64 = yes
plugin.activemq.heartbeat_interval = 30
plugin.activemq.pool.1.host = puppetmaster.example.com
plugin.activemq.pool.1.password = marionette
plugin.activemq.pool.1.port = 61613
plugin.activemq.pool.1.user = mcollective
plugin.activemq.pool.size = 1
plugin.activemq.randomize = true
plugin.psk = changemeplease
plugin.rpcaudit.logfile = /var/log/mcollective-audit.log
plugin.yaml = /etc/mcollective/facts.yaml
rpcaudit = 1
rpcauditprovider = logfile
rpcauthorization = 1
rpcauthprovider = action_policy
securityprovider = psk

main_collective = mcollective
collectives = mcollective
libdir = C:\marionette-collective-2.4.1\plugins
logfile = C:\marionette-collective-2.4.1\mcollective.log
loglevel = debug