Commit Graph

3564 Commits

Author SHA1 Message Date
bulldozer-balena[bot]
7ba98472b7
Merge pull request #1507 from balena-io/clarify-update-pending-docs
Clarify when `update_pending` in /v1/device is true
2020-11-02 09:30:23 +00:00
Miguel Casqueira
c64d3cb216 Clarify when update_pending in /v1/device is true
Change-type: patch
Signed-off-by: Miguel Casqueira <miguel@balena.io>
2020-10-30 18:46:22 -04:00
Balena CI
4d911c6a3b v12.1.3 2020-10-30 23:59:18 +02:00
bulldozer-balena[bot]
902bfcda50
Merge pull request #1506 from balena-io/add-pipex-to-codeowners
Add pipex to codeowners
2020-10-30 21:57:11 +00:00
Miguel Casqueira
d016f7a13c Add pipex to codeowners
Change-type: patch
Signed-off-by: Miguel Casqueira <miguel@balena.io>
2020-10-30 17:49:28 -04:00
Balena CI
7bdc9c4b84 v12.1.2 2020-10-29 22:12:56 +02:00
bulldozer-balena[bot]
fb9a73b3d6
Merge pull request #1497 from balena-io/1494-balena-socket
Mount docker socket under `/host/run` for services
2020-10-29 20:11:06 +00:00
Felipe Lalanne
01477e41b8 Mount docker socket under /host/run for services
Currently, when the label `io.balena.features.balena-socket` is set,
the balena engine socket is mounted under `/run/balena-engine.sock`.

This causes a problem when using systemd inside the container, since
this service remounts `/run` and `/run/lock` as tmpfs, causing the
socket to become unavailable.

Making a mount of the socket into `/host/run` solves this issue. This is
the same approach taken with DBUS.

Change-type: patch
Signed-off-by: Felipe Lalanne <felipe@balena.io>
Connects-to: #1494
2020-10-29 15:54:31 -03:00
Balena CI
4e380136c2 v12.1.1 2020-10-28 15:37:10 +02:00
bulldozer-balena[bot]
097e8bec8a
Merge pull request #1502 from balena-io/fix-device-type-json-file
Use root mount point to find device-type.json
2020-10-28 13:35:12 +00:00
Cameron Diver
9d19a45701 Use root mount point to find device-type.json
Change-type: patch
Signed-off-by: Cameron Diver <cameron@balena.io>
2020-10-28 13:03:40 +00:00
Balena CI
8ae2b4a5cd v12.1.0 2020-10-28 09:06:54 +02:00
bulldozer-balena[bot]
0c0211aa70
Merge pull request #1489 from balena-io/codewithcheese/read-logs-from-journalctl
Change log source from docker to journalctl
2020-10-28 07:05:03 +00:00
Thomas Manning
2c83864f22 Change log source from docker to journalctl
Change-type: minor
Signed-off-by: Thomas Manning <thomasm@balena.io>
2020-10-28 16:09:42 +10:00
Balena CI
622e8edec1 v12.0.9 2020-10-27 15:29:06 +02:00
bulldozer-balena[bot]
22402dbb93
Merge pull request #1490 from balena-io/1472-device-type
Change source of deviceType to device-type.json
2020-10-27 13:26:56 +00:00
Felipe Lalanne
f5183df356 Change source of deviceType to device-type.json
The source of truth for the device-type should be
device-type.json instead of config.json

Change-type: patch
Signed-off-by: Felipe Lalanne <felipe@balena.io>
Connects-to: #1472
2020-10-27 09:40:18 -03:00
Balena CI
aa8f5df3a4 v12.0.8 2020-10-26 21:45:14 +02:00
bulldozer-balena[bot]
ae1d7185c8
Merge pull request #1498 from balena-io/1476-patch-update-needed
Fixed evaluating if updates are needed to reach target state
2020-10-26 19:43:16 +00:00
Miguel Casqueira
77333f1e11 Fixed evaluating if updates are needed to reach target state
Closes: #1476
Change-type: patch
Signed-off-by: Miguel Casqueira <miguel@balena.io>
2020-10-26 14:54:04 -04:00
Balena CI
30c352f4f6 v12.0.7 2020-10-19 19:57:16 +03:00
bulldozer-balena[bot]
1491788a27
Merge pull request #1477 from balena-io/verbose-network-log-2
log networks that do not match
2020-10-19 16:55:22 +00:00
Miguel Casqueira
edf23871d9 Improved log message when networks do not match
Change-type: patch
Signed-off-by: Miguel Casqueira <miguel@balena.io>
2020-10-19 12:01:50 -04:00
Balena CI
d5d870bdc2 v12.0.6 2020-10-19 11:32:46 +03:00
bulldozer-balena[bot]
38bf661893
Merge pull request #1493 from balena-io/ab77/local-preload
Fixes check allowing preloading in local (unmanaged) mode
2020-10-19 08:30:50 +00:00
ab77
0fd9b63762
Fixes check allowing preloading in local (unmanaged) mode
* adds apiEndpoint empty string check

Change-type: patch
2020-10-16 15:19:22 -07:00
bulldozer-balena[bot]
2a8c1bdfe2
Merge pull request #1462 from balena-io/1434-not-deleting-images
Handle delete of multiple images with same dockerImageId
2020-10-16 18:52:33 +00:00
Felipe Lalanne
4795c336d0 Handle delete of multiple images with same dockerImageId
A docker-compose.yml with the following structure

