← Back to issue list

lxd launcher: add auto_create_project flag (CRAFT-150)

View original Github issue

Metadata

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

Current evaluation

PR #59 by cjp256 merged to main (commit 3d1ab01, feature commit 7c3bc60), adding an auto_create_project flag to the LXD launcher so launch() creates the LXD project if missing or raises LXDError.

Resolution: closed resolved

Reason: The PR was approved by 2 reviewers and merged into main as merge commit 3d1ab01 ("Merge pull request #59 from cjp256/features/lxd-launcher-auto-create"). The feature is present in HEAD: launch() takes auto_create_project (default False) and calls _ensure_project_exists(), and lxd_provider.py passes auto_create_project=True.

Evaluated by: mr-cal-bot

No scores available.

Issue body

Provide a simple toggle to automatically create the specified LXD project if not found. Defaults to False. With this change, always verify the existence of the project before continuing, raising LXDError() if not found. 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 PR #59 by cjp256 merged to main (commit 3d1ab01, feature commit 7c3bc60), adding an auto_create_project flag to the LXD launcher so launch() creates the LXD project if missing or raises LXDError.
qwen/qwen3.6-35b-a3b — closed resolved Merged PR adding auto_create_project flag to LXD launcher to automatically create projects if missing, defaulting to False.

Update history

Date Change
created

Related issues

Issue Project State Summary Similarity
#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.
75%
#357 lxc: recheck when creating project failed craft-providers merged PR #357 (maintainer syu-w, CRAFT-1849) merged into craft-providers main, adding a re-check of LXC project existence after a failed creation to avoid races when concurrent callers create the same project.
72%