-
Notifications
You must be signed in to change notification settings - Fork 62
[1/n] create a nexus-lockstep service #8983
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
Merged
Merged
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
ebfbb2d
create a nexus-debug service
iliana 453944e
forgot the workspace hack
iliana 52f1c17
Merge remote-tracking branch 'origin/main' into iliana/nexus-internal…
iliana 067027d
use `TypedBody::map`
iliana 0dc3db9
add nexus-debug-client
iliana d897b75
add debug_client to ControlPlaneTestContext
iliana 33c3d7b
rename nexus-debug => nexus-lockstep
iliana 7b54d4a
Merge remote-tracking branch 'origin/main' into iliana/nexus-internal…
iliana 867f9ab
expectorate
iliana cbcbc48
add futures to nexus-lockstep-client
iliana 2e62bd1
Merge remote-tracking branch 'origin/main' into iliana/nexus-internal…
iliana 8524074
fail to start nexus if internal/lockstep IPs don't match
iliana ebd0d20
Merge remote-tracking branch 'origin/main' into iliana/nexus-internal…
iliana 3c6ffce
Merge remote-tracking branch 'origin/main' into iliana/nexus-internal…
iliana e9b8a7d
expectorate
iliana 5d960db
oops
iliana 4f6b9d3
Merge remote-tracking branch 'origin/main' into iliana/nexus-internal…
iliana File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| [package] | ||
| name = "nexus-lockstep-client" | ||
| version = "0.1.0" | ||
| edition = "2024" | ||
| license = "MPL-2.0" | ||
|
|
||
| [lints] | ||
| workspace = true | ||
|
|
||
| [dependencies] | ||
| chrono.workspace = true | ||
| futures.workspace = true | ||
| omicron-workspace-hack.workspace = true | ||
| progenitor.workspace = true | ||
| regress.workspace = true | ||
| reqwest.workspace = true | ||
| schemars.workspace = true | ||
| serde.workspace = true | ||
| slog.workspace = true | ||
| uuid.workspace = true |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,24 @@ | ||
| // This Source Code Form is subject to the terms of the Mozilla Public | ||
| // License, v. 2.0. If a copy of the MPL was not distributed with this | ||
| // file, You can obtain one at https://mozilla.org/MPL/2.0/. | ||
|
|
||
| //! Interface for making API requests to the Oxide control plane at large from | ||
| //! callers that update in lockstep with Nexus itself (e.g. rack initialization, | ||
| //! tests and debugging) | ||
| progenitor::generate_api!( | ||
| spec = "../../openapi/nexus-lockstep.json", | ||
| interface = Positional, | ||
| derives = [schemars::JsonSchema], | ||
| inner_type = slog::Logger, | ||
| pre_hook = (|log: &slog::Logger, request: &reqwest::Request| { | ||
| slog::debug!(log, "client request"; | ||
| "method" => %request.method(), | ||
| "uri" => %request.url(), | ||
| "body" => ?&request.body(), | ||
| ); | ||
| }), | ||
| post_hook = (|log: &slog::Logger, result: &Result<_, _>| { | ||
| slog::debug!(log, "client response"; "result" => ?result); | ||
| }), | ||
| ); | ||
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
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
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
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
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
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
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
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.