#771823 slapd: tries to reload on upgrade even with dumping disabled

Package:
slapd
Source:
openldap
Description:
OpenLDAP server (slapd)
Submitter:
Ferenc Wágner
Date:
2014-12-02 17:15:09 UTC
Severity:
normal
#771823#5
Date:
2014-11-24 13:11:19 UTC
From:
To:
Package: slapd
Version: 2.4.40-2
Severity: normal

Hi,

I wanted to manually set dumping to "never" before upgrading, because restoring
the dump breaks on partial replicas (#614569).  However, dpkg-reconfigure slapd
only asks if I want to "omit OpenLDAP server configuration", which I want, because
the replication config is hand made.  Thus I don't get to reconfigure dumping,
even though it has nothing to do with the server configuration itself.

Trying to upgrade with DEBIAN_PRIORITY=medium does not work either due to another
problem: I can switch off dumping then, and dumping is skipped all right, but the
reload is attempted regardless and fails not finding the dump.

On the other hand, I could be saved by a little additional logic.  #759597 may be
hard in general, but I use MDB, which does not need a dump/restore below 2.5,
which translates to never in Debian. :)

#771823#10
Date:
2014-11-25 00:29:13 UTC
From:
To:
Control: tags -1 confirmed

If I'm reading correctly, the value of that choice isn't actually
important here: the problem is that the question about configuring
dumping is only presented on upgrade, not when (re)configuring a new or
existing installation.

http://anonscm.debian.org/cgit/pkg-openldap/openldap.git/tree/debian/slapd.config#n174

IMO, the dumping questions could be asked outside of that guard, even on
initial installation (and certainly on reconfiguration), with a low
priority.

That's a bug, for sure. dump_databases() exits early if dumping is
disabled, but the symmetric check in load_databases() is missing. That
doesn't make a lot of sense. :)

#771823#17
Date:
2014-12-02 10:27:47 UTC
From:
To:
Ryan Tandy <ryan@nardis.ca> writes:

Agreed.

Also agreed.

Now, do you plan to do anything about these for jessie?  As I understand
it, anybody running a partial replica will necessarily hit this during
the wheezy -> jessie upgrade.  But we've still got a couple of days to
get an unblock for these fixes...