slapd upgrade to jaunty tries to dump non local databases

Bug #364716 reported by mikmak
2
Affects Status Importance Assigned to Milestone
openldap (Ubuntu)
Triaged
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

Revision history for this message
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)
Changed in openldap (Ubuntu):
status: Incomplete → Confirmed
importance: Undecided → Medium
Mathias Gug (mathiaz)
Changed in openldap (Ubuntu):
status: Confirmed → Triaged
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.