-
Notifications
You must be signed in to change notification settings - Fork 62
Add #[serde(flatten)] to identity on some views that were missing it #581
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
Conversation
30dc54d to
7f99dde
Compare
|
Ah, nice. I didn't realize that was a thing (or understand what it really did before this). |
|
I'm curious what "fail in mysterious ways" means, but this LGTM too. |
|
Oh yeah, some detail would be nice. When I make the change on
I get a not very helpful 400 when attempting to create an instance on this line:
Checking the log turns up this: {
"msg":"request completed",
"v":0,
"name":"test_subnet_allocation",
"level":30,
"time":"2022-01-10T13:45:36.622900-06:00",
"hostname":"Davids-M1-MBP.local",
"pid":6698,
"uri":"/instances/4092b2ce-c0b5-42ea-b23f-1e95e4890c93",
"method":"PUT",
"req_id":"685b0721-8544-4563-9702-965b574ea416",
"remote_addr":"127.0.0.1:50988",
"local_addr":"127.0.0.1:50977",
"component":"dropshot",
"sled_id":"b6d65341-167c-41df-9b5c-41cded99c229",
"component":"omicron_sled_agent::sim::Server",
"error_message_external":"unable to parse body: missing field `id` at line 1 column 460",
"error_message_internal":"unable to parse body: missing field `id` at line 1 column 460",
"response_code":"400"
}If this were only a question of the generated clients, this would be strange, because the generated clients should be updated in accordance with the change to omicron/sled-agent/src/instance.rs Lines 157 to 167 in e8c31ef
omicron/common/src/api/internal/sled_agent.rs Lines 12 to 17 in 939adec
Edit: Oh yeah, it's probably the omicron/sled-agent/src/sim/http_entrypoints.rs Lines 57 to 65 in e8c31ef
omicron/common/src/api/internal/sled_agent.rs Lines 19 to 27 in e8c31ef
|
Crucible Start queue backpressure earlier (#1047) Propolis Fix no-deps option for clippy xtask nvme: don't fail on abort cmd (#581) Update openssl and rustix deps Add xtask for pre-push checks Do not require casting for API version cmp better softnpu management command reliability (#570) Log when pause futures complete (#575)
Crucible Start queue backpressure earlier (#1047) Propolis Fix no-deps option for clippy xtask nvme: don't fail on abort cmd (#581) Update openssl and rustix deps Add xtask for pre-push checks Do not require casting for API version cmp better softnpu management command reliability (#570) Log when pause futures complete (#575) Co-authored-by: Alan Hanson <[email protected]>
Noticed this while working with VPC subnets, then found a few others.
Left out
NetworkInterfacebecause it's used by sled agent as a model rather than a view, so changing it causes tests to fail in mysterious ways that I think are 400s when Nexus calls Sled Agent.omicron/common/src/api/internal/sled_agent.rs
Lines 12 to 17 in 939adec