From baf5c9f7191bf155b52072f494301474bd4b6755 Mon Sep 17 00:00:00 2001 From: Pierre Riteau Date: Wed, 20 Dec 2023 09:36:46 +0100 Subject: [PATCH] Use dummy1 as bridge port instead of eth1 With NetworkManager, the MichaelRigart.interfaces role only creates an interface with the dummy type if it is called dummy*, otherwise it is created as ethernet. The default dev configuration was using eth1 for the bridge port, which was causing issues on Rocky Linux 9, for example when following the automated setup [1]. Switch to dummy1 to ensure a dummy port is created. [1] https://docs.openstack.org/kayobe/latest/contributor/automated.html Change-Id: Ib61a62e126c66d4133d8e80dff5643ebc6966bd1 --- .../inventory/group_vars/controllers/network-interfaces | 4 ++-- etc/kayobe/inventory/group_vars/seed/network-interfaces | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/etc/kayobe/inventory/group_vars/controllers/network-interfaces b/etc/kayobe/inventory/group_vars/controllers/network-interfaces index e07607c..cae8e6a 100644 --- a/etc/kayobe/inventory/group_vars/controllers/network-interfaces +++ b/etc/kayobe/inventory/group_vars/controllers/network-interfaces @@ -4,8 +4,8 @@ # Controller interface on all-in-one network. aio_interface: breth1 -# Use eth1 if it exists, otherwise the bridge will have no ports. -aio_bridge_ports: "{{ ['eth1'] if 'ansible_eth1' in hostvars[inventory_hostname] else [] }}" +# Use dummy1 if it exists, otherwise the bridge will have no ports. +aio_bridge_ports: "{{ ['dummy1'] if 'ansible_dummy1' in hostvars[inventory_hostname] else [] }}" ############################################################################### # Dummy variable to allow Ansible to accept this file. diff --git a/etc/kayobe/inventory/group_vars/seed/network-interfaces b/etc/kayobe/inventory/group_vars/seed/network-interfaces index a2197ad..aa3fd57 100644 --- a/etc/kayobe/inventory/group_vars/seed/network-interfaces +++ b/etc/kayobe/inventory/group_vars/seed/network-interfaces @@ -4,8 +4,8 @@ # Seed interface on all-in-one network. aio_interface: breth1 -# Use eth1 if it exists, otherwise the bridge will have no ports. -aio_bridge_ports: "{{ ['eth1'] if 'ansible_eth1' in hostvars[inventory_hostname] else [] }}" +# Use dummy1 if it exists, otherwise the bridge will have no ports. +aio_bridge_ports: "{{ ['dummy1'] if 'ansible_dummy1' in hostvars[inventory_hostname] else [] }}" ############################################################################### # Dummy variable to allow Ansible to accept this file.