-
Bug
-
Resolution: Unresolved
-
Undefined
-
None
-
rhel-9.7
-
None
-
No
-
None
-
rhel-net-mgmt
-
None
-
False
-
False
-
-
None
-
None
-
None
-
Automated
-
Unspecified
-
Unspecified
-
Unspecified
-
None
What were you trying to do that didn't work?
When using nmstate apply dispatch, if the interface name contains dash '-', it gets verification error
What is the impact of this issue to you?
Please provide the package NVR for which the bug is seen:
nmstate-2.2.48-1.el9.x86_64
How reproducible is this bug?:
100%
Steps to reproduce
# failed with dash echo ' interfaces: - name: VC-TEST1 type: dummy state: up dispatch: post-activation: ip link set VC-TEST1 mtu 2000 ' | nmstatectl apply # pass if no dash echo ' interfaces: - name: VC_TEST1 type: dummy state: up dispatch: post-activation: ip link set VC_TEST1 mtu 2000 ' | nmstatectl apply
Expected results
both pass
Actual results
once there is a dash symbol in iface name, got:
[2025-08-04T13:24:18Z INFO nmstatectl] Nmstate version: 2.2.48 [2025-08-04T13:24:18Z INFO nmstate::dispatch] Dispatch script is not protected by checkpoint, please backup your original nmstate created dispatch scripts [2025-08-04T13:24:18Z INFO nmstate::query_apply::net_state] Created checkpoint /org/freedesktop/NetworkManager/Checkpoint/1 [2025-08-04T13:24:18Z INFO nmstate::nm::query_apply::connection] Creating connection c0fd4688-2c45-4e7b-9f73-788968cc1c48: VC-TEST1/dummy [2025-08-04T13:24:18Z INFO nmstate::nm::query_apply::connection] Activating connection c0fd4688-2c45-4e7b-9f73-788968cc1c48: VC-TEST1/dummy [2025-08-04T13:24:18Z INFO nmstate::query_apply::net_state] Retrying on: VerificationError: Verification failure: VC-TEST1.interface.dispatch.post-activation desire '"ip link set VC-TEST1 mtu 2000"', current '""' [2025-08-04T13:24:19Z INFO nmstate::query_apply::net_state] Retrying on: VerificationError: Verification failure: VC-TEST1.interface.dispatch.post-activation desire '"ip link set VC-TEST1 mtu 2000"', current '""' [2025-08-04T13:24:20Z INFO nmstate::query_apply::net_state] Retrying on: VerificationError: Verification failure: VC-TEST1.interface.dispatch.post-activation desire '"ip link set VC-TEST1 mtu 2000"', current '""' [2025-08-04T13:24:21Z INFO nmstate::query_apply::net_state] Retrying on: VerificationError: Verification failure: VC-TEST1.interface.dispatch.post-activation desire '"ip link set VC-TEST1 mtu 2000"', current '""' [2025-08-04T13:24:22Z INFO nmstate::query_apply::net_state] Retrying on: VerificationError: Verification failure: VC-TEST1.interface.dispatch.post-activation desire '"ip link set VC-TEST1 mtu 2000"', current '""' [2025-08-04T13:24:24Z INFO nmstate::nm::query_apply::connection] Modifying connection c0fd4688-2c45-4e7b-9f73-788968cc1c48: VC-TEST1/dummy [2025-08-04T13:24:24Z INFO nmstate::nm::query_apply::connection] Reapplying connection c0fd4688-2c45-4e7b-9f73-788968cc1c48: VC-TEST1/dummy [2025-08-04T13:24:24Z INFO nmstate::query_apply::net_state] Retrying on: VerificationError: Verification failure: VC-TEST1.interface.dispatch.post-activation desire '"ip link set VC-TEST1 mtu 2000"', current '""' [2025-08-04T13:24:25Z INFO nmstate::query_apply::net_state] Retrying on: VerificationError: Verification failure: VC-TEST1.interface.dispatch.post-activation desire '"ip link set VC-TEST1 mtu 2000"', current '""' [2025-08-04T13:24:26Z INFO nmstate::query_apply::net_state] Retrying on: VerificationError: Verification failure: VC-TEST1.interface.dispatch.post-activation desire '"ip link set VC-TEST1 mtu 2000"', current '""' [2025-08-04T13:24:27Z INFO nmstate::query_apply::net_state] Retrying on: VerificationError: Verification failure: VC-TEST1.interface.dispatch.post-activation desire '"ip link set VC-TEST1 mtu 2000"', current '""' [2025-08-04T13:24:29Z INFO nmstate::query_apply::net_state] Rollbacked to checkpoint /org/freedesktop/NetworkManager/Checkpoint/1 NmstateError: VerificationError: Verification failure: VC-TEST1.interface.dispatch.post-activation desire '"ip link set VC-TEST1 mtu 2000"', current '""'