-
Notifications
You must be signed in to change notification settings - Fork 48
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
(WIP) Add retry of EVE image update to API #562
base: master
Are you sure you want to change the base?
Conversation
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.
LGTM. Should we merge this @mydatascience ?
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.
LGTM. But don't we also need to change EVE to react to the new version number?
Yes, this test just repeat the use case with interrupted update. We need to change EVE and then change test for checking of reupdate. |
Are you doing a PR against EVE for that, or should we create a separate story for that? |
The baseos update machinery in EVE (and especially the suggestion to reuse UUIDandVersion to indicate re-update) is not clear for me. Maybe a separate story would make sense. |
See lf-edge/eve#2013 |
Signed-off-by: Oleg Sadov <[email protected]>
@eriknordmark tests updated accordingly lf-edge/eve#2013:
This time I get a config with information about the current baseos update, then I send that config with an empty "base" array, and then I send the first one again. At this point, the tests have failed because an automatic reboot has not been performed after a configuration change. Logs: Maybe in this case we need to change something else in the EVE config? |
If EVE image update fails due to some fluke (such as a power outage) we can currently retry by doing a eveimage-remove, wait until the partition in EVE is marked as "unused", and then redo the eveimage-update.
That three step is hard for the controller to do.
We can add a retry/version count for the EVE images.
One way to do that is to use the Version field in
message BaseOSConfig {
UUIDandVersion uuidandversion = 1;
and if that version changes we would ignore the fact that the image exists as INPROGRESS in some partition.