From 4d8b67941b150d1e4a62212ca38db663fcc33c3e Mon Sep 17 00:00:00 2001 From: Bob Mader Date: Thu, 22 Aug 2024 12:50:41 -0500 Subject: [PATCH] increase per-process file descriptor limit (#219) --- changelogs/fragments/fix_ulimit.yml | 4 ++++ roles/analysis/tasks/analysis-leapp.yml | 1 + roles/upgrade/tasks/leapp-upgrade.yml | 1 + 3 files changed, 6 insertions(+) create mode 100644 changelogs/fragments/fix_ulimit.yml diff --git a/changelogs/fragments/fix_ulimit.yml b/changelogs/fragments/fix_ulimit.yml new file mode 100644 index 0000000..00e356d --- /dev/null +++ b/changelogs/fragments/fix_ulimit.yml @@ -0,0 +1,4 @@ +--- +bugfixes: + - Run leapp with increased per-process file descriptor limit +... diff --git a/roles/analysis/tasks/analysis-leapp.yml b/roles/analysis/tasks/analysis-leapp.yml index 631c3a5..ef00513 100644 --- a/roles/analysis/tasks/analysis-leapp.yml +++ b/roles/analysis/tasks/analysis-leapp.yml @@ -68,6 +68,7 @@ ansible.builtin.shell: > set -o pipefail; export PATH={{ os_path }}; + ulimit -n 16384; leapp preupgrade --report-schema=1.2.0 {{ leapp_preupg_opts }} {{ leapp_enable_repos_args }} diff --git a/roles/upgrade/tasks/leapp-upgrade.yml b/roles/upgrade/tasks/leapp-upgrade.yml index 7210dbf..210164e 100644 --- a/roles/upgrade/tasks/leapp-upgrade.yml +++ b/roles/upgrade/tasks/leapp-upgrade.yml @@ -62,6 +62,7 @@ ansible.builtin.shell: > set -o pipefail; export PATH={{ os_path }}; + ulimit -n 16384; leapp upgrade --report-schema=1.2.0 {{ leapp_upgrade_opts }} {{ leapp_enable_repos_args }}