Bug 1168418

Summary: disable_auto_scaling marker requires restart of haproxy cartridge
Product: OpenShift Container Platform Reporter: Timothy Williams <tiwillia>
Component: ContainersAssignee: Brenton Leanhardt <bleanhar>
Status: CLOSED ERRATA QA Contact: libra bugs <libra-bugs>
Severity: medium Docs Contact:
Priority: high    
Version: 2.2.0CC: anli, bperkins, cryan, jokerman, libra-onpremise-devel, lmeyer, mmccomas, randall_theobald
Target Milestone: ---Keywords: Upstream
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: openshift-origin-cartridge-haproxy-1.30.0.1-1 Doc Type: Bug Fix
Doc Text:
Cause: disable_auto_scaling marker does not take effect until the haproxy has been restarted. Consequence: Auto scaling is not disabled until the haproxy gear has been restarted. Fix: A notice is provided to users when pushing disable_auto_scaling marker advising them to restart haproxy. Result: Users are advised that they must restart their haproxy gear to properly disable auto scaling via a marker.
Story Points: ---
Clone Of:
: 1171066 (view as bug list) Environment:
Last Closed: 2015-02-12 13:09:34 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: 1171066    
Bug Blocks:    

Description Timothy Williams 2014-11-26 21:06:21 UTC
Description of problem:
The 'disable_auto_scaling' marker is added to .openshift/markers/ in an application's git repository to disable auto-scaling. After pushing this change, auto scaling is still enabled. The auto-scaler is not disabled until after the haproxy cartridge (or entire application) is restarted.

Version-Release number of selected component (if applicable):
2.2.1

How reproducible:
Always

Steps to Reproduce:
1. Create any application
2. Add the 'disable_auto_scaling' marker in .openshift/markers
3. Push the change to the gear

Actual results:
Auto scaler is still enabled. haproxy_ctld is still running on the head gear. Restart of the application disables the auto scaler.

Expected results:
Auto scaler is disabled.

Additional info:

Comment 4 Anping Li 2015-01-26 03:15:34 UTC
Verified and pass on puddle-2-2-2015-01-23, the banner is show during git push.


remote: NOTE: The 'disable_auto_scaling' marker has been detected in your application.
remote: NOTE: Please notice that if this is the first time you are using this marker in this
remote: NOTE: application, you need to restart the HAProxy cartridge or the whole application 
remote: NOTE: manually, so the HAProxy cartridge can pick up the changes.
remote: HAProxy already running
remote: HAProxy instance is started

Comment 6 errata-xmlrpc 2015-02-12 13:09:34 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/RHBA-2015-0220.html