-
Notifications
You must be signed in to change notification settings - Fork 16
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
Fix checksum for SAS3IRCU resources to use 64 bits #383
Fix checksum for SAS3IRCU resources to use 64 bits #383
Conversation
- resources were using the checksum for 32 bits Fix: canonical#324
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.
Need to double check P11
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.
Some bits of feedback are for lines outside of the diff, i.e. additional changes which are needed, so I'll provide my overall advice here:
- While the changes to the sas3ircu version info data seem likely correct (I haven't actually checked checksums myself; I'm assuming this), I do have a concern over whether deployed hardware observer units with attached sas3ircu resources will continue working (without rechecking the resource), or whether upgrading the charm might break them. The data structures are for Architecture.X86_64 so clearly they should be pointing at the 64-bit binaries, so that correction is the right thing to do - but, we should be careful to avoid breaking existing deployments unless absolutely necessary.
- While I think the bug I rose was for sas3ircu, I think the same applies to sas2ircu. Those are also broadcom binaries and I think they also have x86 and x86-64 versions. We should also correct those, so that if someone pulls the 64-bit binaries and tries to attach them, they should be accepted by the charm.
Marking as "request changes" because the bug also appears to apply to sas2ircu, and I'd like to see that fixed as well.
Hi Paul, Thank you for sharing your thoughtful insights on the proposed change. I’d like to provide some feedback as well. For Point 1: As a result, if any hw-observer unit is deployed with an incorrect resource, it will enter a blocked status once the Juju application revision, including this patch, is applyed. On the other hand, if the resource is correct, it will pass the check as expected. The blocked status error message will be: For Point 2: |
Based on information from @Pjack, this checksum Hi @Vultaire, I understand your approach to supporting backward compatibility, and we could achieve this in a somewhat tricky way. Specifically, by adding another ToolVersionInfo entry for SAS3IRCU with the checksum However, I personally prefer asking users to attach the correct version of the tool as specified by the official documentation, if backward compatibility will not cause critical issue on production. This approach seems cleaner and aligns better with the intended usage. |
@gabrielcocenza Could you also handle the sas2 case? I am okay to patch it within the same PR or different PR. It's a small change. Thanks! |
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.
Thanks for your feedback and investigating the sas2ircu issue as well.
I downloaded and did a quick check of the sas3ircu binaries' sha256sums; I believe this is correct. And based upon the description of what happens for existing deployments, I'm +1. Approved.
How to test it:
sas3ircu_linux_x64_rel
and runsha256sum sas3ircu
Fix: #324