Bug 440141

Summary: Provide a tool which removes DS instances
Product: [Retired] Dogtag Certificate System Reporter: Matthew Harmsen <mharmsen>
Component: Tools - JavaAssignee: Matthew Harmsen <mharmsen>
Status: CLOSED NOTABUG QA Contact: Chandrasekar Kannan <ckannan>
Severity: low Docs Contact:
Priority: low    
Version: 1.0CC: awnuk, benl, blord, cfu, jgalipea, jmagne, nkinder
Target Milestone: 1.0   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-06-15 20:25:49 UTC Type: ---
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:    
Bug Blocks: 443788    
Attachments:
Description Flags
PKI remove DS instance script
none
32-bit CGI DS removal script
none
64-bit CGI DS removal script none

Description Matthew Harmsen 2008-04-01 21:26:42 UTC
To aid in building/rebuilding CS, two scripts have been provided:

* remove_default_pki_instances
* remove_pki_components

A similar tool should be provided to manage the removal of existing Directory
Server Instances which are used for the specific purpose of CS data storage.

Comment 1 Bob Lord 2008-04-02 22:11:18 UTC
Related to bug 440298?


Comment 2 Matthew Harmsen 2008-04-17 01:43:56 UTC
This script needs to work for BOTH 32-bit and 64-bit instances.

Comment 3 Matthew Harmsen 2008-04-18 21:00:52 UTC
Created attachment 302939 [details]
PKI remove DS instance script

Comment 4 Matthew Harmsen 2008-04-18 21:01:34 UTC
Created attachment 302940 [details]
32-bit CGI DS removal script

Comment 5 Matthew Harmsen 2008-04-18 21:02:19 UTC
Created attachment 302941 [details]
64-bit CGI DS removal script

Comment 6 Nathan Kinder 2008-04-18 21:09:09 UTC
The attachments look good.  A couple of very minor nits with the shell script:

- Make the strings that refer to Fedora Directory Server brand agnostic.
- Prepend "./" to the cgi that the shell script will call.

Comment 7 Matthew Harmsen 2008-04-18 21:20:24 UTC
Thanks to the Directory Server team for letting us "borrow" their scripts to
create our own PKI-specific scripts.  This will be addressed better by Bugzilla
Bug #442753, when Directory Server creates a removal script that is independent
of the Administration Server.

svn status | grep -v ^$ | grep -v ^? | grep -v ^P | grep -v ^X
A      linux/scripts/remove_ds_instance
A      linux/scripts/ds_remove_cgi_32
A      linux/scripts/ds_remove_cgi_64
Adding         linux/scripts/ds_remove_cgi_32
Adding         linux/scripts/ds_remove_cgi_64
Adding         linux/scripts/remove_ds_instance
Transmitting file data ...
Committed revision 29.


Comment 8 Matthew Harmsen 2008-04-18 21:30:51 UTC
Added a comment to the 
http://pki.fedoraproject.org/wiki/PKI_Components_Collectively_via_Subversion page
regarding the use of this script.

Comment 9 Chandrasekar Kannan 2008-08-27 00:27:57 UTC
Bug already MODIFIED. setting target CS8.0 and marking screened+

Comment 10 Jenny Severance 2009-06-15 19:59:11 UTC
the scripts exist in the source tree but are not installed.  Is this correct?

Comment 11 Nathan Kinder 2009-06-15 20:10:44 UTC
(In reply to comment #10)
> the scripts exist in the source tree but are not installed.  Is this correct?  

The remove-ds.pl script should be installed as of RHDS 8.1.