-
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
Make oximeter producer kind required #4571
Conversation
bnaecker
commented
Nov 28, 2023
- Pulls in updated Dendrite, Propolis, and Crucible deps, which include the new producer kind enum in metric registration requests. From their perspective, this is still an optional parameter, but it is supplied.
- Make the kind a required field in API requests.
- Make the kind a required column in the database, and remove any rows with a NULL value.
- Update OpenAPI documents and internal consumers to reflect the required parameter.
- Pulls in updated Dendrite, Propolis, and Crucible deps, which include the new producer kind enum in metric registration requests. From their perspective, this is still an optional parameter, but it is supplied. - Make the kind a required field in API requests. - Make the kind a required column in the database, and remove any rows with a NULL value. - Update OpenAPI documents and internal consumers to reflect the required parameter.
Just a note, it looks like #4559 is also targeting a schema version of 15, so I'll change this one to 16 if that merges first. |
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.
If we bump Crucible rev here, but use a propolis that has the previous
rev, do things work as expected? I think this may be the first time we tried
this after the work Patrick did to support it.
I'm not sure, but I think it depends on how old the Propolis revision is. If it's prior to the addition of the optional parameter, then the metric registration request will fail. After that, things should be OK. |
I looks like current propolis that Omicron is using is: That is before your |
Oh, wait, the propolis version here is also updated, so my concern is not warranted. |
Ok this explains the confusion! For the history books: this PR updates all of Crucible, Propolis, and Dendrite to versions which provide the producer kind parameter in metric registration requests. Those out-of-tree consumers think the value is optional, because it is optional in the OpenAPI documents in the Omicron |