Bug 32148 - Progress of software installation/removal incorrect
Progress of software installation/removal incorrect
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: UMC - Basic settings
UCS 3.1
Other Linux
: P5 normal (vote)
: UCS 3.2
Assigned To: Dirk Wiesenthal
Lukas Walter
: interim-2
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-08-02 13:53 CEST by Alexander Kläser
Modified: 2013-11-19 06:44 CET (History)
2 users (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): Usability
Max CVSS v3 score:


Attachments
/var/log/univention/management-console-module-setup.log (78.34 KB, text/plain)
2013-08-02 13:53 CEST, Alexander Kläser
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Kläser univentionstaff 2013-08-02 13:53:27 CEST
The progress computation in 50_software/10software is incorrect when removing a software component:
__STEPS__:300
__STEP__:100
...
__STEP__:133.3333
...
__STEP__:166.6667
__STEP__:200.0
...
__STEP__:100.0
__STEP__:100.0
__STEP__:103.33333
...
→ It seems that the different steps in removing/adding software are not reflected in the percentage (@Dirk: could that be?).

Even when installing a component and when the __STEP__ information seems correct, the progress bar seems to hang at a specific percentage (see debug information in the attached log file, "### _percentage" prints the current progress state, "### matched" prints the currently matched output line of the setup scripts):

> ...
> 02.08.13 13:44:14.873  MODULE      ( INFO    ) : ### _percentage:26.00 fraction:50.00 step:200 steps:300 max:91 -> 65.20
> ...
> 02.08.13 13:44:15.069  MODULE      ( INFO    ) : ### matched STEP: __STEP__:212.7273

> 02.08.13 13:44:15.074  MODULE      ( INFO    ) : ### _percentage:26.00 fraction:50.00 step:200 steps:300 max:91 -> 65.20
> ...
Comment 1 Alexander Kläser univentionstaff 2013-08-02 13:53:57 CEST
Created attachment 5350 [details]
/var/log/univention/management-console-module-setup.log
Comment 2 Dirk Wiesenthal univentionstaff 2013-09-09 15:04:09 CEST
Fixed in
  univention-system-setup 7.0.37-1.510.201309091451

1) After the (un)installation of a package, a self.finish_task() was missing.

2) int("133.3333") raises a ValueError. Changed to float()
Comment 3 Lukas Walter univentionstaff 2013-09-19 15:25:42 CEST
ok: progress bar seems to be correct now
ok: changelog 3.2
Comment 4 Stefan Gohmann univentionstaff 2013-11-19 06:44:33 CET
UCS 3.2 has been released:
 http://docs.univention.de/release-notes-3.2-en.html
 http://docs.univention.de/release-notes-3.2-de.html

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