Add link_local workaround
Add link_local workaround until contrail<>kube api VIP communication is
fixed.
Change-Id: Ia1aa07140f301c03c3cd8b0f3562d84a2c0e79ca
Reviewed-on: https://review.gerrithub.io/373948
Reviewed-by: Dennis Dmitriev <dis.xcom@gmail.com>
Tested-by: Dennis Dmitriev <dis.xcom@gmail.com>
diff --git a/tcp_tests/templates/virtual-mcp11-k8s-contrail/k8s.yaml b/tcp_tests/templates/virtual-mcp11-k8s-contrail/k8s.yaml
index 51984cc..70d60a4 100644
--- a/tcp_tests/templates/virtual-mcp11-k8s-contrail/k8s.yaml
+++ b/tcp_tests/templates/virtual-mcp11-k8s-contrail/k8s.yaml
@@ -18,6 +18,13 @@
retry: {count: 1, delay: 1}
skip_fail: false
+- description: Replace kube-api VIP with IP of one controller
+ cmd: find /srv/salt/reclass/ -type f -exec sed -i
+ 's/ipf_addresses: \${_param:kubernetes_control_address}/ipf_addresses: \${_param:kubernetes_control_node01_address}/g' {} +
+ node_name: {{ HOSTNAME_CFG01 }}
+ retry: {count: 1, delay: 1}
+ skip_fail: false
+
- description: Install keepalived on primary controller
cmd: salt --hard-crash --state-output=mixed --state-verbose=False
-C 'I@keepalived:cluster and *01*' state.sls keepalived