Bug 801376

Summary: ipa-server-install --uninstall errors out when trying to start dirsrv.
Product: Red Hat Enterprise Linux 6 Reporter: Gowrishankar Rajaiyan <grajaiya>
Component: ipaAssignee: Rob Crittenden <rcritten>
Status: CLOSED ERRATA QA Contact: IDM QE LIST <seceng-idm-qe-list>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.3CC: jgalipea, kchamart, mkosek
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ipa-2.2.0-9.el6 Doc Type: Bug Fix
Doc Text:
No documentation needed.
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-06-20 13:20:35 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Gowrishankar Rajaiyan 2012-03-08 11:50:48 UTC
Description of problem:


Version-Release number of selected component (if applicable):
ipa-server-2.2.0-3.el6.x86_64

How reproducible:
Always

Steps to Reproduce:
1. ipa-server-install --setup-dns
2. ipa-server-install --uninstall

  
Actual results:
This is a NON REVERSIBLE operation and will delete all data and configuration!

Are you sure you want to continue with the uninstall procedure? [no]: yes
Shutting down all IPA services
Removing IPA client configuration
Unconfiguring ntpd
Unconfiguring CA directory server
Unconfiguring CA
Unconfiguring named
Unconfiguring web server
Unconfiguring krb5kdc
Unconfiguring kadmin
Unconfiguring directory server
Unexpected error - see ipaserver-uninstall.log for details:
 Command '/sbin/service dirsrv start ' returned non-zero exit status 6
[root@primenova ~]# echo $?
1
[root@primenova ~]#

Expected results: Uninstallation should not error out.


Additional info:
1. Not sure if relevant but after Step1, I created replica file, installed replica, deleted agreement and then Step2.

2. /var/log/ipaserver-uninstall.log: 
2012-03-08T10:15:41Z DEBUG stderr=
2012-03-08T10:15:41Z DEBUG Command '/sbin/service dirsrv start ' returned non-zero exit status 6
  File "/usr/sbin/ipa-server-install", line 1092, in <module>
    rval = main()

  File "/usr/sbin/ipa-server-install", line 578, in main
    return uninstall()

  File "/usr/sbin/ipa-server-install", line 461, in uninstall
    dsinstance.DsInstance(fstore=fstore).uninstall()

  File "/usr/lib/python2.6/site-packages/ipaserver/install/dsinstance.py", line 635, in uninstall
    self.start()

  File "/usr/lib/python2.6/site-packages/ipaserver/install/service.py", line 200, in start
    self.service.start(instance_name, capture_output=capture_output)

  File "/usr/lib/python2.6/site-packages/ipapython/platform/redhat.py", line 44, in start
    ipautil.run(["/sbin/service", self.service_name, "start", instance_name], capture_output=capture_output)

  File "/usr/lib/python2.6/site-packages/ipapython/ipautil.py", line 288, in run
    raise CalledProcessError(p.returncode, args)

(END)

Comment 2 Martin Kosek 2012-03-08 12:51:59 UTC
Upstream ticket:
https://fedorahosted.org/freeipa/ticket/2502

Comment 3 Rob Crittenden 2012-04-05 19:59:37 UTC
fixed upstream

master: af0ac845ff2ebb5a7c045acdc17dc656522039aa

ipa-2-2: ad678d1673378539a7bfa2bbb468b51f23569bdb

Comment 7 Martin Kosek 2012-04-24 13:41:31 UTC
    Technical note added. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    New Contents:
No documentation needed.

Comment 8 Gowrishankar Rajaiyan 2012-05-03 10:27:41 UTC
[root@rodimus ~]# ipa-server-install --uninstall

This is a NON REVERSIBLE operation and will delete all data and configuration!

Are you sure you want to continue with the uninstall procedure? [no]: yes
Shutting down all IPA services
Removing IPA client configuration
Unconfiguring ntpd
Unconfiguring CA directory server
Unconfiguring CA
Unconfiguring named
Unconfiguring web server
Unconfiguring krb5kdc
Unconfiguring kadmin
Unconfiguring directory server
Unconfiguring ipa_memcached
[root@rodimus ~]# 


Verified.

[root@rodimus ~]# rpm -qi ipa-server
Name        : ipa-server                   Relocations: (not relocatable)
Version     : 2.2.0                             Vendor: Red Hat, Inc.
Release     : 12.el6                        Build Date: Mon 30 Apr 2012 02:52:52 PM EDT
Install Date: Thu 03 May 2012 06:07:28 AM EDT      Build Host: x86-004.build.bos.redhat.com
Group       : System Environment/Base       Source RPM: ipa-2.2.0-12.el6.src.rpm
Size        : 3778371                          License: GPLv3+
Signature   : RSA/8, Wed 02 May 2012 11:16:11 AM EDT, Key ID 938a80caf21541eb
Packager    : Red Hat, Inc. <http://bugzilla.redhat.com/bugzilla>
URL         : http://www.freeipa.org/
Summary     : The IPA authentication server

Comment 10 errata-xmlrpc 2012-06-20 13:20:35 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHBA-2012-0819.html