Skip to content

Commit af7b587

Browse files
authored
Revert "Use vxlan networkd dispatcher script for the moment" (#2624)
This reverts commit d013f0c. Fixed by osism/ansible-collection-commons#765 Signed-off-by: Christian Berendt <[email protected]>
1 parent fda109a commit af7b587

File tree

3 files changed

+23
-5
lines changed

3 files changed

+23
-5
lines changed

inventory/group_vars/testbed-managers.yml

+5-2
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,11 @@ network_ethernets:
4141
network_dispatcher_scripts:
4242
- src: /opt/configuration/network/iptables.sh
4343
dest: routable.d/iptables.sh
44-
- src: /opt/configuration/network/vxlan.sh
45-
dest: routable.d/vxlan.sh
44+
# Only use vxlan.sh networkd-dispatcher script for OSISM < 9.0.0
45+
# - src: /opt/configuration/network/vxlan.sh
46+
# dest: routable.d/vxlan.sh
47+
48+
network_vxlan_interfaces: "{{ _network_vxlan_interfaces }}"
4649

4750
##########################################################
4851
# kolla

inventory/group_vars/testbed-nodes.yml

+6-3
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,12 @@ network_ethernets:
7272
dhcp4: true
7373
mtu: "{{ testbed_mtu_node }}"
7474

75-
network_dispatcher_scripts:
76-
- src: /opt/configuration/network/vxlan.sh
77-
dest: routable.d/vxlan.sh
75+
network_vxlan_interfaces: "{{ _network_vxlan_interfaces }}"
76+
77+
# Only use vxlan.sh networkd-dispatcher script for OSISM < 9.0.0
78+
# network_dispatcher_scripts:
79+
# - src: /opt/configuration/network/vxlan.sh
80+
# dest: routable.d/vxlan.sh
7881

7982
##########################################################
8083
# kolla

scripts/deploy/000-manager.sh

+12
Original file line numberDiff line numberDiff line change
@@ -85,3 +85,15 @@ osism apply squid
8585
if [[ $MANAGER_VERSION != "latest" ]]; then
8686
sed -i "s#docker_namespace: kolla#docker_namespace: kolla/release#" /opt/configuration/inventory/group_vars/all/kolla.yml
8787
fi
88+
89+
# use vxlan.sh networkd-dispatcher script for OSISM <= 9.0.0
90+
if [[ $(semver $MANAGER_VERSION 9.0.0) -lt 0 && $MANAGER_VERSION != "latest" ]]; then
91+
sed -i 's|^# \(network_dispatcher_scripts:\)$|\1|g' \
92+
/opt/configuration/inventory/group_vars/testbed-nodes.yml
93+
sed -i 's|^# \( - src: /opt/configuration/network/vxlan.sh\)$|\1|g' \
94+
/opt/configuration/inventory/group_vars/testbed-nodes.yml \
95+
/opt/configuration/inventory/group_vars/testbed-managers.yml
96+
sed -i 's|^# \( dest: routable.d/vxlan.sh\)$|\1|g' \
97+
/opt/configuration/inventory/group_vars/testbed-nodes.yml \
98+
/opt/configuration/inventory/group_vars/testbed-managers.yml
99+
fi

0 commit comments

Comments
 (0)