#6165 ipa-backup is not keeping the /etc/tmpfiles.d/dirsrv-.conf
Closed: Fixed Opened by pvoborni.

Ticket was cloned from Red Hat Bugzilla (product Red Hat Enterprise Linux 7): Bug 1360631

Description of problem:
since ipa-backup is storing all the conf files created by ipa/ns-slapd, this
file should also be stored:
/etc/tmpfiles.d/dirsrv-<instance>.conf
this file allows daemon tmpfiles.d to re-create the dirs in volatile
directories like /var/run or /var/lock
I had a case where customer after restore had issues to restart dirsrv and it
was because this file was missing. Having said this, this file should always be
present after a backup and restore. I cannot imagine how it has disappeared at
customer side.
But if the policy is the store in files.tar all the files created by
ipa/ns-slapd, this one should also be created.
Version-Release number of selected component (if applicable):
ipa-server-4.2.0-15.el7_2.3.x86_64
How reproducible: always
Steps to Reproduce:
1. ipa-backup
Actual results:
tar tvf files.tar | grep tmpfiles.d
(no file)
Expected results:
tar tvf files.tar | grep tmpfiles.d
/etc/tmpfiles.d/dirsrv-<instance>.conf

master:

  • 148e021ac11793d77561fd7ffd3d11ecc09d86a5 ipa-backup: backup /etc/tmpfiles.d/dirsrv-.conf

Metadata Update from @pvoborni:
- Issue assigned to mbasti
- Issue set to the milestone: FreeIPA 4.4.1

Metadata