Skip to content

Commit

Permalink
MGMT-17615: IBI cluster fails to install due to image pull failures
Browse files Browse the repository at this point in the history
We are taking lca-cli from seed image and sometimes it can fail.
Adding dependency for this service on network-online and adding retry to
image pull part
  • Loading branch information
tsorya committed May 15, 2024
1 parent 05f32b5 commit 483919a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 2 additions & 0 deletions ib-cli/installationiso/data/ibi-butane.template
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ systemd:
enabled: true
contents: |
[Unit]
Wants=network-online.target
After=network-online.target
Description=SNO Image Based Installation
[Service]
Environment=SEED_IMAGE={{.SeedImage}}
Expand Down
6 changes: 4 additions & 2 deletions ib-cli/installationiso/data/install-rhcos-and-restore-seed.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@ seed_image=${1:-$SEED_IMAGE}
authfile=${AUTH_FILE:-"/var/tmp/backup-secret.json"}
ibi_config=${IBI_CONFIGURATION_FILE:-"/var/tmp/ibi-configuration.json"}

# Copy the lca-cli binary to the host
podman create --authfile "${authfile}" --name lca-cli "${seed_image}" lca-cli
# Copy the lca-cli binary to the host, pulling it seed image can sometimes fail
until podman create --authfile "${authfile}" --name lca-cli "${seed_image}" lca-cli ; do
sleep 10
done
podman cp lca-cli:lca-cli /usr/local/bin/lca-cli
podman rm lca-cli

Expand Down

0 comments on commit 483919a

Please sign in to comment.