Bug 53059 - univention-mariadb may get uninstalled when updating to UCS 5
univention-mariadb may get uninstalled when updating to UCS 5
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: MySQL
UCS 5.0
Other Linux
: P5 normal (vote)
: UCS 5.0
Assigned To: Dirk Wiesenthal
Arvid Requate
: interim-2
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2021-04-12 12:25 CEST by Erik Damrose
Modified: 2021-05-25 15:59 CEST (History)
3 users (show)

See Also:
What kind of report is it?: Development Internal
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 Erik Damrose univentionstaff 2021-04-12 12:25:54 CEST
Bug 52957 put a breaks on the univention-mysql package into univention-role-common.

In UCS 4, univention-mysql depends on univention-mariadb, but the app center installs u-mysql for apps which require such a database.

When updating to UCS 5 u-mysql get removed, leaving u-mariadb as an automatically installed package without any package depending on it.

Due to this package structure, this causes u-mariadb to get uninstalled with the apt-get autoremove in the UCS 5 postinst. This removes the mariadb integration, e.g. access from docker apps to the database.

I suggest to check in the UCS 5 preup if u-mysql and u-mariadb are installed, and mark u-mariadb as manually installed.

The app center itself needs no additional change in UCS 5 as it already installs u-mariadb.
Comment 1 Florian Best univentionstaff 2021-04-13 10:13:12 CEST
Better reopen Bug #52957 in this case.
Comment 2 Dirk Wiesenthal univentionstaff 2021-04-14 12:08:30 CEST
apt-mark manual univention-mariadb in preup.sh

univention-updater 15.0.3-37A~5.0.0.202104141206
Comment 3 Arvid Requate univentionstaff 2021-05-06 14:03:09 CEST
Works, UCS-5 changelog not required.
Comment 4 Florian Best univentionstaff 2021-05-25 15:59:15 CEST
UCS 5.0 has been released:
 https://docs.software-univention.de/release-notes-5.0-0-en.html
 https://docs.software-univention.de/release-notes-5.0-0-de.html

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