Univention Bugzilla – Bug 33535
Wrong ini files fetched when upgrading to 3.2 on DC Master/Backup
Last modified: 2013-12-12 11:30:40 CET
The App Center module ships a join script that registers all installed applications. This is done to add the apps to LDAP and to set overview links. Unfortunately during upgrade this script is called while ucr says version/version is 3.1, so the wrong ini files are fetched and used. This leads to inconsistencies when the 3.2 ini file changed. Seen in Zarafa: UCSOverviewCategory=False is not evaluated because it is not present in 3.1's ini file. Probably a problem in DRBD, too. Version changed from 3.1 to 3.2, so the wrong LDAP object is created. Maybe more apps are affected by this bug.
Hacky: Overwrite Application.get_metainf_url() to use 3.2. One has to adjust this each time UCS releases a minor or major upgrade...
Probably better would be a variable version/target/version (or something like that) that could be used and is set at the beginning of univention-upgrade starts (and unset afterwards). That would not help here, though. The problem is the 3.1 updater
I've added UCSOverviewCategory=False to the 3.1 zarafa ini file.
(In reply to Dirk Wiesenthal from comment #1) > Good idea: Overwrite Application.get_metainf_url() to use 3.2 Application.get_metainf_url = classmethod(lambda cls: '%s/meta-inf/%s' % (cls.get_server(with_scheme=True), '3.2')) Then change again for next minor/major release (because Bug#33548 will be fixed)
Fixed in univention-management-console-module-appcenter 3.0.50-5.218.201311222209 YAML updated. Changelog not created, no version built for next UCS version
There was another problem: During update, the dpkg status of the packages used as system components were not INSTALLED (have not checked which state it was, probably something like UNPACKED). Because of strict checks in PackageManager system components did not count as installed. This was fixed, too (on App Center level, not PackageManager level as the check itself is correct in general). I had to build the package several times to realistically test the update process, thus the high -x version. Fixed in univention-management-console-module-appcenter 3.0.50-13.226.201311280353 QA: Interesting apps: DRBD (version changed), Zarafa (no overview links shall be created), OX (both), Samba 4 (system component that may receive an update along with this errata update) Check other apps, too. The problem is that UCSOverviewCategory=False was added to 3.1's Zarafa and OX shortly after this bug was found. This is not reproducible anymore without getting creative.
Ok, after installing the errata update the system components are correctly registered, also the DRBD version is correct. Code-Review: OK YAML: OK
http://errata.univention.de/ucs/3.2/8.html