#9943 Pruning is enabled by default with RSN
Closed: fixed by frenaud. Opened by frenaud.

Clone of https://issues.redhat.com/browse/RHEL-148481

Issue

Installation of a RHEL 9.8 server with IPA with --random-serial-numbers enables the pruning feature, but the test test_integration/test_acme.py::TestACMEPrune::test_enable_pruning doesn't expect pruning.

The test needs to be fixed.

Steps to Reproduce

  1. Install ipa-server with dnf install -y ipa-server; ipa-server-install --domain ipa.test --realm IPA.TEST -a Secret123 -p Secret123 -U --random-serial-numbers

The file /etc/pki/pki-tomcat/a/CS.cfg shows that pruning is enabled

jobsScheduler.job.pruning.enabled=true

This makes the test fail because the backend is BDB but the pruning is enabled:

        if get_389ds_backend(self.master) == 'bdb':
            cs_cfg = self.master.get_file_contents(paths.CA_CS_CFG_PATH)
>           assert "jobsScheduler.job.pruning.enabled=false".encode() in cs_cfg 

Note that the issue happens on RHEL 9 but not on fedora because fedora has LMDB enabled instead of BDB.


Metadata Update from @frenaud:
- Issue assigned to frenaud

Metadata Update from @frenaud:
- Custom field rhbz adjusted to https://issues.redhat.com/browse/RHEL-148481

Metadata Update from @frenaud:
- Custom field on_review adjusted to https://github.com/freeipa/freeipa/pull/8174

master:

  • 1e0dbb67272353df522985cca9c1b3137ccb8cdd ipatests: pruning is enabled when RSN is enabled

ipa-4-13:

  • dd7e9ed2a2f30ce42c07123b8b55b76a3e427cf0 ipatests: pruning is enabled when RSN is enabled

Metadata Update from @frenaud:
- Issue close_status updated to: fixed
- Issue status updated to: Closed (was: Open)

Metadata