fix: check if lxd snap is installed
Metadata
Current evaluation
Merged #585 via c62b1e2, replacing LXD PATH executable detection with a snapd socket query so auto-installer stubs are handled correctly.
Resolution: closed resolved
Reason: PR #585 was merged as commit c62b1e2. It checks whether the LXD snap is installed through snapd rather than relying on an executable in PATH.
Evaluated by: mr-cal-bot
No scores available.
Issue body
Check if the lxd snap is installed by querying the snapd socket
instead of looking for an executable in the path, as lxd can use
auto-installer stubs.
- [ ] Have you followed the guidelines for contributing?
- [ ] Have you signed the [CLA](http://www.ubuntu.com/legal/contributors/)?
- [ ] Have you successfully run `tox`?
-----
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed resolved | Merged #585 via c62b1e2, replacing LXD PATH executable detection with a snapd socket query so auto-installer stubs are handled correctly. | |
| qwen/qwen3.6-35b-a3b | — | closed resolved | Fixed LXD installation check by querying snapd socket instead of looking for executable in path, merged in #585 via commit c62b1e2 |
Update history
| Date | Change |
|---|---|
| created |
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #777 fix: check lxd availability for non-snap socket path | craft-providers | merged | Merged PR #777 via commit cf501cd, adding /var/lib/lxd/unix.socket as the first LXD permission check while retaining the Snap socket fallback. | |
| #1984 fix(snap): check if LXD is actually installed | charmcraft | merged | Merged PR canonical/charmcraft#1984 (commit 02539ab0) adds early LXD detection to the snap configure/remove hooks so they bail out instead of triggering the lxd-installer snap; fixes #1982. | |
| #4514 fix: install snapd from edge inside build environments | snapcraft | merged | Merged #4514 made component build environments install snapd from edge and refreshed LXD and destructive-mode spread tests. | |
| #2222 lxd: support new style snap injection | snapcraft | merged | Merged in #2222 via commit 8acd203, adding new-style LXD snap handling, removing sudo-based injection, and consolidating duplicated tests. | |
| #3957 tests: retry installing lxd snap | snapcraft | merged | PR #3957 merged as 57cd1d97b, adding snapd-testing-tools retries for LXD installation in spread tests to work around intermittent snapd bug 1870201. |