Make LXD version check more robust
Metadata
Current evaluation
Merged in PR #810 (commit 99d694c), replacing unstable LXC version parsing with the LXD /1.0 API environment.server_version field.
Resolution: closed resolved
Reason: PR #810 implemented the proposed API-based detection using environment.server_version and was merged as commit 99d694c.
Evaluated by: mr-cal-bot
No scores available.
Issue body
### What needs to get done
If LXD version parsing fails, craft-providers should catch the failure and log a warning.
### Why it needs to get done
LXD recently changed their version naming convention, which broke craft-providers and had to be fixed via #532. This check should be more robust.
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed resolved | Merged in PR #810 (commit 99d694c), replacing unstable LXC version parsing with the LXD /1.0 API environment.server_version field. | |
| qwen/qwen3.6-35b-a3b | — | closed resolved | Fixed in #532 by updating LXD version naming support to handle LTS format changes |
Update history
| Date | Change |
|---|---|
| created |
Related work
-
Likely Fixed By:
canonical/craft-providers#810
(confidence 99%)
Introduced robust LXD server-version detection through the stable LXD API field.
-
Related To:
canonical/craft-providers#532
(confidence 90%)
The earlier naming-format fix motivated the broader robustness improvement.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #810 feat(lxd): more robust version parsing | craft-providers | merged | Merged as 99d694c; PR #810 made LXC/LXD version checks use the API first, fall back to CLI output, and accept unparseable edge versions, fixing #535. | |
| #71 lxd: account for minimum required version in checks (CRAFT-437) | craft-providers | merged | Merged PR #71 updated LXD readiness checks to enforce the minimum required version and revised ensure_lxd_is_ready() error messages (implementation 9fcd49b). | |
| #762 fix: only do LXD compat checks on Ubuntu | craft-providers | merged | Merged PR #762 as commit 789c32e, limiting LXD guest compatibility checks to Ubuntu and fixing Fedora 39 launched_environment failures (#753). | |
| #106 Release 1.1.1 | craft-providers | merged | Published 1.1.1 with an LXD user permission verification fix; PR #106 merged via commit 3ce5f1f. |