```
version: '2.1'
services:
  app_1:
    build: ./noisy-1
    image: noisy1
  app_2:
    build: ./noisy-1
    image: noisy1
  app_3:
    build: ./noisy-1
    image: noisy1
```

Will lead to the supervisor creating multiple image database entries
with the same dockerId (this is because of how the engine handles this
particular case). This case is not handled by the removal process
leading to image pile up and increased disk usage.

Change-type: patch
Signed-off-by: Felipe Lalanne <felipe@balena.io>
Connects-to: #1434
2020-10-16 14:06:10 -04:00
Balena CI
c3ff277bb0 v12.0.5 2020-10-14 20:11:01 +03:00
bulldozer-balena[bot]
85b9dd573f
Merge pull request #1487 from balena-io/1471-memory-report
Improve calculation for used system memory
2020-10-14 17:08:41 +00:00
Felipe Lalanne
dd5f62227a Improve calculation for used system memory
The memory information reported by the supervisor currently
estimates the value of used memory as `MemTotal - MemFree`.
However, linux systems will try to cache and buffer as much
memory as possible, which will affect the output of `MemFree`
(from /proc/meminfo) and in consequence the memory usage seen
by the user on the dashboard, which will appear much greater than
it is.

The correct calculation should be `MemTotal - MemFree - Buffers - Cached`,
which the calculation performed by `htop` and the `free` commands.

Change-type: patch
Signed-off-by: Felipe Lalanne <felipe@balena.io>
Connects-to: #1471
2020-10-14 13:15:17 -03:00
Balena CI
45ee8733e8 v12.0.4 2020-10-13 12:56:16 +03:00
bulldozer-balena[bot]
d61e33e85d
Merge pull request #1488 from balena-io/fix-sync-without-container
Don't require an existing supervisor container to sync
2020-10-13 09:54:04 +00:00
Cameron Diver
629b410e10 Don't require an existing supervisor container to sync
Change-type: patch
Signed-off-by: Cameron Diver <cameron@balena.io>
2020-10-13 10:46:23 +01:00
Balena CI
7ea9bb368e v12.0.3 2020-10-12 18:28:42 +03:00
bulldozer-balena[bot]
27f8872672
Merge pull request #1485 from balena-io/sysinfo-refactor
Refactor system information filtering
2020-10-12 15:26:56 +00:00
Cameron Diver
a2ceb5c931 Refactor system information filtering
Change-type: patch
Signed-off-by: Cameron Diver <cameron@balena.io>
2020-10-12 15:44:07 +01:00
bulldozer-balena[bot]
13c29db540
Merge pull request #1486 from balena-io/fix-test-numbering
tests: Clean up and consistify naming scheme
2020-10-12 14:21:32 +00:00
Cameron Diver
9e0c99e797 tests: Clean up and consistify naming scheme
Change-type: patch
Signed-off-by: Cameron Diver <cameron@balena.io>
2020-10-12 14:41:21 +01:00
Balena CI
3bd8b860ab v12.0.2 2020-10-12 14:54:43 +03:00
bulldozer-balena[bot]
ef9933fc8e
Merge pull request #1484 from balena-io/fixup-sysinfo-reporting
Attempt a state report once every maxReportFrequency
2020-10-12 11:52:57 +00:00
Cameron Diver
0e3c026392 Attempt a state report once every maxReportFrequency
With the addition of the system information feature (CPU temp) etc if
there wasn't any changes in the docker or config state of the device,
updates in system information would not be sent to the API. Now we
attempt to send data once every maxReportFrequency (although this does
not mean that we will be sending data that often, we still only send the
delta, if one exists)

Change-type: patch
Closes: #1481
Signed-off-by: Cameron Diver <cameron@balena.io>
2020-10-12 11:53:19 +01:00
Cameron Diver
975129188a Remove superfluous current state reporting code from api-binder
Change-type: patch
Signed-off-by: Cameron Diver <cameron@balena.io>
2020-10-12 11:53:19 +01:00
Balena CI
17cf330771 v12.0.1 2020-10-12 11:16:26 +03:00
bulldozer-balena[bot]
7cd2950410
Merge pull request #1445 from balena-io/codewithcheese/journalctl-label
Add features label `io.balena.features.journal-logs`
2020-10-12 08:14:27 +00:00
Thomas Manning
1eeff698ac Add features label io.balena.features.journal-logs
Change-type: patch
Signed-off-by: Thomas Manning <thomasm@balena.io>
2020-10-12 15:37:35 +10:00
Balena CI
ced69c8c15 v12.0.0 2020-09-29 19:18:14 +03:00
bulldozer-balena[bot]
ba30c8f1f1
Merge pull request #1469 from balena-io/1447-drop-version-in-env
version: drop SUPERVISOR_VERSION env var
2020-09-29 16:16:29 +00:00
Matthew McGinn
8e65466f2d version: drop SUPERVISOR_VERSION env var
In order to make supervisor upgrades more transparent, lets move away
from this env var since it requires a container restart any time the supervisor
is upgraded. We should ultimately move towards providing the supervisors
set of capabilities, but that can come later

Connects-to: #1447
Change-type: major
Signed-off-by: Matthew McGinn <matthew@balena.io>
2020-09-29 11:22:30 -04:00
Balena CI
a98f6fc403 v11.14.8 2020-09-29 11:08:35 +03:00