Skip to content

[mgs] PendingMgsUpdate type to have a variant for the RoT #8054

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

Merged
merged 7 commits into from
May 13, 2025

Conversation

karencfv
Copy link
Contributor

@karencfv karencfv commented Apr 28, 2025

Implements the first step of updating the PendingMgsUpdate type to have a variant for the RoT. This lays out the foundation for the work in #7989

@karencfv karencfv changed the title [mgs] information about RoT updates [mgs] Information about RoT updates Apr 28, 2025
Comment on lines +204 to +224
fn precheck<'a>(
&'a self,
_log: &'a slog::Logger,
_mgs_clients: &'a mut MgsClients,
_update: &'a PendingMgsUpdate,
) -> BoxFuture<'a, Result<PrecheckStatus, PrecheckError>> {
// TODO-K: fill in the precheck
todo!()
}

/// Attempts once to perform any post-update actions (e.g., reset the
/// device)
fn post_update<'a>(
&'a self,
_log: &'a slog::Logger,
_mgs_clients: &'a mut MgsClients,
_update: &'a PendingMgsUpdate,
) -> BoxFuture<'a, Result<(), GatewayClientError>> {
// TODO-K: fill in the post_update
todo!()
}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

These will be completed in a follow up PR (step two of #7989)

@karencfv karencfv marked this pull request as ready for review May 5, 2025 07:35
@karencfv karencfv requested a review from davepacheco May 5, 2025 07:35
@karencfv karencfv changed the title [mgs] Information about RoT updates [mgs] PendingMgsUpdate type to have a variant for the RoT May 5, 2025
@karencfv karencfv requested review from lzrd and jgallagher May 12, 2025 09:38
@karencfv
Copy link
Contributor Author

@jgallagher, @lzrd adding either of you as reviewers since Dave will be out for a bit :)

@lzrd
Copy link
Contributor

lzrd commented May 12, 2025

You are only covering RoT Hubris here, which is fine. I assume that RoT stage0 will be in later PRs.

@lzrd
Copy link
Contributor

lzrd commented May 12, 2025

There should be some provision for ordering of updates. Stage0, then RoT Hubris, then SP Hubris. Also the restriction that only one RoT stage0 activation is in progress in the entire rack at a time.
These constraints will be in later PRs but do you need to carry any of the supporting information in these structures at this time? (probably not).

Copy link
Contributor

@jgallagher jgallagher left a comment

Choose a reason for hiding this comment

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

There should be some provision for ordering of updates. Stage0, then RoT Hubris, then SP Hubris. Also the restriction that only one RoT stage0 activation is in progress in the entire rack at a time.
These constraints will be in later PRs but do you need to carry any of the supporting information in these structures at this time? (probably not).

I think all of this is the responsibility of the planner; this work is about how to execute an update once the planner has decided it should happen.

@karencfv
Copy link
Contributor Author

Thanks for taking a look both! I think I've addressed all comments.

You are only covering RoT Hubris here, which is fine. I assume that RoT stage0 will be in later PRs.

Yep! only RoT for now

Copy link
Contributor

@jgallagher jgallagher left a comment

Choose a reason for hiding this comment

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

Thanks! Just a couple tiny renaming nits.

@karencfv karencfv enabled auto-merge (squash) May 13, 2025 20:40
@karencfv karencfv merged commit 0be1731 into oxidecomputer:main May 13, 2025
18 checks passed
@karencfv karencfv deleted the mgs-update-driver-rot-types branch May 13, 2025 22:27
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.

4 participants