Skip to content

Commit

Permalink
v16.3.17
Browse files Browse the repository at this point in the history
  • Loading branch information
flowzone-app[bot] authored Jun 25, 2024
1 parent 88db296 commit 1c81eaf
Show file tree
Hide file tree
Showing 6 changed files with 70 additions and 6 deletions.
59 changes: 59 additions & 0 deletions .versionbot/CHANGELOG.yml
Original file line number Diff line number Diff line change
@@ -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
Expand Down
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
16.3.16
16.3.17
2 changes: 1 addition & 1 deletion balena.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down Expand Up @@ -135,6 +135,6 @@
"yargs": "^17.7.2"
},
"versionist": {
"publishedAt": "2024-06-17T01:56:08.801Z"
"publishedAt": "2024-06-25T01:03:27.276Z"
}
}

0 comments on commit 1c81eaf

Please sign in to comment.