Univention Bugzilla – Bug 47551
Block UCS 4.2 update to 4.3 with ox app installed due to schema registration
Last modified: 2018-08-21 13:10:43 CEST
Adapt the 4.3-0 preup.sh on *all* UCS systems and block the update to 4.3, when The OX app is installed locally *AND* ( the OX schema is not present in LDAP *OR* the schema file "oxforucs.schema" is not marked as ACTIVE in local LDAP ) If that is the case, show a helptext that links to an sdb article with hints on how to proceed. There will be an erratum which enabled the ldap schema registration for the ox app, so one fix is to update the ucs master to that erratalevel.
New problem: the LDAP schema is always marked ACTIVE but not used. It looks like we have to check the UCR variable ox/master/42/registered_ldap_acls on the DC master. Unless it's set to "yes", we have to stop the update.
New logic: The OX app is installed locally *AND* ( the OX schema is not present in LDAP *OR* on DC master is UCR variable ox/master/42/registered_ldap_acls != "yes" )
df10f74 Adapt preup for OX test if the app is installed by checking for the default package. Only then checks for the UCRv and ldap schema is run. The check for the UCRv is logging into the master via ssh regardless the server role. The output of both checks is dumped to updater.log for debugging The sdb article should be filled with information how to fix the issue: https://help.univention.com/t/9440 Set UCRv update43/ignore_ox_schema_issue to true to avoid the preup abort.
The blocking has worked in my tests.
Found some logic bugs → REOPEN
Thanks Sönke for the suggestions. I applied them and pushed the preup to the test servers. a293f51b Adapt 4.3-0 preup for OX
As discussed, i pushed the preup to the public repository server http://updates.software-univention.de/4.3/maintained/4.3-0/all/
OK: code change OK: manual test OK: signature