File tree 2 files changed +7
-10
lines changed
reconfigurator/planning/src
2 files changed +7
-10
lines changed Original file line number Diff line number Diff line change @@ -1632,6 +1632,7 @@ impl InvOmicronZone {
1632
1632
. filesystem_pool
1633
1633
. map ( |id| ZpoolName :: new_external ( id. into ( ) ) ) ,
1634
1634
zone_type,
1635
+ // FIXME <https://github.com/oxidecomputer/omicron/issues/8084>
1635
1636
image_source : OmicronZoneImageSource :: InstallDataset ,
1636
1637
} )
1637
1638
}
Original file line number Diff line number Diff line change @@ -887,27 +887,23 @@ impl<'a> Planner<'a> {
887
887
. map ( |( id, _details) | id)
888
888
. collect :: < Vec < _ > > ( ) ;
889
889
890
- // Wait for all current zones to become up-to-date.
890
+ // Wait for all current zones to appear in the inventory.
891
+ // It would be nice if we could check their image source,
892
+ // but the inventory doesn't report that correctly: see
893
+ // <https://github.com/oxidecomputer/omicron/issues/8084>.
891
894
let inventory_zones = self
892
895
. inventory
893
896
. all_omicron_zones ( )
894
897
. map ( |z| ( z. id , z) )
895
898
. collect :: < BTreeMap < _ , _ > > ( ) ;
896
899
for sled_id in sleds. iter ( ) . cloned ( ) {
897
- if self
900
+ if ! self
898
901
. blueprint
899
902
. current_sled_zones (
900
903
sled_id,
901
904
BlueprintZoneDisposition :: is_in_service,
902
905
)
903
- . any ( |zone| {
904
- inventory_zones
905
- . get ( & zone. id )
906
- . map ( |z| {
907
- z. image_source != zone. image_source . clone ( ) . into ( )
908
- } )
909
- . unwrap_or ( false )
910
- } )
906
+ . all ( |zone| inventory_zones. contains_key ( & zone. id ) )
911
907
{
912
908
info ! (
913
909
self . log, "zones not yet up-to-date" ;
You can’t perform that action at this time.
0 commit comments