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] PUT zones doesn't create datasets #7006

Merged
merged 32 commits into from
Nov 18, 2024

Conversation

smklein
Copy link
Collaborator

@smklein smklein commented Nov 7, 2024

Calls to PUT zones will now check that datasets exist -- as they should be initialized, with prior calls -- rather than
forcefully creating them.

This PR checks that datasets exist in the "configuration", rather than querying inventory.

Fixes #6991

@smklein smklein marked this pull request as ready for review November 8, 2024 22:04
Base automatically changed from rss-datasets to main November 12, 2024 18:23
sled-agent/src/services.rs Show resolved Hide resolved
sled-storage/src/manager.rs Outdated Show resolved Hide resolved
sled-storage/src/manager.rs Outdated Show resolved Hide resolved
sled-storage/src/manager.rs Outdated Show resolved Hide resolved
sled-agent/src/services.rs Outdated Show resolved Hide resolved
sled-agent/src/services.rs Outdated Show resolved Hide resolved
sled-agent/src/services.rs Outdated Show resolved Hide resolved
sled-agent/src/services.rs Outdated Show resolved Hide resolved
@smklein smklein enabled auto-merge (squash) November 18, 2024 19:01
@smklein smklein disabled auto-merge November 18, 2024 19:11
@smklein smklein enabled auto-merge (squash) November 18, 2024 19:14
@smklein smklein merged commit 81c808c into main Nov 18, 2024
16 checks passed
@smklein smklein deleted the put-zones-doesnt-put-datasets branch November 18, 2024 21:15
smklein added a commit that referenced this pull request Nov 23, 2024
smklein added a commit that referenced this pull request Nov 23, 2024
This reverts commit 81c808c.

We cannot yet rely on `omicron-datasets.json` existing, because old
systems need new blueprints to receive that
configuration file. Unfortunately, systems exist (e.g. dogfood) which
have not had blueprints created that contain
necessary datasets - as a result, the original PR would prevent cold
boot from functioning properly, as the lack of `omicron-datasets.json`
would prevent zones from being initialized.

By reverting this PR, zones should be able to launch during cold boot
**without** an `omicron-datasets.json` file once more.
smklein added a commit that referenced this pull request Nov 25, 2024
Calls to `PUT` zones will now check that datasets exist -- as they
should be initialized, with prior calls -- rather than
forcefully creating them.

This PR checks that datasets exist in the "configuration", rather than
querying inventory.

Fixes #6991
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.

PUT /omicron-zone -- stop provisioning datasets!
3 participants