Running ipa-server-install in cgroups v2 container with no memory limit should not fail.
Running ipa-server-install in cgroups v2 container with no memory limit (for example with podman as root) fails
docker=podman tests/run-partial-tests.sh Dockerfile.fedora-33
[...] + podman run --name freeipa-server-container-fedora-33 -d -h ipa.example.test local/freeipa-server-test-addons:fedora-33 c197cbfdfc9a605cf0ee54caab9ef6bbca543213a5f208c0819d4697e5019bb5 Executing tests/systemd-container-ipa-server-install-data.sh freeipa-server-container-fedora-33 /dev/null invalid literal for int() with base 10: 'max\n' The ipa-server-install command failed. See /var/log/ipaserver-install.log for more information
[...] + podman run --name freeipa-server-container-fedora-33 -d -h ipa.example.test local/freeipa-server-test-addons:fedora-33 81d360b4d860a349d2e63c677d465e6ff1f8dcc9442f56017ed3f43c8388a53b Executing tests/systemd-container-ipa-server-install-data.sh freeipa-server-container-fedora-33 /dev/null Checking DNS domain example.test., please wait ... The log file for this installation can be found in /var/log/ipaserver-install.log ============================================================================== This program will set up the IPA Server. Version 4.9.2 [...]
$ rpm -q freeipa-server freeipa-client ipa-server ipa-client 389-ds-base pki-ca krb5-server
freeipa-server-4.9.2-4.fc33.x86_64 freeipa-client-4.9.2-4.fc33.x86_64 package ipa-server is not installed package ipa-client is not installed 389-ds-base-1.4.4.13-2.fc33.x86_64 pki-ca-10.10.5-1.fc33.noarch krb5-server-1.18.2-29.fc33.x86_64
Any additional information, configuration, data or log snippets that is needed for reproduction or investigation of the issue.
Log file locations: https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/7/html/Linux_Domain_Identity_Authentication_and_Policy_Guide/config-files-logs.html Troubleshooting guide: https://www.freeipa.org/page/Troubleshooting
/var/log/ipaserver-install.log ends with
/var/log/ipaserver-install.log
raise value File "/usr/lib/python3.9/site-packages/ipapython/install/util.py", line 59, in run_generator_with_yield_from value = gen.send(prev_value) File "/usr/lib/python3.9/site-packages/ipapython/install/common.py", line 65, in _install for unused in self._installer(self.parent): File "/usr/lib/python3.9/site-packages/ipaserver/install/server/__init__.py", line 573, in main master_install_check(self) File "/usr/lib/python3.9/site-packages/ipaserver/install/server/install.py", line 275, in decorated func(installer) File "/usr/lib/python3.9/site-packages/ipaserver/install/server/install.py", line 350, in install_check installutils.check_available_memory(ca=options.setup_ca) File "/usr/lib/python3.9/site-packages/ipaserver/install/installutils.py", line 1109, in check_available_memory available = int(limit) - used 2021-03-19T15:38:24Z DEBUG The ipa-server-install command failed, exception: ValueError: invalid literal for int() with base 10: 'max\n' 2021-03-19T15:38:24Z ERROR invalid literal for int() with base 10: 'max\n' 2021-03-19T15:38:24Z ERROR The ipa-server-install command failed. See /var/log/ipaserver-install.log for more information
Possible fix: https://github.com/freeipa/freeipa/pull/5651.
master:
ipa-4-9:
Metadata Update from @frenaud: - Issue close_status updated to: fixed - Issue status updated to: Closed (was: Open)
Login to comment on this ticket.