lxc: recheck when creating project failed
Metadata
Current evaluation
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.
Resolution: closed resolved
Reason: The PR was approved and merged, landing as commits 3b7345d/81a5a34 ("lxc: recheck when creating project failed (#357)"); the logic sits in craft_providers/lxd/launcher.py's _ensure_project_exists helper, which retries project existence verification on failure.
Evaluated by: mr-cal-bot
No scores available.
Issue body
To avoid race when multiple caller try to create same project.
CRAFT-1849
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed resolved | 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. | |
| qwen/qwen3.6-35b-a3b | — | closed resolved | Merged PR #357 in craft-providers to recheck LXC project creation on failure, avoiding race conditions when multiple callers attempt to create the same project (CRAFT-1849). |
Update history
| Date | Change |
|---|---|
| created |
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #341 lxd: race condition when running multiple instances of craft-providers | craft-providers | closed | Fixed by merged PR #357, which rechecks LXC project existence after creation fails, preventing concurrent project-creation races (CRAFT-1849). | |
| #59 lxd launcher: add auto_create_project flag (CRAFT-150) | craft-providers | merged | 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. |