Currently when IPA server is uninstalled the /var/lib/dirsrv folder will be deleted as well (https://fedorahosted.org/389/ticket/47913). The next installation will fail because it cannot create boot.ldif in the deleted folder.
ipa : DEBUG File "/usr/lib/python2.7/site-packages/ipaserver/install/installutils.py", line 711, in run_script return_value = main_function() File "/usr/sbin/ipa-server-install", line 1087, in main hbac_allow=not options.hbac_allow) File "/usr/lib/python2.7/site-packages/ipaserver/install/dsinstance.py", line 309, in create_instance self.start_creation(runtime=60) File "/usr/lib/python2.7/site-packages/ipaserver/install/service.py", line 370, in start_creation run_step(full_msg, method) File "/usr/lib/python2.7/site-packages/ipaserver/install/service.py", line 360, in run_step method() File "/usr/lib/python2.7/site-packages/ipaserver/install/dsinstance.py", line 412, in __create_instance base_fd = open(target_fname, "w") ipa : DEBUG The ipa-server-install command failed, exception: IOError: [Errno 2] No such file or directory: '/var/lib/dirsrv/boot.ldif' Unexpected error - see /var/log/ipaserver-install.log for details: IOError: [Errno 2] No such file or directory: '/var/lib/dirsrv/boot.ldif'
Possible solutions: 1. Change all codes that use /var/lib/dirsrv to use another location that is guaranteed to exist and/or owned by IPA. 2. Add a code to create /var/lib/dirsrv with the proper attributes as if it were created by DS. 3. Get the above DS ticket is fixed and update the RPM requirement.
For starters, all this should be owned by dirsrv installer/uninstaller. We already have a ticket tracking this change - #4487, so let us fix it in scope of this ticket.
Metadata Update from @edewata: - Issue assigned to someone - Issue set to the milestone: 0.0 NEEDS_TRIAGE
Login to comment on this ticket.