lxd: initialize remote lazily
Metadata
Current evaluation
Merged PR #1916 as dd4404843, deferring LXD remote initialization until needed so clean operations no longer probe or start an unnecessary remote.
Resolution: closed resolved
Reason: The approved change was merged in canonical/snapcraft#1916 at commit dd4404843, resolving Launchpad bug #1746009 by making LXD initialization lazy.
Evaluated by: mr-cal-bot
No scores available.
Issue body
- [x] Have you followed the [guidelines for contributing](https://github.com/snapcore/snapcraft/blob/master/CONTRIBUTING.md)?
- [x] Have you signed the [CLA](http://www.ubuntu.com/legal/contributors/)?
- [x] If this is a bugfix. Have you checked that there is a bug report open for the issue you are trying to fix on [bug reports](https://bugs.launchpad.net/snapcraft)?
- [x] If this is a new feature. Have you discussed the design on the [forum](https://forum.snapcraft.io)?
- [x] Have you successfully run `./runtests.sh static`?
- [x] Have you successfully run `./runtests.sh unit`?
-----
Fixes: [LP: #1746009](https://bugs.launchpad.net/snapcraft/+bug/1746009)
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed resolved | Merged PR #1916 as dd4404843, deferring LXD remote initialization until needed so clean operations no longer probe or start an unnecessary remote. | |
| stealth/space-bunny-alpha | — | closed resolved | Merged #1916 as dd4404843, deferring LXD remote initialization until needed and fixing unnecessary remote checks during clean operations (LP #1746009). | |
| qwen/qwen3.6-35b-a3b | — | — | Merged PR lazily initializes the LXD remote, resolving bug LP: #1746009. Approved after passing CI. A reviewer encountered an unrelated traceback during testing, which was noted for separate tracking but did not block the merge. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Merged to resolve LP #1746009 by initializing the LXD remote lazily. Testing in a nested LXD environment uncovered an unrelated traceback, which was directed to a separate bug report. The change was successfully integrated. |
Update history
No update history recorded yet.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #1866 lxd: setup LXD remote for multipass | snapcraft | closed | Closed unmerged; its Multipass/LXD remote setup was replaced by #1916 (commit dd4404843), which reworked remote initialization to occur lazily. | |
| #318 lxd(remotes): fix deprecation warnings | craft-providers | merged | Merged PR #318 corrected the configure_buildd_image_remote deprecation warning so its replacement advice was accurate, resolving #260. | |
| #1516 lxd: LXD not installed when using remote | snapcraft | merged | Merged as commit 5f8b122e4, fixing incorrect lxc installation checks for LXD remotes and completing related test-scenario handling. | |
| #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. |