Bug 2231388 - Calculating of installation completeness (progress) shows nonsensical numbers.
Summary: Calculating of installation completeness (progress) shows nonsensical numbers.
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: anaconda
Version: 39
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Vladimír Slávik
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: AnacondaWebUITracker
TreeView+ depends on / blocked
 
Reported: 2023-08-11 13:19 UTC by Lukas Ruzicka
Modified: 2023-10-06 10:30 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2023-10-06 10:30:49 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
Above 100 (8.00 KB, image/png)
2023-08-11 13:21 UTC, Lukas Ruzicka
no flags Details
Negative numbers (8.05 KB, image/png)
2023-08-11 13:21 UTC, Lukas Ruzicka
no flags Details

Description Lukas Ruzicka 2023-08-11 13:19:48 UTC
On certain occasions, the calculation of completeness (the installation progress) shows negative numbers, such as "-80%" and that sometimes starts way above "-100%", such as "-130%" and then it is slowly decreasing to "0%" as the installation nears its completeness.

Version:
anaconda-webui-39.29-1.fc39.x86_64



Reproducible: Always

Steps to Reproduce:
This was quite difficult to reproduce, but I finally managed.

1. Use the current Fedora installer (no webui) and generate the default layout (btrfs with /root and /home). Alternatively, you can use the webui with "Erase all" which produces the default layout, too.
2. Reboot the machine.
3. Boot into the Live system, install `anaconda-webui` and start it.
4. Select the option to reuse the mountpoints.
5. Assign both /boot and /root from the previous installation, using the btrfs root subvolume for /root.
6. Add another mountpoint, /boot, and assign the btrfs home subvolume from the previous installation.
7. Confirm and start the installation.
8. Watch the progress meter.
Actual Results:  
The progress meter shows negative numbers.

Expected Results:  
The progress meter should show positive numbers from 0 to 100, as the installation progresses.

See the attached images.

Comment 1 Lukas Ruzicka 2023-08-11 13:21:13 UTC
Created attachment 1983015 [details]
Above 100

Comment 2 Lukas Ruzicka 2023-08-11 13:21:47 UTC
Created attachment 1983016 [details]
Negative numbers

Comment 3 Geraldo Simião 2023-08-25 00:42:37 UTC
Tested here with the iso from today Fedora-Workstation-Live-x86_64-39-20230824.n.0.iso

Bug confirmed. On some installations it goes as expected, from 0% increasing to 100% but in others it goes crazy, from -180% to 0% for example

anaconda-webui-39.32-1.fc39.x86_64

Comment 4 Geraldo Simião 2023-08-25 00:53:16 UTC
more info: 
I noticed that the problem only occurs when we try to use pre-existing partitioning, reusing them.
When we choose the "erase all and create new" then the progress meter runs correctly, from 0% to 100%

Comment 5 Vladimír Slávik 2023-09-20 09:32:48 UTC
Does this apply also to the GTK GUI? I have a fix ready, but it might be more correct to leave it out for f39 if it's needed only for webui.


Note You need to log in before you can comment on or make changes to this bug.