-
Bug
-
Resolution: Done-Errata
-
Normal
-
rhel-9.5
-
nmstate-2.2.33-1.el9
-
None
-
None
-
1
-
rhel-net-mgmt
-
ssg_networking
-
18
-
3
-
False
-
False
-
-
None
-
NMT - RHEL-9.5 DTM 16
-
-
Pass
-
Automated
-
None
What were you trying to do that didn't work?
I've created a bridge(BR-DHCP2) with nmstate, after that I want to create a bond(bond0_p) attaching to the bridge, when I also list the bridge in `interfaces`, it failed.
3 conditions to reproduce:
- The controller(BR-DHCP2) already exists
- The controller is listed under `interfaces` key in the desired state, and it doesn't mention `port`(hence nmstaet shouldn't touch `port` part)
- The subordinate(bond0_p) doesn't exist before, to be created in the desired state
The error is same with https://issues.redhat.com/browse/RHEL-1414 but the reproducer is different.
Please provide the package NVR for which bug is seen:
nmstate-2.2.27-1.el9.x86_64
nispor-1.2.14-1.el9.x86_64
NetworkManager-1.47.2-1.el9.x86_64
How reproducible:
100%
Steps to reproduce
echo "
interfaces:
- name: BR-DHCP2
type: linux-bridge
state: up
- name: bond0_p
type: bond
controller: BR-DHCP2
state: up
mtu: 9000
link-aggregation:
mode: 802.3ad" | nmstatectl apply # <----------------- pass when both didn't exist before
echo "
interfaces:
- name: bond0_p
type: bond
state: absent" | nmstatectl apply
echo "
interfaces:
- name: BR-DHCP2
type: linux-bridge
state: up
- name: bond0_p
type: bond
controller: BR-DHCP2
state: up
mtu: 9000
link-aggregation:
mode: 802.3ad" | nmstatectl apply # <----------------- FAIL: BR-DHCP2 exists + creating bond0_p
echo "
interfaces:
- name: bond0_p
type: bond
controller: BR-DHCP2
state: up
mtu: 9000
link-aggregation:
mode: 802.3ad" | nmstatectl apply # <----------------- pass when BR-DHCP2 is not listed in `interfaces`
Expected results
Pass
Actual results
NmstateError: InvalidArgument: Interface bond0_p has controller BR-DHCP2 but not listed in port list of controller interface
- links to
-
RHBA-2024:129019
nmstate bug fix and enhancement update