Commit Graph

3594 Commits

Author SHA1 Message Date
7c4d232439 Specify that all restart API endpoints remove and recreate containers
This is intended behavior.

Also add quotes around UUID in examples to reduce confusion, and format responses
as multiline JSON for clarity.

Closes: #1620
Closes: #1681
Change-type: patch
Signed-off-by: Christina Wang <christina@balena.io>
2021-05-19 11:36:01 +09:00
b77fdbb249 v12.8.0 v12.8.0 2021-05-18 21:19:13 +03:00
e8e441bea3 Merge pull request #1666 from balena-os/1645-hardware-metrics-config-var
Add toggleable `SUPERVISOR_HARDWARE_METRICS` config
2021-05-18 18:17:27 +00:00
5004cc5fd2 Add SUPERVISOR_HARDWARE_METRICS to config documentation
Signed-off-by: Christina Wang <christina@balena.io>
2021-05-13 14:47:15 +09:00
dcd863eed8 Add toggleable SUPERVISOR_HARDWARE_METRICS config
On devices with bandwidth sensitivity, this config var
disables sending system information such as memory
usage or cpu temp as current state.

Closes: #1645
Change-type: minor
Signed-off-by: Christina Wang <christina@balena.io>
2021-05-13 13:59:07 +09:00
ea3e50e96e Create & unify src/device-state/current-state tests
Signed-off-by: Christina Wang <christina@balena.io>
2021-05-12 18:33:01 +09:00
39601473c0 Fix undervoltage regex, add undervoltage tests, move sysinfo suite to test/src
Signed-off-by: Christina Wang <christina@balena.io>
2021-05-12 18:33:01 +09:00
e1cdade9b7 v12.7.4 v12.7.4 2021-05-12 12:05:41 +03:00
b09c776680 Merge pull request #1707 from balena-os/update-mocha-add-hooks
Upgrade mocha to v8, use mocha fixtures for chai plugins
2021-05-12 09:03:40 +00:00
62375c907f Upgrade mocha to v8, use mocha fixtures for chai plugins
Remove chai-events and add explicit chai devDependency

