Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 307009 Details for
Bug 448173
ipa-server-install --uninstall -U doesn't kill and remove slapd process
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Fix uninstall
freeipa-31-bind.patch (text/plain), 3.13 KB, created by
Rob Crittenden
on 2008-05-29 02:51:00 UTC
(
hide
)
Description:
Fix uninstall
Filename:
MIME Type:
Creator:
Rob Crittenden
Created:
2008-05-29 02:51:00 UTC
Size:
3.13 KB
patch
obsolete
>From eae0e21a8bf384c21e2b522130713a136daa2b4c Mon Sep 17 00:00:00 2001 >From: Rob Crittenden <rcritten@redhat.com> >Date: Wed, 28 May 2008 22:46:08 -0400 >Subject: [PATCH] Make check_inst() a standalone function in bindinstance. > >When an install instance is created that contains a pointer to a sysrestore >point it loads in the current configuration when instantiated. If an >instance is instantiated but not used then changes may occur to the >system state that it is unaware of. So one needs to take care in the order >that things are done to avoid losing information. > >When bind was setup it was overwriting all data in sysrestore.state and >leaving just a [named] section. This caused problems at uninstall. > >448173 >--- > ipa-server/ipa-install/ipa-server-install | 4 ++-- > ipa-server/ipaserver/bindinstance.py | 16 ++++++++-------- > 2 files changed, 10 insertions(+), 10 deletions(-) > >diff --git a/ipa-server/ipa-install/ipa-server-install b/ipa-server/ipa-install/ipa-server-install >index b979e99..07cb779 100644 >--- a/ipa-server/ipa-install/ipa-server-install >+++ b/ipa-server/ipa-install/ipa-server-install >@@ -365,9 +365,8 @@ def main(): > admin_password = "" > > # check bind packages are installed >- bind = ipaserver.bindinstance.BindInstance() > if options.setup_bind: >- if not bind.check_inst(): >+ if not ipaserver.bindinstance.check_inst(): > print "--setup-bind was specified but bind is not installed on the system" > print "Please install bind and restart the setup program" > return 1 >@@ -501,6 +500,7 @@ def main(): > webgui = ipaserver.httpinstance.WebGuiInstance() > webgui.create_instance() > >+ bind = ipaserver.bindinstance.BindInstance(fstore) > bind.setup(host_name, ip_address, realm_name, domain_name) > if options.setup_bind: > bind.create_instance() >diff --git a/ipa-server/ipaserver/bindinstance.py b/ipa-server/ipaserver/bindinstance.py >index 3ddbefe..5badf86 100644 >--- a/ipa-server/ipaserver/bindinstance.py >+++ b/ipa-server/ipaserver/bindinstance.py >@@ -28,6 +28,14 @@ import service > from ipa import sysrestore > from ipa import ipautil > >+def check_inst(): >+ # So far this file is always present in both RHEL5 and Fedora if all the necessary >+ # bind packages are installed (RHEL5 requires also the pkg: caching-nameserver) >+ if not os.path.exists('/etc/named.rfc1912.zones'): >+ return False >+ >+ return True >+ > class BindInstance(service.Service): > def __init__(self, fstore=None): > service.Service.__init__(self, "named") >@@ -52,14 +60,6 @@ class BindInstance(service.Service): > > self.__setup_sub_dict() > >- def check_inst(self): >- # So far this file is always present in both RHEL5 and Fedora if all the necessary >- # bind packages are installed (RHEL5 requires also the pkg: caching-nameserver) >- if not os.path.exists('/etc/named.rfc1912.zones'): >- return False >- >- return True >- > def create_sample_bind_zone(self): > bind_txt = ipautil.template_file(ipautil.SHARE_DIR + "bind.zone.db.template", self.sub_dict) > [bind_fd, bind_name] = tempfile.mkstemp(".db","sample.zone.") >-- >1.5.4 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 448173
: 307009