File tree Expand file tree Collapse file tree 5 files changed +28
-3
lines changed
dev-tools/reconfigurator-cli/tests/output
reconfigurator/planning/src Expand file tree Collapse file tree 5 files changed +28
-3
lines changed Original file line number Diff line number Diff line change @@ -2186,6 +2186,7 @@ planning report:
2186
2186
* noop converting host phase 2 slot B to Artifact on sled 98e6b7c2-2efa-41ca-b20a-0a4d61102fe6
2187
2187
* noop converting host phase 2 slot B to Artifact on sled d81c6a84-79b8-4958-ae41-ea46c9b19763
2188
2188
* only placed 0/1 desired nexus zones
2189
+ * zone updates waiting on zone propagation to inventory
2189
2190
* waiting to update top-level nexus_generation: some non-Nexus zone are not yet updated
2190
2191
2191
2192
Original file line number Diff line number Diff line change @@ -3237,6 +3237,7 @@ planning report:
3237
3237
* waiting for NTP zones to appear in inventory on sleds: 2b8f0cb3-0295-4b3c-bc58-4fe88b57112c
3238
3238
* sleds getting NTP zones and which have other services already, making them eligible for discretionary zones: 2b8f0cb3-0295-4b3c-bc58-4fe88b57112c
3239
3239
* missing NTP zone on sled 2b8f0cb3-0295-4b3c-bc58-4fe88b57112c
3240
+ * zone updates waiting on zone propagation to inventory
3240
3241
* waiting to update top-level nexus_generation: some non-Nexus zone are not yet updated
3241
3242
3242
3243
@@ -5327,6 +5328,7 @@ planning report:
5327
5328
* waiting for NTP zones to appear in inventory on sleds: 98e6b7c2-2efa-41ca-b20a-0a4d61102fe6
5328
5329
* sleds getting NTP zones and which have other services already, making them eligible for discretionary zones: 98e6b7c2-2efa-41ca-b20a-0a4d61102fe6
5329
5330
* missing NTP zone on sled 98e6b7c2-2efa-41ca-b20a-0a4d61102fe6
5331
+ * zone updates waiting on zone propagation to inventory
5330
5332
* waiting to update top-level nexus_generation: some non-Nexus zone are not yet updated
5331
5333
5332
5334
@@ -7092,6 +7094,7 @@ planning report:
7092
7094
* waiting for NTP zones to appear in inventory on sleds: d81c6a84-79b8-4958-ae41-ea46c9b19763
7093
7095
* sleds getting NTP zones and which have other services already, making them eligible for discretionary zones: d81c6a84-79b8-4958-ae41-ea46c9b19763
7094
7096
* missing NTP zone on sled d81c6a84-79b8-4958-ae41-ea46c9b19763
7097
+ * zone updates waiting on zone propagation to inventory
7095
7098
* waiting to update top-level nexus_generation: some non-Nexus zone are not yet updated
7096
7099
7097
7100
Original file line number Diff line number Diff line change @@ -1545,18 +1545,20 @@ impl<'a> Planner<'a> {
1545
1545
& mut self ,
1546
1546
mgs_updates : & PlanningMgsUpdatesStepReport ,
1547
1547
) -> Result < PlanningZoneUpdatesStepReport , Error > {
1548
- let mut report = PlanningZoneUpdatesStepReport :: new ( ) ;
1549
-
1550
1548
let zones_currently_updating =
1551
1549
self . get_zones_not_yet_propagated_to_inventory ( ) ;
1552
1550
if !zones_currently_updating. is_empty ( ) {
1553
1551
info ! (
1554
1552
self . log, "some zones not yet up-to-date" ;
1555
1553
"zones_currently_updating" => ?zones_currently_updating,
1556
1554
) ;
1557
- return Ok ( report) ;
1555
+ return Ok ( PlanningZoneUpdatesStepReport :: waiting_on (
1556
+ ZoneUpdatesWaitingOn :: InventoryPropagation ,
1557
+ ) ) ;
1558
1558
}
1559
1559
1560
+ let mut report = PlanningZoneUpdatesStepReport :: new ( ) ;
1561
+
1560
1562
// Find the zones with out-of-date images
1561
1563
let out_of_date_zones = self . get_out_of_date_zones ( ) ;
1562
1564
for ( sled_id, zone, desired_image) in out_of_date_zones. iter ( ) {
Original file line number Diff line number Diff line change @@ -1023,6 +1023,9 @@ pub enum ZoneUpdatesWaitingOn {
1023
1023
/// Waiting on discretionary zone placement.
1024
1024
DiscretionaryZones ,
1025
1025
1026
+ /// Waiting on zones to propagate to inventory.
1027
+ InventoryPropagation ,
1028
+
1026
1029
/// Waiting on updates to RoT / SP / Host OS / etc.
1027
1030
PendingMgsUpdates ,
1028
1031
@@ -1034,6 +1037,7 @@ impl ZoneUpdatesWaitingOn {
1034
1037
pub fn as_str ( & self ) -> & ' static str {
1035
1038
match self {
1036
1039
Self :: DiscretionaryZones => "discretionary zones" ,
1040
+ Self :: InventoryPropagation => "zone propagation to inventory" ,
1037
1041
Self :: PendingMgsUpdates => {
1038
1042
"pending MGS updates (RoT / SP / Host OS / etc.)"
1039
1043
}
Original file line number Diff line number Diff line change 6013
6013
" type"
6014
6014
]
6015
6015
},
6016
+ {
6017
+ "description" : " Waiting on zones to propagate to inventory." ,
6018
+ "type" : " object" ,
6019
+ "properties" : {
6020
+ "type" : {
6021
+ "type" : " string" ,
6022
+ "enum" : [
6023
+ " inventory_propagation"
6024
+ ]
6025
+ }
6026
+ },
6027
+ "required" : [
6028
+ " type"
6029
+ ]
6030
+ },
6016
6031
{
6017
6032
"description" : " Waiting on updates to RoT / SP / Host OS / etc." ,
6018
6033
"type" : " object" ,
You can’t perform that action at this time.
0 commit comments