Workspace is considered as STOPPED if start interruption is not implemented #9354
Labels
kind/bug
Outline of a bug - must adhere to the bug report template.
lifecycle/stale
Denotes an issue or PR has remained open with no activity and has become stale.
severity/P2
Has a minor but important impact to the usage or development of the system.
status/open-for-dev
An issue has had its specification reviewed and confirmed. Waiting for an engineer to take it.
Description
Workspace SPI is designed to allow InternalRuntime doesn't support start interruption.
In this case, it should be possible to stop only
RUNNING
workspaces.But if start interruption is not supported by Infrastructure then the following scenario happens:
Initial state: Workspace status is
STARTING
, runtime start is in progress.InternalRuntime
throws an exception because it isSTARTING
and doesn't support start interruption.STOPPED
and removeInternalRuntime
from memory storage.As result, a runtime is still STARTING (and runtime related operation is performing like image pulling, containers starting, etc.). At the same time, the workspace is considered as STOPPED by Workspace API, and it is allowed to start workspace again.
Reproduction Steps
OS and version:
Diagnostics:
The text was updated successfully, but these errors were encountered: