Bug 39287 - univention-upgrade should suggest App Center updates: fails if version does not exist
univention-upgrade should suggest App Center updates: fails if version does n...
Status: CLOSED DUPLICATE of bug 30417
Product: UCS Test
Classification: Unclassified
Component: Updater
unspecified
Other Linux
: P5 normal (vote)
: ---
Assigned To: Philipp Hahn
:
Depends on:
Blocks: 30417
  Show dependency treegraph
 
Reported: 2015-08-31 10:18 CEST by Philipp Hahn
Modified: 2023-03-25 06:51 CET (History)
9 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):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Philipp Hahn univentionstaff 2015-08-31 10:18:16 CEST
Jenkins regressions 4.0-3:

The tests set version/{version,patchlevel,erratalevel} to some specific values to test the updater functionality.
If the corresponding App center files don't exist, the functions to test for available App updates fail

**** Starting univention-updater with parameter=['/usr/share/univention-updater/univention-updater', 'net']
Version=4.1
Patchlevel=0
starting net mode
--->DBG:update_available(mode=net, cdrom_mount_point=/cdrom, iso=None)
Checking network repository
System is up to date (UCS 4.1-0)

Starting univention-upgrade. Current UCS version is 4.1-0 errata0

Checking for local repository:                          skipped
Checking for release updates:                           none
Checking for package updates:                           none
Checking for app updates:                              Downloading "https://appcenter.software-univention.de/meta-inf/4.1/index.json.gz"...
 Traceback in univention-upgrade:
Traceback (most recent call last):
  File "/usr/sbin/univention-upgrade", line 442, in main
    update_available = performUpdate(options, checkForUpdates=True, silent=False)
  File "/usr/sbin/univention-upgrade", line 279, in performUpdate
    if do_app_updates(options, checkForUpdates, silent):
  File "/usr/sbin/univention-upgrade", line 315, in do_app_updates
    new_apps = list(app_upgrade.iter_upgradable_apps())
  File "/usr/lib/pymodules/python2.7/univention/appcenter/actions/upgrade.py", line 62, in iter_upgradable_apps
    for app in _Application.all_installed(package_manager):
  File "/usr/lib/pymodules/python2.7/univention/management/console/modules/appcenter/app_center.py", line 752, in all_installed
    for app in cls.all(force_reread=force_reread, only_local=only_local, localize=localize):
  File "/usr/lib/pymodules/python2.7/univention/management/console/modules/appcenter/app_center.py", line 775, in all
    cls.sync_with_server()
  File "/usr/lib/pymodules/python2.7/univention/management/console/modules/appcenter/app_center.py", line 607, in sync_with_server
    raise AppcenterServerContactFailed(exc)
AppcenterServerContactFailed: Error while contacting the App Center server. https://appcenter.software-univention.de/meta-inf/4.1/index.json.gz could not be downloaded. This seems to be a problem with the App Center server. Please try again later.


$ wget https://appcenter.software-univention.de/meta-inf/4.1/index.json.gz
--2015-08-26 17:50:45--  https://appcenter.software-univention.de/meta-inf/4.1/index.json.gz
Auflösen des Hostnamen »appcenter.software-univention.de (appcenter.software-univention.de)«... 176.9.114.147, 2a01:4f8:151:6489::2
Verbindungsaufbau zu appcenter.software-univention.de (appcenter.software-univention.de)|176.9.114.147|:443... verbunden.
HTTP-Anforderung gesendet, warte auf Antwort... 404 Not Found
2015-08-26 17:50:46 FEHLER 404: Not Found.

+++ This bug was initially created as a clone of Bug #38697 +++
Comment 1 Stefan Gohmann univentionstaff 2015-09-08 16:34:51 CEST
So, it is a problem of the test cases, isn't it?
Comment 2 Florian Best univentionstaff 2015-09-08 16:48:57 CEST
(In reply to Stefan Gohmann from comment #1)
> So, it is a problem of the test cases, isn't it?

I wouldn't say so?! The exception should be catched in univention-updater.
(/me did not look at the code + test cases).
Comment 3 Philipp Hahn univentionstaff 2015-09-15 10:23:56 CEST
Bug #30417: The updater will now just ignore that Exception

*** This bug has been marked as a duplicate of bug 30417 ***
Comment 4 Stefan Gohmann univentionstaff 2016-10-12 07:49:12 CEST
For this bug is no separate QA needed.