Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OCPBUGS-33536: [IBI] install-rhcos-and-restore-seed.service fails the first time it starts #500

Merged
merged 1 commit into from
May 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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