Christina Wang
be1c01039a
Don't use config.get for appId when checking locks in host config PATCH
...
Change-type: patch
Signed-off-by: Christina Wang <christina@balena.io>
2022-06-06 12:15:23 -07:00
Balena CI
d9186649a6
v14.0.1
2022-06-03 01:26:19 +03:00
bulldozer-balena[bot]
33fa3c1292
Merge pull request #1953 from balena-os/shutdown-with-locks
...
Shutdown with locks
2022-06-02 22:23:16 +00:00
20k-ultra
aad5a9efc5
Use locks before shutdown/reboot instead of stopping containers
...
Closes : #1940
Change-type: patch
Signed-off-by: 20k-ultra <3946250+20k-ultra@users.noreply.github.com>
2022-06-02 00:31:42 -04:00
20k-ultra
471f0f0615
Refactor update-lock.lock to accept an array of applications to lock
...
Change-type: patch
Signed-off-by: 20k-ultra <3946250+20k-ultra@users.noreply.github.com>
2022-06-02 00:31:42 -04:00
20k-ultra
ef7371a7ef
Refactor update-lock function to avoid callback hell
...
Change-type: patch
Signed-off-by: 20k-ultra <3946250+20k-ultra@users.noreply.github.com>
2022-06-02 00:31:42 -04:00
Balena CI
27ed56f7fe
v14.0.0
2022-06-02 02:08:00 +03:00
bulldozer-balena[bot]
19e2756ba2
Merge pull request #1946 from balena-os/1933-use-mounts-for-engine-feature-label
...
Use Mounts API for engine socket feature label
2022-06-01 22:44:50 +00:00
Balena CI
33ad877c67
v13.1.11
2022-05-27 17:54:14 +03:00
bulldozer-balena[bot]
08d742c832
Merge pull request #1944 from balena-os/1943-allow-v2-state-preload-without-internet
...
Do not migrate apps.json if preload v2 to v3 fails
2022-05-27 14:51:20 +00:00
Felipe Lalanne
af1a60f7c6
Throw a more explanatory error if migrating apps.json fails
2022-05-26 16:58:15 -04:00
Felipe Lalanne
303c805008
Fix check for preloaded v2 target state
2022-05-24 17:55:05 -04:00
Christina Wang
95bf4718d6
Only migrate apps.json on preload after target has been set
...
Change-type: patch
Signed-off-by: Christina Wang <christina@balena.io>
Signed-off-by: Felipe Lalanne <felipe@balena.io>
2022-05-24 17:54:38 -04:00
Balena CI
564ff186e7
v13.1.10
2022-05-23 21:55:37 +03:00
bulldozer-balena[bot]
c8bef47010
Merge pull request #1952 from balena-os/serial-trim
...
Trim newlines from sysinfo files
2022-05-23 18:48:32 +00:00
Felipe Lalanne
76553c6b4a
Trim newlines from sysinfo files
...
Change-type: patch
2022-05-23 14:08:08 -04:00
Balena CI
b361b8eebe
v13.1.9
2022-05-23 18:01:00 +03:00
bulldozer-balena[bot]
ed657d9f38
Merge pull request #1951 from balena-os/variscite-serial
...
Fix serial number support for variscite boards
2022-05-23 14:49:45 +00:00
Felipe Lalanne
29867ccf17
Fix serial number support for variscite boards
...
Closes : #1950
Change-type: patch
2022-05-23 10:29:22 -04:00
Christina Wang
6ccd2178c1
Use Mounts API for engine socket feature label
...
When upgrading to this Supervisor version, containers using the
engine feature label will be restarted.
Relates-to: https://github.com/balena-os/balena-supervisor/pull/1780
Closes: https://github.com/balena-os/balena-engine/issues/220
Closes : #1933
Change-type: major
Signed-off-by: Christina Wang <christina@balena.io>
2022-05-17 23:57:28 +00:00
Balena CI
9549539eb2
v13.1.8
2022-05-18 00:55:47 +03:00
bulldozer-balena[bot]
c6993b496b
Merge pull request #1935 from balena-os/1933-compose-volume-long-syntax-support
...
Add compose support for volumes defined with long syntax
2022-05-17 21:53:13 +00:00
Christina Wang
5595d9099b
Add long syntax feature to balena.yml contract
...
Signed-off-by: Christina Wang <christina@balena.io>
2022-05-17 11:09:11 -07:00
Christina Wang
2896444988
Log anonymous volumes
...
Signed-off-by: Christina Wang <christina@balena.io>
2022-05-17 11:08:23 -07:00
Christina Wang
0a9c7282e8
Add compose support for volumes defined with long syntax
...
balena-compose already supports this, and with this PR, Supervisor can
have the option of using HostConfig.Mounts for internal bind mounts such as
ones added by feature labels. This will be handled in a future PR.
The only blocker to having users use long syntax is adding this feature
to target state. This PR does not add that feature.
Relates-to: https://github.com/balena-os/balena-supervisor/pull/1780
Relates-to: https://github.com/balena-os/balena-engine/issues/220
Relates-to: #1933
Change-type: patch
Signed-off-by: Christina Wang <christina@balena.io>
2022-05-17 11:08:23 -07:00
Balena CI
713d39a85e
v13.1.7
2022-05-17 18:46:23 +03:00
bulldozer-balena[bot]
f06a0542fc
Merge pull request #1938 from balena-os/remove-throttle
...
Prevent throttling reports when nothing was sent
2022-05-17 15:33:00 +00:00
20k-ultra
67f9c44a6c
Prevent throttling reports when nothing was sent
...
Change-type: patch
Signed-off-by: 20k-ultra <3946250+20k-ultra@users.noreply.github.com>
2022-05-16 15:19:55 -04:00
Balena CI
6620bca7bd
v13.1.6
2022-05-06 22:05:50 +03:00
bulldozer-balena[bot]
b0a89cf4b3
Merge pull request #1929 from balena-os/splash-image-no-fail
...
Avoid splash image failures if image is corrupt
2022-05-06 19:03:30 +00:00
Balena CI
cbd74954b3
v13.1.5
2022-05-06 21:29:08 +03:00
bulldozer-balena[bot]
bd2dbc9ac8
Merge pull request #1877 from balena-os/write-sync-vfat
...
Use write+sync when writing to `/mnt/boot`
2022-05-06 18:27:39 +00:00
Felipe Lalanne
a5ede01b18
Avoid splash image failures if image is corrupt
...
Splash image backend would throw if the image is not a valid png during
the write step. This could prevent the device from provisioning if some
corruption happens at some point.
Change-type: patch
2022-05-03 15:30:18 +00:00
Felipe Lalanne
c04955354a
Use write + sync when writing configs to /mnt/boot
...
This commit updates all backends that write to /mnt/boot to do it
through a new `lib/host-utils` module. Writes are now done using write +
sync as rename is not an atomic operation in vfat.
The change also applies for writes through the `/v1/host-config`
endpoint.
Finally this change includes some improvements on tests.
Change-type: patch
2022-05-03 11:23:00 -04:00
Balena CI
5686cc363d
v13.1.4
2022-04-28 21:29:01 +03:00
bulldozer-balena[bot]
01934503e5
Merge pull request #1936 from balena-os/sleep-between-reports
...
Use delay instead of interval to recursively report state
2022-04-28 18:26:43 +00:00
20k-ultra
2e81a7328e
Use delay instead of interval to recursively report state
...
Change-type: patch
Signed-off-by: 20k-ultra <3946250+20k-ultra@users.noreply.github.com>
2022-04-27 23:16:38 -04:00
Balena CI
4557644149
v13.1.3
2022-04-20 22:38:47 +03:00
bulldozer-balena[bot]
2740d252d2
Merge pull request #1926 from balena-os/prevent-restart-policy-violation
...
Prevent restart policy violation
2022-04-20 19:36:51 +00:00
20k-ultra
5437aea786
Remove in memory storage of started/stopped containers
...
Change-type: patch
Signed-off-by: 20k-ultra <3946250+20k-ultra@users.noreply.github.com>
2022-04-19 22:27:15 -04:00
20k-ultra
ca9945bdfb
Only start a container once in its lifetime
...
This will ensure the restart policy specified is not violated
Change-type: patch
Closes : #1668
Signed-off-by: 20k-ultra <3946250+20k-ultra@users.noreply.github.com>
2022-04-19 22:27:15 -04:00
Balena CI
9aa50eea8a
v13.1.2
2022-04-18 23:34:21 +03:00
bulldozer-balena[bot]
f8f337cbc5
Merge pull request #1931 from balena-os/clarify-v2-state-status-response-meaning
...
Explain /v2/state/status's status field in its response
2022-04-18 20:32:39 +00:00
Christina Wang
27249c2785
Explain /v2/state/status's status field in its response
...
The status field does not indicate the current state of the Engine on the device.
Rather, it only indicates whether the HTTP response returned successfully or not.
To get the current state of the device, i.e. whether it has applied target state or not,
use the `appState` field in the response.
Change-type: patch
Signed-off-by: Christina Wang <christina@balena.io>
2022-04-18 13:16:32 -07:00
Balena CI
81a8705ff8
v13.1.1
2022-04-13 22:29:32 +03:00
bulldozer-balena[bot]
3df8494f35
Merge pull request #1928 from balena-os/lockfiles-cleanup
...
Do not fail lockfile cleanup if files do not exist
2022-04-13 19:27:06 +00:00
Felipe Lalanne
8681d6b580
Do not fail lockfile cleanup if files do not exist
...
Change-type: patch
2022-04-13 12:33:15 -04:00
Balena CI
f5ca7e87f0
v13.1.0
2022-04-12 22:27:08 +03:00
bulldozer-balena[bot]
f8bdd06a8b
Merge pull request #1893 from balena-os/1758-lockfile-binary-with-nobody-user
...
Differentiate Supervisor-created lockfiles from userapp-created lockfiles
2022-04-12 19:25:21 +00:00
Christina Wang
babe10e2a7
Move Supervisor-specific from lockfile.ts to update-lock.ts to
...
make lockfile module more generic
BASE_LOCK_DIR, LOCKFILE_UID moved to update-lock.ts
Signed-off-by: Christina Wang <christina@balena.io>
2022-04-12 12:02:57 -07:00