From 2157605c038509da580076fb8d696812f7fba4c1 Mon Sep 17 00:00:00 2001 From: Jeffrey Zhang Date: Tue, 23 Jan 2018 18:18:50 +0800 Subject: [PATCH] Use a random keepalived router id in CI environment Use the same router will result in conflict in the CI environment. Change-Id: Id1ba69ebbf67b4cead855adbe440343c05ea3d1e Closes-Bug: #1744913 (cherry picked from commit bf4a3c9f6c5ff95e72b1ec324004cddb3cee4081) --- tests/templates/globals-default.j2 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/templates/globals-default.j2 b/tests/templates/globals-default.j2 index b9f46bb22e..aa2bd9db49 100644 --- a/tests/templates/globals-default.j2 +++ b/tests/templates/globals-default.j2 @@ -2,6 +2,10 @@ kolla_base_distro: "{{ base_distro }}" kolla_install_type: "{{ install_type }}" +# Use a random router id, otherwise it may result in the same router id +# in the CI gate. +keepalived_virtual_router_id: "{{ 250 | random(1) }}" + {% if hostvars|length > 2 %} enable_haproxy: "no" kolla_internal_vip_address: "{{ api_interface_address }}"