Issues installing LXD
Metadata
Current evaluation
LXD install failed because the hardcoded 5.9/stable snap channel no longer exists. Fixed by PR #7 (commit 937d4f6), which switched the action to latest/stable, later configurable via the lxd-channel input.
Resolution: closed resolved
Reason: Maintainer cjdcordeiro linked the proposed fix in canonical/craft-actions#7; that PR was merged as commit 937d4f6 ("fix: upgrade LXD to an existing channel"), changing the LXD snap channel from the removed 5.9/stable to latest/stable. The channel is now parameterised (tests reference a 5.21/stable lxd-channel input).
Evaluated by: mr-cal-bot
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 |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed resolved | LXD install failed because the hardcoded 5.9/stable snap channel no longer exists. Fixed by PR #7 (commit 937d4f6), which switched the action to latest/stable, later configurable via the lxd-channel input. | |
| stealth/space-bunny-alpha | — | closed resolved | Install failures were fixed by changing LXD from the unavailable 5.9/stable channel to latest/stable. PR #7 was merged in commit 937d4f6. | |
| 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 work
-
Likely Fixed By:
canonical/craft-actions#7
(confidence 97%)
Merged PR titled 'fix: upgrade LXD to an existing channel', commit 937d4f6, referenced by the closing maintainer comment.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #7 fix: upgrade LXD to an existing channel | craft-actions | merged | Merged PR #7 in commit 937d4f6, fixing #6 by switching Rockcraft's LXD channel from unavailable 5.9/stable to latest/stable. |