Skip to content

Fix Incus start state race - #49

Merged
lukebuehler merged 2 commits into
mainfrom
fix/incus-start-state-race
Aug 15, 2026
Merged

Fix Incus start state race#49
lukebuehler merged 2 commits into
mainfrom
fix/incus-start-state-race

Conversation

@lukebuehler

Copy link
Copy Markdown
Contributor

Fixes a production-discovered lifecycle race where Incus can briefly return Stopped immediately after accepting an asynchronous VM start. The provider now keeps the target in Starting until a later observation reports the real state, preventing Lightspeed from prematurely finalizing a newly created environment as offline.

Tests:

  • cargo fmt --check
  • cargo test -p environment-provider-incus
  • cargo clippy -p environment-provider-incus --all-targets -- -D warnings
  • production acceptance will be repeated against hz01/hz02 with the patched candidate

@lukebuehler
lukebuehler marked this pull request as ready for review August 15, 2026 18:56
@lukebuehler
lukebuehler merged commit a08da96 into main Aug 15, 2026
4 checks passed
@lukebuehler
lukebuehler deleted the fix/incus-start-state-race branch August 15, 2026 18:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant