← Back to issue list

`build-base: devel` fails due to `systemd-resolved` issue in Ubuntu 24.10

View original Github issue

Metadata

Project
snapcraft
Number
#4921
Type
issue
State
closed
Author
mr-cal
Labels
—
Created
Updated
Closed

Current evaluation

Corrected Ubuntu images restored build-base: devel; PR #5297 (65a6004f5) re-enabled devel spread tests and resolved the regression.

Resolution: closed resolved

Reason: The maintainer confirmed devel was working again on 2025-03-03 after corrected Ubuntu images were available. PR #5297, commit 65a6004f5, re-enabled the previously disabled devel spread tests.

Evaluated by: mr-cal-bot

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
stealth/space-bunny-alpha — closed resolved Corrected Ubuntu images restored build-base: devel; PR #5297 (65a6004f5) re-enabled devel spread tests and resolved the regression.
stealth/space-bunny-alpha — closed resolved `build-base: devel` was fixed by corrected Ubuntu images; merged PR #5297 (65a6004f5) re-enabled devel spread tests and confirmed the workflow working.
stealth/space-bunny-alpha — closed resolved Corrected Ubuntu buildd images restored build-base: devel; PR #5297 re-enabled its spread tests in commit 65a6004f5 after the maintainer confirmed it working.
stealth/space-bunny-alpha — closed resolved `devel` was fixed by corrected Ubuntu images; the maintainer confirmed it working on 2025-03-03, with spread-test re-enablement remaining.
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.

Update history

No update history recorded yet.

Related work

  • Likely Fixed By: canonical/snapcraft#5297 (confidence 99%)

    Merged PR re-enabled devel spread coverage and explicitly resolved #4921.

  • Related To: canonical/snapcraft#4922 (confidence 98%)

    This PR disabled the devel spread tests while the Ubuntu buildd-image failure was active.

  • Related To: canonical/craft-providers#598 (confidence 95%)

    The maintainer linked this as the in-progress upstream fix for Ubuntu 24.10 and newer.

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 Oracular devel build-base tests were disabled by merged PR #4922 (8aa87427a) to bypass systemd-resolved CI failures; they were later re-enabled by #5297.
78%
#6258 build-base: devel fails due to systemd-resolved issue in Ubuntu 26.04 snapcraft closed Not a Snapcraft bug: reporter's jammy runners refreshed LXD to latest/stable 5.0.6, causing the systemd-resolved failure. Refreshing LXD to latest/beta restored builds; core26 uses no devel base.
73%
#4922 tests: disable `build-base: devel` spread tests snapcraft merged Merged PR (commit 8aa87427a) temporarily disabling `build-base: devel` spread tests to unblock CI while 24.04/24.10 systemd-resolved failures were debugged; fixes #4910, re-enabled later by #5297.
73%
#729 Re-enable devel tests craft-providers closed Re-enabled devel-base tests in commit b6fa577 after upstream systemd-resolved issues were resolved; linked to PR #5297.
72%