-
Notifications
You must be signed in to change notification settings - Fork 241
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
support older ironic checksum expectations #549
Conversation
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: dhellmann The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/test-integration |
pkg/provisioner/ironic/ironic.go
Outdated
// https://review.opendev.org/#/c/711816/ failing to include the | ||
// 'image_checksum' causes ironic to refuse to provision the | ||
// image, even if the other hash value parameters are given. | ||
if _, ok := ironicNode.InstanceInfo["image_checksum"]; !ok { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we condition this on the algorithm being MD5? If it's a different type then we will end up reporting that the checksum is wrong when in fact we just can't support it at all (on older versions of Ironic).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
There are other references to image_os_algo_{value,type} in the ironic.go file. Should we add the appropriate image_checksum request there as well? |
Older versions of ironic that do not have https://review.opendev.org/#/c/711816/ refuse to provision if the image information does not include 'image_checksum', even if the other hash value parameters are given. It seems safe to always pass the old name, so go ahead and do so. Signed-off-by: Doug Hellmann <dhellmann@redhat.com>
ea64a31
to
21fb1cb
Compare
I added it in the other place where we pass values to ironic on line 291. The reference on 872 seems like it's OK because it's checking the new field name and we're still setting the new name. Let me know what you think. |
/test-integration |
/lgtm |
@maelk the the stdout log file for the baremetal-operator in the test job is empty and the stderr log file just says
Does that mean anything to you? |
ah, found another error in the job console log
So that looks like a bad kustomize input of some sort, maybe? |
/test-integration |
@dhellmann There was a bug introduced in the last commit of metal3-dev-env on Friday. I fixed it. I'll trigger the tests again, they should pass now. |
Older versions of ironic that do not have
https://review.opendev.org/#/c/711816/ refuse to provision if the
image information does not include 'image_checksum', even if the other
hash value parameters are given. It seems safe to always pass the old
name, so go ahead and do so.