balenahup icon indicating copy to clipboard operation
balenahup copied to clipboard

Check and resume an incomplete host OS update (supervisor not updated)

Open pdcastro opened this issue 4 years ago • 6 comments

For some reason (power outage, impatient end user, something else), a device rebooted before the host OS update got to the point of PATCH'ing the API for the supervisor version and, as a result, the device found itself with an updated balena OS version but the supervisor was kept at the previous version.

The goal is for this situation to be somehow detected and remedied on the next device boot. Like, say: "incomplete update detected, resuming update..."

pdcastro avatar Jun 04 '20 19:06 pdcastro

[pdcastro] This issue has attached support thread https://jel.ly.fish/12afcf7c-7731-447e-a140-c99dd20da454

jellyfish-bot avatar Jun 04 '20 19:06 jellyfish-bot

It may make sense to trigger the supervisor update earlier in the process, perhaps even immediately after pulling the new host app. I think it's a better situation generally (given a modern-looking OS, not counting pre-MC devices) to have an updated supervisor rather than a trailing supervisor. cc @CameronDiver

xginn8 avatar Jun 04 '20 19:06 xginn8

[lucianbuzzo] This issue has attached support thread https://jel.ly.fish/07247f52-020a-4352-a46b-d9a1c49bee70

jellyfish-bot avatar Jun 30 '20 15:06 jellyfish-bot

@xginn8 I agree, as long as no rollback will occur.

CameronDiver avatar Jul 06 '20 08:07 CameronDiver

@CameronDiver do you mean supervisor rollback, or host OS rollback?

xginn8 avatar Jul 06 '20 11:07 xginn8

Sorry I meant supervisor rollback, then remembered that doesn't happen. Ignore me.

CameronDiver avatar Jul 07 '20 10:07 CameronDiver