[RFC] feature: Carry sysext and confext images in COSI files - #789
Draft
Paco Huelsz (frhuelsz) wants to merge 3 commits into
Draft
[RFC] feature: Carry sysext and confext images in COSI files#789Paco Huelsz (frhuelsz) wants to merge 3 commits into
Paco Huelsz (frhuelsz) wants to merge 3 commits into
Conversation
Proposes an optional `extensions` section in COSI metadata (revision 1.3) holding `sysexts` and `confexts` arrays. Each entry reuses the existing `ImageFile` object to reference a ZSTD-compressed DDI under `images/extensions/`, plus an optional destination path mirroring the Host Configuration `Extension` object. Covers the metadata schema, tar layout, versioning and forward-compatibility, Trident-side consumption (effective extension set across the extensions, osconfig and selinux subsystems), A/B update and rollback semantics, the Host Configuration interaction, and validation. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
|
Azure Pipelines: 1 pipeline(s) were filtered out due to trigger conditions. There may be pipelines that require an authorized user to comment /azp run to run. |
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Adds an RFC proposing that COSI files carry sysext and confext images.
Extension images become ZSTD-compressed members of the COSI tar under
images/extensions/, alongside partition images, and a new optionalextensionssection in the COSI metadata describes them. Each entry reuses theexisting
ImageFileobject and carries an optional destination path, mirroringthe
Extensionobject in the Host Configuration.Why
An extension is currently a second artefact with a separate lifecycle: hosted
separately, fetched from a second endpoint at deploy time, with integrity
anchored outside
os.image.sha384, and updated through a Runtime Update ratherthan the A/B update that ships the OS.
Bundling delivers and activates operator content in the same A/B update and the
same reboot as the OS, reusing the existing rollout, health-gating and rollback
machinery. Rollback needs no additional work, since extension images are files
in the target slot's filesystem and the previous slot retains the previous set.
This adds an option rather than replacing one. Extensions deliberately versioned
independently of the OS should continue to use
os.sysextsandos.confexts.Notable decisions
sysexts,confexts) rather than one with akindfield.The kinds have disjoint permitted directories, defaults,
extension-releaselocations, identity fields and activation units, and this is the shape the
Host Configuration already uses.
images/. The specification already permitssubdirectories, so
ImageFile.path's^images/.+pattern does not needrelaxing. Relaxing it would produce a 1.3
ImageFilethat fails the 1.0-1.2schemas.
imageand an optionalpath. Name, kind, extensionID and compatibility metadata are all derivable from the payload.
error. Both lists are legitimate at once, and silent precedence would run
software the image author did not validate, with no visible symptom.
ID=_anyis not warned on or refused. It describes compatibility, notdelivery. The useful check is the inverse: a bundled
ID=<distro>extensionthat does not match the COSI's own
osRelease.merged set rather than the Host Configuration alone.
Two integration points are easy to miss and are called out in the RFC:
osconfigenablessystemd-sysext.serviceandsystemd-confext.servicebasedon the Host Configuration lists being non-empty, and the SELinux dynamic
validation reads the same lists. Both must read the merged set, or a COSI-only
extension configuration is silently unmerged or silently mislabelled.
Open questions
versus COSI collision an error. An explicit opt-in on the Host Configuration
side would permit pinning a hotfixed extension, and equally permit running a
combination the image author did not validate.
the current API and no concrete requester.
pathbe required? It is optional here for symmetry withExtension.path.extensionscontainingsysextsandconfexts, or two top-level arrays?of this work? It is documented but unenforced today.
images, or merely encouraged? The RFC says SHOULD.
Known limitation
An existing Trident accepts any
1.xCOSI and ignores unknown fields, so itwill deploy a 1.3 COSI correctly and omit the extensions without reporting
anything. This cannot be corrected in-band for readers that already exist. The
RFC proposes documenting it, warning on unknown minor versions from now on, and
health-check gating where the target's Trident version cannot be controlled.