Bug 56111 - Traceback during system setup
Traceback during system setup
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: univention-lib
UCS 5.0
Other Linux
: P5 normal (vote)
: UCS 5.0-3-errata
Assigned To: Florian Best
Julia Bremer
https://git.knut.univention.de/univen...
: python3-migration
Depends on: 55632
Blocks:
  Show dependency treegraph
 
Reported: 2023-06-01 21:38 CEST by Julia Bremer
Modified: 2023-06-07 09:44 CEST (History)
3 users (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): bitesize
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Julia Bremer univentionstaff 2023-06-01 21:38:43 CEST
Since commit 

0d61cc72671
The system setup tracebacks when an error should be displayed.

The commit changed:
-            to_be_installed, to_be_removed, broken = self.mark(install, remove, dry_run=True)
+            _, _, broken = self.mark(install, remove, dry_run=True)

And therefore overwrote the translation function called "_"

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/univention/management/console/modules/setup/setup_script.py", line 334, in run
    success = self.inner_run()
              ^^^^^^^^^^^^^^^^
  File "/usr/lib/univention-system-setup/scripts/05_role/10role", line 89, in inner_run
    success = self.install(wanted_server_role_package)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/univention/management/console/modules/setup/setup_script.py", line 453, in install
    return self.package_manager.install(*pkg_names)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/univention/lib/package_manager.py", line 1134, in install
    return self.commit(install=pkg_names)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/univention/lib/package_manager.py", line 957, in commit
    self.progress_state.error('%s: %s' % (pkg.name, _('Failed to install')))
                                                    ^^^^^^^^^^^^^^^^^^^^^^
TypeError: 'list' object is not callable




+++ This bug was initially created as a clone of Bug #55632 +++

Some leftover references of Python 2.7 exists:

management/univention-appcenter/conffiles/etc/univention/service.info/services/univention-appcenter.cfg:
> programs=python /usr/bin/univention-run-app %s start
mail/univention-spamassassin/debian/univention-spamassassin.postinst:
>                           python -c 'import pty; pty.spawn(["/etc/cron.daily/spamassassin"])
management/univention-appcenter/debian/univention-management-console-module-appcenter.postinst:
> python -c "from univention.appcenter.actions import get_action; get_action…
management/univention-management-console/usr/share/univention-management-console/saml/update_metadata:
> metadata=$(python -c "from saml2.metadata import create_metadata_string…
Comment 1 Florian Best univentionstaff 2023-06-05 17:27:58 CEST
univention-lib.yaml
90b8419c877a | Bug #56111: fix overwriting of "_" translation variable

univention-lib (9.0.14-6)
90b8419c877a | Bug #56111: fix overwriting of "_" translation variable
Comment 2 Julia Bremer univentionstaff 2023-06-06 16:37:34 CEST
OK: System setup doesn't traceback when it should raise an error
OK: Jenkins tests

Verified