From 5adf01b01ac6dddb7d05216c91a1e9adb99638b5 Mon Sep 17 00:00:00 2001 From: Amudha Date: Wed, 20 Jul 2016 22:03:31 -0700 Subject: [PATCH] mitaka: stop apache2 before enabling haproxy In mitaka, barbican runs behind apache2 and listens on 9311; stop apache2 before starting haproxy. apache2 is restarted later from barbican-server-setup.sh after updating secondary port in apache barbican conf file Change-Id: I33d3b5aa94a6154ea73fb472099ca5ebe88de66d Partial-Bug: #1582932 --- fabfile/tasks/ha.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/fabfile/tasks/ha.py b/fabfile/tasks/ha.py index beb22d1da..0073aa885 100644 --- a/fabfile/tasks/ha.py +++ b/fabfile/tasks/ha.py @@ -536,6 +536,11 @@ def fixup_restart_haproxy_in_openstack_node(*args): # haproxy enable with settings(host_string=host_string, warn_only=True): + #In mitaka, barbican runs behind apache2 and listens on 9311; + #stop apache2 before starting haproxy + #apache2 is restarted later from barbican-server-setup.sh after + #updating secondary port in apache barbican conf file + sudo("service apache2 stop") sudo("chkconfig haproxy on") enable_haproxy() sudo("service haproxy restart")