mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2025-06-06 01:21:39 +00:00
v16.3.17
This commit is contained in:
parent
88db2962a8
commit
1c81eafd7c
@ -1,3 +1,62 @@
|
|||||||
|
- commits:
|
||||||
|
- subject: Fix engine deadlock on network+service change
|
||||||
|
hash: ede27b63cecc2a9ae3139a905d9c6ab32418a72b
|
||||||
|
body: >
|
||||||
|
This fixes a regression on the supervisor state engine computation
|
||||||
|
|
||||||
|
(added on v16.2.0) when
|
||||||
|
|
||||||
|
the target state removes a network at the same time that a service
|
||||||
|
|
||||||
|
referencing that network is changed. Example going from
|
||||||
|
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
services:
|
||||||
|
one:
|
||||||
|
image: alpine: 3.18
|
||||||
|
networks: ['balena']
|
||||||
|
|
||||||
|
networks:
|
||||||
|
balena:
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
to
|
||||||
|
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
services:
|
||||||
|
one:
|
||||||
|
image: alpine: latest
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
Would never reach the target state as killing the service in order to
|
||||||
|
|
||||||
|
remove the network is prioritized, but one of the invariants in the
|
||||||
|
target state calculation is
|
||||||
|
|
||||||
|
to not kill any services until all images have been downloaded. These
|
||||||
|
|
||||||
|
two instructions were in contradiction leading to a deadlock.
|
||||||
|
|
||||||
|
|
||||||
|
The fix involves only adding removal steps for services depending on a
|
||||||
|
|
||||||
|
changing network or volume if the service container is not being removed
|
||||||
|
|
||||||
|
already.
|
||||||
|
footer:
|
||||||
|
Change-type: patch
|
||||||
|
change-type: patch
|
||||||
|
author: Felipe Lalanne
|
||||||
|
nested: []
|
||||||
|
version: 16.3.17
|
||||||
|
title: ""
|
||||||
|
date: 2024-06-25T01:03:26.734Z
|
||||||
- commits:
|
- commits:
|
||||||
- subject: Update balena-io/deploy-to-balena-action action to v2.0.72
|
- subject: Update balena-io/deploy-to-balena-action action to v2.0.72
|
||||||
hash: 170733422a7a8fb2e58482508fe74dc2fcb282a5
|
hash: 170733422a7a8fb2e58482508fe74dc2fcb282a5
|
||||||
|
@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file
|
|||||||
automatically by Versionist. DO NOT EDIT THIS FILE MANUALLY!
|
automatically by Versionist. DO NOT EDIT THIS FILE MANUALLY!
|
||||||
This project adheres to [Semantic Versioning](http://semver.org/).
|
This project adheres to [Semantic Versioning](http://semver.org/).
|
||||||
|
|
||||||
|
# v16.3.17
|
||||||
|
## (2024-06-25)
|
||||||
|
|
||||||
|
* Fix engine deadlock on network+service change [Felipe Lalanne]
|
||||||
|
|
||||||
# v16.3.16
|
# v16.3.16
|
||||||
## (2024-06-17)
|
## (2024-06-17)
|
||||||
|
|
||||||
|
@ -2,6 +2,6 @@ name: balena-supervisor
|
|||||||
description: 'Balena Supervisor: balena''s agent on devices.'
|
description: 'Balena Supervisor: balena''s agent on devices.'
|
||||||
joinable: false
|
joinable: false
|
||||||
type: sw.application
|
type: sw.application
|
||||||
version: 16.3.16
|
version: 16.3.17
|
||||||
provides:
|
provides:
|
||||||
- slug: sw.compose.long-volume-syntax
|
- slug: sw.compose.long-volume-syntax
|
||||||
|
4
package-lock.json
generated
4
package-lock.json
generated
@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "balena-supervisor",
|
"name": "balena-supervisor",
|
||||||
"version": "16.3.16",
|
"version": "16.3.17",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "balena-supervisor",
|
"name": "balena-supervisor",
|
||||||
"version": "16.3.16",
|
"version": "16.3.17",
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@balena/systemd": "^0.5.0",
|
"@balena/systemd": "^0.5.0",
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "balena-supervisor",
|
"name": "balena-supervisor",
|
||||||
"description": "This is balena's Supervisor, a program that runs on IoT devices and has the task of running user Apps (which are Docker containers), and updating them as the balena API informs it to.",
|
"description": "This is balena's Supervisor, a program that runs on IoT devices and has the task of running user Apps (which are Docker containers), and updating them as the balena API informs it to.",
|
||||||
"version": "16.3.16",
|
"version": "16.3.17",
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
@ -135,6 +135,6 @@
|
|||||||
"yargs": "^17.7.2"
|
"yargs": "^17.7.2"
|
||||||
},
|
},
|
||||||
"versionist": {
|
"versionist": {
|
||||||
"publishedAt": "2024-06-17T01:56:08.801Z"
|
"publishedAt": "2024-06-25T01:03:27.276Z"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user