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: implement OmicronZoneImageSource::Artifact #7781

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

iliana
Copy link
Contributor

@iliana iliana commented Mar 11, 2025

Closes #7281.

@iliana
Copy link
Contributor Author

iliana commented Mar 11, 2025

This is a draft for now. I've been able to test this manually by crafting a new input to omicron_config_put to change the image source from install_dataset to artifact with the relevant hash; the zone gets torn down and rebuilt with the correct image path:

zonecfg:oxz_cockroachdb_2e4a6e55-3bc6-4ec1-ac53-9ad2c646047d> export
create -b
set zonepath=/pool/ext/d05bafeb-90c9-4a92-8254-6d93252a1c17/crypt/zone/oxz_cockroachdb_2e4a6e55-3bc6-4ec1-ac53-9ad2c646047d
set brand=omicron1
set autoboot=false
set limitpriv=default,dtrace_proc,dtrace_user
set ip-type=exclusive
add net
set physical="oxControlService29"
end
add dataset
set name="oxp_d05bafeb-90c9-4a92-8254-6d93252a1c17/crypt/cockroachdb"
end

I don't think I can test this end-to-end until there's also code which can store the zone image source in the database.

I also want to add code to prevent Sled Agent from accepting a zone config referring to artifacts it doesn't have per #7281 (comment).

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.

Sled Agent: PUT /omicron-zones needs a way to specify TUF artifact for zone image
1 participant