Bug 1241750 - SLOW_HOST should be SLOW_HOSTS in openshift-origin-gear-placement.conf.pin-user-to-host-example
Summary: SLOW_HOST should be SLOW_HOSTS in openshift-origin-gear-placement.conf.pin-us...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Node
Version: 2.2.0
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: ---
: ---
Assignee: Miciah Dashiel Butler Masters
QA Contact: Ma xiaoqiang
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-07-10 02:41 UTC by Anping Li
Modified: 2016-07-04 00:45 UTC (History)
8 users (show)

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.
Clone Of:
Environment:
Last Closed: 2015-09-30 16:38:07 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2015:1844 0 normal SHIPPED_LIVE Important: Red Hat OpenShift Enterprise 2.2.7 security, bug fix and enhancement update 2015-09-30 20:35:28 UTC

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


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