summaryrefslogtreecommitdiffstats
path: root/plugins/odl_sfc/roles
diff options
context:
space:
mode:
authorYifei Xue <xueyifei@huawei.com>2018-04-21 21:38:16 +0800
committerYifei Xue <xueyifei@huawei.com>2018-04-24 17:20:25 +0800
commitd7156c0b772ada65ff3d094bd70814bf5b0cb4e7 (patch)
tree23c94395ce48c1c99e62e71c406e8eb9b6fa5a92 /plugins/odl_sfc/roles
parent39d0f4c45d616f8c5bce7ca8db900a66705f439b (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>
Diffstat (limited to 'plugins/odl_sfc/roles')
-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]