Univention Bugzilla – Bug 40700
Skip UCS 3.3 upgrade
Last modified: 2016-06-07 21:35:46 CEST
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.
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(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.
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.
The fix need to be merged and released as erratum for UCS 3.2-8.
* 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
OK, it works as expected, see Bug #40909.
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".