CI: test interface names with dashes

Interface names with dashes can cause problems in Ansible since dashes
are replaced with underscores when referencing facts.

Change-Id: Ib15f81120d353ebcf8965dc0aaba90f3a9b0ec44
Related-Bug: #1927357
This commit is contained in:
Mark Goddard 2021-06-03 10:34:57 +01:00 committed by Michal Nasiadka
parent fc44651d62
commit a42b0b5ed1
3 changed files with 7 additions and 6 deletions

View File

@ -2,8 +2,8 @@
---
service_type: host
hostname: {{ hostvars[host]['ansible_hostname'] }}
addr: {{ hostvars[host]['ansible_vxlan0']['ipv4']['address'] }}
labels:
addr: {{ hostvars[host]['ansible_vxlan_0']['ipv4']['address'] }}
labels:
- _admin
- mon
- mgr

View File

@ -1,2 +1,2 @@
[DEFAULT]
global_physnet_mtu={{ ansible_vxlan0.mtu }}
global_physnet_mtu={{ ansible_vxlan_1.mtu }}

View File

@ -18,7 +18,8 @@
ansible_version_slurp: "==7.*"
ansible_version_min: "==8.*"
ansible_version_max: "==9.*"
api_interface_name: vxlan0
# NOTE(mgoddard): Test the use of interface names with dashes.
api_interface_name: "vxlan-0"
api_network_prefix: "192.0.2."
api_network_prefix_length: "24"
configure_swap_size: 0
@ -27,11 +28,11 @@
is_slurp: false
kolla_internal_vip_address: "192.0.2.10"
le_enabled: false
neutron_external_bridge_name: br0
neutron_external_bridge_name: br-0
neutron_external_interface_name: "veth-{{ neutron_external_bridge_name }}-ext"
neutron_external_network_prefix: "198.51.100."
neutron_external_network_prefix_length: "24"
neutron_external_vxlan_interface_name: vxlan1
neutron_external_vxlan_interface_name: "vxlan-1"
neutron_tenant_network_dns_server: "8.8.8.8"
neutron_tenant_network_prefix: "203.0.113."
neutron_tenant_network_prefix_length: "24"