Commit Graph

4421 Commits

Author SHA1 Message Date
Balena CI
c5670ba366 v12.11.31 2022-02-01 23:49:09 +02:00
bulldozer-balena[bot]
b6bc81cadf
Merge pull request #1868 from balena-os/finish-event
Ensure the `finish` event is always reported when fetching images
2022-02-01 21:47:22 +00:00
Felipe Lalanne
fa0e28de6d Clean up image event reporting 2022-02-01 18:35:50 -03:00
Balena CI
6796383437 v12.11.30 2022-01-27 20:54:34 +02:00
bulldozer-balena[bot]
53d7d9c6c8
Merge pull request #1874 from balena-os/fake-304
Throw if target states gets a 304 without an ETAG
2022-01-27 18:52:06 +00:00
Felipe Lalanne
f471ad736c Throw if target states gets a 304 without an ETAG
The API uses 304 as a mechanism for load management on target state
requests. This may cause that the supervisor receives a 304 response
without having received a copy of the target state first, leading to
issues. This change checks for an etag when receiving a 304, throwing an
exception otherwise.

Change-type: patch
2022-01-26 11:27:15 -03:00
Balena CI
fba0317620 v12.11.29 2022-01-20 15:03:26 +02:00
bulldozer-balena[bot]
db6f226b7a
Merge pull request #1766 from balena-os/vipulgupta2048-patch-1-1
patch: Update fleet terminology for application update locks
2022-01-20 13:01:15 +00:00
Vipul Gupta (@vipulgupta2048)
277ab39dab Replace application --> fleet
Signed-off-by: Vipul Gupta (@vipulgupta2048) <vipul@balena.io>
2022-01-20 18:17:30 +05:30
Vipul Gupta
6357d3541e patch: Update fleet terminology for application update locks 2022-01-20 18:17:30 +05:30
Vipul Gupta (@vipulgupta2048)
a631e86997 patch: Update fleet terminology for the Supervisor API
Signed-off-by: Vipul Gupta (@vipulgupta2048) <vipul@balena.io>
2022-01-20 18:15:25 +05:30
Balena CI
ca7e42b2c7 v12.11.28 2022-01-19 17:31:27 +02:00
bulldozer-balena[bot]
ec263d3028
Merge pull request #1864 from balena-os/dmidecode
Use dmidecode to read cpuid in non ARM devices
2022-01-19 15:28:57 +00:00
Balena CI
fcaef150a8 v12.11.27 2022-01-18 15:03:33 +02:00
bulldozer-balena[bot]
8a773d0759
Merge pull request #1869 from balena-os/update-locking-env-var-changes
docs: Clarify that update locks prevent restarts from env var changes
2022-01-18 13:01:04 +00:00
Thodoris Greasidis
111db22177 docs: Clarify that update locks prevent restarts from env var changes
Resolves: https://github.com/balena-io/docs/issues/2175
Change-type: patch
2022-01-18 14:19:20 +02:00
Pagan Gazzard
ae501048f5 Ensure the finish event is always reported when fetching images
Change-type: patch
2022-01-18 11:45:13 +00:00
Balena CI
4a383b2b31 v12.11.26 2022-01-18 12:44:59 +02:00
bulldozer-balena[bot]
18242c7b0a
Merge pull request #1867 from balena-os/delta-timeout
Increase delta request timeout to 59s to better align with our backends
2022-01-18 10:42:34 +00:00
Pagan Gazzard
157fd95196 Increase delta request timeout to 59s to better align with our backends
Change-type: patch
2022-01-18 10:02:13 +00:00
Balena CI
1274cefa9b v12.11.25 2022-01-17 23:30:09 +02:00
bulldozer-balena[bot]
4cbef6046b
Merge pull request #1866 from balena-os/fix-token-memoization
Fix memoization of registry token request
2022-01-17 21:28:12 +00:00
Pagan Gazzard
fd1f646073 Fix memoization of registry token request
Change-type: patch
2022-01-17 16:52:43 +00:00
Felipe Lalanne
d06b8e053e Use dmidecode to read cpuid in non ARM devices
Cpu id is set to null so far for non ARM devices (e.g. Intel NUC). This
parses the output of dmidecode to get the cpu id and system model.

Change-type: patch
2022-01-13 22:49:42 +00:00
Balena CI
9c4e4acedf v12.11.24 2022-01-13 22:26:02 +02:00
bulldozer-balena[bot]
70ec8c9af4
Merge pull request #1847 from balena-os/apps-json-rename
Rename apps.json after initial preload
2022-01-13 20:24:23 +00:00
Felipe Lalanne
c7fc7aacf8 Use dmidecode to read cpuid in non ARM devices
Cpu id is set to null so far for non ARM devices (e.g. Intel NUC). This
parses the output of dmidecode to get the cpu id and system model.

