Closed vipulgupta2048 closed 2 years ago
[vipulgupta2048] This issue has attached support thread https://jel.ly.fish/4dbd2b6e-0f60-42e5-a11c-cb85c2873984
I originally reported this on Balena Forums. This was tested across multiple devices that are all Raspberry Pi Zero 2 W running BalenaOS 2.94.4 development and supervisor 13.0.0. Let me know if there is any other information that would be helpful. Thanks
Hi @jack-solomomo, thanks for reporting this. Unfortunately you ran into some missing documentation. The recommended way to set the update strategy is through a composition label io.balena.features.update-strategy
. Setting an env var is a mechanism made for backwards compatibility with single container supervisors but is probably going to be deprecated in the future. We have updated the documentation to make it clearer (see https://github.com/balena-io/docs/pull/2265) and it should make it to the documentation page soon.
For extra context. The config vars are handled by the API, that converts them to labels. Here is a related issue, although the consensus is that using the labels is the correct mechanism
@pipex Thanks! That makes a lot of sense. Per-container update strategies look really useful.
Customer reported on a RPi zero 2 the call to kill the service comes after the image is downloaded when using
BALENA_SUPERVISOR_UPDATE_STRATEGY=kill-then-download
but when theRESIN_SUPERVISOR_UPDATE_STRATEGY=kill-then-download
is used then everything works as expected.Steps to reproduce:
The first two log lines are output from the running container. The line at (14:54:04) shows that the next release downloaded started. The call to kill the service isn't logged until line five (14:56:34), after the image has been downloaded (14:56:33).
Killing first then downloading as expected.
Possiblities
BALENA_*
config yet but that doesn't seem like it since the Zero 2 is a considerably new device which should be running a newer version of the SV.BALENA_*
then please do update the documentation with the version cutoff point here https://www.balena.io/docs/learn/deploy/release-strategy/update-strategies/