Repository navigation
Description
Hi!
We reproduced the behavior below against a real hawkBit server, with the RAUC hawkBit Updater acting as the device client.
Because the updater side is already tracked upstream in rauc/rauc-hawkbit-updater#161 and rauc/rauc#1114, we are flagging the server and rollout side here.
There are two parts to it.
- In hawkBit, each managed device is a target, which reports progress through an agent that hawkBit calls controller. When that controller posts finished=success the moment the install is written to disk, before any reboot and before the device confirms a good boot, hawkBit marks the target IN_SYNC and treats it as carrying its assigned software (its distribution set). If the target sits in a rollout configured with successAction=NEXTGROUP, the rollout engine counts that group as done and advances to the next group on its own. A rollout can therefore finish without any target having booted the new software at all.
- Many embedded devices use an A/B layout (meaning two system slots where a failed update can fall back to the slot that still works). Suppose a device reboots into the new slot but fails there and falls back to the previous one. hawkBit leaves both the IN_SYNC state and its record of the installed version (installedBase) untouched. Its own view then still shows the target as updated while the device runs the earlier image. This is I think the same as Assigning artifacts after successful update again #446 opened super long ago. Provide means to record manual off-line device updates into hawkBit's history #242, for a device to report the version it is running, is also related.
Actually, hawkBit is somehow behaving as designed here. It records the feedback that a controller reports and does not independently check whether the new image has booted, which is a fair line for a management server to draw. The caution is for any system that reads a target's status from hawkBit. IN_SYNC and rollout success both describe an install that a device reported. Neither one confirms that the new image is the one currently running. A security or safety decision should not rest on them as proof that the device booted the update.
So the question is: is there any plan to expose a separate confirmed-running state? It could come from a device reporting the version it is running (along the lines of #242), or from a post-boot confirmation that has to arrive before hawkBit records final success. Either form would let downstream systems that gate on target status stop reading an install report as proof of a running image.
Thanks!
Flavien
Activity