From abb9161f9d6d543d69629e2d688733daec22512e Mon Sep 17 00:00:00 2001 From: Feng Zhou Date: Thu, 19 Mar 2026 16:01:40 -0700 Subject: [PATCH] Increase Assigned/HostPlatformConfiguration SLA time limit to 90 minutes This state requires the following operations - power-cycle the host - CheckHostConfig - ConfigureBios & PollingBiosSetup - SetBootOrder Power-cycle the host and SetBootOrder are time-consuming some-times depending on machine configurations. Some machines could take 20min for first try of SetBootOrder operations. --- crates/api-model/src/machine/mod.rs | 3 +++ crates/api-model/src/machine/slas.rs | 3 +++ 2 files changed, 6 insertions(+) diff --git a/crates/api-model/src/machine/mod.rs b/crates/api-model/src/machine/mod.rs index 6be7bc0490..a48fa44925 100644 --- a/crates/api-model/src/machine/mod.rs +++ b/crates/api-model/src/machine/mod.rs @@ -2558,6 +2558,9 @@ pub fn state_sla( // Since retries happen after 30min, the occurence of any retry means we exhausted the SLA StateSla::with_sla(std::time::Duration::ZERO, time_in_state) } + InstanceState::HostPlatformConfiguration { .. } => { + StateSla::with_sla(slas::ASSIGNED_HOST_PLATFORM_CONFIGURATION, time_in_state) + } _ => StateSla::with_sla(slas::ASSIGNED, time_in_state), }, ManagedHostState::WaitingForCleanup { .. } => { diff --git a/crates/api-model/src/machine/slas.rs b/crates/api-model/src/machine/slas.rs index 44a7f009fe..c9f041e8fe 100644 --- a/crates/api-model/src/machine/slas.rs +++ b/crates/api-model/src/machine/slas.rs @@ -46,4 +46,7 @@ pub const BOM_VALIDATION: Duration = Duration::from_secs(5 * 60); // ASSIGNED state, any substate other than Ready and BootingWithDiscoveryImage // Init WaitingForNetworkConfig WaitingForStorageConfig WaitingForRebootToReady SwitchToAdminNetwork WaitingForNetworkReconfig DPUReprovision Failed pub const ASSIGNED: Duration = Duration::from_secs(30 * 60); + +// ASSIGNED state, HostPlatformConfiguration substate +pub const ASSIGNED_HOST_PLATFORM_CONFIGURATION: Duration = Duration::from_secs(90 * 60); pub const VALIDATION: Duration = Duration::from_secs(30 * 60);