Bug 1027965

Summary: CreateException: Can't have a partition outside the disk!
Product: [Fedora] Fedora Reporter: Martin Krizek <mkrizek>
Component: anacondaAssignee: Anaconda Maintenance Team <anaconda-maint-list>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 20CC: anaconda-maint-list, awilliam, g.kaviyarasu, jonathan, kparal, mkrizek, mruckman, pschindl, robatino, vanmeeuwen+fedora
Target Milestone: ---Keywords: CommonBugs
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:0fa7a26829443040bdd3bf4f6b95b9dccb06f2dd41eadbdd2e5f6978665d78da https://fedoraproject.org/wiki/Common_F20_bugs#resize-bugs AcceptedBlocker
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-12-02 12:30:04 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:
Bug Depends On:    
Bug Blocks: 980656    
Attachments:
Description Flags
File: anaconda-tb
none
File: anaconda.log
none
File: environ
none
File: lsblk_output
none
File: nmcli_dev_list
none
File: os_info
none
File: program.log
none
File: storage.log
none
File: syslog
none
File: ifcfg.log
none
File: packaging.log none

Description Martin Krizek 2013-11-07 13:37:25 UTC
Description of problem:
In custom partitioning, I entered desired capacity of existing standard partition more than is available; I entered 100 GB while the disk is only 20GB.

Version-Release number of selected component:
anaconda-20.25.6-1

The following was filed automatically by anaconda:
anaconda 20.25.6-1 exception report
Traceback (most recent call first):
  File "/usr/lib64/python2.7/site-packages/parted/geometry.py", line 55, in __init__
    self.__geometry = _ped.Geometry(self.device.getPedDevice(), start, length)
  File "/usr/lib64/python2.7/site-packages/parted/decorators.py", line 41, in new
    ret = fn(*args, **kwds)
  File "/usr/lib/python2.7/site-packages/blivet/devices.py", line 1573, in _computeResize
    length=newLen)
  File "/usr/lib/python2.7/site-packages/blivet/devices.py", line 1263, in _setTargetSize
    (constraint, geometry) = self._computeResize(self.partedPartition)
  File "/usr/lib/python2.7/site-packages/blivet/devices.py", line 605, in <lambda>
    lambda s, v: s._setTargetSize(v),
  File "/usr/lib/python2.7/site-packages/blivet/deviceaction.py", line 400, in __init__
    self.device.targetSize = newsize
  File "/usr/lib/python2.7/site-packages/blivet/__init__.py", line 1250, in resizeDevice
    self.devicetree.registerAction(action_class(device, new_size))
  File "/usr/lib64/python2.7/site-packages/pyanaconda/ui/gui/spokes/custom.py", line 1454, in _save_right_side
    self.__storage.resizeDevice(device, size)
  File "/usr/lib64/python2.7/site-packages/pyanaconda/ui/gui/spokes/custom.py", line 2802, in on_apply_clicked
    self._save_right_side(self._current_selector)
CreateException: Can't have a partition outside the disk!

Additional info:
cmdline:        /usr/bin/python  /sbin/anaconda
cmdline_file:   initrd=initrd.img inst.stage2=hd:LABEL=Fedora\x2020-Beta\x20x86_64 quiet BOOT_IMAGE=vmlinuz 
executable:     /sbin/anaconda
hashmarkername: anaconda
kernel:         3.11.6-301.fc20.x86_64
product:        Fedora
release:        Cannot get release name.
type:           anaconda
version:        20-Beta

Potential duplicate: bug 974593

Comment 1 Martin Krizek 2013-11-07 13:37:33 UTC
Created attachment 821126 [details]
File: anaconda-tb

Comment 2 Martin Krizek 2013-11-07 13:37:39 UTC
Created attachment 821127 [details]
File: anaconda.log

Comment 3 Martin Krizek 2013-11-07 13:37:44 UTC
Created attachment 821128 [details]
File: environ

Comment 4 Martin Krizek 2013-11-07 13:37:47 UTC
Created attachment 821129 [details]
File: lsblk_output

Comment 5 Martin Krizek 2013-11-07 13:37:53 UTC
Created attachment 821130 [details]
File: nmcli_dev_list

Comment 6 Martin Krizek 2013-11-07 13:37:57 UTC
Created attachment 821131 [details]
File: os_info

Comment 7 Martin Krizek 2013-11-07 13:38:01 UTC
Created attachment 821132 [details]
File: program.log

Comment 8 Martin Krizek 2013-11-07 13:38:05 UTC
Created attachment 821133 [details]
File: storage.log

Comment 9 Martin Krizek 2013-11-07 13:38:09 UTC
Created attachment 821134 [details]
File: syslog

Comment 10 Martin Krizek 2013-11-07 13:38:15 UTC
Created attachment 821135 [details]
File: ifcfg.log

Comment 11 Martin Krizek 2013-11-07 13:38:20 UTC
Created attachment 821136 [details]
File: packaging.log

Comment 12 Petr Schindler 2013-11-07 13:44:47 UTC
I tried to resize existing standart partition (/boot from previous installation) to size which is greater then available space.

cmdline:        /usr/bin/python  /sbin/anaconda
cmdline_file:   initrd=initrd.img inst.stage2=hd:LABEL=Fedora\x2020-Beta\x20x86_64 quiet BOOT_IMAGE=vmlinuz 
hashmarkername: anaconda
kernel:         3.11.6-301.fc20.x86_64
package:        anaconda-20.25.6-1
product:        Fedora
reason:         CreateException: Can't have a partition outside the disk!
release:        Cannot get release name.
version:        20-Beta

Comment 13 Martin Krizek 2013-11-07 14:05:33 UTC
Proposing as F20 Beta blocker per criterion: "Custom partitioning: Reject or disallow invalid disk and volume configurations without crashing."

Comment 14 Mike Ruckman 2013-11-07 18:20:31 UTC
Discussed in the 2013-11-07 Go/No-Go meeting [1]. Voted as a RejectedBlocker. While unfortunate, this is a resize issue which is not covered by the F20 beta release criteria. Thus, it is rejected as a release blocking issue for fedora 20 beta. Please re-propose as a F20 final blocker and mark for inclusion in CommonBugs

[1] http://meetbot.fedoraproject.org/meetbot/meetbot/fedora-meeting-2/2013-11-07/

Comment 15 Adam Williamson 2013-11-13 00:23:59 UTC
Proposing as a final blocker, per criterion cited in c#13, with resize issues acceptable as Final blockers, I guess (we really need to improve that criterion ambiguity..)

Comment 16 Adam Williamson 2013-11-13 18:00:42 UTC
Discussed at 2013-11-13 blocker review meeting - http://meetbot.fedoraproject.org/fedora-blocker-review/2013-11-13/f20-final-blocker-review-1.2013-11-13-17.01.log.txt . Accepted as a blocker per criterion cited in c#13.

Comment 17 Adam Williamson 2013-11-20 19:38:01 UTC
Status reviewed at 2013-11-20 blocker review meeting: http://meetbot.fedoraproject.org/fedora-blocker-review/2013-11-20/f20-blocker-review.2013-11-20-17.00.log.txt . This bug seems to be clearly defined and reproducible and is now just waiting in the queue to be fixed by anaconda devs.

Comment 18 Kamil Páral 2013-12-02 11:39:59 UTC
I can't reproduce this with TC3. Martin, Petr, can you? If you can't, please close this, anaconda from TC3 is in stable repo.

Comment 19 Martin Krizek 2013-12-02 12:30:04 UTC
I can't reproduce it either.