[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[Freeipa-devel] [PATCH] 970 ensure 389-ds is running during upgrade

We need to start 389-ds when configuring memcached during an ugprade because that process adds the new service to cn=masters.

>From c1940362579ea3cb3c3e5967c195682de1c84a31 Mon Sep 17 00:00:00 2001
From: Rob Crittenden <rcritten redhat com>
Date: Sat, 25 Feb 2012 19:08:17 -0500
Subject: [PATCH] Make sure 389-ds is running when adding memcache service in

Adding the memcache service requires 389-ds to be running because we
add an entry to cn=masters.

 install/tools/ipa-upgradeconfig |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/install/tools/ipa-upgradeconfig b/install/tools/ipa-upgradeconfig
index 725a9d106833b8892fedf9897061e80ebf4500e6..8accea2c73e4c5a98f0a99cae644dc7a6874aed0 100644
--- a/install/tools/ipa-upgradeconfig
+++ b/install/tools/ipa-upgradeconfig
@@ -262,6 +262,10 @@ def main():
     memcache.realm = krbctx.default_realm
         if not memcache.is_configured():
+            # 389-ds needs to be running to create the memcache instance
+            # because we record the new service in cn=masters.
+            ds = dsinstance.DsInstance()
+            ds.start()
             memcache.create_instance('MEMCACHE', fqdn, None, ipautil.realm_to_suffix(krbctx.default_realm))
     except (ldap.ALREADY_EXISTS, ipalib.errors.DuplicateEntry):

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]