
Python3.12 appears to be more memory hungry than python3.11 leading to test case failures when Ansible attempts to fork processes in the tests leading to: ERROR! A worker was found in a dead state We port openstack's configure-swap role into zuul so that we can configure at least 1GB of swap on test nodes. The idea being while slower this will prevent test cases from failing if they are on the edge of running out of memory. A reasonable followup would be to inspect where the memory consumption is going, but for now we're trying to address the immediate problem of flaky jobs. Depends-On: https://review.opendev.org/c/zuul/zuul-jobs/+/943861 Change-Id: I00f672ae20c8e8ddc3ac88d179b23271d7aa307b
Configure a swap partition
This role has been copied from openstack/openstack-zuul-jobs. The role doesn't make much sense in zuul/zuul-jobs because it makes assumptions about the runtime environments (like rax's epehemeral disk drives). Since openstack-zuul-jobs is in another Zuul tenant we port it over to zuul where we want to make use of it.
Creates a swap partition on the ephemeral block device (the rest of which will be mounted on /opt).
Role Variables