Skip to content

Commit a5cb368

Browse files
committed
fix(server): treat podman created state as provisioning
1 parent c1ee121 commit a5cb368

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

  • crates/openshell-server/src/compute

crates/openshell-server/src/compute/mod.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1624,6 +1624,7 @@ fn is_terminal_failure_reason(reason: &str) -> bool {
16241624
"dependenciesnotready",
16251625
"starting",
16261626
"containerstarting",
1627+
"containercreated",
16271628
"healthcheckstarting",
16281629
"inspectfailed",
16291630
];
@@ -2006,6 +2007,10 @@ mod tests {
20062007
),
20072008
("dependenciesnotready", "lowercase also works"),
20082009
("Starting", "VM is starting"),
2010+
(
2011+
"ContainerCreated",
2012+
"Podman created the container before starting it",
2013+
),
20092014
];
20102015

20112016
for (reason, message) in transient_cases {
@@ -2043,6 +2048,10 @@ mod tests {
20432048
"Pod exists with phase: Pending; Service Exists",
20442049
),
20452050
("Starting", "VM is starting"),
2051+
(
2052+
"ContainerCreated",
2053+
"Container exists but has not started yet",
2054+
),
20462055
];
20472056

20482057
for (reason, message) in transient_conditions {

0 commit comments

Comments
 (0)