Red Hat Bugzilla – Bug 1032579
the gear does not recover after changing it's ip
Last modified: 2016-11-30 19:27:53 EST
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):
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
The app becomes inaccessible and returns 503 response code
The app gets recovered in several seconds
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.