Bug 40700 - Skip UCS 3.3 upgrade
Skip UCS 3.3 upgrade
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: Update - univention-updater
UCS 3.3
Other Linux
: P5 enhancement (vote)
: UCS 3.3
Assigned To: Felix Botner
Stefan Gohmann
:
Depends on:
Blocks: 40909
  Show dependency treegraph
 
Reported: 2016-02-16 21:05 CET by Stefan Gohmann
Modified: 2016-06-07 21:35 CEST (History)
1 user (show)

See Also:
What kind of report is it?: ---
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 Stefan Gohmann univentionstaff 2016-02-16 21:05:09 CET
It should be possible to skip the update to UCS 3.3 and to update directly to UCS 4.0.

For example, if the update is blocked due to a blocked component. In this case one can easily set a UCR variable and upgrade directly to UCS 4.0. This should be shown via CLI and UMC.
Comment 1 Sönke Schwardt-Krummrich univentionstaff 2016-02-17 10:40:21 CET
I had a short glimpse at the code. It looks like if it's sufficient to alter get_next_version() in tools.py → skip next minor version if current version is 3.2 and UCR variable XYZ is set.
Comment 2 Sönke Schwardt-Krummrich univentionstaff 2016-03-10 17:45:14 CET
I(In reply to Sönke Schwardt-Krummrich from comment #1)
> I had a short glimpse at the code. It looks like if it's sufficient to alter
> get_next_version() in tools.py → skip next minor version if current version
> is 3.2 and UCR variable XYZ is set.

I altered get_next_version() in tools.py and added a check that comes into effect if major==3 and minor==2 and UCR variable "update33/skip/ucs3.3" contains a False value. In that case, the next minor version (ucs 3.3) should be skipped.

Unfortunately the test suite fails.
Comment 3 Stefan Gohmann univentionstaff 2016-03-12 12:20:30 CET
r68045: I've split the if statement into two and fixed it. That makes it easier to read and now the package has been built.
Comment 4 Stefan Gohmann univentionstaff 2016-03-16 13:34:29 CET
The fix need to be merged and released as erratum for UCS 3.2-8.
Comment 5 Felix Botner univentionstaff 2016-03-16 16:48:18 CET
* Added "update33/skip/ucs3.3 message" in case a installed component is not
  available for 3.3,
  for command line update and UMC

+"But it is possible to skip UCS 3.3 and update to UCS 4.0 directly by "
+"setting the UCR variable update33/skip/ucs3.3 to true using the %(ucr)s. "
+"Afterwards, the software update can be restarted."

  No "skip 3.3 and update to 4.0"-button for now, just this message, one than 
  can decide to set "update33/skip/ucs3.3" and update to 4.0 (skipping 3.3) or 
  to wait.

* tested update33/skip/ucs3.3=true with 
  - UMC 
  - univention-upgrade
  - /usr/share/univention-updater/univention-updater net

* tested update without update33/skip/ucs3.3
  - update to 3.3
  - than update to 4.0

* Bug #40909 for errata 3.2-8
Comment 6 Stefan Gohmann univentionstaff 2016-04-19 07:49:13 CEST
OK, it works as expected, see Bug #40909.
Comment 7 Stefan Gohmann univentionstaff 2016-06-07 21:35:46 CEST
UCS 3.3 has been released:
 https://docs.software-univention.de/release-notes-3.3-0-en.html
 https://docs.software-univention.de/release-notes-3.3-0-de.html

If this error occurs again, please use "Clone This Bug".