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

Make DiskTest easier to use across multiple sleds #5939

Merged
merged 37 commits into from
Jul 2, 2024
Merged

Conversation

smklein
Copy link
Collaborator

@smklein smklein commented Jun 24, 2024

Builds on #5931

The DiskTest utility provides mechanisms to create zpools and datasets within a particular Sled Agent.
Historically, this was used on a single sled agent within the control plane test context, but more
recently, we've added a fair amount of multi-sled tests.

This PR updates the DiskTest to be more usable with multiple sleds:

  • It provides a DiskTestBuilder to help callers customize behavior
  • It lets callers access virtual disks spread across multiple distinct sleds

@smklein smklein marked this pull request as ready for review June 24, 2024 23:47
@smklein smklein requested a review from jmpesp June 24, 2024 23:47
Copy link
Contributor

@jmpesp jmpesp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! A few things, nothing blocking

nexus/test-utils/src/resource_helpers.rs Outdated Show resolved Hide resolved
nexus/tests/integration_tests/disks.rs Show resolved Hide resolved
nexus/tests/integration_tests/snapshots.rs Show resolved Hide resolved
Base automatically changed from nexus-zone-filesystems-2 to main July 1, 2024 23:26
@smklein smklein enabled auto-merge (squash) July 1, 2024 23:30
@smklein smklein merged commit 90a5d2f into main Jul 2, 2024
19 checks passed
@smklein smklein deleted the disk-test-cleanup branch July 2, 2024 00:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants