From bfc070f9e84c50fcd197131a6a1f80184cf00fc8 Mon Sep 17 00:00:00 2001 From: Eliza Weisman Date: Tue, 3 Sep 2024 14:06:40 -0700 Subject: [PATCH] go back to defaulting to `never` --- nexus/db-model/src/instance_auto_restart.rs | 2 +- schema/crdb/turn-boot-on-fault-into-auto-restart/up03.sql | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/nexus/db-model/src/instance_auto_restart.rs b/nexus/db-model/src/instance_auto_restart.rs index 1501445595..5ffb4538f8 100644 --- a/nexus/db-model/src/instance_auto_restart.rs +++ b/nexus/db-model/src/instance_auto_restart.rs @@ -34,7 +34,7 @@ impl InstanceAutoRestart { impl Default for InstanceAutoRestart { fn default() -> Self { - Self::SledFailuresOnly + Self::Never } } diff --git a/schema/crdb/turn-boot-on-fault-into-auto-restart/up03.sql b/schema/crdb/turn-boot-on-fault-into-auto-restart/up03.sql index c101e0d715..98a17781a4 100644 --- a/schema/crdb/turn-boot-on-fault-into-auto-restart/up03.sql +++ b/schema/crdb/turn-boot-on-fault-into-auto-restart/up03.sql @@ -1,5 +1,5 @@ SET LOCAL disallow_full_table_scans = off; UPDATE omicron.public.instance SET auto_restart_policy = CASE WHEN boot_on_fault = true THEN 'all_failures' - ELSE 'sled_failures_only' + ELSE 'never' END;