-
Notifications
You must be signed in to change notification settings - Fork 21
tests: Fix bootc pxe testing #439
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
base: main
Are you sure you want to change the base?
Conversation
The cpio -c argument is different between Ubuntu and Fedora/CentOS/RHEL, on Ubuntu it means -H odc and on Fedora it is -H newc so let's remove any question of the type and pass '-H newc' It adds a diagnostic 'podman image inspect' after the bootc container is build, the output should help in tracking down exactly what container is being used. This also removes an unneeded argument (--installer-payload-ref) from the bib run, a result of copy and pasting other tests as a starting point.
supakeen
left a comment
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.
lol, that's amazing
Check the booted system to make sure it used the expected container reference. bootc status does not work with the PXE images, but rpm-ostree status does, so let's use that for now.
| ["tar", "-C", tmpdir, "-x", "-f", pxe_tar_path]) | ||
| subprocess.check_call( | ||
| "echo rootfs.img | cpio -c --quiet -L -o > rootfs.cpio", shell=True, cwd=tmpdir) | ||
| "echo rootfs.img | cpio -H newc --quiet -L -o > rootfs.cpio", shell=True, cwd=tmpdir) |
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.
And I dropped my suspicion because Fedora already uses... wait Ubuntu?!? :-)
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 tests (these at least) run in GitHub actions which I think in our case runs on Ubuntu since we're not using our own container images for CI?
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.
Yeah I am aware, it was just a lame joke.
The cpio -c argument is different between Ubuntu and Fedora/CentOS/RHEL, on Ubuntu it means -H odc and on Fedora it is -H newc so let's remove any question of the type and pass '-H newc'
It adds a diagnostic 'podman image inspect' after the bootc container is build, the output should help in tracking down exactly what container is being used.
This also removes an unneeded argument (--installer-payload-ref) from the bib run, a result of copy and pasting other tests as a starting point.