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

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

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

https://fedorahosted.org/freeipa/ticket/2411
---
 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
     try:
         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):
         pass
-- 
1.7.6

_______________________________________________
Freeipa-devel mailing list
Freeipa-devel@redhat.com
https://www.redhat.com/mailman/listinfo/freeipa-devel

Reply via email to