Bug 53312 - Purge univention-corporate-client-schema before upgrade
Purge univention-corporate-client-schema before upgrade
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: Update - Release updates
UCS 5.0
Other Linux
: P5 normal (vote)
: UCS 5.0
Assigned To: Florian Best
Jürn Brodersen
: interim-7
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2021-05-21 12:05 CEST by Florian Best
Modified: 2021-05-25 15:58 CEST (History)
1 user (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 Florian Best univentionstaff 2021-05-21 12:05:09 CEST
The upgrade to UCS 5.0 with installed univention-corporate-client-schema causes:

* Error due to: univention-corporate-client-schema: /etc/univention/templates/files/etc/ldap/slapd.conf.d/65ucc
  updater.log shows:
===========================================
Failed to process Subfile /etc/univention/templates/files/etc/python2.6/sitecustomize.py.d/10apport.py
Failed to process Subfile /etc/univention/templates/files/etc/python2.6/sitecustomize.py.d/20utf8.py
File: /etc/init.d/slapd
Multifile: /etc/ldap/slapd.conf
  File "<stdin>", line 18
    ''' % { 'access' : access }
      ^   
SyntaxError: invalid syntax
  File "<stdin>", line 18
    ''' % { 'access' : access }
      ^   
SyntaxError: invalid syntax
  File "<stdin>", line 18
    ''' % { 'access' : access }
      ^   
SyntaxErr

→ We have to purge the package in preup.sh
Comment 1 Florian Best univentionstaff 2021-05-21 14:54:19 CEST
Added the package to the list of to be purged packages:

univention-updater (15.0.3-63)
a8eb9d7eb84f | Bug #53312: let univention-corporate-client-schema be purged during upgrade

Purged are: ucc-management-integration* univention-corporate-client-schema*

Therefore invalid files are removed:
/usr/lib/univention-directory-listener/system/ucc-nss-passwd.py
/etc/univention/templates/files/etc/ldap/slapd.conf.d/65ucc

The schema /usr/share/univention-corporate-client-schema/univention-corporate-client.schema is also removed, and seems not to be registered in LDAP but seems copied to 
/var/lib/univention-ldap/local-schema/univention-corporate-client.schema.
The check "update_check_legacy_objects" forces also to remove all UCC objects.
Comment 2 Jürn Brodersen univentionstaff 2021-05-25 12:50:14 CEST
Update is blocked with "univention-corporate-client-schema" installed -> OK
purge of package is possible -> OK
update is not blocked after purge -> OK
system upgrade -> OK
Comment 3 Florian Best univentionstaff 2021-05-25 15:58:50 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".