Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[reconfigurator] Planner: Don't omit expunged sleds from blueprint_datasets #7613

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jgallagher
Copy link
Contributor

This removes the last "for backwards compatibility..." bit from BlueprintBuilder::build() where we potentially drop entries from one of the four blueprint maps. The code changes are small:

  • Remove the backcompat code
  • Fixup some tests
  • Address some todos in blippy related to this backcompat implementation (blippy was only checking maps conditional on other maps; now it always checks all of them)

and the bulk of the diffs are expectorate changes.

assert_eq!(summary.sleds_modified.len(), 4);
assert_eq!(summary.sleds_unchanged.len(), 1);
assert_eq!(summary.sleds_modified.len(), 3);
assert_eq!(summary.sleds_unchanged.len(), 2);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe this test was "wrong" (in that a sled was showing up as modified only because we were dropping its datasets): The sled that moved from modified to unchanged is sled 68d24ac5-f341-49ea-a92a-0381b52ab387 in nexus/reconfigurator/planning/tests/output/planner_nonprovisionable_1_2.txt. The changes in the diff prior to this PR are exclusively "all the datasets were removed"; now that that isn't happening, the sled is unchanged.

Copy link
Contributor

@andrewjstone andrewjstone left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So happy to get rid of this wart.

kind: SledKind::MultimapInconsistency(
MultimapInconsistency::PresentInZonesNotDisks,
MultimapInconsistency::PresentInZonesNotDatasets,
),
},
},
Note {
severity: Severity::BackwardsCompatibility,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this still remain a BackwardsCompatibility severity, now that it's actually incorrect to have this inconsistency? Are we keeping it purely for older blueprints?

@@ -95,6 +95,95 @@ to: blueprint 9f71f5d3-a272-4382-9154-6ea2e171a6c6
nexus 88602518-f176-49a1-af12-02fac36214c3 in service fd00:1122:3344:105::22


sled 68d24ac5-f341-49ea-a92a-0381b52ab387 (decommissioned):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think there's anything that needs changing in this PR, but this test drives me a bit nuts. Output that shows a decommissioned sled and in-service disks and datasets really makes no sense. Perhaps we should consider simplifying or removing this test in the future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants