Skip to content

Commit 884f2c2

Browse files
authored
[mgs-updates] RotCommunicationFailed should be transient (#8930)
Closes: #8886
1 parent a8524a3 commit 884f2c2

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

nexus/mgs-updates/src/driver_update.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -727,6 +727,7 @@ async fn wait_for_update_done(
727727
// * non-empty transient_boot_preference (RoT only)
728728
// * failure to fetch inventory from sled-agent (host OS only)
729729
// * failure to determine an active slot artifact
730+
// * failure to communicate with the RoT
730731
//
731732
// We have no reason to think these won't converge, so we proceed
732733
// with waiting.
@@ -742,6 +743,7 @@ async fn wait_for_update_done(
742743
| Err(PrecheckError::MismatchedHostOsActiveSlot { .. })
743744
| Err(PrecheckError::DeterminingActiveArtifact { .. })
744745
| Err(PrecheckError::DeterminingHostOsBootDisk { .. })
746+
| Err(PrecheckError::RotCommunicationFailed { .. })
745747
| Ok(PrecheckStatus::ReadyForUpdate) => {
746748
if before.elapsed() >= timeout {
747749
return Err(UpdateWaitError::Timeout(timeout));
@@ -756,8 +758,7 @@ async fn wait_for_update_done(
756758
| PrecheckError::WrongActiveVersion { .. }
757759
| PrecheckError::WrongActiveArtifact { .. }
758760
| PrecheckError::WrongHostOsBootDisk { .. }
759-
| PrecheckError::InvalidHostPhase1Slot { .. }
760-
| PrecheckError::RotCommunicationFailed { .. }),
761+
| PrecheckError::InvalidHostPhase1Slot { .. }),
761762
) => {
762763
// Stop trying to make this update happen. It's not going to
763764
// happen.

0 commit comments

Comments
 (0)