← Back to issue list

SNAPCRAFT_IMAGE_INFO contains wrong architecture

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1760857
Type
issue
State
closed
Author
~kalikiana
Labels
—
Created
Updated
Closed

Current evaluation

Wrong architecture in recorded LXD image info was fixed by merged snapcore/snapcraft PR #2046 (commit 828ea5120), which filtered image lookup by target architecture.

Resolution: closed resolved

Reason: Launchpad issue #1760857 records the problem as fixed by merged PR #2046 in commit 828ea5120. The change made LXD image selection architecture-specific, ensuring the recorded image architecture is deterministic.

Evaluated by: mr-cal-bot

No scores available.

Issue body

When enabling asset recording, the architecture is wrong. SNAPCRAFT_BUILD_INFO=1 snapcraft grep architecture prime/snap/manifest.yaml architecture: ppc In fact the architecture is different with subsequent invocations. From a quick look, we're calling "lxc image list" with the name of the image. This used to contain the architecture. Because of that the command returns a list of all matching images and any one of these will be picked up.

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed resolved Wrong architecture in recorded LXD image info was fixed by merged snapcore/snapcraft PR #2046 (commit 828ea5120), which filtered image lookup by target architecture.
stealth/space-bunny-alpha — closed resolved Fixed by merged PR #2046 (commit 828ea5120), which added the target architecture to lxc image list and made recorded LXD image architecture deterministic.
stealth/space-bunny-alpha — closed resolved Fixed by specifying architecture in lxc image list; PR #2046 merged as commit 828ea5120, correcting SNAPCRAFT_IMAGE_INFO.
qwen/qwen3.6-35b-a3b — — Closed without resolution. Incorrect architecture values in SNAPCRAFT_IMAGE_INFO resulted from lxc image list returning multiple matches. No fix was implemented.
qwen/qwen3.6-35b-a3b — — Closed without a linked fix or comments, indicating abandonment. The bug stems from lxc image list returning multiple matches, causing incorrect architecture values in SNAPCRAFT_IMAGE_INFO.
qwen/qwen3.6-35b-a3b — — Abandoned. The report identified that lxc image list queries returned multiple matches, causing incorrect architecture values in SNAPCRAFT_IMAGE_INFO. No fix or discussion followed.
qwen3.6-35b-a3b-mtp-q6 — — Abandoned. The reported bug caused incorrect architecture values in SNAPCRAFT_IMAGE_INFO due to lxc image list returning multiple matches. No fix or follow-up pull request was submitted.

Update history

Date Change
created

Related work

  • Likely Fixed By: snapcore/snapcraft#2046 (confidence 99%)

    The linked PR was identified as the resolving change and was merged in commit 828ea5120.

Related issues

Issue Project State Summary Similarity
#1641123 snapcraft does not properly detect the architecture when kernel is 64 bits but userspace is 32 snapcraft (launchpad) closed Fixed in snapcore/snapcraft#1089 by deriving the build architecture from the compiler target, preventing 32-bit ARM artifacts from being mislabeled arm64.
73%
#1689712 snapcraft cleanbuild fails in xenial with the lxd deb: KeyError: 'kernel_architecture' snapcraft (launchpad) closed Fixed Xenial cleanbuild compatibility with older LXD metadata in snapcore/snapcraft PR #1305, merged as commit 8f15f697f.
70%