← Back to issue list

Issues installing LXD

View original Github issue

Metadata

Project
craft-actions
Number
#6
Type
issue
State
closed
Author
saltiyazan
Labels
Created
Updated
Closed

Current evaluation

Fixed by switching the LXD snap channel from 5.9/stable to a valid release track. Resolution merged in canonical/craft-actions#7.

Suggested action:

No scores available.

Issue body

Hello team, This action installs `lxd` when installing `Rockcraft` dependencies. I see in the code that it's trying to install `lxd` version `5.9/stable` ``` // Install a specific version of LXD that we know works well with Rockcraft const haveSnapLXD = await haveExecutable('/snap/bin/lxd') core.info('Installing LXD...') await exec.exec('sudo', [ 'snap', haveSnapLXD ? 'refresh' : 'install', 'lxd', '--channel', '5.9/stable' ]) ``` However I'm getting the following error when using this action in our ci: ``` Installing Rockcraft plus dependencies Ensuring runner is in the lxd group... /usr/bin/sudo groupadd --force --system lxd /usr/bin/sudo usermod --append --groups lxd runner Installing LXD... /usr/bin/sudo snap refresh lxd --channel 5.[9](https://github.com/canonical/magma-nms-magmalte-rock/actions/runs/4544227705/jobs/8013031187?pr=2#step:3:10)/stable error: snap "lxd" is not available on 5.9/stable but is available to install on the following channels: 5.9/candidate snap refresh --channel=5.9/candidate lxd 5.9/beta snap refresh --channel=5.9/beta lxd 5.9/edge snap refresh --channel=5.9/edge lxd Please be mindful pre-release channels may include features not completely tested or implemented. Get more information with 'snap info lxd'. Error: The process '/usr/bin/sudo' failed with exit code 1 ``` I tried to install that specific version of `lxd` manually and I got the same error.

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.6-35b-a3b Fixed by switching the LXD snap channel from 5.9/stable to a valid release track. Resolution merged in canonical/craft-actions#7.
qwen/qwen3.6-35b-a3b A reported failure installing LXD via the unavailable 5.9/stable snap channel was closed. The problem was resolved by a fix in craft-actions#7, which updates the channel reference to restore successful CI deployments.
qwen/qwen3.6-35b-a3b LXD installation fails due to the unavailable 5.9/stable channel. Fixed by updating the channel reference in canonical/craft-actions via PR #7, which merged the change and resolved the CI error.
qwen3.6-35b-a3b-mtp-q6 Fixed in canonical/craft-actions pull request 7 by updating the LXD snap channel from 5.9/stable to an available release, resolving the CI installation failure.

Update history

No update history recorded yet.

Related issues

Issue Project State Summary Similarity
#7 fix: upgrade LXD to an existing channel craft-actions merged Merged following approval and CI checks. Updated the rockcraft action to use the latest/stable LXD channel, replacing the unavailable 5.9/stable version to align with upstream Rockcraft.
73%
#27 fix: use lxd from "5.21/stable" craft-actions merged Merged a fix switching the LXD channel from latest/stable to 5.21/stable. This resolves Rockcraft overlay compatibility issues and aligns with the recommended LTS release. Approved by two reviewers with a three-file change.
72%
#1984 fix(snap): check if LXD is actually installed charmcraft merged Merged fix updating configure and remove hooks to verify LXD installation before proceeding. Prevents unwanted LXD snap installations on Ubuntu that cause delays. Approved by two reviewers, passed CI, and resolves #1982.
71%