Bug 1254899

Summary: [abrt] blivet-gui: ValueError: new size will not yield an aligned partition Traceback (most recent call last): File "/usr/lib/python3.4/site-packages/blivetgui/communication/server.py", line 340, in _call_utils_method ret = utils_method(*args) ...
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/f0ed1e36d1ac48ad0e068f01b37465f97fdce2c4
Whiteboard: abrt_hash:e9c41be20b9dec2fa5cdd75454ed50e5e26805c05958a39eeef27acfcdfa71e0
Fixed In Version: 1.12.2-1.fc23 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-09-07 16:35:50 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-19 08:10:45 UTC
Description of problem:
1. Resize an extended partition
2. Click unfo

Version-Release number of selected component:
blivet-gui-0.3.3-2.fc23.noarch

Additional info:
reporter:       libreport-2.6.0
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 23 (Rawhide)
type:           Python
version:        Rawhide

Truncated backtrace:
Traceback (most recent call last):
  File "/usr/lib/python3.4/site-packages/blivetgui/blivetgui.py", line 629, in actions_undo
    self.client.remote_call("blivet_cancel_actions", removed_actions)
  File "/usr/lib/python3.4/site-packages/blivetgui/communication/client.py", line 159, in remote_call
    raise type(ret.exception)(str(ret.exception) + "\n" + ret.traceback) # pylint: disable=maybe-no-member
ValueError: new size will not yield an aligned partition
Traceback (most recent call last):
  File "/usr/lib/python3.4/site-packages/blivetgui/communication/server.py", line 340, in _call_utils_method
    ret = utils_method(*args)
  File "/usr/lib/python3.4/site-packages/blivetgui/blivet_utils.py", line 1253, in blivet_cancel_actions
    self.storage.devicetree.cancelAction(action)
  File "/usr/lib/python3.4/site-packages/blivet/devicetree.py", line 346, in cancelAction
    action.cancel()
  File "/usr/lib/python3.4/site-packages/blivet/deviceaction.py", line 472, in cancel
    self.device.targetSize = self.origsize
  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 262, in _setTargetSize
    raise ValueError("new size will not yield an aligned partition")
ValueError: new size will not yield an aligned partition

Comment 1 Vojtech Trefny 2015-08-19 08:10:48 UTC
Created attachment 1064670 [details]
File: backtrace

Comment 2 Vojtech Trefny 2015-08-19 08:10:50 UTC
Created attachment 1064671 [details]
File: blivet-gui-com.log

Comment 3 Vojtech Trefny 2015-08-19 08:10:54 UTC
Created attachment 1064672 [details]
File: blivet-gui-tb

Comment 4 Vojtech Trefny 2015-08-19 08:10:57 UTC
Created attachment 1064673 [details]
File: blivet.log

Comment 5 Vojtech Trefny 2015-08-19 08:10:58 UTC
Created attachment 1064674 [details]
File: description

Comment 6 Vojtech Trefny 2015-08-19 08:10:59 UTC
Created attachment 1064675 [details]
File: environ

Comment 7 Vojtech Trefny 2015-08-19 08:11:01 UTC
Created attachment 1064676 [details]
File: program.log

Comment 8 Vojtech Trefny 2015-08-19 09:48:00 UTC
Original problem is that blivet reads currentSize for partitions in /sys and it reports the size as 2 sectors (1 KiB).

----------
$ cat /sys/block/vdf/vdf1/size 
2
----------

ActionResizeDevice then sets the original size (before resizing) of the partition to 1 KiB.

Comment 9 Fedora Update System 2015-09-03 19:33:40 UTC
python-blivet-1.12.2-1.fc23 anaconda-23.19.2-1.fc23 has been submitted as an update to Fedora 23. https://bodhi.fedoraproject.org/updates/FEDORA-2015-15030

Comment 10 Fedora Update System 2015-09-04 07:33:06 UTC
anaconda-23.19.2-1.fc23, python-blivet-1.12.2-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-15030

Comment 11 Fedora Update System 2015-09-07 16:35:32 UTC
anaconda-23.19.2-1.fc23, python-blivet-1.12.2-1.fc23 has been pushed to the Fedora 23 stable repository. If problems still persist, please make note of it in this bug report.