-
Bug
-
Resolution: Unresolved
-
Normal
-
None
-
rhel-9.7
-
None
-
No
-
Low
-
rhel-net-mgmt
-
None
-
False
-
False
-
-
None
-
None
-
-
None
-
None
-
Unspecified
-
Unspecified
-
Unspecified
-
None
What were you trying to do that didn't work?
When creating them with link down + `nmcli dev set managed yes` without pause (generally in a script), the link will be automatically brought up.
The workaround is to add a `sleep 1` between `ip link` creation and `nmcli dev set managed yes`
What is the impact of this issue to you?
The results are inconsistent when executing these commands manually (with pauses) versus executing them via a script (without pauses).
Please provide the package NVR for which the bug is seen:
NetworkManager-1.53.92-1.el9.x86_64
How reproducible is this bug?:
100%
Steps to reproduce
ip link add type veth sleep 1 # <--- key step nmcli dev set veth0 managed yes nmcli dev set veth1 managed yes sleep 1 ip link show # both veth are DOWN since there is a sleep ip link del veth0 ip link add type veth # <--- no sleep here nmcli dev set veth0 managed yes nmcli dev set veth1 managed yes sleep 1 ip link show # both veth are UP unexpectedly
Expected results
veth pair links stay DOWN
Actual results
if no pause between `ip link` creation and `nmcli dev set managed yes`, the veth links are UP