Bug 1079502

Summary: Upgrade to MCollective 2.4
Product: OpenShift Container Platform Reporter: Brenton Leanhardt <bleanhar>
Component: Cluster Version OperatorAssignee: Brenton Leanhardt <bleanhar>
Status: CLOSED ERRATA QA Contact: libra bugs <libra-bugs>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 2.1.0CC: jialiu, libra-bugs, libra-onpremise-devel
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 1079365 Environment:
Last Closed: 2014-05-15 14:40:56 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1079365    
Bug Blocks:    

Description Brenton Leanhardt 2014-03-21 17:27:11 UTC
+++ This bug was initially created as a clone of Bug #1079365 +++

Description of problem:

We are upgrading to MCollective 2.4 to address a number of bugs.  There are configuration settings that will need to be updated in openshift.sh, puppet as well as the ose-upgrade.  This bug will serve as a tracker.

--- Additional comment from RHEL Product and Program Management on 2014-03-21 09:47:12 EDT ---

Since this issue was entered in bugzilla, the release flag has been
set to ? to ensure that it is properly evaluated for this release.

--- Additional comment from Brenton Leanhardt on 2014-03-21 13:26:29 EDT ---

Configuration changes can be seen here:
https://github.com/openshift/openshift-extras/commit/3441f2ccdc39888b94bb6c37dc608861c4f4bcd4

Summary:
* 2.4 deprecated the use of the topicprefix setting for both the client and server configs
* We have turned off direct addressing for both the client and server
* We have removed the registerinterval setting

The build is ruby193-mcollective-2.4.1-3.el6op and includes the following patch:
https://github.com/puppetlabs/marionette-collective/pull/170.patch

Comment 3 Johnny Liu 2014-03-24 11:35:36 UTC
Verified this bug with 2.1/2014-03-21.4, and PASS.

After finished ose-upgrade process, mcollective is upgrade to 2.4.



Broker:
# rpm -qa|grep mcollective
ruby193-mcollective-client-2.4.1-3.el6op.noarch
ruby193-mcollective-common-2.4.1-3.el6op.noarch

# cat /opt/rh/ruby193/root/etc/mcollective/client.cfg
main_collective = mcollective
collectives = mcollective
libdir = /opt/rh/ruby193/root/usr/libexec/mcollective
#logfile = /var/log/openshift/broker/ruby193-mcollective-client.log
direct_addressing = 0

# Plugins
securityprovider=psk
plugin.psk = asimplething

connector = activemq
plugin.activemq.pool.size = 1
plugin.activemq.pool.1.host = activemq.ose-20.com.cn
plugin.activemq.pool.1.port = 61613
plugin.activemq.pool.1.user = xxx
plugin.activemq.pool.1.password = xxx


# Facts
factsource = yaml
plugin.yaml = /opt/rh/ruby193/root/etc/mcollective/facts.yaml


# logger_type = file cannot be set for OpenShift Enterprise
# https://bugzilla.redhat.com/show_bug.cgi?id=963332
logger_type = console
loglevel = warn



Node:
# rpm -qa|grep mcollective
ruby193-mcollective-common-2.4.1-3.el6op.noarch
ruby193-mcollective-2.4.1-3.el6op.noarch

# cat /opt/rh/ruby193/root/etc/mcollective/server.cfg
main_collective = mcollective
collectives = mcollective
libdir = /opt/rh/ruby193/root/usr/libexec/mcollective
logfile = /var/log/openshift/node/ruby193-mcollective.log
loglevel = debug

daemonize = 1
direct_addressing = 0

# Plugins
securityprovider = psk
plugin.psk = asimplething

connector = activemq
plugin.activemq.pool.size = 1
plugin.activemq.pool.1.host = activemq.ose-20.com.cn
plugin.activemq.pool.1.port = 61613
plugin.activemq.pool.1.user = xxx
plugin.activemq.pool.1.password = xxx


# We do not actually use node registration in any way at this time.
# However, having it configured enables mcollective to recover from
# dead connections (msg host rebooted, etc.) as a side effect.
# See https://bugzilla.redhat.com/show_bug.cgi?id=1009887
#registerinterval = 30

# Facts
factsource = yaml
plugin.yaml = /opt/rh/ruby193/root/etc/mcollective/facts.yaml