[Pkg-openldap-devel] Bug#665199: slapd: fails to install, remove, distupgrade, and install again

Ryan Tandy ryan at nardis.ca
Sun Feb 5 23:24:07 UTC 2017


Hi Niels,

On Sun, Feb 05, 2017 at 09:57:00AM +0000, Niels Thykier wrote:
>Ping on this - we would like to see this fixed properly for stretch.

ACK. It's been around too long already.

Unfortunately, life being what it is, I may not have time to deliver a 
proper fix until late March. I will of course do my best to deal with it 
earlier than that.

Notes to aid others in triaging/working on this bug:

The failure reported is actually not reproducible without editing the 
source, because the database format did not change between jessie and 
stretch, while it did in all of the previous three releases.

However the original bug is still there, reproducible by updating 
database_format_changed() in debian/slapd.scripts-common.

For the jessie->stretch upgrade the same problem exists for the config 
database if the ppolicy overlay is active. To reproduce this:

- install slapd/jessie
- add the ppolicy schema
- add the ppolicy overlay to a database
- remove slapd
- install slapd/stretch

Currently there is a message like:

  Saved configuration not found at /var/backups/slapd-2.4.40+dfsg-1+deb8u2/cn=config.ldif. Skipping configuration updates.

and the new slapd fails to start since the config has not been updated.

(That's odd. I expected it to try to dump the config but fail because of 
slapcat not being there yet...)

The fix is the same for all cases: dump the databases in prerm, 
including the config database; but also be prepared to do it in preinst 
as well, so upgrading from an unfixed version is still possible.



More information about the Pkg-openldap-devel mailing list