fix(region): allow stopping the container in probe_failed status (#22873)

This commit is contained in:
Zexi Li
2025-07-11 10:42:07 +08:00
committed by GitHub
parent 967d52f874
commit 598f68a7e9
+1
View File
@@ -630,6 +630,7 @@ func (c *SContainer) PerformStop(ctx context.Context, userCred mcclient.TokenCre
if !sets.NewString(
api.CONTAINER_STATUS_RUNNING,
api.CONTAINER_STATUS_PROBING,
api.CONTAINER_STATUS_PROBE_FAILED,
api.CONTAINER_STATUS_STOP_FAILED).Has(c.Status) {
return nil, httperrors.NewInvalidStatusError("Can't stop container in status %s", c.Status)
}