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
This commit is contained in:
Pierre Riteau 2023-12-20 09:36:46 +01:00
parent 9ea61b6c17
commit baf5c9f719
2 changed files with 4 additions and 4 deletions

View File

@ -4,8 +4,8 @@
# Controller interface on all-in-one network. # Controller interface on all-in-one network.
aio_interface: breth1 aio_interface: breth1
# Use eth1 if it exists, otherwise the bridge will have no ports. # Use dummy1 if it exists, otherwise the bridge will have no ports.
aio_bridge_ports: "{{ ['eth1'] if 'ansible_eth1' in hostvars[inventory_hostname] else [] }}" aio_bridge_ports: "{{ ['dummy1'] if 'ansible_dummy1' in hostvars[inventory_hostname] else [] }}"
############################################################################### ###############################################################################
# Dummy variable to allow Ansible to accept this file. # Dummy variable to allow Ansible to accept this file.

View File

@ -4,8 +4,8 @@
# Seed interface on all-in-one network. # Seed interface on all-in-one network.
aio_interface: breth1 aio_interface: breth1
# Use eth1 if it exists, otherwise the bridge will have no ports. # Use dummy1 if it exists, otherwise the bridge will have no ports.
aio_bridge_ports: "{{ ['eth1'] if 'ansible_eth1' in hostvars[inventory_hostname] else [] }}" aio_bridge_ports: "{{ ['dummy1'] if 'ansible_dummy1' in hostvars[inventory_hostname] else [] }}"
############################################################################### ###############################################################################
# Dummy variable to allow Ansible to accept this file. # Dummy variable to allow Ansible to accept this file.