-
Notifications
You must be signed in to change notification settings - Fork 164
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
During bootup, for existing applications with RW images, avoid waiting for verification of downloaded images. #481
During bootup, for existing applications with RW images, avoid waiting for verification of downloaded images. #481
Conversation
Am still testing the fix. Please review the fix. |
8117894
to
e0b405d
Compare
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.
I don't understand the design.
zedmanager doesn't need to wait for a verified image when a RW image already exists. That's OK
But you also seem to be removing the code in verifier which re-runs the verification and publication of the verified images on boot. I don't understand why (assuming that is what you are removing; didn't complete the review due to my lack of understanding of what you are trying to do)
Doesn't zedmanager look for a VerifyImageStatus (after it has looked for a RW image), and if none found it creates a DownloaderConfig? If so change #3 will result in a duplicate/unneeded download. |
12b8d61
to
4db3499
Compare
Here is the design - basically what we discussed:
With these changes - verification of previously verified images happen in verifier.go -- handleModify --- And happens through the triggers explained above. Hence removed the current special code for verification.. This is the gist of the design.. |
No..Because currently, we check for VerifierImageStatus in zedmanager.. And verifier - during bootup - publishes VerifyImageStatus with State set too DOWNLOADED. this moved to DELIVERED ( practivally immediately as explained above ) .. But irrespective on when this move, the VerifyImageStatus ensures the image doesn't gett downloaded again.. |
4db3499
to
7ba909d
Compare
That requires new code paths AFAIK. |
I handled it in verifier.handleModify -- The code that was being executed during init - that just takes the image in the verified directory - and verifies it - I added similar code in handleModify. So, don't need to move it through pending/verifier/verified again.. |
13759ce
to
3cc7676
Compare
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.
Mostly nits
3cc7676
to
7a02de8
Compare
7a02de8
to
6ba6bce
Compare
a772a9f
to
a460a77
Compare
for verification of downloaded images. 1) DomainMgr should publish AppUUID for the images in ImageStatus 2) Zedmanager, when creating an App instance, should check if the image is already available in ImageStatus for RW images. if yes, it should just add Verifier config and skip waiting for verifier 3) Verifier - Skip verifying images on bootup - These can be verified with the first verifier config is added. Signed-off-by: Kalyan Nidumolu <kalyan@zadeda.com> Fix Verifier to not wait for images in verified/ dir to be re-verified after bootup. Signed-off-by: Kalyan Nidumolu <kalyan@zadeda.com>
a460a77
to
ccab6cc
Compare
During bootup, for existing applications with RW images, avoid waiting for verification of downloaded images.
the image is already available in ImageStatus for RW images.
if yes, it should just add Verifier config and skip waiting for
verifier
Signed-off-by: Kalyan Nidumolu kalyan@zadeda.com
Fix Verifier to not wait for images in verified/ dir to be re-verified
after bootup.
Signed-off-by: Kalyan Nidumolu kalyan@zadeda.com