Bug 2214329

Summary: Size of 'growable' partitions not reconsidered when software selection changes or root account is enabled(?)
Product: [Fedora] Fedora Reporter: Adam Williamson <awilliam>
Component: anacondaAssignee: Anaconda Maintenance Team <anaconda-maint-list>
Status: NEW --- QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 39CC: anaconda-maint-list, vponcova, vslavik, w
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard: openqa
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: 2208181    
Attachments:
Description Flags
syslog log
none
storage.log
none
program.log
none
packaging.log
none
df.log
none
dbus.log
none
anaconda.log none

Description Adam Williamson 2023-06-12 16:19:31 UTC
This is fallout from the EFI system partition size change - https://bugzilla.redhat.com/show_bug.cgi?id=2208181 - in a sense, but I think the problem is actually more generic than that, and you could hit it with the old EFI system partition size definition if you were really careful/unlucky.

Since that Change came in, an openQA test is consistently failing:
https://openqa.fedoraproject.org/tests/1973152

That test boots the Everything netinst image (which defaults to the "Fedora custom OS" package set, i.e. minimal), then changes the package set to Workstation, then runs through the Installation Destination (partitioning) spoke selecting automatic partitioning, then enables the root account and creates a user account.

Somewhere during that process, the install gets blocked because anaconda decides there isn't enough space available. The test uses a 13GB disk image. I can resolve the issue for openQA by just using a bigger disk image, of course, but it feels to me like there's a bug here.

It seems like the error isn't visible on the hub when we leave the Software Selection or Installation Destination spokes, and there's no warning or error shown on the Installation Destination spoke at any time when we're on it. But after we leave the Root Account spoke, *then* the error shows up.

From the logs it seems like anaconda sets the EFI system partition size to 2GiB - the largest possible size from the 600MiB to 2GiB range that it can be. It doesn't seem to consider reducing its size to solve the space deficit at any point.

To me, it seems like there's a couple of issues here: the lack of an error/warning when we are on the Installation Destination spoke (unless, somehow, enabling the root account makes the expected install size over 600MiB bigger or the projected available space over 600MiB smaller?), and the apparent failure of anaconda to consider reducing the size of the ESP to 'solve' the space shortage.

Reproducible: Always

Comment 1 Adam Williamson 2023-06-12 16:21:41 UTC
Created attachment 1970447 [details]
syslog log

Comment 2 Adam Williamson 2023-06-12 16:22:58 UTC
Created attachment 1970448 [details]
storage.log

Comment 3 Adam Williamson 2023-06-12 16:23:20 UTC
Created attachment 1970449 [details]
program.log

Comment 4 Adam Williamson 2023-06-12 16:24:41 UTC
Created attachment 1970450 [details]
packaging.log

Comment 5 Adam Williamson 2023-06-12 16:25:11 UTC
Created attachment 1970451 [details]
df.log

Comment 6 Adam Williamson 2023-06-12 16:25:34 UTC
Created attachment 1970452 [details]
dbus.log

Comment 7 Adam Williamson 2023-06-12 16:25:57 UTC
Created attachment 1970453 [details]
anaconda.log

Comment 8 Fedora Release Engineering 2023-08-16 08:10:58 UTC
This bug appears to have been reported against 'rawhide' during the Fedora Linux 39 development cycle.
Changing version to 39.