Bug 845164 - Connection execution during move restart haproxy
Summary: Connection execution during move restart haproxy
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: OKD
Classification: Red Hat
Component: Containers
Version: 2.x
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: ---
Assignee: Ram Ranganathan
QA Contact: libra bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-08-02 04:14 UTC by Rajat Chopra
Modified: 2015-05-14 22:57 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-08-07 20:42:27 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Rajat Chopra 2012-08-02 04:14:05 UTC
Description of problem:
HAProxy gets started even if it was stopped upon a gear move of a scalable app
This happens on a scale-up/scale-down/update-namespace etc also

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


How reproducible:
Always

Steps to Reproduce:
1. Create a scalable app and add some gears (scale-up or add mysql)
2. Stop Haproxy, and move the mysql gear (or scale-up)
3. 
  
Actual results:
Haproxy is alive again automatically

Expected results:
Haproxy should maintain its state after the end of operation


Additional info:
The connection hooks do a reload of the haproxy, they should not start haproxy if it was stopped already

Comment 1 Ram Ranganathan 2012-08-02 04:39:08 UTC
Fixed with git commit f429010a9c99cdfb13454575fbd1e638ba53b0da -- waiting for pull request: https://github.com/openshift/crankcase/pull/322  to get tested and merged in.

Comment 2 Ram Ranganathan 2012-08-02 17:38:15 UTC
rchopra merged the pull request.

Comment 3 Ram Ranganathan 2012-08-02 20:51:22 UTC
Changed to use an consistent init-script like name with commit de72b3618a6c86cebc3e8b18dd8af57448b8b224.

Comment 4 Ram Ranganathan 2012-08-02 20:53:32 UTC
This fix has also been applied to STG by rchopra -- was needed for fixing bugz 844912.

Comment 5 Rony Gong 🔥 2012-08-03 04:20:37 UTC
Verified on stg_228,
both after move mysql gear and scal-up
the haproxy still be stopped 

[root@localhost mytest]# rhc app cartridge status -a qs1jbossas -c haproxy-1.4 -p 111111

RESULT:
HAProxy instance is stopped


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