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] Deprecate the old service format #5922

Merged
merged 4 commits into from
Jun 21, 2024

Conversation

smklein
Copy link
Collaborator

@smklein smklein commented Jun 20, 2024

This portion of the Sled Agent was added in #4466, migrating an old "services" ledger into a new, zones-oriented format.

This code served as a bridge between old and new format, but maintaining backwards compatibility here is a burden
for modifying the zone format further.

Specifically: in #5050 , which attempts to add the notion of "transient zone filesystem zpool" to the request from Nexus, the translation of "old format -> new format" is no longer possible without additional information about "where should the transient zone filesystem be placed".

Given that this conversion has been deployed for multiple months - across releases - I figured it would be easier to remove the old support, rather than making another bridge for old code compatibility.

@smklein smklein added Sled Agent Related to the Per-Sled Configuration and Management cleanup Code cleanliness labels Jun 20, 2024
Copy link
Collaborator

@davepacheco davepacheco left a comment

Choose a reason for hiding this comment

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

🥳

sled-agent/src/services_migration.rs Show resolved Hide resolved
sled-agent/src/services_migration.rs Show resolved Hide resolved
sled-agent/src/services.rs Show resolved Hide resolved
@smklein smklein enabled auto-merge (squash) June 21, 2024 18:42
@smklein smklein merged commit 964f6eb into main Jun 21, 2024
19 checks passed
@smklein smklein deleted the deprecate-services-migration branch June 21, 2024 19:25
iliana pushed a commit that referenced this pull request Jun 21, 2024
This portion of the Sled Agent was added in
#4466, migrating an old
"services" ledger into a new, zones-oriented format.

This code served as a bridge between old and new format, but maintaining
backwards compatibility here is a burden
for modifying the zone format further.

Specifically: in #5050 ,
which attempts to add the notion of "transient zone filesystem zpool" to
the request from Nexus, the translation of "old format -> new format" is
no longer possible without additional information about "where should
the transient zone filesystem be placed".

Given that this conversion has been deployed for multiple months -
across releases - I figured it would be easier to remove the old
support, rather than making another bridge for old code compatibility.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cleanup Code cleanliness Sled Agent Related to the Per-Sled Configuration and Management
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants