← Back to issue list

Make LXD version check more robust

View original Github issue

Metadata

Project
craft-providers
Number
#535
Type
issue
State
closed
Author
mr-cal
Labels
Type: Enhancement Status: Triaged
Created
Updated
Closed

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

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.
78%
#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).
71%
#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).
71%
#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.
70%