Bug 57064 - Missing dependency for Python 2 packages
Missing dependency for Python 2 packages
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: univention-debug
UCS 5.0
Other Linux
: P5 normal (vote)
: UCS 5.0-6-errata
Assigned To: Florian Best
Julia Bremer
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2024-02-15 21:57 CET by Florian Best
Modified: 2024-02-21 13:08 CET (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 2024-02-15 21:57:14 CET
Due to some unknown circumstances the python2 packages aren't upgraded to the latest versions after system setup. This causes when some packages are installed in a recent version some are just left as they are that we get into a broken state, e.g. for UDM.

Symtpoms look like, e.g. in a school environment where the pre-join hook is still Python 2 to support UCS 4.4 mixed environments:

univention-join-hooks: looking for hook type "join/pre-joinscripts" on primary.school.test$
Found hooks:$
  cn=ucsschool-join-hook.py,cn=data,cn=univention,dc=school,dc=test$
Running: ucsschool-join-hook.py (cn=ucsschool-join-hook.py,cn=data,cn=univention,dc=school,dc=test) in /tmp/tmps_nt56cu/tmp6a2bbgkq$                                                          Traceback (most recent call last):$
  File "/tmp/tmps_nt56cu/tmp6a2bbgkq", line 53, in <module>$
    import univention.admin$
  File "/usr/lib/python2.7/dist-packages/univention/admin/__init__.py", line 51, in <module>$
    import univention.logging  # noqa: F401$                                                   ImportError: No module named logging$

→ We should add explicit versioned dependencies
Comment 1 Florian Best univentionstaff 2024-02-15 22:05:42 CET
The missing dependency has been added.

univention-directory-manager-modules.yaml
1197851c8b08 | fix(udm): add missing dependency on python-univention-debug

univention-directory-manager-modules (15.0.25-6)
1197851c8b08 | fix(udm): add missing dependency on python-univention-debug
Comment 2 Julia Bremer univentionstaff 2024-02-18 14:47:42 CET
OK: Dependency has been added
OK: Manual installatio
OK: Jenkins (unfortunately, the install tests of ucs@school still fail, they will only be successful upon release of this package)
OK: YAML

Verified