lxd: check if LXD is initialized prior to launch (CRAFT-348)
Metadata
Current evaluation
Merged LXD initialization preflight validation for CRAFT-348, adding is_initialized(), launch-time LXDError handling, and unit/integration tests in commit b00bea0.
Resolution: closed resolved
Reason: PR #63 was merged as commit b00bea0, with implementation commit a6b11b5. It verifies the default LXD profile before launch and raises an LXDError when LXD is not properly initialized.
Evaluated by: mr-cal-bot
No scores available.
Issue body
- Add is_initialized() method to installer module to check.
- Run this check when attempting to launch instance, raising an
LXDError on failure.
- Add unit and integration test coverage.
Signed-off-by: Chris Patterson <chris.patterson@canonical.com>
- [ ] Have you signed the [CLA](http://www.ubuntu.com/legal/contributors/)?
-----
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed resolved | Merged LXD initialization preflight validation for CRAFT-348, adding is_initialized(), launch-time LXDError handling, and unit/integration tests in commit b00bea0. | |
| qwen/qwen3.6-35b-a3b | — | closed resolved | Merged PR adding `is_initialized()` check to LXD installer to raise `LXDError` if LXD is not initialized (CRAFT-348). |
Update history
| Date | Change |
|---|---|
| created |
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #474 charmcraft: perform LXD checks before use (CRAFT-420) | charmcraft | merged | Merged #474: added ensure_lxd_is_ready() before LXD use, including permission validation and clearer errors. Merge commit: 1dfb54b1. | |
| #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). | |
| #590 Improve the LXD init experience | rockcraft | open | Rockcraft should check if LXD is properly installed and configured before pack fails with cryptic messages. Core functionality implemented in craft-providers via is_initialized(). | |
| #69 lxd: ensure user is permitted to use lxd (CRAFT-374) | craft-providers | merged | Merged PR #69 added LXD permission and readiness checks, resolving CRAFT-374 in commit 5478f63. | |
| #57 lxd launcher: enable configuration of project & remote (CRAFT-304) | craft-providers | merged | Merged PR #57 added configurable LXD project and remote support, with updated unit tests and new integration coverage; implemented in commit b420280. |