Workaround for keepalived losing VIPs
- increase keepalived retry count to 10000
- fix staticmethod in failover test
- use the fixture 'sl_openstack_deployed' to not redeploy
stacklight in each testcase
Change-Id: I7c473c328520dfe06ec3d481475d3071c43a0706
Related-Bug:#PROD-15791
diff --git a/tcp_tests/templates/shared-salt.yaml b/tcp_tests/templates/shared-salt.yaml
index 955972c..607f908 100644
--- a/tcp_tests/templates/shared-salt.yaml
+++ b/tcp_tests/templates/shared-salt.yaml
@@ -504,6 +504,13 @@
skip_fail: false
{%- endif %}
+- description: "*Workaround* [PROD-15791] increase keepalived garp repeat count"
+ cmd: |
+ sed -i 's/^ garp_master_repeat .*$/ garp_master_repeat 100000/' /usr/share/salt-formulas/env/keepalived/files/keepalived.conf
+ node_name: {{ HOSTNAME_CFG01 }}
+ retry: {count: 1, delay: 5}
+ skip_fail: true
+
- description: Refresh pillars on salt-master minion
cmd: salt --hard-crash --state-output=mixed --state-verbose=False -C 'I@salt:master' saltutil.refresh_pillar
node_name: {{ HOSTNAME_CFG01 }}