The nightly test suit test_fips.py is failing in master:nightly-latest-fips pipeline with a failure
test_fips.py
master:nightly-latest-fips
@classmethod def install(cls, mh): check_version(cls.replicas[0]) super(TestInstallFIPS, cls).install(mh) # sanity check for host in cls.get_all_hosts(): assert host.is_fips_mode assert fips.is_fips_enabled(host) # patch named-pkcs11 crypto policy # see RHBZ#1772111 for host in [cls.master] + cls.replicas: > host.run_command( [ "sed", "-i", "-E", "s/RSAMD5;//g", "/etc/crypto-policies/back-ends/bind.config", ] )
E subprocess.CalledProcessError: Command '['sed', '-i', '-E', 's/RSAMD5;//g', '/etc/crypto-policies/back-ends/bind.config']' returned non-zero exit status 4.
---------------------------- Captured stderr setup ----------------------------- ipa: ERROR: stderr: sed: couldn't open temporary file /etc/crypto-policies/back-ends/sed8YgtzZ: Read-only file system
report run link
Hi @mpolovka
the test test_fips.py is faking FIPS mode for userspace processes, and in the pipeline where it failed the system is already in FIPS mode (the real FIPS mode, configured with grubby --update-kernel=ALL --args="fips=1... IMO you can remove test_fips.py from the fips pipeline as it doesn't make sense.
grubby --update-kernel=ALL --args="fips=1...
This portion is code was added as a workaround for RHBZ#1772111 that has been fixed a long time ago in fedora 30. It's probably safe to remove it.
Metadata Update from @frenaud: - Custom field on_review adjusted to https://github.com/freeipa/freeipa/pull/7851 - Issue assigned to mpolovka
master:
Metadata Update from @frenaud: - Issue close_status updated to: fixed - Issue status updated to: Closed (was: Open)
ipa-4-12: