From b008b77e4a6decaecc48cbafa7d14b02900a6982 Mon Sep 17 00:00:00 2001 From: Michele Baldessari Date: Wed, 18 Sep 2019 21:15:51 +0200 Subject: [PATCH] Fix the non-HA case where OVN has its own VIP When OVN has its own VIP, the non-HA case is currently broken. Tempest will fail when creating networks as neutron components will try to reach the OVN VIP (managed by keepalived) that never gets created: 2019-09-18 16:41:27.780 47975 ERROR ovsdbapp.backend.ovs_idl.idlutils [-] Unable to open stream to tcp:192.168.24.12:6642 to retrieve schema: No route to host: Exception: Could not retrieve schema from tcp:192.168.24.12:6642 2019-09-18 16:41:27.780 47687 ERROR ovsdbapp.backend.ovs_idl.idlutils [-] Unable to open stream to tcp:192.168.24.12:6642 to retrieve schema: No route to host: Exception: Could not retrieve schema from tcp:192.168.24.12:6642 With this change we add the correct hiera key for keepalived to create the dedicated OVN DBS VIP. Related-Bug: #1841811 Change-Id: I8f7f5534ab3d053ba07d4fd56975e02b3f83eedc --- tripleo_ansible/roles/tripleo-hieradata/templates/vip_data.j2 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tripleo_ansible/roles/tripleo-hieradata/templates/vip_data.j2 b/tripleo_ansible/roles/tripleo-hieradata/templates/vip_data.j2 index e32f19c08..ad5729935 100644 --- a/tripleo_ansible/roles/tripleo-hieradata/templates/vip_data.j2 +++ b/tripleo_ansible/roles/tripleo-hieradata/templates/vip_data.j2 @@ -32,6 +32,9 @@ {% set _ = vip_data.__setitem__('tripleo::keepalived::controller_virtual_ip', (net_vip_map.ctlplane)) %} {% set _ = vip_data.__setitem__('tripleo::keepalived::redis_virtual_ip', (net_vip_map.redis)) %} {% set _ = vip_data.__setitem__('tripleo::redis_notification::haproxy_monitor_ip', (net_vip_map.ctlplane)) %} +{% if 'ovn_dbs' in enabled_services and net_vip_map.ovn_dbs is defined %} +{% set _ = vip_data.__setitem__('tripleo::keepalived::ovndbs_virtual_ip', (net_vip_map.ovn_dbs)) %} +{% endif %} {% for key, value in cloud_names.items() %} {% set _ = vip_data.__setitem__(key, value) %} {% endfor %}