Bug 51508 - Start UMC-Server components with Python 3
Start UMC-Server components with Python 3
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: UMC (Generic)
UCS 5.0
Other Linux
: P5 normal (vote)
: UCS 5.0
Assigned To: Florian Best
Sebastian Lobinger
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2020-06-17 00:17 CEST by Florian Best
Modified: 2021-05-25 15:58 CEST (History)
0 users

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 2020-06-17 00:17:40 CEST
The UMC scripts, servers should by default run with Python 3 in UCS 5.
Comment 1 Florian Best univentionstaff 2020-07-06 16:32:55 CEST
univention-management-console (12.0.0-2)
| Bug #51508: execute everything with Python 3

changelog-5.0-0.xml
| Changelog Bug #51508
Comment 2 Florian Best univentionstaff 2021-01-29 11:50:33 CET
Another error occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/univention/management/console/base.py", line 359, in __error_handling
    six.reraise(etype, exc, etraceback)
  File "/usr/lib/python3/dist-packages/six.py", line 693, in reraise
    raise value
  File "/usr/lib/python3/dist-packages/univention/management/console/base.py", line 262, in execute
    function.__func__(self, request, *args, **kwargs)
  File "/usr/lib/python3/dist-packages/univention/management/console/protocol/session.py", line 967, in _authentication_finished2
    self.initalize_processor(request)
  File "/usr/lib/python3/dist-packages/univention/management/console/protocol/session.py", line 1009, in initalize_processor
    self.processor.set_credentials(**self.__credentials)
  File "/usr/lib/python3/dist-packages/univention/management/console/protocol/session.py", line 177, in set_credentials
    self._reload_acls_and_permitted_commands()
  File "/usr/lib/python3/dist-packages/univention/management/console/protocol/session.py", line 181, in _reload_acls_and_permitted_commands
    self._reload_acls()
  File "/usr/lib/python3/dist-packages/univention/management/console/protocol/session.py", line 186, in _reload_acls
    self.acls = LDAP_ACLs(self.lo, self._username, ucr['ldap/base'])
  File "/usr/lib/python3/dist-packages/univention/management/console/acl.py", line 367, in __init__
    self._read_from_ldap()
  File "/usr/lib/python3/dist-packages/univention/management/console/acl.py", line 407, in _read_from_ldap
    self.acls.sort(key=getvals)
TypeError: '<' not supported between instances of 'dict' and 'dict'
Comment 3 Florian Best univentionstaff 2021-01-29 11:51:22 CET
The UMC-Server now runs with Python 3:

univention-ucs-translation-template (7.0.0-3)
eaee95b12938 | Bug #51508: fix python 3 compatibility

univention-management-console (12.0.6-4)
72af9204bee0 | Bug #51508: fix sorting ACL'S
d230a6e6b0ec | Bug #51508 fix error in setup_saml_sp.py:
c498682aa288 | Bug #51508: migrate UMC listener to Python 3
a297a9512469 | Bug #51508 UMC: enhance log output
64e3966060c9 | Bug #51508 UMC: inspect.getargspec is deprecated
94d27681dbb3 | Bug #51508 UMC: Fix TypeError: '<' not supported between instances of 'str' and 'int'
db5dc393a69b | Bug #51508 UMC: execute everything with Python 3
e55a4f632777 | Bug #51508 UMC: Fix stopping UMC-Server during startup
68151b19bdbf | Bug #51508 UMC-Server: enhance debug logging during authentication

changelog-5.0-0.xml
ecdcc74a4ecb | Changelog Bug #51508
Comment 4 Sebastian Lobinger univentionstaff 2021-03-10 15:10:17 CET
verified:
- UMC Server is started with python3 ps aufx | grep "/usr/sbin/univention-management-console-server start"

root     14054  0.0  0.0   6572   884 pts/2    S+   15:02   0:00          \_grep /usr/sbin/univention-management-console-server start
root     23681  0.0  3.0 238184 61288 ?        S    11:35   0:02 /usr/bin/python3 /usr/sbin/univention-management-console-server start

- changelog entry exists in doc/changelog/changelog-5.0-0.xml
Comment 5 Florian Best univentionstaff 2021-05-25 15:58:40 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".