Bug 1241750

Summary: SLOW_HOST should be SLOW_HOSTS in openshift-origin-gear-placement.conf.pin-user-to-host-example
Product: OpenShift Container Platform Reporter: Anping Li <anli>
Component: NodeAssignee: Miciah Dashiel Butler Masters <mmasters>
Status: CLOSED ERRATA QA Contact: Ma xiaoqiang <xiama>
Severity: low Docs Contact:
Priority: low    
Version: 2.2.0CC: adellape, jokerman, libra-bugs, libra-onpremise-devel, mmasters, mmccomas, tiwillia, xtian
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: rubygem-openshift-origin-gear-placement-0.0.2.1-1.el6op Doc Type: Bug Fix
Doc Text:
The pin-php-to-host gear placement plug-in example configuration contained a typo where a configuration directive was named incorrectly, which caused the `slow_hosts` configuration directive to not be used. This bug fix renames the `SLOW_HOST` directive to `SLOW_HOSTS`, and as a result the `slow_hosts` configuration directive is parsed properly and used in the pin-php-to-host gear placement plug-in example.
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-09-30 16:38:07 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:

Description Anping Li 2015-07-10 02:41:21 UTC
Description of problem:
SLOW_HOST should be SLOW_HOSTS in openshift-origin-gear-placement.conf.pin-php-to-host-example which was installed by rubygem-openshift-origin-gear-placement.noarch

Version-Release number of selected component (if applicable):
ose-2.2.6 
rubygem-openshift-origin-gear-placement-0.0.2.0-1.el6op.noarch

How reproducible:
always

Steps to Reproduce:
1. yum install rubygem-openshift-origin-gear-placement-0.0.2.0-1.el6op.noarch
2. check /etc/openshift/plugins.d/openshift-origin-gear-placement.conf.pin-user-to-host-example
3. check /opt/rh/ruby193/root/usr/share/gems/gems/openshift-origin-gear-placement-0.0.2.0/lib/openshift/gear_placement_plugin.rb.pin-user-to-host-example
4. enable this policy and create applications.

Actual results:
The variable is slow_hosts in gear_placement_plugin.rb.pin-user-to-host-example, which is different with openshift-origin-gear-placement.conf.pin-user-to-host-example.

Expected results:
It should use same variable name in scripts and configure file.

Additional info:

Comment 1 Miciah Dashiel Butler Masters 2015-09-22 16:21:58 UTC
PR: https://github.com/openshift/origin-server/pull/6244

Comment 2 openshift-github-bot 2015-09-22 17:12:41 UTC
Commit pushed to master at https://github.com/openshift/origin-server

https://github.com/openshift/origin-server/commit/6e63300b5b16027a3d4e5a82d7170229173a87e3
gear-placement plugin: fix example configuration

Fix a typo in the setting name for SLOW_HOSTS in the example gear placement
plug-in.

This commit fixes bug 1241750.

Comment 5 Anping Li 2015-09-24 07:02:45 UTC
Verified and pass. the variable was changed to SLOW_HOSTS.

Comment 7 errata-xmlrpc 2015-09-30 16:38:07 UTC
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.

https://rhn.redhat.com/errata/RHSA-2015-1844.html