This commit is contained in:
Resin CI 2019-03-29 20:04:35 +02:00
parent 8a430b6b84
commit 4e5d9df717
4 changed files with 36 additions and 2 deletions

View File

@ -1,3 +1,33 @@
- commits:
- subject: >-
Fix migration of legacy apps when there's more than one app in the local
DB
hash: c90270660000a0043b3f48751ea5186e69904368
body: >
In an edge case observed in the field, a supervisor's database held two
applications
because the device had been moved and the update lock was set in the old
app. This causes
the updated supervisor to be unable to start, logging "No compatible
releases found in API",
because it can't fetch the release for the app it was moved from.
This commit changes the migration code to iterate through all apps, and
remove any for which
we can't get a release.
footer:
Change-type: patch
change-type: patch
Signed-off-by: Pablo Carranza Velez <pablo@balena.io>
signed-off-by: Pablo Carranza Velez <pablo@balena.io>
author: Pablo Carranza Velez
version: 9.12.6
date: 2019-03-29T00:18:13.744Z
- commits:
- subject: 'test: Add a test case for deviceConfig.getDefaults'
hash: ea6ebf822312665280903424d3f4bff1edd0476c

View File

@ -4,6 +4,10 @@ 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/).
## 9.12.6 - 2019-03-29
* Fix migration of legacy apps when there's more than one app in the local DB [Pablo Carranza Velez]
## 9.12.5 - 2019-03-28
* Test: Add a test case for deviceConfig.getDefaults [Pablo Carranza Velez]

2
package-lock.json generated
View File

@ -1,6 +1,6 @@
{
"name": "balena-supervisor",
"version": "9.12.5",
"version": "9.12.6",
"lockfileVersion": 1,
"requires": true,
"dependencies": {

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": "9.12.5",
"version": "9.12.6",
"license": "Apache-2.0",
"repository": {
"type": "git",