Bug 966774
Summary: | HAProxy validate configuration does not work | ||
---|---|---|---|
Product: | OpenShift Online | Reporter: | Mrunal Patel <mpatel> |
Component: | Containers | Assignee: | Mrunal Patel <mpatel> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | libra bugs <libra-bugs> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 2.x | CC: | xtian |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2013-06-11 04:10: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
Mrunal Patel
2013-05-23 22:47:04 UTC
Verified it on devenv_3269. 1) Creating an scaling app: # rhc app create scalephp php-5.3 -s 2) Set min gear to 2 #rhc cartridge-scale -a scalephp -c php-5.3 --min 2 3)Modify ip in gear-registry.db file to wrong value: Modify the following line 533783926584498005737472.231.250:php;533783926584498005737472-domx1.dev.rhcloud.com To 533783926584498005737472.231.2:php;533783926584498005737472-domx1.dev.rhcloud.com 4) Check haproxy.log and validate_config.log ( waiting for some minutes), There's no error log in haproxy.log In validate_config.log, you could find the reparing log: # cat validate_config.log # Logfile created on 2013-05-24 06:27:25 -0400 by logger.rb/31641 I, [2013-05-24T06:39:04.183850 #21723] INFO -- : GEAR_INFO - validate: Repairing configuration to use IP address 10.145.231.250 for gear 533783926584498005737472-domx1.dev.rhcloud.com ... I, [2013-05-24T06:39:04.184370 #21723] INFO -- : GEAR_INFO - repair: Repaired gear registry - 533783926584498005737472-domx1.dev.rhcloud.com now resolves to 10.145.231.250 (was 10.145.231.2) I, [2013-05-24T06:39:04.189709 #21723] INFO -- : GEAR_INFO - repair: Repaired haproxy config - 533783926584498005737472-domx1.dev.rhcloud.com now resolves to 10.145.231.250 (was 10.145.231.2) I, [2013-05-24T06:39:04.189786 #21723] INFO -- : GEAR_INFO - validate: Configuration was modified, reloading haproxy 5) Check gear-registry.db again, the ip has been repaired back 533783926584498005737472.231.250:php;533783926584498005737472-domx1.dev.rhcloud.com |