Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1229325

Summary: remove-ds-admin.pl removes files in the rpm
Product: Red Hat Directory Server Reporter: Viktor Ashirov <vashirov>
Component: AdminAssignee: Rich Megginson <rmeggins>
Status: CLOSED CURRENTRELEASE QA Contact: Viktor Ashirov <vashirov>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 9.1.1CC: amsharma, nhosoi, rmeggins, sramling, vashirov
Target Milestone: DS9.1.1   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 1217015 Environment:
Last Closed: 2016-05-09 18:30:51 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1217015, 1229445    
Bug Blocks:    

Comment 1 Sankar Ramalingam 2015-06-16 10:15:28 UTC
On a RHEL6.7 machine with the latest admin server and 389-ds-base packages, I successfully completed setup-ds-admin.pl, after running remove-ds-admin.pl script.

[root@qe-blade-01 ~]# remove-ds-admin.pl -f -a -y
Removed admin server and all directory server instances
[root@qe-blade-01 ~]# ls /etc/dirsrv/
admin-serv  config  schema

[root@qe-blade-01 ~]# setup-ds-admin.pl 
==============================================================================
This program will set up the 389 Directory and Administration Servers.

Are you ready to set up your servers? [yes]: 
Creating directory server . . .
Your new DS instance 'qe-blade-01' was successfully created.
Creating the configuration directory server . . .
Beginning Admin Server creation . . .
Creating Admin Server files and directories . . .
Updating adm.conf . . .
Updating admpw . . .
Registering admin server with the configuration directory server . . .
Updating adm.conf with information from configuration directory server . . .
Updating the configuration for the httpd engine . . .
Starting admin server . . .
output: Starting dirsrv-admin: 
output: [  OK  ]
The admin server was successfully started.
Admin server was successfully created, configured, and started.
Exiting . . .
Log file is '/tmp/setupJzyt7K.log'


No issues observed for recreating the admin server. Requesting Viktor to re-run tests again and update the bug accordingly.

Build tested:
[root@qe-blade-01 ~]# rpm -qa |egrep -i '389-|^idm-' 
389-ds-base-1.2.11.15-60.el6.x86_64
389-admin-console-1.1.10-2.el6dsrv.noarch
389-ds-console-doc-1.2.12-1.el6dsrv.noarch
389-console-1.1.8-1.el6dsrv.noarch
389-ds-base-debuginfo-1.2.11.15-60.el6.x86_64
389-ds-base-libs-1.2.11.15-60.el6.x86_64
389-adminutil-1.1.22-1.el6dsrv.x86_64
idm-console-framework-1.1.14-1.el6dsrv.noarch
389-admin-1.1.41-1.el6dsrv.x86_64
389-ds-console-1.2.12-1.el6dsrv.noarch
389-admin-console-doc-1.1.10-2.el6dsrv.noarch

Comment 4 Sankar Ramalingam 2015-06-17 08:57:18 UTC
As per the previous comments, marking the bug as Verified.

Comment 5 Viktor Ashirov 2016-05-06 14:14:02 UTC
(In reply to Sankar Ramalingam from comment #4)
> As per the previous comments, marking the bug as Verified.

Bug is not fixed and is present in 389-admin-1.1.42-1.el6dsrv.x86_64 and 389-admin-1.1.42-1.el7dsrv.x86_64

[root@rhel6ds ~]# remove-ds-admin.pl -f -a -y 
Removed admin server and all directory server instances
[root@rhel6ds ~]# remove-ds-admin.pl -f -a -y 
/usr/sbin/semanage: Port tcp/9830 is not defined
Removed admin server and all directory server instances
[root@rhel6ds ~]# ls /etc/dirsrv/admin-serv/ | wc -l
0