balena-supervisor/test/unit
Felipe Lalanne 89175432af Find and remove duplicate networks
We have seen a few times devices with duplicated network names for some
reason. While we don't know the cause the networks get duplicates, this
can be disruptive for updates as trying to create a container referencing a duplicate
network results in a 400 error from the engine.

This commit finds and removes duplicate networks via the state engine,
this means that even if somehow a container could be referencing a
network that has been duplicated later somehow, this will remove the
container first.

While thies doesn't solve the problem of duplicate networks being
created in the first place, it will fix the state of the system to
correct the inconsistency.

Change-type: minor
Closes: #590
2023-02-10 20:24:36 -05:00
..
compose Find and remove duplicate networks 2023-02-10 20:24:36 -05:00
config Migrate all device config tests to integration. 2022-11-14 11:12:52 -03:00
device-api Update host-config, route, and action tests for host config endpoints 2023-01-11 15:48:13 -08:00
lib Support since and until in supervisor journalctl wrapper API. 2023-02-01 09:17:10 +01:00
.mocharc.js Disable logs globally using mocha hooks 2022-09-28 10:37:41 -03:00
network.spec.ts Migrate simple legacy tests to test/unit and test/integration 2022-10-18 20:36:53 -03:00
types.spec.ts Fix withDefault type helper to work with boolean 2022-09-13 20:08:32 +00:00