#8073 Backup/restore does not restore /etc/pkcs11/modules/softhsm2.module
Closed: fixed by abbra. Opened by frenaud.

Issue

The backup / restore operation does not restore the file /etc/pkcs11/modules/softhsm2.module.

Steps to Reproduce

  1. install ipa server, the file /etc/pkcs11/modules/softhsm2.module gets created in order to disable global p11-kit configuration for NSS
  2. perform a full backup with ipa-backup
  3. uninstall the server with ipa-server-install --uninstall -U
  4. restore with ipa-backup /path/to/backup
  5. The file /etc/pkcs11/modules/softhsm2.module hasn't been updated (if it did not exist prior to ipa-backup, it's not created, and if there was a file with different content, the content is not overwritten).

Actual behavior

ipa-backup does not backup the content of /etc/pkcs11/modules/softhsm2.module
ipa-restore does not restore the content of /etc/pkcs11/modules/softhsm2.module

Expected behavior

ipa-backup should backup the file, and ipa-restore should restore the file.

Version/Release/Distribution

master branch from 2019 Sep 19


As the file was introduced in ipa 4.8 release with commit 74e0908 + backported to ipa-4-7 with ae5831b, the fix is needed on master, ipa-4-8 and ipa-4-7 branches only.

Metadata Update from @frenaud:
- Issue set to the milestone: FreeIPA 4.8.2

Metadata Update from @frenaud:
- Issue assigned to frenaud

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

master:

  • 055ea253dfe0182671cba16916840a013daa8b74 ipa-backup: backup the PKCS module config files setup by IPA
  • 2919237753e031810f5b6e7d645bc126ebc8f7b5 ipatests: ensure that backup/restore restores pkcs 11 modules config file

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

ipa-4-8:

  • ebec637ab4cd489e149e50fb873a5c190baaac62 ipa-backup: backup the PKCS module config files setup by IPA
  • 71c09ad54912a6a6f633db9ea7253481d8be5e98 ipatests: ensure that backup/restore restores pkcs 11 modules config file

ipa-4-7:

  • 5bf6a39ceab02e0dca0626a556eadfe6a853a61a ipa-backup: backup the PKCS module config files setup by IPA
  • a7168658210c85e746c6bb2d1a0be9b546702677 ipatests: ensure that backup/restore restores pkcs 11 modules config file
Metadata