Skip to content

Conversation

@stbenjam
Copy link
Member

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

@stbenjam stbenjam added the CI check this PR with CI label Jul 31, 2019
Copy link
Member

@dhellmann dhellmann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One nit, but LGTM


# 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 --head http://localhost/images/ironic-python-agent.initramfs ; do sleep 1; done
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The port is explicit in the call on line 76. I don't know if that's important, but the difference stood out.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I noticed that, but there's no reason to specify port 80 for http. I assume the URL was copy and pasted from somewhere that included the port. For consistency, I removed it from the rhcos url as well.

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.headers ; do sleep 1; done
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, good catch... https://github.com/metal3-io/ironic-ipa-downloader/blob/master/get-resource.sh#L7-L9

I didn't notice the difference between $FFILENAME and $FILENAME

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 openshift-metal3#711
@metal3ci
Copy link

Build ABORTED, see build http://10.8.144.11:8080/job/dev-tools/972/

@metal3ci
Copy link

Build FAILURE, see build http://10.8.144.11:8080/job/dev-tools/974/

@metal3ci
Copy link

Build FAILURE, see build http://10.8.144.11:8080/job/dev-tools/978/

Copy link
Contributor

@mcornea mcornea left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested and it worked fine on my environment. Thanks!

@cynepco3hahue
Copy link

I tried to apply this PR locally and I got another error

level=error msg="Error: Bad request with: [POST http://localhost:6385/v1/nodes], error message: {\"error_message\": \"{\\\"debuginfo\\\": null, \\\"faultcode\\\": \\\"Client\\\", \\\"faultstring\\\": \\\"No valid host was found. Reason: No conductor service registered which supports driver ipmi for conductor group \\\\\\\"\\\\\\\".\\\"}\"}"

I do not know if it related to this PR or not, but maybe someone saw this error message before?

@stbenjam
Copy link
Member Author

stbenjam commented Aug 5, 2019

I tried to apply this PR locally and I got another error

level=error msg="Error: Bad request with: [POST http://localhost:6385/v1/nodes], error message: {\"error_message\": \"{\\\"debuginfo\\\": null, \\\"faultcode\\\": \\\"Client\\\", \\\"faultstring\\\": \\\"No valid host was found. Reason: No conductor service registered which supports driver ipmi for conductor group \\\\\\\"\\\\\\\".\\\"}\"}"

I do not know if it related to this PR or not, but maybe someone saw this error message before?

I don't think it's related exactly, your Ironic conductor service wasn't fully up. I'd file an issue and we should make sure Ironic API and the conductor is up in dev-scripts, like we did in openshift-metal3/terraform-provider-ironic#32.

@stbenjam
Copy link
Member Author

This isn't needed any more, it was already added as part of #726.

@stbenjam stbenjam closed this Aug 29, 2019
@stbenjam stbenjam deleted the ipa-check branch August 29, 2019 11:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CI check this PR with CI

Projects

None yet

5 participants