Skip to content

Processing passed XML for payload download is broken #92

@pothos

Description

@pothos

Description

In the postinstall action we use --input-xml /var/lib/update_engine/prefs/full-response to download_sysext to work on the Omaha response and download a given extension. Now it fails to process the given extension and returns with exit code 0 despite doing nothing.

Impact

This means that we fall back to downloading from bincache/the release server but that's bad because this breaks self hosting with Nebraska or also supplying payloads directly via flatcar-update when either no public internet access is available or when custom images are used that are not official releases or when bincache is cleaned up.

Environment and steps to reproduce

  1. Set-up: Use any Flatcar image as qemu VM
  2. Task: Copy flatcar_test_update.gz flatcar_test_update-flatcar-python.gz flatcar_test_update-oem-qemu.gz to the VM for a dev build that's not on bincache.
  3. Action(s):
    a. sudo flatcar-update -D -V 9999.9.9 -P flatcar_test_update.gz -E flatcar_test_update-flatcar-python.gz -E flatcar_test_update-oem-qemu.gz
    b. See that it fails to update for a dev build not on bincache (it passed for the upcoming 4487.0.0 Alpha and for a dev build/nightly on bincache) and check logs which now contain mv: cannot stat '/var/lib/update_engine/ue-rs//flatcar-python.raw': No such file or directory and Falling back to bincache-server for extension 'flatcar-python' or similar for the oem image

Expected behavior

No fallback download

Additional information

I think the regression was part of these updates: flatcar/scripts#3310

Metadata

Metadata

Assignees

Labels

kind/bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions