+++ This bug was initially created as a clone of Bug #1160562 +++ Description of problem: If changing something in /etc/openshift/node-plugins.d/openshift-origin-frontend-haproxy-sni-proxy.conf. Need to restart openshift-sni-proxy. But it doesn't call 'oo-rebuild-haproxy-sni-proxy' function. /etc/init.d/openshift-sni-proxy: restart() { $exec -c -q -f $cfgfile if [ $? -ne 0 ]; then echo "Errors in configuration file, check with $prog check." return 1 fi stop start } case "$1" in start) # Fix the IP address and config params if they changed. oo-rebuild-haproxy-sni-proxy || : start ;; stop|restart|reload) $1 ;; force-reload) restart ;; Version-Release number of selected component (if applicable): OSE-2.2 2014-10-29.1 How reproducible: always Steps to Reproduce: 1. 2. 3. Actual results: oo-rebuild-haproxy-sni-proxy is not called Expected results: oo-rebuild-haproxy-sni-proxy should be run when restarting openshift-sni-proxy service Additional info:
origin-server cherrypick: commit 7599f7cda80e9090a3ccaed560865e211cdea787 Author: Luke Meyer lmeyer Date: Thu Nov 6 16:03:29 2014 -0500
PUDDLE: 2.1.z/2014-11-06.1 Verify: [root@node1 ~]# cat /var/lib/openshift/.httpd.d/sniproxy.cfg | grep 2310 [root@node1 ~]# cat /etc/openshift/node-plugins.d/openshift-origin-frontend-haproxy-sni-proxy.conf | grep 2310 [root@node1 ~]# vim /etc/openshift/node-plugins.d/openshift-origin-frontend-haproxy-sni-proxy.conf [root@node1 ~]# cat /etc/openshift/node-plugins.d/openshift-origin-frontend-haproxy-sni-proxy.conf | grep 2310 PROXY_PORTS="2303,2304,2305,2306,2307,2308,2309,2310" [root@node1 ~]# /etc/init.d/openshift-sni-proxy restart Stopping haproxy15: [ OK ] Starting haproxy15: [ OK ] [root@node1 ~]# cat /var/lib/openshift/.httpd.d/sniproxy.cfg | grep 2310 listen sniproxy-2310 bind 127.0.0.1:2310,172.16.100.79:2310 [root@node1 ~]#
Xuan Jia <xjia> updated the status of jira ENTESB-2162 to Closed