Bug 35667 - Upgrade to UCS 4.0 OpenLDAP fails on database dump&restore
Upgrade to UCS 4.0 OpenLDAP fails on database dump&restore
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: LDAP
UCS 4.0
Other Linux
: P5 normal (vote)
: UCS 4.0
Assigned To: Felix Botner
Arvid Requate
: interim-2
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-08-20 18:47 CEST by Arvid Requate
Modified: 2014-11-26 06:54 CET (History)
1 user (show)

See Also:
What kind of report is it?: ---
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Arvid Requate univentionstaff 2014-08-20 18:47:07 CEST
In experimental upgrades from UCS 3.2-3 tu UCS 4.0-0 the slapd upgrade fails, see log messages below. Looks like we have to adjust something to make the slapd.preinst dump (slapcat) the directory data for the migration from bdb 4.8 to bdb 5.1:

======================================================
slapd (2.4.35-1.164.201407151025) wird eingerichtet ...
File: /etc/init.d/slapd
Multifile: /etc/ldap/slapd.conf
Backing up /etc/ldap/slapd.conf in /var/backups/slapd-2.4.35-1.163.201407092121... done
Check database: ... back-bdb was linked against [NOTE: empty string here!], but db-util package does not seem to be installed.
Skipping /usr/bin/db_recover.
Starting ldap server(s): slapd... FAIL
failed.

OVER: Loading Translog Overlay
OVER: db_init
OVER: Configuring Translog Overlay
OVER: Configured Translog Overlay to use file "/var/lib/univention-ldap/listener/listener"
bdb(dc=ar320i1,dc=qa): Program version 5.1 doesn't match environment version 4.8
bdb_db_open: database "dc=ar320i1,dc=qa" cannot be opened, err -30969. Restore from backup!
backend_startup_one (type=bdb, suffix="dc=ar320i1,dc=qa"): bi_db_open failed! (-30969) slap_startup failed.
invoke-rc.d: initscript slapd, action "start" failed.
dpkg: Fehler beim Bearbeiten von slapd (--configure):
 Unterprozess installiertes post-installation-Skript gab den Fehlerwert 1 zurück
======================================================


But even if I force bdb migration via

  echo "set slapd/dump_database always" | debconf-communicate
  univention-upgrade

the slapd.preinst aborts with:
======================================================

  Dumping to /var/backups/slapd-2.4.35-1.163.201407092121: 
  - directory dc=ar320i1,dc=qa... 52cc4763 slap_sasl_init: auxprop add plugin failed
slapcat: slap_init failed!
======================================================



+++ This bug was initially created as a clone of Bug #35359 +++

The OpenLDAP patches should be migrate to UCS 4.
Comment 1 Arvid Requate univentionstaff 2014-08-20 19:04:56 CEST
The second issue looks a bit like this here: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=628237 https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=665473
Comment 2 Felix Botner univentionstaff 2014-10-01 13:37:29 CEST
There is a incompatibility between  the new cyrus-sasl and the old openldap version. Added  

 Breaks: slapd (<= 2.4.38)

to libsasl2-2.

update works now (i had to install debian-archive-keyring from ucs-4.0 before the update to make the update work)
Comment 3 Arvid Requate univentionstaff 2014-10-06 14:58:47 CEST
Ok works, bug affects only development version, so an entry for the release changelog is not required.
Comment 4 Stefan Gohmann univentionstaff 2014-11-26 06:54:24 CET
UCS 4.0-0 has been released:
 http://docs.univention.de/release-notes-4.0-0-en.html
 http://docs.univention.de/release-notes-4.0-0-de.html

If this error occurs again, please use "Clone This Bug".