Bug 36371 - Block update to UCS 4.0 if postgresql-8.3 is installed.
Block update to UCS 4.0 if postgresql-8.3 is installed.
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: Update - Release updates
UCS 4.0
Other Linux
: P5 normal (vote)
: UCS 4.0
Assigned To: Philipp Hahn
Felix Botner
: interim-3
Depends on:
Blocks: 36376
  Show dependency treegraph
 
Reported: 2014-10-31 14:49 CET by Felix Botner
Modified: 2015-09-18 16:04 CEST (History)
2 users (show)

See Also:
What kind of report is it?: ---
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?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
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 2014-10-31 14:49:51 CET
postgresql-8.3 is removed during update (due to dependency problem) and replaced with postgresql-9.1. But the cluster is not automatically upgraded to 9.1 and the database is unusable after the update

-> univention-pkgdb-scan --dump-all
Traceback (most recent call last):
  File "/usr/sbin/univention-pkgdb-scan", line 37, in <module>
    univention.pkgdb.main()
  File "/usr/lib/pymodules/python2.7/univention/pkgdb.py", line 538, in main
    connection = open_database_connection(config_registry, pkgdbu=False)
  File "/usr/lib/pymodules/python2.7/univention/pkgdb.py", line 521, in open_database_connection
    connection = pgdb.connect(database=connectstring)
  File "/usr/lib/python2.7/dist-packages/pgdb.py", line 482, in connect
    dbtty, dbuser, dbpasswd)
pg.InternalError: FATAL:  kein pg_hba.conf-Eintrag f?r Host >>10.200.7.100<<, Benutzer >>master$<<, Datenbank >>pkgdb<<, SSL an

-> dpkg -l| grep postgre
rc  postgresql-8.3 8.3.14-0.11. i386         object-relational SQL database, v
ii  postgresql-9.1 9.1.14-0.6.2 i386         object-relational SQL database, v
ii  postgresql-cli 9.1+134.23.2 all          front-end programs for PostgreSQL
ii  postgresql-cli 8.3.14-0.11. i386         front-end programs for PostgreSQL
ii  postgresql-cli 8.4.20-0.19. i386         front-end programs for PostgreSQL
ii  postgresql-cli 9.1.14-0.6.2 i386         front-end programs for PostgreSQL
ii  postgresql-cli 134.23.20140 all          manager for multiple PostgreSQL c
ii  postgresql-com 134.23.20140 all          PostgreSQL database-cluster manag
ii  univention-pos 7.0.0-4.74.2 all          UCS - postgresql configuration

I think it is the best to block the update if postgresql-8.3 (7.4) is installed and refer to the postgres update article http://sdb.univention.de/1220 (currently only in german).

Update with postgresql-8.4 works, postgresql-8.4 is not removed and postgresql-9.1 not installed during the update. Database still works. But we may need an acticle how to upgrade from 8.4 to 9.1.
Comment 1 Stefan Gohmann univentionstaff 2014-10-31 23:04:26 CET
(In reply to Felix Botner from comment #0)
> I think it is the best to block the update if postgresql-8.3 (7.4) is
> installed and refer to the postgres update article
> http://sdb.univention.de/1220 (currently only in german).

Could you add a test to preup and refer to the article? The article needs to be translated.

> Update with postgresql-8.4 works, postgresql-8.4 is not removed and
> postgresql-9.1 not installed during the update. Database still works. But we
> may need an acticle how to upgrade from 8.4 to 9.1.

Yes, I've created an errata bug for this: Bug #36376.
Comment 2 Felix Botner univentionstaff 2014-11-03 10:06:36 CET
(In reply to Stefan Gohmann from comment #1)
> (In reply to Felix Botner from comment #0)
> > I think it is the best to block the update if postgresql-8.3 (7.4) is
> > installed and refer to the postgres update article
> > http://sdb.univention.de/1220 (currently only in german).
> 
> Could you add a test to preup and refer to the article? The article needs to
> be translated.

english version is already available
http://sdb.univention.de/1249
Comment 4 Philipp Hahn univentionstaff 2014-11-03 15:00:00 CET
postgresql-8.3 was only shipped until UCS-2.4-4 sec2, so how did you get it installed on a UCS-3 system?
That check should have been added to the UCS-3 update some long time ago as any user is already using unmaintained software ...
Comment 5 Felix Botner univentionstaff 2014-11-03 15:19:44 CET
(In reply to Philipp Hahn from comment #4)
> postgresql-8.3 was only shipped until UCS-2.4-4 sec2, so how did you get it
> installed on a UCS-3 system?
> That check should have been added to the UCS-3 update some long time ago as
> any user is already using unmaintained software ...

System was installed with UCS 2.4-3 and updated to UCS 3.2-3.
Comment 6 Felix Botner univentionstaff 2014-11-03 16:20:26 CET
please refer to the English sdb article: http://sdb.univention.de/1249
Comment 7 Philipp Hahn univentionstaff 2014-11-03 18:30:29 CET
(In reply to Felix Botner from comment #6)
> please refer to the English sdb article: http://sdb.univention.de/1249

r55295 | Bug #36371 Updater: Block update on postgresql-8.3

Package: univention-updater
Version: 10.0.33-4.1306.201411031644
Branch: ucs_4.0-0
Comment 8 Felix Botner univentionstaff 2014-11-04 15:39:23 CET
It is still http://sdb.univention.de/1220 in the (english) release notes.
Comment 9 Philipp Hahn univentionstaff 2014-11-04 17:52:02 CET
(In reply to Felix Botner from comment #8)
> It is still http://sdb.univention.de/1220 in the (english) release notes.

r55363 | Bug #36371 Updater: Block on PostgreSQL-8.3
 Switched English release notes to English SDB article 1249
<http://jenkins.knut.univention.de:8080/job/UCS-4.0/job/UCS-4.0-0/job/Release%20Notes/lastSuccessfulBuild/artifact/webroot/release-notes-4.0-0-en.html#relnotes:removed>
Comment 10 Felix Botner univentionstaff 2014-11-05 10:08:18 CET
OK
Comment 11 Stefan Gohmann univentionstaff 2014-11-26 06:54:07 CET
UCS 4.0-0 has been released:
 http://docs.univention.de/release-notes-4.0-0-en.html
 http://docs.univention.de/release-notes-4.0-0-de.html

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