From c77dc61fbdb98464985515488c0208ac60e75f0b Mon Sep 17 00:00:00 2001 From: Stephen Benjamin Date: Wed, 31 Jul 2019 08:37:03 -0400 Subject: [PATCH] Check that IPA images have finished downloading as well We currently only wait for RHCOS to finish, but we've seen at least one case where IPA wasn't available yet which causes the baremetal hosts to go into Maintenance mode in Ironic. fixes #711 --- 04_setup_ironic.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/04_setup_ironic.sh b/04_setup_ironic.sh index 906c64384..f18045193 100755 --- a/04_setup_ironic.sh +++ b/04_setup_ironic.sh @@ -68,9 +68,12 @@ sudo podman run -d --net host --privileged --name ipa-downloader --pod ironic-po sudo podman run -d --net host --privileged --name coreos-downloader --pod ironic-pod \ -v $IRONIC_DATA_DIR:/shared ${COREOS_DOWNLOADER_IMAGE} /usr/local/bin/get-resource.sh $RHCOS_IMAGE_URL -# Start Ironic Inspector +# Start Ironic Inspector sudo podman run -d --net host --privileged --name ironic-inspector \ --pod ironic-pod -v $IRONIC_DATA_DIR:/shared "${IRONIC_INSPECTOR_IMAGE}" # Wait for images to be downloaded/ready -while ! curl --fail http://localhost:80/images/rhcos-ootpa-latest.qcow2.md5sum ; do sleep 1 ; done +while ! curl --fail http://localhost/images/rhcos-ootpa-latest.qcow2.md5sum ; do sleep 1 ; done +while ! curl --fail --head http://localhost/images/ironic-python-agent.initramfs ; do sleep 1; done +while ! curl --fail --head http://localhost/images/ironic-python-agent.tar.headers ; do sleep 1; done +while ! curl --fail --head http://localhost/images/ironic-python-agent.kernel ; do sleep 1; done