@@ -35,7 +35,6 @@ use nexus_config::NexusConfig;
35
35
use nexus_db_queries:: db:: pub_test_utils:: crdb;
36
36
use nexus_sled_agent_shared:: inventory:: OmicronSledConfig ;
37
37
use nexus_sled_agent_shared:: inventory:: OmicronZoneDataset ;
38
- use nexus_sled_agent_shared:: inventory:: OmicronZonesConfig ;
39
38
use nexus_sled_agent_shared:: recovery_silo:: RecoverySiloConfig ;
40
39
use nexus_test_interface:: NexusServer ;
41
40
use nexus_types:: deployment:: Blueprint ;
@@ -70,8 +69,6 @@ use omicron_common::api::internal::shared::NetworkInterface;
70
69
use omicron_common:: api:: internal:: shared:: NetworkInterfaceKind ;
71
70
use omicron_common:: api:: internal:: shared:: SwitchLocation ;
72
71
use omicron_common:: disk:: CompressionAlgorithm ;
73
- use omicron_common:: disk:: DatasetsConfig ;
74
- use omicron_common:: disk:: OmicronPhysicalDisksConfig ;
75
72
use omicron_common:: zpool_name:: ZpoolName ;
76
73
use omicron_sled_agent:: sim;
77
74
use omicron_test_utils:: dev;
@@ -1089,19 +1086,17 @@ impl<'a, N: NexusServer> ControlPlaneTestContextBuilder<'a, N> {
1089
1086
1090
1087
client
1091
1088
. omicron_config_put ( & OmicronSledConfig {
1089
+ generation : Generation :: new ( ) . next ( ) ,
1092
1090
// Sending no disks or datasets is probably wrong, but there are
1093
1091
// a lot of inconsistencies with this in nexus-test.
1094
- disks_config : OmicronPhysicalDisksConfig :: default ( ) ,
1095
- datasets_config : DatasetsConfig :: default ( ) ,
1096
- zones_config : OmicronZonesConfig {
1097
- zones : self
1098
- . blueprint_zones
1099
- . clone ( )
1100
- . into_iter ( )
1101
- . map ( From :: from)
1102
- . collect ( ) ,
1103
- generation : Generation :: new ( ) . next ( ) ,
1104
- } ,
1092
+ disks : IdMap :: default ( ) ,
1093
+ datasets : IdMap :: default ( ) ,
1094
+ zones : self
1095
+ . blueprint_zones
1096
+ . clone ( )
1097
+ . into_iter ( )
1098
+ . map ( From :: from)
1099
+ . collect ( ) ,
1105
1100
} )
1106
1101
. await
1107
1102
. expect ( "Failed to configure sled agent with our zones" ) ;
@@ -1135,13 +1130,11 @@ impl<'a, N: NexusServer> ControlPlaneTestContextBuilder<'a, N> {
1135
1130
1136
1131
client
1137
1132
. omicron_config_put ( & OmicronSledConfig {
1133
+ generation : Generation :: new ( ) . next ( ) ,
1138
1134
// As above, sending no disks or datasets is probably wrong
1139
- disks_config : OmicronPhysicalDisksConfig :: default ( ) ,
1140
- datasets_config : DatasetsConfig :: default ( ) ,
1141
- zones_config : OmicronZonesConfig {
1142
- zones : vec ! [ ] ,
1143
- generation : Generation :: new ( ) . next ( ) ,
1144
- } ,
1135
+ disks : IdMap :: default ( ) ,
1136
+ datasets : IdMap :: default ( ) ,
1137
+ zones : IdMap :: default ( ) ,
1145
1138
} )
1146
1139
. await
1147
1140
. expect ( "Failed to configure sled agent with our zones" ) ;
0 commit comments