Univention Bugzilla – Bug 22878
Thin Client Pakete in UCS 3.0
Last modified: 2011-12-13 15:50:54 CET
Die Thin Client Komponente sollte in UCS 3.0 nicht mehr ausgeliefert werden. Nach dem UCS 3.0 Release wird UCS TCS 3.2 veröffentlicht, welches auf UCS 3.0 installiert werden kann.
Das Update müsste geblockt werden, wenn die Thin Client Pakete installiert sind. Es müsste auch ein Hinweis in die Release Notes aufgenommen werden.
3.0/changelog.tex und 3.0/release-notes.tex angepasst. Das preup des Updater prüft, ob univention-thin-client-basesystem installiert ist. Falls dem so ist, wird die Komponenten tcs mit univention-config-registry set \ repository/online/component/tcs=yes \ repository/online/component/tcs/version=current aktiviert. Dann wird mit python univention.updater geprüft, ob die Komponenet tcs für 3.0 verfügbar ist (online Repo bzw. lokales Repo.). Wenn der Updater die Komponente nicht findet, bricht er mit Fehlermeldung ab.
Ich habe univention-thin-client noch aus dem dvd build Skript entfernt. Bitte nochmal kurz prüfen, ob sonst noch TCS Pakete auf der DVD landen.
Jetzt auch aus der installer packages_list.py entfernt.
Das PreUp-Skript von 2.4-x auf 3.0 wird auf einem UCS-2.4-x-System ausgeführt und verwendet python2.6, was es dort (noch) nicht gibt. Dort muß noch python2.4 verwendet werden! $ svn cat svn+ssh://billy/var/svn/dev/branches/ucs-3.0/ucs/base/univention-updater/script/preup.sh | grep -F python2.6 scope=$(python2.6 -c ' #!/usr/bin/python2.6
(In reply to comment #5) > Das PreUp-Skript von 2.4-x auf 3.0 wird auf einem UCS-2.4-x-System ausgeführt > und verwendet python2.6, was es dort (noch) nicht gibt. Dort muß noch python2.4 > verwendet werden! > > $ svn cat > svn+ssh://billy/var/svn/dev/branches/ucs-3.0/ucs/base/univention-updater/script/preup.sh > | grep -F python2.6 > scope=$(python2.6 -c ' > #!/usr/bin/python2.6 Es sollte geprüft werden ob der Updater aus 3.0 schon installiert ist, das kommt vor, wenn das Update irgendwo abbricht. In diesem Fall sollte python2.6 verwendet werden.
Des Skript testet jetzt mit + version=$(dpkg-query -W -f '${Version}' univention-updater) + if dpkg --compare-versions "$version" lt "7.0"; then + python_version="python2.4" + else + python_version="python2.6" + fi ob univention-updater aus UCS 3.0 (univention-updater Version größer 7.0) installiert ist.
Mein Update Versuch: ----------------------------------------------------------------------- root@qamaster:~# univention-updater net --ignoressh Checking network repository Update to = 3.0-0 HINT: Please check the following documents carefully BEFORE updating to UCS : Changelog: http://download.univention.de/doc/changelog-2.4-2.pdf Please also consider documents of following release updates and 3rd party components. Update will wait here for 60 seconds... Press CTRL-c to abort or press ENTER to continue Create repository/online/component/tcs Create repository/online/component/tcs/version File: /etc/apt/sources.list.d/20_ucs-online-component.list File: /etc/apt/mirror.list File: /etc/apt/sources.list.d/15_ucs-online-version.list File: /etc/apt/sources.list.d/18_ucs-online-security.list WARNING: An update to UCS 3.0 without the component 'tcs' is not possible because the component 'tcs' is required. Error: Update aborted by pre-update script of release 4.0-0 Error: Please check "/var/log/univention/updater.log" for details. ----------------------------------------------------------------------- Da auf vielen Systemen die Thin Client Komponente installiert ist, da die per Default ausgewählt wurde in der 2.x Installation, sollte der Text angepasst werden. Es besteht ja die Option, die Thin Client Komponente vor dem 3.0 Update zu entfernen. Jetzt ist die Thin Client Komponente aktiv und wenn der Admin sich gegen das Update entschiedet, so wird er trotzdem beim nächsten Update von der Standard Thin Client Komponente aus 2.4 auf UCS TCS 3.1 aktualisieren.
Ich habe das preup.sh angepasst.
Changelog/Release notes → OK Keine TC-Pakete auf DVD → OK Kein TC in Softwareauswahl → OK Ohne TCS für 3.0: Update mit installiertem u-thin-client-basesystem blockt Update → OK Update mit aktiviertem TCS blockt Update → OK Update ohne jegliches TC läuft → OK Mit TCS für 3.0: Update mit installiertem u-thin-client-basesystem läuft → OK Update mit aktiviertem TCS läuft → OK Update ohne jegliches TC läuft → OK
Das preup.sh beinhaltet ein if-then-continue: if [ -n "$checkTcsComponent" -a "$checkTcsComponent" = "no" ]; then continue
(In reply to comment #11) > Das preup.sh beinhaltet ein if-then-continue: > if [ -n "$checkTcsComponent" -a "$checkTcsComponent" = "no" ]; then > continue Ist angepasst.
Noch eine kleine Anpassung, die Variablen werden nur zurückgesetzt, wenn das Update abgebrochen wird. Ansonsten muss die neue Komponente verwendet werden.
(In reply to comment #12) > (In reply to comment #11) > > Das preup.sh beinhaltet ein if-then-continue: > > if [ -n "$checkTcsComponent" -a "$checkTcsComponent" = "no" ]; then > > continue > > Ist angepasst. OK (In reply to comment #13) > Noch eine kleine Anpassung, die Variablen werden nur zurückgesetzt, wenn das > Update abgebrochen wird. Ansonsten muss die neue Komponente verwendet werden. OK
UCS 3.0-0 wurde veröffentlicht. Sollte der hier beschriebene Bug mit einer neueren Version von UCS erneut auftreten, so sollte dieser Bug dupliziert werden: "Clone This Bug"