This commit is contained in:
flowzone-app[bot] 2024-06-25 01:03:32 +00:00 committed by GitHub
parent 88db2962a8
commit 1c81eafd7c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
6 changed files with 70 additions and 6 deletions

View File

@ -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:
- subject: Update balena-io/deploy-to-balena-action action to v2.0.72
hash: 170733422a7a8fb2e58482508fe74dc2fcb282a5

View File

@ -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!
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
## (2024-06-17)

View File

@ -1 +1 @@
16.3.16
16.3.17

View File

@ -2,6 +2,6 @@ name: balena-supervisor
description: 'Balena Supervisor: balena''s agent on devices.'
joinable: false
type: sw.application
version: 16.3.16
version: 16.3.17
provides:
- slug: sw.compose.long-volume-syntax

4
package-lock.json generated
View File

@ -1,12 +1,12 @@
{
"name": "balena-supervisor",
"version": "16.3.16",
"version": "16.3.17",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "balena-supervisor",
"version": "16.3.16",
"version": "16.3.17",
"license": "Apache-2.0",
"dependencies": {
"@balena/systemd": "^0.5.0",

View File

@ -1,7 +1,7 @@
{
"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.",
"version": "16.3.16",
"version": "16.3.17",
"license": "Apache-2.0",
"repository": {
"type": "git",
@ -135,6 +135,6 @@
"yargs": "^17.7.2"
},
"versionist": {
"publishedAt": "2024-06-17T01:56:08.801Z"
"publishedAt": "2024-06-25T01:03:27.276Z"
}
}