diff options
| author | Jeffrey Zhang <zhang.lei.fly@gmail.com> | 2018-01-23 18:18:50 +0800 |
|---|---|---|
| committer | Jeffrey Zhang <jeffrey.zhang@99cloud.net> | 2018-01-23 12:58:26 +0000 |
| commit | bf4a3c9f6c5ff95e72b1ec324004cddb3cee4081 (patch) | |
| tree | fb7d702f3241b780bc73a4f63362b6611000b096 /tests | |
| parent | 6147c137d3d501f32c15636dcbdb31f3a1c57be0 (diff) | |
| download | kolla-ansible-bf4a3c9f6c5ff95e72b1ec324004cddb3cee4081.tar.gz kolla-ansible-bf4a3c9f6c5ff95e72b1ec324004cddb3cee4081.zip | |
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
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/templates/globals-default.j2 | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/templates/globals-default.j2 b/tests/templates/globals-default.j2 index f4a17e773..6770633dd 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 %} kolla_internal_vip_address: "{{ api_interface_address }}" enable_haproxy: "no" |
