build providers: use LXD-provided DNS by default
Metadata
Current evaluation
Merged in canonical/snapcraft#3141 via commit 0a9fe51ad, making build providers use LXD-provided DNS through systemd-resolved and restart networkd without restarting containers.
Resolution: closed resolved
Reason: The approved PR was merged into master as commit 0a9fe51ad, completing the LXD DNS configuration change.
Evaluated by: mr-cal-bot
No scores available.
Issue body
A DNS server is provided by LXD, we just need to configure
the host to use systemd-resolved for name resolution.
After installing these files, there is no need to restart
the container, just restart networkd.
Signed-off-by: Chris Patterson <chris.patterson@canonical.com>
- [ ] Have you followed the [guidelines for contributing](https://github.com/snapcore/snapcraft/blob/master/CONTRIBUTING.md)?
- [ ] Have you signed the [CLA](http://www.ubuntu.com/legal/contributors/)?
- [ ] Have you successfully run `./runtests.sh static`?
- [ ] Have you successfully run `./runtests.sh tests/unit`?
-----
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed resolved | Merged in canonical/snapcraft#3141 via commit 0a9fe51ad, making build providers use LXD-provided DNS through systemd-resolved and restart networkd without restarting containers. | |
| stealth/space-bunny-alpha | — | closed resolved | Merged via #3141 (commit 0a9fe51ad), making build providers use LXD-provided DNS by default with systemd-resolved host configuration. | |
| qwen/qwen3.6-35b-a3b | — | — | Merged into master. Configures the host to use systemd-resolved for DNS resolution, leveraging LXD-provided DNS by default. Approved with passing CI checks and 100% diff coverage across two files. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Merged into master. Configures build providers to use LXD-provided DNS by default via systemd-resolved, removing the need for container restarts. Achieved 100% diff coverage. |
Update history
No update history recorded yet.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #3052 build providers: wait for systemd and better nameserver setup on LXD | snapcraft | merged | PR #3052 merged as commit 7faeb2591: LXD build providers now wait for systemd to be running or degraded and prefer systemd-resolved's local nameserver; core20 provider tests enabled. | |
| #2509 build providers: initial support for LXD | snapcraft | merged | Merged PR #2509 (commit 067024732) adding initial LXD build-provider support: `snapcraft --use-lxd` runs all lifecycle steps and clean inside an LXD container. Released via beta/lxd channel; LP bug #1805221 closed. | |
| #2621 build providers: support injection for LXD | snapcraft | merged | Merged as d59622a81, adding LXD snap injection through snapd's file API, replacing mount-based injection with file pushes, and refactoring provider concerns. | |
| #3033 build providers: do not print network test output for LXD | snapcraft | merged | Merged PR #3033 via commit e335de69e, suppressing getent hosts snapcraft.io output during LXD build-provider environment setup. | |
| #3251 build providers: honour http proxy settings for snapd | snapcraft | merged | Merged in canonical/snapcraft#3251 (fbd93aaab), configuring snapd with user http_proxy and https_proxy values on every build-provider launch. |