Bug 44160 - update postgresql to 9.4 during UCS 4.2
update postgresql to 9.4 during UCS 4.2
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: PostgreSQL
UCS 4.2
Other Linux
: P5 normal (vote)
: UCS 4.3
Assigned To: Arvid Requate
Erik Damrose
: interim-3
Depends on:
Blocks: 46921
  Show dependency treegraph
 
Reported: 2017-03-30 15:34 CEST by Felix Botner
Modified: 2021-03-16 11:24 CET (History)
7 users (show)

See Also:
What kind of report is it?: Release Management
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?: Yes
School Customer affected?: Yes
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number: 2017052321000341
Bug group (optional): Security
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Felix Botner univentionstaff 2017-03-30 15:34:02 CEST
We should update postgresql-9.1 to postgresql-9.4.

(1) sdb article for the update

(2) maybe we need a check in 4.2-1 to prevent the update if 9.1 is still installed?
Comment 1 Janek Walkenhorst univentionstaff 2017-03-31 15:12:07 CEST
(In reply to Felix Botner from comment #0)
> We should update postgresql-9.1 to postgresql-9.4.
We should require the migration to 9.4 before the 4.2-1 release:

> (1) sdb article for the update

> (2) we need a check in 4.2-1 to prevent the update if 9.1 is still installed
Comment 2 Florian Best univentionstaff 2017-06-28 14:52:59 CEST
There is a Customer ID set so I set the flag "Enterprise Customer affected".
Comment 3 Michael Grandjean univentionstaff 2018-01-17 16:00:10 CET
AFAICS 9.1 is EOL since quite a while: https://www.postgresql.org/support/versioning/

A customer asked for a migration guide to 9.4.
AFAIK UCS 4.3 will ship 9.6, so we need a migration guide before the release of UCS 4.3, don't we?
Comment 4 Felix Botner univentionstaff 2018-01-17 16:14:00 CET
ok, check for postgresql 9.1 in 4.3 preup and abort (link sdb atricle for migration from 9.1 to 9.4)
Comment 5 Jürn Brodersen univentionstaff 2018-02-12 10:27:05 CET
We also need a univention-postgresql-9.6 package in 4.3
Comment 6 Arvid Requate univentionstaff 2018-02-27 18:55:02 CET
a791aabb9d | univention-postgresql - Add univention-postgresql-9.6
3002ba0d6d | univention-updater - Add check_for_postgresql91
9ca30b15d5 | univention-appcenter - Add PostreSQL-9.6 drop PostreSQL-9.1
7b2171a591 | univention-pkgdb - Add PostreSQL-9.6 drop PostreSQL-9.1
ca405c74c0 | univention-printquota - Add PostreSQL-9.6 drop PostreSQL-9.1
81b0e669d4 | univention-appcenter - Add PostreSQL-9.6 drop PostreSQL-9.1
d51b89f4d5 | univention-pkgdb - Add PostreSQL-9.6 drop PostreSQL-9.1
343a5a08d4 | univention-printquota - Add PostreSQL-9.6 drop PostreSQL-9.1
9c7c7c9cb0 | Changelog

Packages rebuilt.

Migration guides:
* UCS 4.2 postgresql-9.1 -> 9.4 : https://help.univention.com/t/8073
* UCS 4.3 postgresql-9.4 -> 9.6 : https://help.univention.com/t/8075

I did the second one directly now to check that UCR template subfiles have been migrated to 9.6 too.
Comment 7 Arvid Requate univentionstaff 2018-02-27 19:39:38 CET
ecac0e61e9 | test/utils/base_appliance.sh - Default to PostreSQL-9.6
Comment 8 Philipp Hahn univentionstaff 2018-02-28 07:05:52 CET
REOPEN: You *must* to remove the old conffiles - renaming them is not sufficient!
 $srcpkg/debian/$binpkg.maintscript
  rm_conffiles /etc/univention/templates/files/etc/$path ${version_from_changelog}~

See <man:dh_installdeb(1)> and <https://git.knut.univention.de/univention/ucs/commit/30d64f60f5875fb877d2f5471d1c7ae46e687235> for an example.
Comment 9 Arvid Requate univentionstaff 2018-02-28 23:06:39 CET
Ok, I've adjusted the packages accordingly and rebuilt the packages.

7419812e48 | management/univention-appcenter
d7a643dc14 | services/univention-pkgdb
a81d5d4d2e | services/univention-printquota
cfa3f43f5e | services/univention-pkgdb
ca18fadcc7 | services/univention-pkgdb
d52af121aa | management/univention-appcenter
04a6452cb5 | services/univention-printquota
Comment 10 Erik Damrose univentionstaff 2018-03-02 16:55:00 CET
OK: univention-install univention-postgres installs 9.6 on UCS 4.3
OK: a791aabb9d | Add univention-postgresql-9.6
OK: 3002ba0d6d -> 2898c5e1f | Add check_for_postgresql91
OK: 9ca30b15d5 | Add PostreSQL-9.6 drop PostreSQL-9.1
OK: 7b2171a591 | Add PostreSQL-9.6 drop PostreSQL-9.1
OK: ca405c74c0 | Add PostreSQL-9.6 drop PostreSQL-9.1
OK: 81b0e669d4 | Add PostreSQL-9.6 drop PostreSQL-9.1
OK: d51b89f4d5 | Add PostreSQL-9.6 drop PostreSQL-9.1
OK: 343a5a08d4 | Add PostreSQL-9.6 drop PostreSQL-9.1
OK: 9c7c7c9cb0 -> fbdd57f8 | Changelog
OK: maintscript in u-appcenter, u-pkgdb, u-printquota

OK: New UCS 4.3 install: Install nextcloud: u-postgres-9.6 installed

OK: UCS 4.2 with postgres-9.1: Update blocked
OK: https://help.univention.com/t/8073 -> update to 9.4

OK: migrate from 9.4 to 9.6: https://help.univention.com/t/8075
Verified
Comment 11 Stefan Gohmann univentionstaff 2018-03-14 14:38:40 CET
UCS 4.3 has been released:
 https://docs.software-univention.de/release-notes-4.3-0-en.html
 https://docs.software-univention.de/release-notes-4.3-0-de.html

If this error occurs again, please use "Clone This Bug".