cockpit-project / cockpit-podman

Cockpit UI for podman containers
GNU Lesser General Public License v2.1
449 stars 90 forks source link

test: Attach criu dump log on checkpoint failures #1878

Closed martinpitt closed 1 month ago

martinpitt commented 1 month ago

Occasionally, crun checkpoint fails in Fedora 41 podman upstream PRs (in revdeps tests). This isn't otherwise reproducible, so start with collecting all information. The journal just says "Please check CRIU logfile", so let's collect that.


See https://github.com/containers/podman/pull/24238#issuecomment-2410863519 . I've seen this fail several times in the last week.

martinpitt commented 1 month ago

I tested this with breaking the b.wait() assertion and running with

rm -rf /tmp/a; mkdir /tmp/a; TEST_ATTACHMENTS=/tmp/a TEST_OS=fedora-41 test/check-application TestApplication.testCheckpointRestore $RUNC -stv

Then /tmp/a/TestApplication-testCheckpointRestore-dump.log contains the dump.

jelly commented 1 month ago

I tested this with breaking the b.wait() assertion and running with

rm -rf /tmp/a; mkdir /tmp/a; TEST_ATTACHMENTS=/tmp/a TEST_OS=fedora-41 test/check-application TestApplication.testCheckpointRestore $RUNC -stv

Then /tmp/a/TestApplication-testCheckpointRestore-dump.log contains the dump.

Alternatively on C10S remove iptables-nft https://github.com/cockpit-project/cockpit-podman/blob/main/test/browser/browser.sh#L10