slapd upgrade to jaunty tries to dump non local databases

Bug #364716 reported by mikmak on 2009-04-21
2
Affects Status Importance Assigned to Milestone
openldap (Ubuntu)
Medium
Unassigned

Bug Description

during intrepid to jaunty upgrade,

if you have configured non hdb databases (for eg a "ldap" database using the ldap backend), the preinstallation script tries to dump this remote DB and of course fails :

Preparing to replace slapd 2.4.11-0ubuntu6.1 (using .../slapd_2.4.15-1ubuntu3_amd64.deb) ...
Stopping OpenLDAP: slapd.
  Dumping to /var/backups/slapd-2.4.11-0ubuntu6.1:
  - directory $mylocaldatabase... done.
  - directory dc=some,dc=remote,dc=org... slapcat: database doesn't support necessary operations.
failed.
dpkg: error processing /var/cache/apt/archives/slapd_2.4.15-1ubuntu3_amd64.deb (--unpack):
 subprocess pre-installation script returned error exit status 1
  Backing up /etc/ldap/slapd.d/ in /var/backups/slapd-2.4.15-1ubuntu3... done.
Starting OpenLDAP: slapd.
Errors were encountered while processing:
 /var/cache/apt/archives/slapd_2.4.15-1ubuntu3_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

solution:
the upgrade script should check that dumped databases are local ;)

Cheers,
Mik

Chuck Short (zulcss) wrote :

Hi,

Thanks for the bug report. I think this will be considered for karmic+1.

Regards
chuck

Changed in openldap (Ubuntu):
status: New → Incomplete
Mathias Gug (mathiaz) on 2009-10-22
Changed in openldap (Ubuntu):
status: Incomplete → Confirmed
importance: Undecided → Medium
Mathias Gug (mathiaz) on 2009-10-22
Changed in openldap (Ubuntu):
status: Confirmed → Triaged
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers