Bug 52771 - add univention-app update-check
add univention-app update-check
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: App Center
UCS 4.4
Other Linux
: P5 normal (vote)
: UCS 4.4-7-errata
Assigned To: Felix Botner
Erik Damrose
:
Depends on:
Blocks: 53297 53228
  Show dependency treegraph
 
Reported: 2021-02-11 13:44 CET by Felix Botner
Modified: 2023-01-05 09:08 CET (History)
2 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.
Comment 1 Felix Botner univentionstaff 2021-02-15 14:25:29 CET
ucs-test:
 * added 20_appcenter/90_update_check

univention-updater:
 * also check apps, extend blocking_components by blocking apps

univention-appcenter
 * added actions/update_check.py to check if installed apps are
   available in next ucs version
 -> univention-app update-check --ucs-version 5.0
 The update to 5.0 is currently not possible,
 because the following Apps are not available for UCS 5.0:
  * Nextcloud Hub
  * UCS Dashboard Client

MR: https://git.knut.univention.de/univention/ucs/-/merge_requests/68

all the above changes + an additional check "update_check_blocking_apps" in base/univention-updater/script/check.sh for command line updates
Comment 2 Erik Damrose univentionstaff 2021-02-19 12:29:30 CET
OK: u-updater, u-appcenter
OK: ucs-test 90_update_check
OK: Update blocked with e.g. installed OIDC App by UMC and CLI updater (univention-app update-check --ucs-version 5.0-0)
OK: Merge request
OK: yaml
Comment 4 Christina Scheinig univentionstaff 2023-01-05 09:08:59 CET
Knowledge about the introduced ucr Variable would have been interesting and helpful, so I could have helped the customer more efficiently, now he helped me.

# Bug #52771: check if apps are available
update_check_blocking_apps () {
        local var="update$VERSION/ignore_blocking_apps"
        ignore_check "$var" && return 100
        [ -f /var/univention-join/joined ] || return 0
        univention-app update-check --ucs-version "${VERSION_NAME}"
}