← Back to issue list

Use `pylxd` instead of `lxc exec`

View original Github issue

Metadata

Project
snapcraft
Number
#3147
Type
pull request
State
closed
Author
abitrolly
Labels
Created
Updated
Closed

Current evaluation

Abandoned after mocking-related test failures prevented progress. Maintainer closed the pull request as stale, deferring LXD remote handling improvements to future development.

Suggested action:

No scores available.

Issue body

- [ ] 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/)? - [ ] Have you successfully run `./runtests.sh static`? - [ ] Have you successfully run `./runtests.sh tests/unit`? ----- `pylxd` ignores default LXD remote, but `lxc exec` does not. This is untested attempt to remove the todo and fix `--use-lxd` failure if default LXD remote is not local. https://forum.snapcraft.io/t/use-lxd-doesnt-work-with-non-local-remote/17775

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.6-35b-a3b Abandoned after mocking-related test failures prevented progress. Maintainer closed the pull request as stale, deferring LXD remote handling improvements to future development.
qwen3.6-35b-a3b-mtp-q6 Closed as stale without merging. The change attempted to replace lxc exec with pylxd to fix LXD remote handling but failed due to test mocking issues. Maintainers noted future plans for LXD remote support.
qwen3.6-35b-a3b-mtp-q6 Closed as stale after failing tests due to mocking issues. The PR was abandoned rather than merged, with maintainers noting future plans to implement LXD remote functionality.

Update history

No update history recorded yet.

Related issues

Issue Project State Summary Similarity
#904 cleanbuild: use pylxd instead of lxd command line snapcraft closed Closed without merge due to inactivity and Ubuntu Xenial pylxd version incompatibilities. Unresolved test failures and missing dependencies prevented integration, leaving the change abandoned.
74%
#646 Consider switching from using the LXD CLI to pylxd craft-providers open Enhancement to replace LXD CLI with pylxd for faster, more reliable LXD interaction. Partially adopted (commit #874). Decision pending LXD 6.x migration.
74%
#1641520 Use Python API to interact with lxd snapcraft (launchpad) closed Proposal to replace LXD CLI calls with the pylxd Python API in snapcraft was closed without discussion or resolution, indicating the request was abandoned.
70%