Skip to content

Commit

Permalink
Merge pull request #500 from tsorya/igal/MGMT-17615
Browse files Browse the repository at this point in the history
OCPBUGS-33536: [IBI] install-rhcos-and-restore-seed.service fails the first time it starts
  • Loading branch information
openshift-merge-bot[bot] authored May 15, 2024
2 parents 05f32b5 + 45f2225 commit 3bb9b3d
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 3bb9b3d

Please sign in to comment.