https://bugzilla.redhat.com/show_bug.cgi?id=734477
remove-ds.pl leaves some instance specific files/directories around. There should be some way to tell remove-ds.pl to remove everything - perhaps a --all could be added to remove everything, even those things that we usually want to keep around like the databases, the log files, and the key/cert db.
should also remove any files used by service or systemd or tmpfiles.d
git patch file (master) 0001-Trac-Ticket-34-remove-ds.pl-does-not-remove-everythi.patch
Fix description: Introduce an option "--all | -a", with which all the generated files and directories are removed.
git patch file (389-ds-admin master) 0001-Trac-Ticket-34-remove-ds-admin.pl-does-not-remove-ev.patch
Fix description: Introduce an option "-a", with which all the generated directory files and directories are removed.
Note: "-a" does not affect the admin-server files (yet). Just after rpm install, /etc/dirsrv/admin-serv looks like this: admserv.conf console.conf httpd.conf nss.conf
After setup-ds-admin.pl adm.conf admserv.conf console.conf key3.db nss.conf admpw cert8.db httpd.conf local.conf secmod.db
.....U.M. /etc/dirsrv/admin-serv 5S.T.U.M. c /etc/dirsrv/admin-serv/console.conf ......GM. /usr/lib64/dirsrv
After remove-ds-admin.pl -y -f -a admserv.conf cert8.db console.conf httpd.conf key3.db nss.conf secmod.db
With "-a", we can remove admin-serv/*db files, but it'd a little difficult to resume console.conf and nss.conf (if modified).
Opened a new ticket #293 for remove-ds-admin.pl: remove-ds-admin.pl does not remove everything
Reviewed by Rich (Thank you!!!)
Pushed to master.
$ git merge trac34 Updating 9e65c7a..c013442 Fast-forward ldap/admin/src/scripts/DSCreate.pm.in | 11 ++++++++--- ldap/admin/src/scripts/remove-ds.pl.in | 6 ++++-- 2 files changed, 12 insertions(+), 5 deletions(-)
$ git push Counting objects: 15, done. Delta compression using up to 4 threads. Compressing objects: 100% (7/7), done. Writing objects: 100% (8/8), 850 bytes, done. Total 8 (delta 6), reused 0 (delta 0) To ssh://git.fedorahosted.org/git/389/ds.git 9e65c7a..c013442 master -> master
originally targeted for 1.2.11.rc1, but actually in the 1.2.11.a1 release
Added initial screened field value.
Metadata Update from @nhosoi: - Issue assigned to nhosoi - Issue set to the milestone: 1.2.11.a1
389-ds-base is moving from Pagure to Github. This means that new issues and pull requests will be accepted only in 389-ds-base's github repository.
This issue has been cloned to Github and is available here: - https://github.com/389ds/389-ds-base/issues/34
If you want to receive further updates on the issue, please navigate to the github issue and click on subscribe button.
subscribe
Thank you for understanding. We apologize for all inconvenience.
Metadata Update from @spichugi: - Issue close_status updated to: wontfix (was: Fixed)
Login to comment on this ticket.