Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1055675 - ruby193-mcollective sysconfig should handle environment variables better
ruby193-mcollective sysconfig should handle environment variables better
Status: CLOSED ERRATA
Product: OpenShift Container Platform
Classification: Red Hat
Component: Containers (Show other bugs)
2.0.0
Unspecified Unspecified
medium Severity low
: ---
: ---
Assigned To: Brenton Leanhardt
libra bugs
:
Depends On: 1022177
Blocks:
  Show dependency treegraph
 
Reported: 2014-01-20 13:28 EST by Brenton Leanhardt
Modified: 2017-03-08 12 EST (History)
7 users (show)

See Also:
Fixed In Version: ruby193-mcollective-2.2.3-5.el6op
Doc Type: Enhancement
Doc Text:
The environment variable handling in the MCollective service has been optimized for efficiency.
Story Points: ---
Clone Of: 1022177
Environment:
Last Closed: 2014-02-25 10:43:18 EST
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2014:0209 normal SHIPPED_LIVE Red Hat OpenShift Enterprise 2.0.3 bugfix and enhancement update 2014-02-25 15:40:32 EST

  None (edit)
Description Brenton Leanhardt 2014-01-20 13:28:14 EST
+++ This bug was initially created as a clone of Bug #1022177 +++

This is a minor thing, but the way /opt/rh/ruby193/root/etc/sysconfig/mcollective handles environment variable is inefficient and incorrect.  It calls "scl enable" three times and prepends to existing settings, but the SCL values already include the existing values, so this is unnecessary.  A correct, single scl call would be:

eval $( scl enable ruby193 'echo "export PATH=$PATH; export LD_LIBRARY_PATH=$LD_LIBRARY_PATH; export MANPATH=$MANPATH"' )

--- Additional comment from Dan McPherson on 2014-01-20 12:58:39 EST ---

https://github.com/openshift/li/pull/2287

--- Additional comment from Dan McPherson on 2014-01-20 13:21:04 EST ---

Brenton,  I realized this should actually be changed in the ruby193-mco rpm as well.
Comment 4 Gaoyun Pei 2014-01-22 20:41:46 EST
verify this bug with ruby193-mcollective-2.2.3-5.el6op.noarch

ruby193-mcollective sysconfig has changed to a correct single scl call

[root@broker ~]# cat /opt/rh/ruby193/root/etc/sysconfig/mcollective
eval $( scl enable ruby193 'echo "export PATH=$PATH; export LD_LIBRARY_PATH=$LD_LIBRARY_PATH; export MANPATH=$MANPATH"' )

and mcollective works well.
Comment 6 errata-xmlrpc 2014-02-25 10:43:18 EST
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHBA-2014-0209.html

Note You need to log in before you can comment on or make changes to this bug.