Bug 1026969

Summary: SNI proxy does not self-repair IP address on boot
Product: OpenShift Online Reporter: Rob Millner <rmillner>
Component: ContainersAssignee: mfisher
Status: CLOSED CURRENTRELEASE QA Contact: libra bugs <libra-bugs>
Severity: high Docs Contact:
Priority: high    
Version: 2.xCC: chunchen, mfisher, 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: 2014-01-24 03:28:54 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:

Description Rob Millner 2013-11-05 18:23:04 UTC
The SNI proxy needs to rebuild its configuration file on boot to track IP address changes.

Comment 1 Rob Millner 2013-11-05 18:58:03 UTC
Pull request:

https://github.com/openshift/origin-server/pull/4095


To test:
1. service openshift-sni-proxy stop
2. Edit /var/lib/openshift/.httpd.d/sniproxy.cfg and change the bind IP address
3. service openshift-sni-proxy stop
4. Examine /var/lib/openshift/.httpd.d/sniproxy.cfg and verify it has the correct bind IP address.

Ex:

# ip addr show dev eth0
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc htb state UP qlen 1000
    link/ether 12:31:3d:1c:c2:d9 brd ff:ff:ff:ff:ff:ff
    inet 10.80.205.35/24 brd 10.80.205.255 scope global eth0

# grep bind /var/lib/openshift/.httpd.d/sniproxy.cfg
       bind         127.0.0.1:2303,10.80.205.35:2303
       bind         127.0.0.1:2304,10.80.205.35:2304
       bind         127.0.0.1:2305,10.80.205.35:2305
       bind         127.0.0.1:2306,10.80.205.35:2306
       bind         127.0.0.1:2307,10.80.205.35:2307
       bind         127.0.0.1:2308,10.80.205.35:2308

Comment 2 openshift-github-bot 2013-11-07 02:39:47 UTC
Commit pushed to master at https://github.com/openshift/origin-server

https://github.com/openshift/origin-server/commit/1388599631fb2f43e6e0f0b59a402b4f72792b82
Bug 1026969 - rebuild the SNI proxy on start to track changing IP address.

Comment 3 chunchen 2013-11-07 08:29:46 UTC
It's fixed, verified on devenv_4000, so mark it as VERIFIED