Skip to content

Commit 157956c

Browse files
cybertronopenshift-cherrypick-robot
authored andcommitted
OCPBUGS-61695: Override NMState service definition
A bug was introduced in the NMState service definition that breaks many of our uses of it on the host. This overrides the service so the NetworkManager-wait-online service is a softer dependency because in some environments that service will fail and we don't want it to prevent NMState from running. This is done as a complete override of the service because it is not possible to replace dependencies using a partial drop-in. Also, it is only a temporary fix until the NMState fix lands in our images.
1 parent 37499ce commit 157956c

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Temporary override until the fix for https://issues.redhat.com/browse/OCPBUGS-61695
2+
# makes it into RHCOS.
3+
name: nmstate.service
4+
enabled: true
5+
contents: |
6+
[Unit]
7+
Description=Apply nmstate on-disk state
8+
Documentation=man:nmstate.service(8) https://www.nmstate.io
9+
After=NetworkManager-wait-online.service
10+
Before=network-online.target
11+
Wants=NetworkManager-wait-online.service
12+
Requires=NetworkManager.service
13+
14+
[Service]
15+
Type=oneshot
16+
ExecStart=/usr/bin/nmstatectl service
17+
RemainAfterExit=yes
18+
19+
[Install]
20+
WantedBy=NetworkManager.service

0 commit comments

Comments
 (0)