Bug 1756288

Summary: blivet.errors.PartitioningError: Unable to allocate requested partition scheme.
Product: [Fedora] Fedora Reporter: lnie <lnie>
Component: blivet-guiAssignee: Vojtech Trefny <vtrefny>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 31CC: anaconda-maint-list, jkonecny, jonathan, kellin, mkolman, vanmeeuwen+fedora, vponcova, vtrefny, wwoods
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:b0e41a0637b22cd0722b92ec2b40fb9760381db922407cada3b9b338423fcc1d;
Fixed In Version: blivet-gui-2.1.12-1.fc31 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-02-02 01:35:00 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
File: anaconda-tb
none
File: anaconda.log
none
File: blivet-gui-utils.log
none
File: dbus.log
none
File: environ
none
File: lorax-packages.log none

Description lnie 2019-09-27 09:31:34 UTC
Version-Release number of selected component:
anaconda-31.22.3

The following was filed automatically by anaconda:
anaconda 31.22.3 exception report
Traceback (most recent call first):
  File "/usr/lib/python3.7/site-packages/blivetgui/blivetgui.py", line 232, in _reraise_exception
    raise type(exception)(str(exception) + "\n" + traceback)
  File "/usr/lib/python3.7/site-packages/blivetgui/blivetgui.py", line 470, in add_device
    self._reraise_exception(result.exception, result.traceback)
blivet.errors.PartitioningError: Unable to allocate requested partition scheme.
Traceback (most recent call last):
  File "/usr/lib/python3.7/site-packages/blivetgui/blivet_utils.py", line 1188, in add_device
    blivet.partitioning.do_partitioning(self.storage)
  File "/usr/lib/python3.7/site-packages/blivet/partitioning.py", line 608, in do_partitioning
    allocate_partitions(storage, disks, partitions, free, boot_disk=boot_disk)
  File "/usr/lib/python3.7/site-packages/blivet/partitioning.py", line 950, in allocate_partitions
    raise PartitioningError(_("Unable to allocate requested partition scheme."))
blivet.errors.PartitioningError: Unable to allocate requested partition scheme.


Additional info:
addons:         com_redhat_kdump
cmdline:        /usr/bin/python3  /sbin/anaconda
cmdline_file:   BOOT_IMAGE=vmlinuz initrd=initrd.img inst.stage2=hd:LABEL=Fedora-S-dvd-x86_64-31 rd.live.check quiet
dnf.librepo.log: 
executable:     /sbin/anaconda
hashmarkername: anaconda
hawkey.log:     INFO Sep-27 07:14:40 === Started libdnf-0.35.3 ===
kernel:         5.3.0-0.rc6.git0.1.fc31.x86_64
product:        Fedora
release:        Fedora release 31 (Thirty One)
release_type:   pre-release
type:           anaconda
version:        31

Potential duplicate: bug 1442020

Comment 1 lnie 2019-09-27 09:35:32 UTC
Created attachment 1619977 [details]
File: anaconda-tb

Comment 2 lnie 2019-09-27 09:35:39 UTC
Created attachment 1619978 [details]
File: anaconda.log

Comment 3 lnie 2019-09-27 09:35:42 UTC
Created attachment 1619979 [details]
File: blivet-gui-utils.log

Comment 4 lnie 2019-09-27 09:35:45 UTC
Created attachment 1619980 [details]
File: dbus.log

Comment 5 lnie 2019-09-27 09:35:46 UTC
Created attachment 1619981 [details]
File: environ

Comment 6 lnie 2019-09-27 09:35:52 UTC
Created attachment 1619982 [details]
File: lorax-packages.log

Comment 7 lnie 2019-09-30 04:23:16 UTC
Here is crash analysis:
Due to bug#1755813,/boot failed to take use of the beginning free region,but take use of the smaller free region,
and there is only 4.99G left for a 5.99G request, free return None, a PartitioningError is raised and due to this error is not handled in blivet-gui,
crash happened.In a non-blivetgui installation,a error dialog is present so no crash happens.
Is the intended behavior that we use the exact size user asked but not give a base_size and set grow=True like blivet do?
Even if it's the intended behavior,we should add a command like new_part.req_max_size= ... to avoid confusing log (max_size=0) like we see in #1756220.
If it's not I'd like to work on a pull request,no thanks^^
In conclusion,there are 3 ways to avoid this bug,
first is the pull request in #1755813(https://github.com/storaged-project/blivet-gui/pull/131)
second is give a base_size and send grow=True,
third is handle Error with a error log present to give user the chance to re-set the partitions

Comment 8 lnie 2019-09-30 04:26:30 UTC
Please correct me if I'm wrong,thanks a lot.

Comment 9 Fedora Update System 2020-01-29 20:27:50 UTC
FEDORA-2020-1fdbcfc43f has been submitted as an update to Fedora 30. https://bodhi.fedoraproject.org/updates/FEDORA-2020-1fdbcfc43f

Comment 10 Fedora Update System 2020-01-31 01:30:03 UTC
blivet-gui-2.1.12-1.fc31 has been pushed to the Fedora 31 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2020-e2356a3d5e

Comment 11 Fedora Update System 2020-01-31 02:25:58 UTC
blivet-gui-2.1.12-1.fc30 has been pushed to the Fedora 30 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2020-1fdbcfc43f

Comment 12 Fedora Update System 2020-02-02 01:35:00 UTC
blivet-gui-2.1.12-1.fc31 has been pushed to the Fedora 31 stable repository. If problems still persist, please make note of it in this bug report.

Comment 13 Fedora Update System 2020-02-15 02:54:04 UTC
blivet-gui-2.1.12-1.fc30 has been pushed to the Fedora 30 stable repository. If problems still persist, please make note of it in this bug report.