Change-type: patch
2022-01-06 21:01:53 +00:00
Balena CI
0d4c902e35 v12.11.23 2022-01-06 18:39:59 +02:00
bulldozer-balena[bot]
751b23f9e7
Merge pull request #1835 from balena-os/add-supervisor-update-info
add-supervisor-update-info
2022-01-06 16:38:04 +00:00
fisehara
6ab314f8c0 Add troubleshooting notice for macOS
When developing on macOS (Darwin) DBus may have to be installed.

Change-type: patch
Signed-off-by: fisehara <harald@balena.io>
2021-12-30 15:39:59 +00:00
fisehara
0c8c1864ae add-supervisor-update-info
Adding clarity to the supervisor /v1/update endpoint that the endpoint will not trigger a supervisor update itself.

Change-type: patch
Signed-off-by: fisehara <harald@balena.io>
2021-12-28 19:58:51 +01:00
Balena CI
4abb7040de v12.11.22 2021-12-22 06:30:36 +02:00
bulldozer-balena[bot]
b18ee6cc35
Merge pull request #1834 from balena-os/update-poll-interval-desc
Refactor `SUPERVISOR_POLL_INTERVAL` description to mention back off
2021-12-22 04:29:08 +00:00
Miguel Casqueira
51ab203264 Refactor SUPERVISOR_POLL_INTERVAL description to mention back off
Change-type: patch
Signed-off-by: Miguel Casqueira <miguel@balena.io>
2021-12-21 23:17:15 -05:00
Balena CI
4f980e0056 v12.11.21 2021-12-18 17:54:33 +02:00
bulldozer-balena[bot]
922129b954
Merge pull request #1852 from balena-os/local-lookup-fix
Fix .local dns resolution when returning multiple addresses
2021-12-18 15:52:10 +00:00
Felipe Lalanne
08147e6a86 Ensure happy-eyeballs uses supervisor dns lookup
Happy-eyeballs performs [dns lookups](https://github.com/balena-io-modules/happy-eyeballs/blob/master/src/happy-eyeballs.ts#L23)
for the requested addresses, however, because of the order of imports it
was not using the supervisor custom `dns.lookup` that handles `.local`
name resolution, making address resolution fail in those cases.

Moving the import after the `dns.lookup` patch fixes the problem.
2021-12-16 11:59:59 -03:00
Felipe Lalanne
39c667803d Fix .local dns resolution when returning multiple addresses
The supervisor performs its own local resolution for `.local`
addresses due to a limitation in [musl](https://wiki.musl-libc.org/future-ideas.html).
The resolution function was not following exactly the nodejs [dns.lookup
specification](https://nodejs.org/api/dns.html#dnslookuphostname-options-callback)
which could cause certain clients to fail (in this case happy-eyeballs). This
updates the function to follow the specification.

Change-type: patch
2021-12-16 11:59:54 -03:00
Felipe Lalanne
9c6e5ee11f Remove apps.json after initial preload
This avoids the supervisor trying to get back to the preloaded target
state if the database is deleted by any reason. It does this by moving the
used apps.json to a backup location.

Change-type: patch
Depends-on: #1841
2021-12-13 20:11:42 +00:00
Balena CI
52b47b91f0 v12.11.20 2021-12-13 18:53:39 +02:00
bulldozer-balena[bot]
f2164e98c8
Merge pull request #1841 from balena-os/initial-target
Skip initial apply until a target has been set
2021-12-13 16:51:09 +00:00
Felipe Lalanne
9015b0e22f Skip initial apply until a target has been set
The supervisor always applies target state on start to ensure that the
device is at the correct in case of a crash or another reason. This had
the side effect that if the database is deleted, the supervisor would
apply target state (which is empty), stopping services and possibly
causing volume data loss.

This prevents that behavior and ensures that the supervisor only
applies target state if a target has been set either by the cloud, preload or local
mode.

Change-type: patch
2021-12-13 09:31:00 -03:00
Balena CI
5de6e1125b v12.11.19 2021-12-11 00:32:29 +02:00
bulldozer-balena[bot]
59852a272e
Merge pull request #1821 from balena-os/fix-poll-interval
Fix poll interval
2021-12-10 22:31:04 +00:00
Balena CI
b31552b3f3 v12.11.18 2021-12-10 18:37:48 +02:00
bulldozer-balena[bot]
ab59a18534
Merge pull request #1846 from balena-os/fix-already-delayed-by
Fix the "already delayed by" calculation
2021-12-10 16:35:37 +00:00
Pagan Gazzard
32e3399f7c Fix the "already delayed by" calculation
Change-type: patch
2021-12-10 15:54:30 +00:00
Balena CI
14f8bb7b3b v12.11.17 2021-12-10 17:20:23 +02:00
bulldozer-balena[bot]
1a2797fda8
Merge pull request #1845 from balena-os/logs-backoff
Add exponential backoff on errors for logs reporting
2021-12-10 15:18:10 +00:00
Pagan Gazzard
6554ff5a64 Add exponential backoff on errors for logs reporting
Change-type: patch
2021-12-09 18:30:04 +00:00