Skip to content

Commit

Permalink
Merge pull request openshift#4092 from shiftstack/OCPBUGS-11936
Browse files Browse the repository at this point in the history
OCPBUGS-11936: Wait for OpenStack Metadata service
  • Loading branch information
openshift-merge-bot[bot] authored Apr 30, 2024
2 parents 2aa3bbd + 3bc24f6 commit 69944ad
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion templates/common/openstack/units/afterburn-hostname.service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,25 @@ enabled: true
contents: |
[Unit]
Description=Afterburn Hostname
# Block services relying on Networking being up.
# Block services relying on Networking being up
Before=network-online.target
# Wait for NetworkManager to report its online
After=NetworkManager-wait-online.service
# Run before hostname checks
Before=node-valid-hostname.service
# Allow 120 retries (10 minutes at 5 seconds per retry)
StartLimitIntervalSec=infinity
StartLimitBurst=120
[Service]
ExecStart=/usr/local/bin/openstack-afterburn-hostname
Type=oneshot
# Show as active after exit since we change state
RemainAfterExit=true
# Retry every 5 seconds on failure without marking the service as failed
Restart=on-failure
RestartMode=direct
RestartSec=5
[Install]
WantedBy=network-online.target

0 comments on commit 69944ad

Please sign in to comment.