Bug 1250890

Summary: [abrt] blivet-gui: _ped.PartitionException: Can't have overlapping partitions. Traceback (most recent call last): File "/usr/lib/python3.4/site-packages/blivetgui/blivet_utils.py", line 672, in edit_partition_device self.storage.devicetree.regist...
Product: [Fedora] Fedora Reporter: Vojtech Trefny <vtrefny>
Component: python-blivetAssignee: Vojtech Trefny <vtrefny>
Status: CLOSED NEXTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: anaconda-maint-list, bcl, dlehman, vpodzime, vtrefny
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
URL: https://retrace.fedoraproject.org/faf/reports/bthash/e08ba39d81285f42790767809e64c670823d5b80
Whiteboard: abrt_hash:51ab55f0d725def931b049e3ae2ebaf7662a7abb0a5bf8f664e3bdba86d05e8a
Fixed In Version: 23.19.1-1.fc23 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-08-27 17:58:45 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: backtrace
none
File: blivet-gui-com.log
none
File: blivet-gui-tb
none
File: blivet.log
none
File: description
none
File: environ
none
File: program.log none

Description Vojtech Trefny 2015-08-06 08:56:30 UTC
Description of problem:
Steps to reproduce:
1. Create a extended partition and leave some free space after it.
2. Create a logical partition using all free space available in the extended partition.
3. Try to resize (grow) the logical partition.
4. blivet-gui will try to use the free space outside the extended partition without resizing it.

Version-Release number of selected component:
blivet-gui-0.3.5-1.fc24.noarch

Additional info:
reporter:       libreport-2.6.2
blivet-gui.log: 
cmdline:        /bin/python3  /usr/bin/blivet-gui
executable:     /usr/bin/blivet-gui
hashmarkername: blivet-gui
kernel:         4.2.0-0.rc0.git4.1.fc23.x86_64
product:        Fedora
release:        Fedora release 24 (Rawhide)
type:           Python
version:        Rawhide

Truncated backtrace:
Traceback (most recent call last):
  File "/usr/lib/python3.4/site-packages/blivetgui/blivetgui.py", line 307, in edit_device
    self._reraise_exception(result.exception, result.traceback)
  File "/usr/lib/python3.4/site-packages/blivetgui/blivetgui.py", line 235, in _reraise_exception
    raise type(exception)(str(exception) + "\n" + traceback)
_ped.PartitionException: Can't have overlapping partitions.
Traceback (most recent call last):
  File "/usr/lib/python3.4/site-packages/blivetgui/blivet_utils.py", line 672, in edit_partition_device
    self.storage.devicetree.registerAction(ac)
  File "/usr/lib/python3.4/site-packages/blivet/devicetree.py", line 323, in registerAction
    action.apply()
  File "/usr/lib/python3.4/site-packages/blivet/deviceaction.py", line 453, in apply
    self.device.targetSize = self._targetSize
  File "/usr/lib/python3.4/site-packages/blivet/devices/storage.py", line 234, in <lambda>
    lambda s, v: s._setTargetSize(v),
  File "/usr/lib/python3.4/site-packages/blivet/devices/partition.py", line 273, in _setTargetSize
    start=geometry.start, end=geometry.end)
  File "/usr/lib64/python3.4/site-packages/parted/decorators.py", line 42, in new
    ret = fn(*args, **kwds)
  File "/usr/lib64/python3.4/site-packages/parted/disk.py", line 319, in setPartitionGeometry
    start, end)
_ped.PartitionException: Can't have overlapping partitions.

Comment 1 Vojtech Trefny 2015-08-06 08:56:33 UTC
Created attachment 1059800 [details]
File: backtrace

Comment 2 Vojtech Trefny 2015-08-06 08:56:35 UTC
Created attachment 1059801 [details]
File: blivet-gui-com.log

Comment 3 Vojtech Trefny 2015-08-06 08:56:38 UTC
Created attachment 1059802 [details]
File: blivet-gui-tb

Comment 4 Vojtech Trefny 2015-08-06 08:56:40 UTC
Created attachment 1059803 [details]
File: blivet.log

Comment 5 Vojtech Trefny 2015-08-06 08:56:41 UTC
Created attachment 1059804 [details]
File: description

Comment 6 Vojtech Trefny 2015-08-06 08:56:42 UTC
Created attachment 1059805 [details]
File: environ

Comment 7 Vojtech Trefny 2015-08-06 08:56:44 UTC
Created attachment 1059806 [details]
File: program.log

Comment 8 Vojtech Trefny 2015-08-06 09:02:38 UTC
>>> vdd2.size
Size('1.51 GiB')
>>> vdd5.format.updateSizeInfo()
>>> vdd5.maxSize
Size('3.93 GiB')

(vdd2 -- extended partition, vdd5 -- logical partition)

Comment 9 Vojtech Trefny 2015-08-07 10:21:14 UTC
*** Bug 1230171 has been marked as a duplicate of this bug. ***

Comment 10 Fedora Update System 2015-08-22 16:25:32 UTC
anaconda-23.19.1-1.fc23, python-blivet-1.12.1-1.fc23 has been pushed to the Fedora 23 testing repository. If problems still persist, please make note of it in this bug report.\nIf you want to test the update, you can install it with \n su -c 'yum --enablerepo=updates-testing update anaconda python-blivet'. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2015-13831

Comment 11 Fedora Update System 2015-08-27 17:58:29 UTC
anaconda-23.19.1-1.fc23, python-blivet-1.12.1-1.fc23 has been pushed to the Fedora 23 stable repository. If problems still persist, please make note of it in this bug report.