Bug 22878 - Thin Client Pakete in UCS 3.0
Thin Client Pakete in UCS 3.0
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: General
UCS 3.0
Other Linux
: P5 enhancement (vote)
: UCS 3.0 - MS1
Assigned To: Stefan Gohmann
Janek Walkenhorst
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-06-28 08:12 CEST by Stefan Gohmann
Modified: 2011-12-13 15:50 CET (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 2011-06-28 08:12:35 CEST
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.
Comment 1 Stefan Gohmann univentionstaff 2011-07-25 13:25:31 CEST
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.
Comment 2 Felix Botner univentionstaff 2011-07-26 12:25:39 CEST
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.
Comment 3 Stefan Gohmann univentionstaff 2011-07-28 18:13:04 CEST
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.
Comment 4 Stefan Gohmann univentionstaff 2011-08-02 09:04:46 CEST
Jetzt auch aus der installer packages_list.py entfernt.
Comment 5 Philipp Hahn univentionstaff 2011-08-03 16:56:19 CEST
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
Comment 6 Stefan Gohmann univentionstaff 2011-08-03 17:14:09 CEST
(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.
Comment 7 Felix Botner univentionstaff 2011-08-03 17:53:31 CEST
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.
Comment 8 Stefan Gohmann univentionstaff 2011-08-10 10:08:06 CEST
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.
Comment 9 Stefan Gohmann univentionstaff 2011-08-10 15:57:24 CEST
Ich habe das preup.sh angepasst.
Comment 10 Janek Walkenhorst univentionstaff 2011-08-12 16:14:36 CEST
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
Comment 11 Janek Walkenhorst univentionstaff 2011-08-12 16:31:43 CEST
Das preup.sh beinhaltet ein if-then-continue:
 if [ -n "$checkTcsComponent" -a "$checkTcsComponent" = "no" ]; then
     continue
Comment 12 Stefan Gohmann univentionstaff 2011-08-15 07:11:31 CEST
(In reply to comment #11)
> Das preup.sh beinhaltet ein if-then-continue:
>  if [ -n "$checkTcsComponent" -a "$checkTcsComponent" = "no" ]; then
>      continue

Ist angepasst.
Comment 13 Stefan Gohmann univentionstaff 2011-08-15 12:14:06 CEST
Noch eine kleine Anpassung, die Variablen werden nur zurückgesetzt, wenn das Update abgebrochen wird. Ansonsten muss die neue Komponente verwendet werden.
Comment 14 Janek Walkenhorst univentionstaff 2011-08-19 16:12:11 CEST
(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
Comment 15 Sönke Schwardt-Krummrich univentionstaff 2011-12-13 15:50:54 CET
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"