← Back to issue list

Charmcraft pack on Apple Silicon fails

View original Github issue

Metadata

Project
charmcraft
Number
#796
Type
issue
State
closed
Author
VariableDeclared
Labels
—
Created
Updated
Closed

Current evaluation

Pack failed on Apple Silicon because Multipass 1.9.1 could not find the 20.04 image; maintainer closed it as not a Charmcraft bug, fixed by updating to Multipass 1.9.2.

Resolution: closed not a bug

Reason: facundobatista traced the failure to Multipass 1.9.1 failing to resolve the "snapcraft:20.04" image and closed the issue on 2022-07-01 as unrelated to Charmcraft, stating it is solved in Multipass 1.9.2.

Evaluated by: mr-cal-bot

No scores available.

Issue body

Hi Charmcraft team, [Steps to reproduce] 1. Install charmcraft via homebrew 2. Install multipass 3. run `charmcraft pack` The following error is thrown: ``` ➜ charm-openidc-test-fixture git:(main) charmcraft pack Failed to launch VM 'charmcraft-charm-openidc-test-fixture-26152800-0-0-arm64'.res=['arm64'] (may take a while the first time but it's reusable) * Command that failed: 'multipass launch snapcraft:20.04 --name charmcraft-charm-openidc-test-fixture-26152800-0-0-arm64 --cpus 2 --mem 2G --disk 64G' * Command exit code: 2 * Command output: b'\r \r\r \r' * Command standard error output: b'launch failed: Unable to find an image matching "20.04". Please use `multipass find` for supported remotes and images.\n' ``` Log attached: [charmcraft-20220628-092203.976852.log](https://github.com/canonical/charmcraft/files/8999126/charmcraft-20220628-092203.976852.log) [Workaround] I appreciate this is a bit of an edge case, and the workaround here is to run an x64 VM somewhere and use that, as far as I can tell, Thanks! Peter

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed not a bug Pack failed on Apple Silicon because Multipass 1.9.1 could not find the 20.04 image; maintainer closed it as not a Charmcraft bug, fixed by updating to Multipass 1.9.2.
stealth/space-bunny-alpha — closed not a bug Closed as not a Charmcraft bug: facundobatista traced the Apple Silicon launch failure to Multipass 1.9.1 not finding the 20.04 image; fixed by upgrading to Multipass 1.9.2. No charmcraft code change.
stealth/space-bunny-alpha — closed not a bug Resolved outside Charmcraft: Multipass 1.9.1 failed to find the Ubuntu 20.04 image on Apple Silicon; updating to Multipass 1.9.2 fixed it.
qwen3.6-35b-a3b-mtp-q6 — — Charmcraft pack failed on Apple Silicon because Multipass could not locate the Ubuntu 20.04 image. The root cause was a Multipass bug fixed in version 1.9.2. The report was closed as an external dependency issue, not a Charmcraft defect.
qwen/qwen3.6-35b-a3b — — Closed as not a charmcraft issue. The Apple Silicon failure was caused by Multipass 1.9.1 failing to locate the Ubuntu 20.04 image. Resolved by upgrading Multipass to version 1.9.2. Updating Multipass fixes the problem.
qwen3.6-35b-a3b-mtp-q6 — — Apple Silicon charmcraft pack failed due to Multipass failing to locate the Ubuntu 20.04 image. Maintainers identified this as a Multipass bug fixed in version 1.9.2. The report was closed as external to charmcraft; updating Multipass resolves the failure.

Update history

No update history recorded yet.

Related work

  • Related To: canonical/charmcraft#718 (confidence 70%)

    Earlier merged fix (PR #718, commit 3e94133d/c929f310) corrected the Multipass image remote used for launching build VMs, addressing the same class of launch failure.

  • Related To: canonical/charmcraft#708 (confidence 45%)

    Related macOS pack fix closed in favour of #718; same Multipass VM launch area but not the direct resolution for this arm64 report.

Related issues

Issue Project State Summary Similarity
#708 fix "charmcraft pack" on macOS charmcraft closed Closed in favor of #718, which corrected the Multipass image remote and fixed macOS packing; merged as 3e94133d (implementation c929f310).
74%
#1917 Charmcraft cannot parse a dev version build for multipass charmcraft open Charmcraft pack fails on dev multipass versions like 1.15.0-dev.2929.pr661 due to invalid version parsing in craft-providers; fixed upstream and current charmcraft dependency includes the fix.
71%