-
Notifications
You must be signed in to change notification settings - Fork 0
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
Only store Omaha XML response for update check #33
Conversation
2670b28
to
1590e58
Compare
This pulls in flatcar/update_engine#33 to fix supplying extension update payloads with a custom base URL in Nebraska.
The full Omaha XML response is stored to a file for the postinst action, but we only want the response for the initial update check passed this way and not overwrite the file with responses for state reports. Only store the Omaha XML response for the update check and not all of the interaction with the Omaha server.
1590e58
to
dfc4c52
Compare
This pulls in flatcar/update_engine#33 to fix supplying extension update payloads with a custom base URL in Nebraska.
This pulls in flatcar/update_engine#33 to fix supplying extension update payloads with a custom base URL in Nebraska.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The changes look alright. Can I assume that the full response was not used for anything else?
The full response file was used when communicating with |
This pulls in flatcar/update_engine#33 to fix supplying extension update payloads with a custom base URL in Nebraska.
This pulls in flatcar/update_engine#33 to fix supplying extension update payloads with a custom base URL in Nebraska.
This pulls in flatcar/update_engine#33 to fix supplying extension update payloads with a custom base URL in Nebraska.
This pulls in flatcar/update_engine#33 to fix supplying extension update payloads with a custom base URL in Nebraska.
The full Omaha XML response is stored to a file for the postinst action, but we only want the response for the initial update check passed this way and not overwrite the file with responses for state reports. Only store the Omaha XML response for the update check and not all of the interaction with the Omaha server.
Fixes flatcar/Flatcar#1281
How to use
Backport to Beta
Fixes flatcar/Flatcar#1281
Testing done
From the new image to the new image works with
and does not use the fallback path.
The previous-version file is modified earlier than the full-response file until the update is complete when it gets modified again:
I've also tested it with Nebraska to ensure that only the first response is stored (in Nebraska it varies). This is the case and the update went well without triggering the fallback path (which would not work).
Upload of the payloads was done with
GITHUB_TOKEN=x NOUPLOAD=1 ./upload_package /var/tmp/test/ http://localhost:8000 notused 9999.9.9
and then changing the package URL to a local http server reachable by the VM.Here again we see that the modification time behaves as above: