Bug 1032579

Summary: the gear does not recover after changing it's ip
Product: OpenShift Online Reporter: Oleg Fayans <ofayans>
Component: ImageAssignee: Ben Parees <bparees>
Status: CLOSED CANTFIX QA Contact: libra bugs <libra-bugs>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 1.xCC: agoldste, amarecek, bmeng, bparees, dmace, dmcphers
Target Milestone: ---Keywords: Reopened, UpcomingRelease
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-07-04 15:32:22 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 Oleg Fayans 2013-11-20 12:23:46 UTC
Description of problem:
When I change the ip address of the local gear of a scalable application and then restart the app, the app becomes inaccessible and does not recover automatically. 

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

How reproducible:
Always

Steps to Reproduce:
1. Create a scalable app
2. ssh into the app and issue the following command:
sed -i "s/local-gear .*:8080/local_gear 10.10.10.10:8080/" haproxy/conf/haproxy.cfg
3. restart the app

Actual results:
The app becomes inaccessible and returns 503 response code

Expected results:
The app gets recovered in several seconds


Additional info:

Comment 5 Ben Parees 2014-07-04 15:32:22 UTC
haproxy.cfg cannot be locked since it needs to be updated during scale up/down operations.  See https://bugzilla.redhat.com/show_bug.cgi?id=1012812 for more discussion on locking this file.