Back to bug 1302382

Who When What Removed Added
Noriko Hosoi 2016-01-27 16:45:16 UTC CC nhosoi
Target Milestone --- DS10.1
Noriko Hosoi 2016-01-27 19:23:51 UTC Assignee nkinder nhosoi
Marc Sauton 2016-02-01 17:56:13 UTC CC msauton
Noriko Hosoi 2016-04-29 17:48:09 UTC Status NEW POST
Noriko Hosoi 2016-05-09 18:11:21 UTC Blocks 1334480
Noriko Hosoi 2016-05-12 01:18:40 UTC Doc Text Cause:
remove-ds-admin.pl tries to reset the files in the admin server's configuration directory.

Consequence:
To recover the original files from the 389-admin rpm package, remove-ds-admin.pl removes the possibly modified configuration files and restores them from the back up directory which was generated by the setup-ds-admin.pl. That is, if remove-ds-admin.pl is
executed without setup-ds-admin.pl or remove-ds-admin.pl is repeatedly run, the config files are removed without the restoration. It makes the following setup-ds-admin.pl fail.

Fix:
Instead of removing the existing configuration files, remove-ds-admin.pl just override them from the back up if they are available.

Result:
Even if the back up does not exist, the necessary configuration files are not removed and the following setup-ds-admin.pl does not fail due to the missing files.
Noriko Hosoi 2016-09-03 05:56:15 UTC Status POST MODIFIED
Fixed In Version 389-admin-1.1.44-1.el7dsrv
errata-xmlrpc 2016-09-03 06:56:14 UTC Status MODIFIED ON_QA
Simon Pichugin 2016-09-08 19:13:48 UTC Status ON_QA VERIFIED
CC spichugi
Petr Bokoc 2016-10-11 14:34:10 UTC CC pbokoc
Docs Contact apetrova
Aneta Šteflová Petrová 2016-10-13 13:02:56 UTC Doc Text Cause:
remove-ds-admin.pl tries to reset the files in the admin server's configuration directory.

Consequence:
To recover the original files from the 389-admin rpm package, remove-ds-admin.pl removes the possibly modified configuration files and restores them from the back up directory which was generated by the setup-ds-admin.pl. That is, if remove-ds-admin.pl is
executed without setup-ds-admin.pl or remove-ds-admin.pl is repeatedly run, the config files are removed without the restoration. It makes the following setup-ds-admin.pl fail.

Fix:
Instead of removing the existing configuration files, remove-ds-admin.pl just override them from the back up if they are available.

Result:
Even if the back up does not exist, the necessary configuration files are not removed and the following setup-ds-admin.pl does not fail due to the missing files.
setup-ds-admin.pl no longer fails after running remove-ds-admin.pl due to missing configuration files

Previously, executing the remove-ds-admin.pl script removed files in the Administration Server's configuration directory if no backup was available for them. Consequently, if the user executed the setup-ds-admin.pl script after running remove-ds-admin.pl, setup-ds-admin.pl failed. The problem occurred in the following situations:

* when remove-ds-admin.pl was executed repeatedly
* when remove-ds-admin.pl was executed without executing the setup-ds-admin.pl first

Instead of removing the files, remove-ds-admin.pl now overrides them from backup if a backup is available. As a result, the script no longer removes files that do not have a backup, and setup-ds-admin.pl no longer fails in this situation.
Flags needinfo?(nhosoi)
Noriko Hosoi 2016-10-13 17:38:51 UTC Flags needinfo?(nhosoi)
errata-xmlrpc 2016-11-03 01:43:19 UTC Status VERIFIED RELEASE_PENDING
errata-xmlrpc 2016-11-07 15:39:36 UTC Status RELEASE_PENDING CLOSED
Resolution --- ERRATA
Last Closed 2016-11-07 10:39:36 UTC
Simon Pichugin 2020-09-13 21:38:48 UTC Link ID Github 389ds/389-ds-base/issues/1758

Back to bug 1302382