test(molecule): stop make test early below 1024 inotify instances #26
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "test/inotify-preflight"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Why
make testfailed on main with half the scenarios UNREACHABLE at their first task:podman execreported "container state improper", because each failed container's systemd had exited 255 within milliseconds of starting. Every systemd container takes inotify instances charged to the user running podman, and at the stockfs.inotify.max_user_instancesof 128 only about five start. Ten containers started one after another reproduced it (five up, five exited 255); at 1024 all ten stay up andmake testruns.What changed
tests/molecule/run.shreads the limit before building the image and, below 1024, stops with thesysctlto set and where to keep it, instead of letting half the containers die.Verification
make checkpasses.podmanandmoleculebinaries, the runner proceeds at 1024 and stops with the message when the threshold is above the current limit.make testafter raising the limit.