Skip to content

Commit 4d5b5be

Browse files
committed
minor fixes
1 parent 75dffec commit 4d5b5be

File tree

7 files changed

+13
-12
lines changed

7 files changed

+13
-12
lines changed

nexus/db-model/src/deployment.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1220,7 +1220,6 @@ impl TryFrom<DbBpZoneImageSourceColumns> for BlueprintZoneImageSource {
12201220

12211221
#[derive(Queryable, Clone, Debug, Selectable, Insertable)]
12221222
#[diesel(table_name = bp_single_measurements)]
1223-
//#[diesel(check_for_backend(diesel::pg::Pg))]
12241223
pub struct BpSingleMeasurement {
12251224
pub blueprint_id: DbTypedUuid<BlueprintKind>,
12261225
pub sled_id: DbTypedUuid<SledKind>,

nexus/reconfigurator/planning/src/blueprint_builder/builder.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2294,6 +2294,7 @@ impl EnsureMupdateOverrideAction {
22942294
let zones_desc = zones_desc(zones);
22952295
let host_phase_2_desc =
22962296
host_phase_2_to_current_contents_desc(prev_host_phase_2);
2297+
22972298
info!(
22982299
log,
22992300
"blueprint mupdate override updated to match inventory";

nexus/types/src/deployment.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1619,9 +1619,8 @@ pub enum BlueprintMeasurementSetDesiredContents {
16191619
/// MUPdate. The image used here can vary by sled and even over time (if the
16201620
/// sled gets MUPdated again).
16211621
///
1622-
/// Historically, this was the only source for zone images. In an system
1623-
/// with automated control-plane-driven update we expect to only use this
1624-
/// variant in emergencies where the system had to be recovered via MUPdate.
1622+
/// We expect this to only be used for first install and in emergency
1623+
/// MUPdate recovery.
16251624
InstallDataset,
16261625

16271626
/// This measurement source is the artifact matching this hash from the TUF

sled-agent/types/versions/src/impls/inventory.rs

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,10 @@ use crate::latest::inventory::{
2323
HostPhase2DesiredContents, HostPhase2DesiredSlots, ManifestBootInventory,
2424
ManifestInventory, ManifestNonBootInventory, MupdateOverrideBootInventory,
2525
MupdateOverrideInventory, MupdateOverrideNonBootInventory,
26-
OmicronSledConfig, OmicronZoneConfig, OmicronZoneImageSource,
27-
OmicronZoneType, OmicronZonesConfig,
26+
OmicronMeasurements, OmicronSledConfig, OmicronZoneConfig,
27+
OmicronZoneImageSource, OmicronZoneType, OmicronZonesConfig,
2828
RemoveMupdateOverrideBootSuccessInventory, RemoveMupdateOverrideInventory,
2929
ZoneArtifactInventory, ZoneImageResolverInventory, ZoneKind,
30-
OmicronMeasurements,
3130
};
3231

3332
impl ZoneKind {
@@ -591,8 +590,11 @@ pub struct ZoneImageResolverInventoryDisplay<'a> {
591590

592591
impl fmt::Display for ZoneImageResolverInventoryDisplay<'_> {
593592
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
594-
let ZoneImageResolverInventory { zone_manifest, measurement_manifest, mupdate_override } =
595-
self.inner;
593+
let ZoneImageResolverInventory {
594+
zone_manifest,
595+
measurement_manifest,
596+
mupdate_override,
597+
} = self.inner;
596598
writeln!(f, "zone manifest:")?;
597599
let mut indented = IndentWriter::new(" ", f);
598600
write!(indented, "{}", zone_manifest.display())?;

sled-agent/types/versions/src/initial/inventory.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -276,6 +276,7 @@ pub struct ZoneImageResolverInventory {
276276
/// The zone manifest status.
277277
pub zone_manifest: ManifestInventory,
278278

279+
/// The mupdate override status.
279280
pub mupdate_override: MupdateOverrideInventory,
280281
}
281282

sled-agent/types/versions/src/latest.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ pub mod inventory {
124124
pub use crate::impls::inventory::MupdateOverrideInventoryDisplay;
125125
pub use crate::impls::inventory::MupdateOverrideNonBootInventoryDisplay;
126126
pub use crate::impls::inventory::ZoneArtifactInventoryDisplay;
127-
pub use crate::impls::inventory::ZoneImageResolverInventoryDisplay;
127+
pub use crate::impls::inventory::ZoneImageResolverInventoryDisplay;
128128
}
129129

130130
pub mod probes {

sled-agent/types/versions/src/measurements/inventory.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,7 @@ use crate::v1::inventory::{
2727
BootPartitionContents, ConfigReconcilerInventoryResult,
2828
HostPhase2DesiredSlots, InventoryDataset, InventoryDisk, InventoryZpool,
2929
ManifestInventory, MupdateOverrideInventory, OrphanedDataset,
30-
RemoveMupdateOverrideInventory,
31-
SledRole,
30+
RemoveMupdateOverrideInventory, SledRole,
3231
};
3332
use crate::v10;
3433
use crate::v11;

0 commit comments

Comments
 (0)