Univention Bugzilla – Bug 44023
20_appcenter/17_app_status
Last modified: 2017-04-04 18:29:59 CEST
17_app_status uses the deprecated AppManager. We have to switch to univention.appcenter.app_cache (at least for the 4.1 docker apps). 20_appcenter/appcentertest.py - get_requested_apps() -from univention.appcenter import AppManager +from univention.appcenter.app_cache import Apps - app = AppManager.find(line.strip()) + app = Apps().find(line.strip())
replaced AppManager with Apps in 20_appcenter and 21_appcenter_uninstall
Please have a look here: http://jenkins.knut.univention.de:8080/job/UCS-4.2/job/UCS-4.2-0/job/AutotestJoin/SambaVersion=s3,Systemrolle=member/87/testReport/21_appcenter-uninstall/25_app_uninstall/test/ (2017-03-22 22:13:33.963273) Traceback (most recent call last): (2017-03-22 22:13:33.963365) File "25_app_uninstall", line 96, in <module> (2017-03-22 22:13:33.963470) for app in get_requested_apps(): (2017-03-22 22:13:33.963531) File "/usr/share/ucs-test/21_appcenter-uninstall/appcenteruninstalltest.py", line 48, in get_requested_apps (2017-03-22 22:13:33.963637) utils.fail('Error reading %s: %s' % (APPCENTER_FILE, exc)) (2017-03-22 22:13:33.963922) NameError: global name 'exc' is not defined
(In reply to Stefan Gohmann from comment #2) > Please have a look here: > > http://jenkins.knut.univention.de:8080/job/UCS-4.2/job/UCS-4.2-0/job/ > AutotestJoin/SambaVersion=s3,Systemrolle=member/87/testReport/21_appcenter- > uninstall/25_app_uninstall/test/ > > (2017-03-22 22:13:33.963273) Traceback (most recent call last): > (2017-03-22 22:13:33.963365) File "25_app_uninstall", line 96, in <module> > (2017-03-22 22:13:33.963470) for app in get_requested_apps(): > (2017-03-22 22:13:33.963531) File > "/usr/share/ucs-test/21_appcenter-uninstall/appcenteruninstalltest.py", line > 48, in get_requested_apps > (2017-03-22 22:13:33.963637) utils.fail('Error reading %s: %s' % > (APPCENTER_FILE, exc)) > (2017-03-22 22:13:33.963922) NameError: global name 'exc' is not defined ok, i reverted that change (do not fail if /var/cache/appcenter-uninstalled.txt is missing)
OK, works in my tests
UCS 4.2 has been released: https://docs.software-univention.de/release-notes-4.2-0-en.html https://docs.software-univention.de/release-notes-4.2-0-de.html If this error occurs again, please use "Clone This Bug".