2.3/Sid release engineering - BDB upgrade scripts

Duncan Gibb Duncan.Gibb at SiriusIT.co.uk
Thu Aug 6 17:53:26 UTC 2009


Sven Mueller wrote:

SM> While I agree in general, this is causing a big task:
SM> Write a script that is able to locate all the BDB files in question

HdMH> That script is only necessary if we ever shipped BDB for per-user
HdMH> databases (seen, etc) in Cyrus 2.2.  Otherwise it is OK to just
HdMH> tell the user to do it himself.

SM> Well, we still have to parse the configuration to find the default
SM> partition or was it the configdirectory(?) (as a bare minimum),
SM> since it contains the delivery DB (I think we should just
SM> overwrite/remove the tls_session DB).

I agree that tls_sessions is entirely disposable during an upgrade.  I
doubt that that many people would be concerned about deliver either,
since duplicate suppression is a relatively unimportant "nice" feature
of Cyrus, rather than an essential one, and the data that DB would
normally only persist for a day or two anyway.

Picking a random nearby 2.3.x/Lenny machine, I notice the default config
also uses BDB for statuscache, which I don't think exists in 2.2, and
PTS, which I know isn't built by default in Debian (yet ;-) ).


SM> But if we do that, it is not much of a problem to also locate
SM> the (default) partition and actually backup/upgrade all the
SM> Berkeley DBs found there.

SM> As said: If noone beats me to it (actually I would like someone
SM> to do so), I will look into this in late August.

That would be great if you have the time, but for now I would agree with
Henrique's approach: it's not required that the package upgrade scripts
cater for every possible configuration of Cyrus.  It is, IMHO,
acceptable simply to deal with the default config as installed by
previous versions of the package, and to make clear to sysadmins that
they have to do something extra at upgrade-time if they chose to
configure Cyrus in a non-default way.

There's a huge demand for 2.3.x to get packaged in the main distro, so
we could easily leave these kinds of script refinements until later.


Cheers


Duncan

-- 
Duncan Gibb - Technical Director
Sirius Corporation plc - control through freedom
http://www.siriusit.co.uk/ || t: +44 870 608 0063
Debian Cyrus Team - https://alioth.debian.org/projects/pkg-cyrus-imapd/



More information about the Pkg-Cyrus-imapd-Debian-devel mailing list