Skip to content
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

[sled-agent] Support bundle storage api #6782

Merged
merged 55 commits into from
Nov 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
55 commits
Select commit Hold shift + click to select a range
c5b5d4a
APIs
smklein Sep 25, 2024
f8f5c7c
Merge branch 'main' into support-bundle-storage-api
smklein Oct 2, 2024
1b7a9af
Add API for creating nested datasets within nexus-managed datasets
smklein Oct 2, 2024
9565d7b
PUT and GET ALL
smklein Oct 3, 2024
1106959
GET, LIST
smklein Oct 4, 2024
f87c88d
Merge branch 'main' into support-bundle-storage-api
smklein Oct 4, 2024
c23eaa6
Add tests, more explicit child-listing options for datasets
smklein Oct 5, 2024
2b78066
clippy
smklein Oct 5, 2024
76ba0c6
Patch APIs, re-generate openapi specs
smklein Oct 7, 2024
26d3640
fmt
smklein Oct 7, 2024
77ceebe
More specific name for QueryParams
smklein Oct 7, 2024
6b8099a
Implemented simulated sled agent side of support bundle (IDs only)
smklein Oct 8, 2024
6b62256
Patch test APIs start using typed UUIDs, a liiiiittle bit
smklein Oct 8, 2024
6330be4
error messages for clippy
smklein Oct 8, 2024
c0bcc1c
implement single-file GET API
smklein Oct 11, 2024
071ecba
Upgrade zip, add range request support to bundles
smklein Oct 15, 2024
0549df5
Share logic for ranges
smklein Oct 15, 2024
028be4a
Merge branch 'main' into support-bundle-storage-api
smklein Oct 22, 2024
4132fcb
hakari
smklein Oct 22, 2024
3f1715f
Merge branch 'main' into support-bundle-storage-api
smklein Oct 28, 2024
fe17096
Working on range request crate
smklein Oct 29, 2024
6e1b767
use range-requests crate
smklein Oct 30, 2024
9433682
Merge branch 'main' into support-bundle-storage-api
smklein Oct 30, 2024
d964ff2
Merge branch 'main' into support-bundle-storage-api
smklein Oct 30, 2024
c7ee752
fmt
smklein Oct 30, 2024
7e98c07
Merge branch 'main' into support-bundle-storage-api
smklein Oct 30, 2024
915563b
remove dead code warning
smklein Oct 30, 2024
3131137
hakari
smklein Oct 30, 2024
2bb6ac0
clippy
smklein Oct 30, 2024
f918cdc
Actually check dataset_id, stop using DatasetKind::Update, dataset re…
smklein Oct 31, 2024
347b396
schemas
smklein Oct 31, 2024
2c74359
Merge branch 'main' into support-bundle-storage-api
smklein Oct 31, 2024
fffabb2
a lesser zip
smklein Oct 31, 2024
4c05e3f
Merge branch 'main' into support-bundle-storage-api
smklein Oct 31, 2024
b9c15fe
Fix merge
smklein Oct 31, 2024
cc80a70
hakari of course
smklein Oct 31, 2024
b86fc4b
Refactor structs, fix clippy
smklein Oct 31, 2024
d11d6ca
Patch paths moving in b86fc4bd13
smklein Oct 31, 2024
e565c44
Merge branch 'main' into support-bundle-storage-api
smklein Nov 4, 2024
d03fdf8
Update range requests API
smklein Nov 4, 2024
c573583
Merge branch 'main' into support-bundle-storage-api
smklein Nov 14, 2024
0a688c2
hakari
smklein Nov 14, 2024
4067987
Merge branch 'main' into support-bundle-storage-api
smklein Nov 18, 2024
4329993
Downgrade zip, manually seek
smklein Nov 18, 2024
56807ce
Start working on tests
smklein Nov 19, 2024
a6e0c88
Full test suite
smklein Nov 20, 2024
73590bc
Merge branch 'main' into support-bundle-storage-api
smklein Nov 20, 2024
2df85ca
minimizing diff
smklein Nov 20, 2024
a17536e
Merge branch 'main' into support-bundle-storage-api
smklein Nov 20, 2024
26a4b12
Merge branch 'main' into support-bundle-storage-api
smklein Nov 21, 2024
9e15787
Merge branch 'main' into support-bundle-storage-api
smklein Nov 21, 2024
e1e185b
review feedback
smklein Nov 22, 2024
5ec1d8c
Merge branch 'main' into support-bundle-storage-api
smklein Nov 22, 2024
325caa6
Merge branch 'main' into support-bundle-storage-api
smklein Nov 22, 2024
37f0900
clippy
smklein Nov 22, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 5 additions & 4 deletions nexus/test-utils/src/resource_helpers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ use omicron_test_utils::dev::poll::wait_for_condition;
use omicron_test_utils::dev::poll::CondCheckError;
use omicron_uuid_kinds::DatasetUuid;
use omicron_uuid_kinds::GenericUuid;
use omicron_uuid_kinds::PhysicalDiskUuid;
use omicron_uuid_kinds::SledUuid;
use omicron_uuid_kinds::ZpoolUuid;
use oxnet::Ipv4Net;
Expand Down Expand Up @@ -1171,7 +1172,7 @@ impl<'a, N: NexusServer> DiskTest<'a, N> {
pub async fn add_zpool_with_dataset(&mut self, sled_id: SledUuid) {
self.add_zpool_with_dataset_ext(
sled_id,
Uuid::new_v4(),
PhysicalDiskUuid::new_v4(),
ZpoolUuid::new_v4(),
DatasetUuid::new_v4(),
Self::DEFAULT_ZPOOL_SIZE_GIB,
Expand Down Expand Up @@ -1204,7 +1205,7 @@ impl<'a, N: NexusServer> DiskTest<'a, N> {
pub async fn add_zpool_with_dataset_ext(
&mut self,
sled_id: SledUuid,
physical_disk_id: Uuid,
physical_disk_id: PhysicalDiskUuid,
zpool_id: ZpoolUuid,
dataset_id: DatasetUuid,
gibibytes: u32,
Expand All @@ -1227,7 +1228,7 @@ impl<'a, N: NexusServer> DiskTest<'a, N> {

let physical_disk_request =
nexus_types::internal_api::params::PhysicalDiskPutRequest {
id: physical_disk_id,
id: *physical_disk_id.as_untyped_uuid(),
vendor: disk_identity.vendor.clone(),
serial: disk_identity.serial.clone(),
model: disk_identity.model.clone(),
Expand All @@ -1239,7 +1240,7 @@ impl<'a, N: NexusServer> DiskTest<'a, N> {
let zpool_request =
nexus_types::internal_api::params::ZpoolPutRequest {
id: zpool.id.into_untyped_uuid(),
physical_disk_id,
physical_disk_id: *physical_disk_id.as_untyped_uuid(),
sled_id: sled_id.into_untyped_uuid(),
};

Expand Down
Loading
Loading