-
Bug
-
Resolution: Unresolved
-
Undefined
-
4.13, 4.12, 4.14, 4.15, 4.16, 4.17, 4.18, 4.19
-
None
-
Quality / Stability / Reliability
-
False
-
-
5
-
Moderate
-
None
-
None
-
None
-
None
-
OSDOCS Sprint 275, OSDOCS Sprint 276, OSDOCS Sprint 277, OSDOCS Sprint 278
-
4
-
None
-
None
-
None
-
None
-
None
-
None
-
None
Description of problem:
IPI install docs use nmcli to setup the provisioning network. This is not a good idea. It's better to use nmstate.
Convert the examples to nmstate.
sudo nohup bash -c " nmcli con down \"$PUB_CONN\" nmcli con delete \"$PUB_CONN\" # RHEL 8.1 appends the word \"System\" in front of the connection, delete in case it exists nmcli con down \"System $PUB_CONN\" nmcli con delete \"System $PUB_CONN\" nmcli connection add ifname baremetal type bridge <con_name> baremetal bridge.stp no nmcli con add type bridge-slave ifname \"$PUB_CONN\" master baremetal pkill dhclient;dhclient baremetal "
Something like this.
--- interfaces: # Define the bridge interface - name: baremetal type: bridge state: up bridge: options: stp: enabled: false port: - name: "$PUB_CONN" # <-- Replace with the physical interface name # Define the physical interface that will be part of the bridge - name: "$PUB_CONN" # <-- Replace with the physical interface name type: ethernet state: up
Version-Release number of selected component:
4.20
How reproducible:
Always.
Steps to Reproduce:
1. Check the examples in the docs. 2. 3.
Actual results:
nmcli con down \"$PUB_CONN\" nmcli con delete \"$PUB_CONN\" # RHEL 8.1 appends the word \"System\" in front of the connection, delete in case it exists nmcli con down \"System $PUB_CONN\" nmcli con delete \"System $PUB_CONN\" nmcli connection add ifname baremetal type bridge con-name baremetal bridge.stp no ipv4.method manual ipv4.addr "x.x.x.x/yy" ipv4.gateway "a.a.a.a" ipv4.dns "b.b.b.b" nmcli con add type bridge-slave ifname \"$PUB_CONN\" master baremetal nmcli con up baremetal
Expected results:
--- # Define the DNS server for the system dns-resolver: config: server: - "b.b.b.b" # <-- Replace with your DNS server IP interfaces: # Define the bridge interface with its static IP configuration - name: baremetal type: bridge state: up ipv4: enabled: true dhcp: false address: - ip: "x.x.x.x" # <-- Replace with your static IP prefix-length: yy # <-- Replace with your subnet prefix (e.g., 24) gateway: "a.a.a.a" # <-- Replace with your gateway IP bridge: options: stp: enabled: false port: - name: "$PUB_CONN" # <-- Replace with the physical interface name (e.g., eth0) # Define the physical interface that will become a bridge port - name: "$PUB_CONN" # <-- Replace with the physical interface name (e.g., eth0) type: ethernet state: up
Similar
nmcli con down \"$PROV_CONN\" nmcli con delete \"$PROV_CONN\" nmcli connection add ifname provisioning type bridge con-name provisioning nmcli con add type bridge-slave ifname \"$PROV_CONN\" master provisioning nmcli connection modify provisioning ipv6.addresses fd00:1101::1/64 ipv6.method manual nmcli con down provisioning nmcli con up provisioning
--- interfaces: # Define the provisioning bridge with its static IPv6 address - name: provisioning type: bridge state: up ipv6: enabled: true dhcp: false address: - ip: "fd00:1101::1" prefix-length: 64 bridge: port: - name: "$PROV_CONN" # <-- Replace with the physical interface name # Define the physical interface that will become a bridge port - name: "$PROV_CONN" # <-- Replace with the physical interface name type: ethernet state: up