Accidentaly , schema upgrade hasn't beed executed by ipa-server-upgrade.

https://fedorahosted.org/freeipa/ticket/4904

Patch attached.

--
Martin Basti

From d6b1107aa9f952bf61dbdbaabdbab822d0dc69b5 Mon Sep 17 00:00:00 2001
From: Martin Basti <mba...@redhat.com>
Date: Thu, 21 May 2015 14:40:22 +0200
Subject: [PATCH] Server Upgrade: Fix: execute schema update

Accidentaly schema upgrade has not been executed.

https://fedorahosted.org/freeipa/ticket/4904
---
 ipaserver/install/ipa_server_upgrade.py | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/ipaserver/install/ipa_server_upgrade.py b/ipaserver/install/ipa_server_upgrade.py
index 7e85c0dca042614b3e591d87f8687314ae3981cb..6236e2ed033708189ad10c184fd8e57a0b34953b 100644
--- a/ipaserver/install/ipa_server_upgrade.py
+++ b/ipaserver/install/ipa_server_upgrade.py
@@ -2,6 +2,7 @@
 # Copyright (C) 2015  FreeIPA Contributors see COPYING for license
 #
 
+import os
 import sys
 
 import krbV
@@ -9,6 +10,7 @@ import krbV
 from ipalib import api
 from ipaplatform.paths import paths
 from ipapython import admintool, ipautil
+from ipaserver.install import dsinstance
 from ipaserver.install import installutils
 from ipaserver.install.upgradeinstance import IPAUpgrade
 from ipaserver.install.ldapupdate import BadSyntax
@@ -73,7 +75,9 @@ class ServerUpgrade(admintool.AdminTool):
                              "system")
 
         realm = krbV.default_context().default_realm
-        data_upgrade = IPAUpgrade(realm)
+        schema_files = [os.path.join(ipautil.SHARE_DIR, f) for f
+                        in dsinstance.ALL_SCHEMA_FILES]
+        data_upgrade = IPAUpgrade(realm, schema_files=schema_files)
 
         try:
             data_upgrade.create_instance()
-- 
2.1.0

-- 
Manage your subscription for the Freeipa-devel mailing list:
https://www.redhat.com/mailman/listinfo/freeipa-devel
Contribute to FreeIPA: http://www.freeipa.org/page/Contribute/Code

Reply via email to