Introduce sled-agent-scrimlet-reconcilers crate#10313
Open
jgallagher wants to merge 7 commits intomainfrom
Open
Introduce sled-agent-scrimlet-reconcilers crate#10313jgallagher wants to merge 7 commits intomainfrom
sled-agent-scrimlet-reconcilers crate#10313jgallagher wants to merge 7 commits intomainfrom
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This is groundwork for #10167, and introduces the skeleton of network config reconcilers for use within sled-agent. None of this is wired up yet and all the service-specific reconcilers are placeholders, but it does have the real setup for how these tasks get started and how they report status.
The PR is pretty big but hopefully not too bad to review; more than half the code falls into either "tests", "status type definitions", or "placeholder/dummy reconcilers". A tentative suggestion for review order is:
lib.rs; these are written assuming Tracking issue: Moving system-level networking reconciliation from Nexus to sled-agent #10167 is complete, not based on the current state of the crate.handle.rs, particularlyScrimletReconcilers- this is the entry point for sled-agent. It will hold aScrimletReconcilersin its set of long-running tasks.reconciler_task.rs- this implements the common control flow for all of the service-specific reconcilers in the crate; handling periodic reactivation, activation when the config changes, transitioning to inert if we stop being a scrimlet because the sidecar goes away at runtime, and transitioning out of inert if it comes back.The only production-affecting change here is that theEdit: As of #10340,ThisSledSwitchZoneUnderlayIpAddrtype moved out of sled-agent and into this crate, so sled-agent depends on this crate just for that type.ThisSledSwitchZoneUnderlayIpAddrhas moved tosled-agent-types, so now this PR uses it from there and makes no changes to sled-agent proper.