-
Notifications
You must be signed in to change notification settings - Fork 44
[sled-agent-config-reconciler] Check zone dataset dependencies before starting zones #8219
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
base: john/sled-agent-config-reconciler-datasets-refactor
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks straightforward. Thanks for the thorough fix!
) | ||
.await?; | ||
|
||
// TODO-john fixme |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was a reminder to myself to do #8220 😅. It's removed there.
@@ -1194,4 +1632,161 @@ mod tests { | |||
|
|||
logctx.cleanup_successful(); | |||
} | |||
|
|||
#[tokio::test] | |||
async fn start_zone_fails_if_missing_root_dataset() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Love the tests here!
// | ||
// Skipping that for now, follow the normal zone shutdown process | ||
// _after_ metrics (i.e., shut down and clean up the zone). | ||
// |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a way to detect if this happens?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure; most of this comment was lifted verbatim from services.rs
(where we similarly didn't do anything for metrics for preexisting zones).
This dramatically reduces the work that
ServiceManager::start_omicron_zone()
does by moving most of it to the config-reconciler:DatasetConfig
s, and we never choose a root zpool since all zones have a property specifying which they should use)Builds on #8064 + #8218.
Fixes #8173.