Change-type: patch
Signed-off-by: Christina Wang <christina@balena.io>
2021-05-12 17:10:57 +09:00
8bfaca7d97 v12.7.3 v12.7.3 2021-05-12 10:52:42 +03:00
bd2363c0b8 Merge pull request #1698 from balena-os/optimize-current-state-filtering
Optimize current state filtering
2021-05-12 07:50:05 +00:00
9a3596c44c v12.7.2 v12.7.2 2021-05-10 07:17:22 +03:00
fd30dac601 Merge pull request #1705 from balena-os/dependabot/npm_and_yarn/lodash-4.17.21
Bump lodash from 4.17.20 to 4.17.21
2021-05-10 04:14:59 +00:00
90fe8359f1 Bump lodash from 4.17.20 to 4.17.21
Bumps [lodash](https://github.com/lodash/lodash) from 4.17.20 to 4.17.21.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](https://github.com/lodash/lodash/compare/4.17.20...4.17.21)

Change-type: patch
Signed-off-by: dependabot[bot] <support@github.com>
2021-05-10 13:07:50 +09:00
853acae4a8 v12.7.1 v12.7.1 2021-05-07 18:41:34 +03:00
76be4dbd06 Merge pull request #1699 from balena-os/update_contrato
Bump contrato from 0.5.0 to 0.6.3
2021-05-07 15:39:54 +00:00
2cf9a9d6f3 v12.7.0 v12.7.0 2021-05-07 15:12:18 +03:00
ca1b96bfc5 Merge pull request #1684 from balena-os/rename-resin-supervisor
supervisor: rename resin-supervisor to balena-supervisor
2021-05-07 12:09:58 +00:00
5eb42b81b0 Rename start-resin-supervisor to start-balena-supervisor 2021-05-06 19:32:51 -04:00
2f9d52cc6a v12.6.8 v12.6.8 2021-05-07 00:20:57 +03:00
07aa3a5001 Merge pull request #1694 from balena-os/1693-network-target-state
Show warning instead of exception for invalid network config
2021-05-06 21:18:53 +00:00
5197a1330d Show warning instead of exception for invalid network config
A previous PR (#1656) fixed validation for network ipam config,
checking that both network and subnet are defined for each ipam config entry
(as described in the docker documentation).

After that PR, the validations throws an exception if the network target state is incorrect,
but this turns out to be the wrong approach, because that exception is also triggered
when querying target state.

This isn't a problem in normal operation, but it is in local mode, because local
mode queries the old target state before sending a new one. Since the query fails,
the CLI can never push the new target state.

This PR replaces the exception with a warning on the logs, since a
misconfigured network won't cause any engine failures, it will just
prevent containers to communicate through the provided network.

A future improvement should move this validation to an earlier point in the process,
so the target state can get rejected before it even gets to a point it
can be used.

Relates-to: #1693
Change-type: patch
2021-05-06 16:27:40 -04:00
164dd7ccc1 Rename meta-resin to meta-balena
Signed-off-by: Kyle Harding <kyle@balena.io>
2021-05-06 17:05:26 +00:00
301aa52f03 Backwards compatility changes for old resin namespaces
Change-type: patch
Signed-off-by: Kyle Harding <kyle@balena.io>
2021-05-06 17:05:26 +00:00
09615c9d82 Change container name to balena_supervisor
Change-type: minor
Signed-off-by: Kyle Harding <kyle@balena.io>
2021-05-06 17:05:25 +00:00
5faf9d7686 Rename resin-supervisor to balena-supervisor
Change-type: minor
Signed-off-by: Kyle Harding <kyle@balena.io>
2021-05-06 17:05:25 +00:00
6fc91965fb v12.6.7 v12.6.7 2021-05-06 19:48:57 +03:00
34a702e4bb Merge pull request #1701 from balena-os/patch-supervisor-network-check
Patch awaiting response when checking if supervisor0 network exists
2021-05-06 16:47:11 +00:00
662b27c26d v12.6.6 v12.6.6 2021-05-06 18:43:07 +03:00
3787dfc3dd Merge pull request #1691 from quentingllmt/fix/compose_drivers_opts_to_docker
Fix passing driver_opts from compose to docker network creation
2021-05-06 15:40:52 +00:00
1408fd7bcb Fix parsing driver_opts from compose to docker network creation
Change-type: patch
Signed-off-by: quentinGllmt <quentin@quentingllmt.fr>
2021-05-06 16:50:11 +02:00
8b0c2347d8 Patch awaiting response when checking if supervisor0 network exists
Change-type: patch
Signed-off-by: Miguel Casqueira <miguel@balena.io>
2021-05-06 14:41:32 +00:00
042ff77564 v12.6.5 v12.6.5 2021-05-06 15:47:47 +03:00
19a7ccb998 Bump contrato from 0.5.0 to 0.6.3
Change-type: patch
Signed-off-by: Micah Halter <micah@balena.io>
2021-05-06 12:46:17 +00:00
2ec3e9241b Merge pull request #1683 from balena-os/send-info-on-provision
Update balena-register-device and send extra info at provision time
2021-05-06 12:45:07 +00:00
74ae31fcfd Simplify/optimize filtering non-significant sys info changes
Change-type: patch
2021-05-06 10:59:49 +00:00
466ff58871 Avoid double omits whilst filtering current state
Change-type: patch
2021-05-06 10:59:23 +00:00
8ceabbdb4d v12.6.4 v12.6.4 2021-05-06 03:06:40 +03:00
537beae17b Merge pull request #1692 from balena-os/1680-cloud-responses
Log error responses from API when reporting state
2021-05-06 00:04:37 +00:00
2203f78d51 Log error responses from API when reporting state
This adds the error message from the API to journal logs to better
identify those cases where patching to the API fails.

Change-type: patch
Relates-to: #1680
2021-05-04 17:57:55 +00:00
e745648b5e v12.6.3 v12.6.3 2021-05-04 06:03:17 +03:00
fb7922b0b2 Merge pull request #1648 from balena-os/1646-document-configurable-vars
Added configurations.md to document all configurable vars
2021-05-04 03:01:04 +00:00
07a0344dc6 Added configurations.md to document all configurable vars
Change-type: patch
Closes: #1646
Signed-off-by: Miguel Casqueira <miguel@balena.io>
2021-05-03 22:07:23 -04:00
d9223bd460 v12.6.2 v12.6.2 2021-04-30 23:27:19 +03:00
415ce55324 Merge pull request #1688 from balena-os/livepush-tag
Remove version tag from livepush generated image
2021-04-30 20:25:14 +00:00
9c1d10dc31 Remove version tag from livepush generated image
The `start-resin-supervisor` script in newer OS version no longer uses the
SUPERVISOR_TAG environment variable setup on supervisor.conf and
update-supervisor.conf.

This change removes the need for that variable with livepush supervisor
to make it compatible with older and newer OS versions

Change-type: patch
2021-04-30 15:51:10 -04:00
9e52bb33ac Update balena-register-device and send extra info at provision time
This extra info will mean the API is able to immediately set default
config vars based on the os/supervisor version so that they are
available on the first target state fetch rather than having a delay
whilst waiting for the supervisor to report them as part of a state
patch

Update balena-register-device from 6.1.6 to 7.2.0

Change-type: patch
2021-04-29 13:44:30 +00:00
c8600ff22c v12.6.1 v12.6.1 2021-04-28 01:59:29 +03:00
dba9bf1576 Merge pull request #1663 from balena-os/remove-deprecated-dependencies
Remove mz, mkdirp, body-parser dependencies
2021-04-27 22:57:20 +00:00