Bug 2231388

Summary: Calculating of installation completeness (progress) shows nonsensical numbers.
Product: [Fedora] Fedora Reporter: Lukas Ruzicka <lruzicka>
Component: anacondaAssignee: anaconda-maint
Status: NEW --- QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 39CC: anaconda-maint, vslavik, w
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2231339    
Attachments:
Description Flags
Above 100
none
Negative numbers none

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