← Back to issue list

refactor: use pylxd to determine if an instance exists

View original Github issue

Metadata

Project
craft-providers
Number
#874
Type
pull request
State
merged
Author
bepri
Labels
—
Created
Updated
Closed

Current evaluation

Merged PR #874 replaced lxc-based existence checks with pylxd, resolving #856's LXD 6.6 missing-project errors; merged as commit 48bd685.

Resolution: closed resolved

Reason: PR #874 was merged as commit 48bd685 and changed LXDInstance.exists() to use pylxd. Repository history and the closed issue record confirm it fixed #856.

Evaluated by: mr-cal-bot

No scores available.

Issue body

- [x] Have you followed the guidelines for contributing? - [x] Have you signed the [CLA](http://www.ubuntu.com/legal/contributors/)? - [x] Have you successfully run `make lint && make test`? --- Use pylxd to check if an instance exists. This behavior makes Craft Providers agnostic to the current version of LXD (...for this particular operation). Resolves #856. CRAFT-4932.

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed resolved Merged PR #874 replaced lxc-based existence checks with pylxd, resolving #856's LXD 6.6 missing-project errors; merged as commit 48bd685.
qwen/qwen3.6-35b-a3b — closed resolved Merged PR refactored LXDInstance.exists() to use pylxd for instance existence checks, resolving craft-providers#856 where the method could error if the LXD project didn't exist.

Update history

Date Change
created

Related work

  • Related To: craft-providers#856 (confidence 100%)

    PR #874 explicitly resolves this issue, where instance checks could error when the LXD project did not exist.

Related issues

Issue Project State Summary Similarity
#856 LXDInstance.exists() can error if project doesn't exist in LXD 6.6 craft-providers closed Fixed by merged PR canonical/craft-providers#874 (commit 48bd685), which changed LXDInstance.exists() to use pylxd and avoid lxc list failures for nonexistent LXD projects.
79%