flatcar-postinst: Handle airgapped self-hosted nebraska instances#39
Merged
jepio merged 1 commit intoflatcar-3815-backportfrom Feb 26, 2024
Merged
Conversation
Right now the stable update from 3602.2.3 -> 3815.2.0 fails for airgapped environment with self-hosted nebraska instances that sync packages, because the parsing in flatcar-postinst can't handle the names of OEM sysexts in the nebraska response. These are called "extrafile-<BOARD>-<VERSION>-oem-<OEM>.gz". Fix this by matching against "*oem-<OEM>.gz" and extracting the remote filename from the response. In main this is fixed in #36, but that depends on switching to ue-rs. Here is an example response for testing: <response protocol="3.0" server="nebraska"> <daystart elapsed_seconds="0"/> <app appid="{e96281a6-d1af-4bde-9a0a-97b76e56dc57}" status="ok"> <ping status="ok"/> <updatecheck status="ok"> <urls> <url codebase="https://nebraska-example.org/flatcar/"/> </urls> <manifest version="3815.2.0"> <packages> <package name="flatcar-amd64-3815.2.0.gz" hash="JLT5o2wJzffAgHY5GesCWymJHng=" size="458309926" required="true"/> <package name="extrafile-amd64-3815.2.0-oem-vmware.gz" hash="llmt48kEE1pZxHbhE86zTczZMmY=" hash_sha256="7c4095f16579402d73ea42a63be63b2c92d98457303a080399d2a5bb33f46f88" size="1536465" required="false"/> </packages> </updatecheck> </app> </response> Signed-off-by: Jeremi Piotrowski <jpiotrowski@microsoft.com>
2 tasks
pothos
reviewed
Feb 26, 2024
jepio
added a commit
to flatcar/scripts
that referenced
this pull request
Feb 26, 2024
Pulls in flatcar/update_engine#39 which fixes updates on the stable channel for nodes with self-hosted packages in an environment where nodes are not allowed access to the upstream Flatcar update server. Signed-off-by: Jeremi Piotrowski <jpiotrowski@microsoft.com>
2 tasks
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.
This is a backport of the equivalent of flatcar/scripts#1580 to 3815, without switching to ue-rs.
Tested on the full-response from the airgapped environment (in commit message):
Output: