fix: update remote LXD scripts to use OVN backed NAT-ed networks.

This commit is contained in:
slawek committed 2026-11-22 19:27:53 +01:00
1 parent da889b4865
commit 5fff009320
9 files changed
+500 -19

No files matched your search

+24
View File
@@ -1570,3 +1570,27 @@ site-to-site or IKEv2 is ready.
Consequences: A core-only server needs one interface and gets its firewall at its first setup
run. The readiness checks (`routing_ready`, `s2s_ready`, `p2s_ready`, `wg_ready`,
`openvpn_ready`) carry the switches, so every consumer of them follows the components.
## ADR-58: Manual tests get numbered dev builds from a signed apt repository in a test project
Status: Accepted
Context: The server's package reaches production servers from an apt repository, and the Manager
checks for and installs its updates through apt (ADR-24, ADR-53). A package copied into a test
server and installed from a file tests none of that, and a rebuild of an unreleased changelog
entry keeps the same version, so apt sees no update.
Decision: `tests/remote/lxd-project.py` makes an LXD project for manual tests with networks of its
own (`features.networks`), a WAN and two LANs, and a container `repo` that serves a signed apt
repository, `resolute main`, built with `apt-ftparchive` and signed by its own key. The networks
are OVN networks on an uplink bridge of the remote, as OVN is the only network type LXD creates
inside a project; they belong to the project and go with it. `tests/remote/dev-build.py` builds the newest
changelog entry as `<upstream>~dev<N>-<revision>`, `N` counted in `tmp/test-number`, by passing
`DEB_VERSION` to the build, which rewrites the version in the image only, and publishes the build
in that repository. `tests/remote/vm.py` gives a VM of the project that repository as its apt
source. The automated tests (`run.py`) keep their own project for one run and install from a
file.
Consequences: Every dev build is an apt update of the one before, and the release of the entry,
which sorts above all of its `~dev` builds, is an update of them all. The changelog is not
changed by a dev build. Dev builds go to `out/dev/`, so `out/` holds only release builds.