You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
sled-update-rot 2b8f0cb3-0295-4b3c-bc58-4fe88b57112c --slot-b 1.0.0 --active-slot b --persistent-boot-preference b
131
131
inventory-generate
132
132
blueprint-plan latest latest
133
133
blueprint-diff latest
@@ -175,9 +175,38 @@ inventory-generate
175
175
blueprint-plan latest latest
176
176
blueprint-diff latest
177
177
178
-
# Update the RoT on the last sled.
178
+
# Now let's simulate an RoT update that hasn't completed by setting the persistent
179
+
# boot preference to a different slot than the active one. This should cause the
180
+
# planner to mark it as impossible, and replace it.
181
+
set ignore-impossible-mgs-updates-since now
182
+
sled-update-rot d81c6a84-79b8-4958-ae41-ea46c9b19763 --slot-b 1.0.0 --active-slot a --persistent-boot-preference b
183
+
inventory-generate
184
+
blueprint-plan latest latest
185
+
blueprint-diff latest
186
+
187
+
# An RoT update cannot continue if pending persistent boot preference is set.
188
+
# The slot B is set to a different version so it does not appear to be active
189
+
# and on the correct version, and the corresponding checks are triggered.
190
+
# Like before, this should cause the planner to mark it as impossible, and
191
+
# replace it.
192
+
set ignore-impossible-mgs-updates-since now
193
+
sled-update-rot d81c6a84-79b8-4958-ae41-ea46c9b19763 --slot-b 1.1.0 --active-slot b --persistent-boot-preference b --pending-persistent-boot-preference b
194
+
inventory-generate
195
+
blueprint-plan latest latest
196
+
blueprint-diff latest
197
+
198
+
# We do the same for transient boot preference. Note that we need to set the
199
+
# pending-persistent-boot-preference back to None
200
+
set ignore-impossible-mgs-updates-since now
201
+
sled-update-rot d81c6a84-79b8-4958-ae41-ea46c9b19763 --slot-b 1.1.0 --active-slot b --persistent-boot-preference b --transient-boot-preference b --pending-persistent-boot-preference
202
+
inventory-generate
203
+
blueprint-plan latest latest
204
+
blueprint-diff latest
205
+
206
+
# Update the RoT on the last sled. Note that we need to set the
sled-update-rot dde1c0e2-b10d-4621-b420-f179f7a7a00a --slot-b 6.0.0 --active-slot b
28
+
sled-show dde1c0e2-b10d-4621-b420-f179f7a7a00a
29
+
sled-update-rot dde1c0e2-b10d-4621-b420-f179f7a7a00a --slot-b 6.0.0 --active-slot b --persistent-boot-preference b
30
+
sled-show dde1c0e2-b10d-4621-b420-f179f7a7a00a
31
+
sled-update-rot dde1c0e2-b10d-4621-b420-f179f7a7a00a --slot-b 6.0.0 --active-slot a --persistent-boot-preference a --pending-persistent-boot-preference b --transient-boot-preference a
0 commit comments