`build-base: devel` fails due to `systemd-resolved` issue in Ubuntu 24.10
Metadata
Current evaluation
Resolved by updating craft-providers to fix the systemd-resolved crash in Ubuntu 24.10 buildd images. The devel build base now functions correctly. Spread tests are pending re-enablement.
Suggested action: —
No scores available.
Issue body
### Bug Description
`build-base: devel` fails when launching a LXD container due to a problem with the buildd images and `systemd-resolved`.
### To Reproduce
`snapcraft pack --use-lxd`
### Environment
n/a
### snapcraft.yaml
```shell
name: build-base-devel
version: '1.0'
summary: build-base-devel
description: Build a base snap with a build-base of devel
confinement: strict
type: base
build-base: devel
# grade must be devel when build-base is devel
grade: devel
parts:
build-base-devel:
plugin: nil
stage-packages: [base-files]
```
### Relevant log output
```shell
Launching managed ubuntu devel instance...
Creating new instance from remote
Creating new base instance from remote
Failed to setup systemd-resolved.
* Command that failed: 'lxc --project snapcraft exec local:base-instance-snapcraft-buildd-base-v7-c-9d4e2b684569fe719a0d -- env CRAFT_MANAGED_MODE=1 SNAPCRAFT_BUILD_INFO=1 DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true DEBIAN_PRIORITY=critical systemctl restart systemd-resolved'
* Command exit code: 1
* Command standard error output: b'Job for systemd-resolved.service failed because the control process exited with error code.\nSee "systemctl status systemd-resolved.service" and "journalctl -xeu systemd-resolved.service" for details.\n'
Full execution log: '/root/.local/state/snapcraft/log/snapcraft-20240715-175420.619498.log'
---
systemctl status systemd-resolved.service
× systemd-resolved.service - Network Name Resolution
Loaded: loaded (/usr/lib/systemd/system/systemd-resolved.service; enabled; preset: enabled)
Active: failed (Result: exit-code) since Thu 2024-07-11 14:57:45 UTC; 37s ago
Invocation: fe747a54d0294da4af991ec064327654
Docs: man:systemd-resolved.service(8)
man:org.freedesktop.resolve1(5)
https://systemd.io/WRITING_NETWORK_CONFIGURATION_MANAGERS
https://systemd.io/WRITING_RESOLVER_CLIENTS
Main PID: 99 (code=exited, status=243/CREDENTIALS)
```
### Additional context
_No response_
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| qwen/qwen3.6-35b-a3b | — | — | Resolved by updating craft-providers to fix the systemd-resolved crash in Ubuntu 24.10 buildd images. The devel build base now functions correctly. Spread tests are pending re-enablement. | |
| qwen/qwen3.6-35b-a3b | — | — | Fixed a systemd-resolved startup error in Ubuntu 24.10 that prevented build-base: devel from launching LXD containers. The maintainer confirmed the fix works and noted spread tests will be re-enabled. The issue is closed. | |
| qwen/qwen3.6-35b-a3b | — | — | Fixed the build-base devel failure caused by systemd-resolved crashing in Ubuntu 24.10 LXD containers. The maintainer confirmed the base is now working and spread tests will be re-enabled. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Resolved by fixing systemd-resolved failures in Ubuntu 24.10 LXD containers via craft-providers. The devel base is now functional, and the issue was closed pending spread test re-enablement. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Fixed. The Ubuntu 24.10 systemd-resolved failure for build-base: devel was resolved via craft-providers and cloud image updates. The maintainer confirmed the fix works and plans to re-enable spread tests. |
Update history
No update history recorded yet.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #4910 Disable `build-base: devel` and `build-base: ubuntu@24.10` tests until 2024-Nov-04 | snapcraft | closed | Tests disabled and issue closed due to systemd-resolved failures. build-base: devel and ubuntu@24.10 checks will be re-evaluated on November 4, 2024. | |
| #4922 tests: disable `build-base: devel` spread tests | snapcraft | merged | Merged a change to temporarily disable build-base: devel spread tests, bypassing failures caused by 24.10 buildd images and systemd-resolved. The fix addresses issue #4910 and will be revisited once debugging resources are available. | |
| #6258 build-base: devel fails due to systemd-resolved issue in Ubuntu 26.04 | snapcraft | closed | Resolved by the author. The build failure stemmed from an outdated LXD version on jammy runners. Refreshing LXD to latest/beta fixed the systemd-resolved setup error, allowing builds to succeed. Issue closed. | |
| #4068 meta: allow support for `build-base: devel` | snapcraft | merged | Merged after approval and CI checks. Enables build-base: devel support and sets the grade to devel. A testing issue requiring manual apt update on the lunar image was resolved via a craft-providers update. |