Skip to content

Commit

Permalink
Merge pull request openshift#4079 from cybertron/wait-for-br-ex-unrevert
Browse files Browse the repository at this point in the history
OCPBUGS-22324: Revert "Revert "Merge pull request openshift#4028 from cybertron/wait-for-br-ex""
  • Loading branch information
openshift-merge-bot[bot] committed Feb 13, 2024
2 parents b8d339c + 7e2e27a commit 4e12d91
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 0 deletions.
Expand Up @@ -64,6 +64,9 @@ contents:
hostnamectl set-hostname --static --transient $DHCP6_FQDN_FQDN
fi
fi
if [[ "$STATUS" == "up" ]] && [[ $IFACE == "br-ex" ]]; then
touch /run/nodeip-configuration/br-ex-up
fi
;;
*)
;;
Expand Down
10 changes: 10 additions & 0 deletions templates/common/on-prem/files/wait-for-br-ex-up.yaml
@@ -0,0 +1,10 @@
mode: 0755
path: "/usr/local/bin/wait-for-br-ex-up.sh"
contents:
inline: |
#!/bin/bash
until [ -e /run/nodeip-configuration/br-ex-up ]
do
sleep 1
done
15 changes: 15 additions & 0 deletions templates/common/on-prem/units/wait-for-br-ex-up.yaml
@@ -0,0 +1,15 @@
name: wait-for-br-ex-up.service
enabled: {{if and (gt (len (onPremPlatformAPIServerInternalIPs .)) 0) (eq .NetworkType "OVNKubernetes")}}true{{else}}false{{end}}
contents: |
[Unit]
Description=Wait for br-ex up event from NetworkManager
Wants=ovs-configuration.service
After=ovs-configuration.service
Before=node-valid-hostname.service
[Service]
Type=oneshot
ExecStart=/usr/local/bin/wait-for-br-ex-up.sh
[Install]
RequiredBy=node-valid-hostname.service

0 comments on commit 4e12d91

Please sign in to comment.