Bug 51865 - The univention updater needs to be updated in UCS 4.4 to find UCS 5.0
The univention updater needs to be updated in UCS 4.4 to find UCS 5.0
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: Update - univention-updater
UCS 4.4
Other Linux
: P5 normal (vote)
: UCS 4.4-7-errata
Assigned To: Erik Damrose
Julia Bremer
:
Depends on:
Blocks: 51690
  Show dependency treegraph
 
Reported: 2020-08-21 09:35 CEST by Jürn Brodersen
Modified: 2021-03-10 15:24 CET (History)
4 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
POC Upgrade (6.59 KB, patch)
2020-08-21 09:35 CEST, Jürn Brodersen
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jürn Brodersen univentionstaff 2020-08-21 09:35:38 CEST
Created attachment 10463 [details]
POC Upgrade

The univention updater needs to be updated in UCS 4.4 to find UCS 5.0

Due to the changed repository structure, the old method of finding release updates will not work for the update from 4.4 to 5.0.

Goal:
- The updater finds the UCS 5.0 release (I suggest using the new releases.json)
- The temporary sources list includes the 5.0 repository according to the new repository structure
- The pre/postup.sh scripte are downloaded and executed for 5.0 (the path to them has changed)

POC Upgrade:
I attached a patch for the 4.4 updater to test the upgrade to UCS 5.0
Comment 2 Erik Damrose univentionstaff 2021-02-05 12:05:29 CET
a741ce7d3b Bug #51865: UCS 4 updater finds updates to UCS 5
35746f8f91 Bug #51865: UCS 4 updater finds updates to UCS 5
5769639ce1 Bug #51865: UCS 4 updater finds updates to UCS 5

678253bc5f yaml

univention-updater 14.0.3-7A~4.4.0.202102051158
Comment 3 Erik Damrose univentionstaff 2021-02-09 21:47:05 CET
Several ucs tests failed with the above commits. I adjusted them to test against a UCS 5 repo where applicable.

23major is set to skipped. The test ultimately checks if after an update to UCS 5 the sources.list files are written correctly. But with the UCS 4 updater that is not required and supported for the apt templates.

git cc973962 + 88430abd
Bug #51865: extend updater lib for UCS 5 compatibility

ucs-test 9.0.7-17A~4.4.0.202102092143
Comment 4 Julia Bremer univentionstaff 2021-02-11 08:32:26 CET
Update from 4.4-7 to 5.0-0: OK
Update from 4.4-5 to 5.0-0: OK
With and without installed components (package based apps block update, because they are not available in 5.0-0: OK
Code review (thank you for your explanations): OK
unittests: OK
ucstests: OK
updater jenkins job in 5.0-0: OK

No merge to UCS5 needed: OK

Verified.