Skip to content

Commit 010efe3

Browse files
committed
OCPBUGS-46072: create /run/nodeip-configuration before use
With nmstate `br-ex` creation using static IP, it looks like the systemd boot ordering can change and we can attempt to run `30-resolv-prepender` before `nodeip-configuration.service`. When `30-resolv-prepender` runs it tries to touch a file in `/run/nodeip-configuration` when it does not exist. ```log nm-dispatcher[2409]: touch: cannot touch '/run/nodeip-configuration/br-ex-up': No such file or directory ``` The quick fix is to always mkdir before touching, then we don't have to track the global state of `/run/nodeip-configuration`
1 parent 0082265 commit 010efe3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

templates/common/on-prem/files/NetworkManager-resolv-prepender.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ contents:
6363
fi
6464
6565
if [[ "$STATUS" == "up" ]] && [[ $IFACE == "br-ex" ]]; then
66+
/bin/mkdir -p /run/nodeip-configuration
6667
touch /run/nodeip-configuration/br-ex-up
6768
fi
6869
;;

0 commit comments

Comments
 (0)