-
Notifications
You must be signed in to change notification settings - Fork 40
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
[nexus] Make 'dataset' columns for IP address optional #6055
Conversation
@smklein I'm concerned about datasets that should have an* associated IP and port but don't: they can be deleted or not included during creation. How do you feel about a constraint that says those fields have to be non-null based on the kind field? |
I'm willing to do this -- especially for Crucible -- but if you look at all the spots where I updated "accessing the IP/port columns to cope with being Optional", you might have noticed: it's only Crucible that's accessing the IP/port pair from the dataset record. This doesn't mean that other services (Cockroach, Clickhouse, etc) don't care about the IP / port values, I think they're just accessing them from a different spot: omicron/schema/crdb/dbinit.sql Lines 3230 to 3248 in 2ba2846
And, when we want to look up these values, we look them up via DNS (or at least, we're trying to trend in that direction). Regardless, patched this in 5122118 |
This is part of an effort to make datasets usable without an explicit service managing them (e.g., in the context of Support Bundles).
Related to #6042
Fixes #2000