resin-io-versionbot[bot]
11e8899455
Auto-merge for PR #599 via VersionBot
...
Remove any leftover knex migrations locks before running migrations
2018-03-22 14:56:46 +00:00
resin-io-versionbot[bot]
822ea1e185
v7.1.19
2018-03-22 14:36:50 +00:00
Pablo Carranza Velez
fb9618e25c
Fix migrations directory path in knexfile for local development
...
Signed-off-by: Pablo Carranza Velez <pablo@resin.io>
2018-03-21 18:20:15 -03:00
Pablo Carranza Velez
c8d79c3b7d
Remove any leftover knex migrations locks before running migrations
...
Closes #598
Change-Type: patch
Signed-off-by: Pablo Carranza Velez <pablo@resin.io>
2018-03-21 18:20:15 -03:00
resin-io-versionbot[bot]
a2f0cacf19
Auto-merge for PR #595 via VersionBot
...
Trim whitespace from the hostname file on the host before passing it …
2018-03-19 21:09:13 +00:00
resin-io-versionbot[bot]
c89174418e
v7.1.18
2018-03-19 20:54:55 +00:00
Pablo Carranza Velez
d46d6513b5
Trim whitespace from the hostname file on the host before passing it as the hostname for containers with host network
...
Closes #594
Change-Type: patch
Signed-off-by: Pablo Carranza Velez <pablo@resin.io>
2018-03-19 17:19:59 -03:00
resin-io-versionbot[bot]
2dfceaa7a1
Auto-merge for PR #591 via VersionBot
...
Force reboots and shutdowns if lock override is enabled
2018-03-19 20:12:31 +00:00
resin-io-versionbot[bot]
11aa504add
v7.1.17
2018-03-19 19:55:32 +00:00
Pablo Carranza Velez
5d7d99c258
Document that the update lock can be forced on reboots and shutdowns
...
Closes #373
Change-Type: patch
Signed-off-by: Pablo Carranza Velez <pablo@resin.io>
2018-03-19 16:30:59 -03:00
Pablo Carranza Velez
e1e33b376e
Force reboots and shutdowns if lock override is enabled
...
Closes #440
Change-Type: patch
Signed-off-by: Pablo Carranza Velez <pablo@resin.io>
2018-03-19 16:30:59 -03:00
resin-io-versionbot[bot]
8dc085c59a
Auto-merge for PR #593 via VersionBot
...
In /v1/apps/:appId/stop, wait for the service to exit before responding
2018-03-16 20:50:24 +00:00
resin-io-versionbot[bot]
a5421bd6b4
v7.1.16
2018-03-16 19:02:56 +00:00
Pablo Carranza Velez
91ac11d0e8
In /v1/apps/:appId/stop, wait for the service to exit before responding
...
Change-Type: patch
Signed-off-by: Pablo Carranza Velez <pablo@resin.io>
2018-03-16 15:13:15 -03:00
resin-io-versionbot[bot]
ad35375994
Auto-merge for PR #572 via VersionBot
...
automation: Use ssh instead of https to PR to meta-resin
2018-03-15 17:51:59 +00:00
resin-io-versionbot[bot]
84e5dbc27d
v7.1.15
2018-03-15 17:37:40 +00:00
Pablo Carranza Velez
3fa567ae88
automation: Use ssh instead of https to PR to meta-resin
...
Change-Type: patch
Signed-off-by: Pablo Carranza Velez <pablo@resin.io>
2018-03-15 14:14:32 -03:00
resin-io-versionbot[bot]
a85692ca16
Auto-merge for PR #589 via VersionBot
...
Avoid trying to clean up the supervisor image if it has several tags …
2018-03-15 02:21:05 +00:00
resin-io-versionbot[bot]
dd15ab5fcc
v7.1.14
2018-03-15 02:05:48 +00:00
Pablo Carranza Velez
5d7e8afcee
Avoid trying to clean up the supervisor image if it has several tags (even though it would never succeed)
...
Change-Type: patch
Signed-off-by: Pablo Carranza Velez <pablo@resin.io>
2018-03-14 22:38:52 -03:00
resin-io-versionbot[bot]
a2287dd8b5
Auto-merge for PR #588 via VersionBot
...
Fix the check for whether the device is provisioned by correctly get…
2018-03-15 01:38:11 +00:00
resin-io-versionbot[bot]
2daadd9544
v7.1.13
2018-03-15 01:24:04 +00:00
Pablo Carranza Velez
75ce55e932
Fix typo passing apiKey to the resin API client when exchanging apikeys
...
Change-Type: patch
Signed-off-by: Pablo Carranza Velez <pablo@resin.io>
2018-03-14 21:50:31 -03:00
Pablo Carranza Velez
7e342e9d80
Fix the check for whether the device is provisioned by correctly getting registered_at and deviceId from config.json into the ApiBinder
...
Change-Type: patch
Signed-off-by: Pablo Carranza Velez <pablo@resin.io>
2018-03-14 21:50:31 -03:00
resin-io-versionbot[bot]
fa6dcd45e7
Auto-merge for PR #586 via VersionBot
...
Fix using hostname from host when network mode is host, and fix working_dir comparison
2018-03-15 00:49:47 +00:00
resin-io-versionbot[bot]
a6f1d939a8
v7.1.12
2018-03-15 00:25:40 +00:00
Pablo Carranza Velez
08a98f47e4
compose: Use the hostname on the host as default hostname for services with host network mode
...
Otherwise if the hostname on the supervisor container differs from the hostname on the host, the current and target
services will never match.
Change-Type: patch
Signed-off-by: Pablo Carranza Velez <pablo@resin.io>
2018-03-14 21:18:11 -03:00
Pablo Carranza Velez
557b6a8d07
Pass the correct working_dir to the container config, and compare containers for working dir changes
...
We were getting the correct working dir from the compose or image config, but not really using it.
Change-Type: patch
Signed-off-by: Pablo Carranza Velez <pablo@resin.io>
2018-03-14 15:41:19 -03:00
resin-io-versionbot[bot]
44e5778acc
Auto-merge for PR #585 via VersionBot
...
DeviceConfig: avoid trying to enable or disable the VPN when in offline mode
2018-03-14 12:06:47 +00:00
resin-io-versionbot[bot]
32880653c1
v7.1.11
2018-03-14 11:54:22 +00:00
Pablo Carranza Velez
1febdc9eb0
DeviceConfig: avoid trying to enable or disable the VPN when in offline mode
...
Change-Type: patch
Signed-off-by: Pablo Carranza Velez <pablo@resin.io>
2018-03-14 10:15:07 +02:00
resin-io-versionbot[bot]
f99f59c6ae
Auto-merge for PR #584 via VersionBot
...
Fix updates when only releaseId and imageId have changed
2018-03-14 07:42:47 +00:00
resin-io-versionbot[bot]
c01accd208
v7.1.10
2018-03-14 07:28:29 +00:00
Pablo Carranza Velez
0101d62ace
ApplicationManager: try to match available images by imageId to avoid keeping around unused image entries in the db
...
This should fix an issue where, on an update that only changes container metadata, the image install for the old image
is kept around on the API.
Change-Type: patch
Signed-off-by: Pablo Carranza Velez <pablo@resin.io>
2018-03-13 18:45:26 -03:00
Pablo Carranza Velez
4ba4736aba
compose: Emit a change event when a container is renamed, so that the updated imageId and releaseId are reported
...
Change-Type: patch
Signed-off-by: Pablo Carranza Velez <pablo@resin.io>
2018-03-13 18:45:26 -03:00
resin-io-versionbot[bot]
62ad5ce3ba
Auto-merge for PR #581 via VersionBot
...
When migrating from legacy supervisors, mark the temporary compositio…
2018-03-13 21:34:53 +00:00
resin-io-versionbot[bot]
310cff05a5
v7.1.9
2018-03-13 21:20:41 +00:00
Pablo Carranza Velez
de654ec60e
Skip taking the lock when updating the releaseId or imageId for a service that comes from a legacy supervisor
...
Change-Type: patch
Signed-off-by: Pablo Carranza Velez <pablo@resin.io>
2018-03-13 18:00:07 -03:00
Pablo Carranza Velez
9dfb76d2c8
When migrating from legacy supervisors, mark the temporary composition as legacy
...
We migrate to a default composition because we need to avoid deleting existing docker images, but
we need to use the legacy-container label to avoid potentially creating a duplicated container when a target state comes in.
(Just like we do for preloaded apps)
Change-Type: patch
Signed-off-by: Pablo Carranza Velez <pablo@resin.io>
2018-03-13 08:17:25 -07:00
resin-io-versionbot[bot]
7df07482d1
Auto-merge for PR #579 via VersionBot
...
Some fixes for the supervisor API
2018-03-13 14:14:55 +00:00
resin-io-versionbot[bot]
a2579a1c9a
v7.1.8
2018-03-13 13:59:53 +00:00
Pablo Carranza Velez
f76aacc7fb
Avoid trying to send a response to API calls after we've already sent an error
...
In some cases we were using early `return res.status(...).send(...)` to send 400 errors
but this happened inside a promise chain that later sent another status and response.
We fix this with the correct indentation of the success response so that an early return doesn't fall there.
Change-Type: patch
Signed-off-by: Pablo Carranza Velez <pablo@resin.io>
2018-03-09 14:48:34 -08:00
Pablo Carranza Velez
79b4d39acd
Fix passing a target service to start in /v1/apps/:appId/start, and getting the containerId
...
We weren't passing a "target" to serviceAction, which made the start action fail.
Plus we need to get the container again after starting to get the latest containerId.
Change-Type: patch
Signed-off-by: Pablo Carranza Velez <pablo@resin.io>
2018-03-09 14:41:19 -08:00
resin-io-versionbot[bot]
f4e07e3ce8
Auto-merge for PR #577 via VersionBot
...
gosuper: Treat systemd unit states that are not "inactive" or "deacti…
2018-03-09 18:17:14 +00:00
resin-io-versionbot[bot]
0f7c9f66dc
v7.1.7
2018-03-09 17:41:40 +00:00
Pablo Carranza Velez
58bb660758
gosuper: Treat systemd unit states that are not "inactive" or "deactivating" as enabled states
...
This should make the supervisor detect the VPN as enabled when it's starting up (or restarting because of an error).
Change-Type: patch
Signed-off-by: Pablo Carranza Velez <pablo@resin.io>
2018-03-09 09:19:54 -08:00
resin-io-versionbot[bot]
3b60065f12
Auto-merge for PR #575 via VersionBot
...
Fix bug in image management after update
2018-03-09 15:33:59 +00:00
resin-io-versionbot[bot]
affdcb1bc8
v7.1.6
2018-03-09 15:19:23 +00:00
Pablo Carranza Velez
f009e34293
migrations: Use the correct service name for legacy apps
...
Change-Type: patch
Signed-off-by: Pablo Carranza Velez <pablo@resin.io>
2018-03-09 06:54:16 -08:00
Pablo Carranza Velez
b6631b7367
ApplicationManager: only use dockerImageId to identify images for current apps, to avoid trying to delete an image that is in use
...
Change-Type: patch
Signed-off-by: Pablo Carranza Velez <pablo@resin.io>
2018-03-09 06:54:16 -08:00