aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYifei Xue <xueyifei@huawei.com>2018-04-21 21:38:16 +0800
committerYifei Xue <xueyifei@huawei.com>2018-04-25 00:45:43 +0000
commit84036899c0ec4bde40c6b71e2c8d447bbdb79b0c (patch)
tree37bdbbe33b54ad0a1fc6c5e9422acdd8c988092a
parent6d6661afb475173074c42d7f035ad366a8f26538 (diff)
Workaround for Tacker in HA scenarios
JIRA: - For Tacker service in HA mode, it only generates VIM fernet key on one of the Tacker hosts. This may cause error when a request is been routed to another host. We need to use Barbican and Mistral components. But now OSA did not support Mistral yet. So we add a workaround here to get over this issue. Change-Id: I9aa228ec2ac7011cedb1eb503611ca24c7666caa Signed-off-by: Yifei Xue <xueyifei@huawei.com> (cherry picked from commit d7156c0b772ada65ff3d094bd70814bf5b0cb4e7)
-rw-r--r--plugins/odl_sfc/roles/setup-odl-sfc/tasks/control-tacker-1.yml6
1 files changed, 6 insertions, 0 deletions
diff --git a/plugins/odl_sfc/roles/setup-odl-sfc/tasks/control-tacker-1.yml b/plugins/odl_sfc/roles/setup-odl-sfc/tasks/control-tacker-1.yml
index 8fd1109f..f63edeaa 100644
--- a/plugins/odl_sfc/roles/setup-odl-sfc/tasks/control-tacker-1.yml
+++ b/plugins/odl_sfc/roles/setup-odl-sfc/tasks/control-tacker-1.yml
@@ -5,3 +5,9 @@
name: networking-sfc
virtualenv: /openstack/venvs/tacker-{{ os_ver }}
when: odl_sfc == "Enable"
+
+- name: stop the other two tacker servers
+ service:
+ name: tacker-server
+ state: stopped
+ when: inventory_hostname != groups['tacker_all'][0]