Bug 1027846

Summary: PartitionException: Partition is not part of the disk it is being removed from
Product: [Fedora] Fedora Reporter: Lukas Brabec <lbrabec>
Component: python-blivetAssignee: David Lehman <dlehman>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 20CC: amulhern, anaconda-maint-list, bcl, dlehman, g.kaviyarasu, jonathan, kparal, lnie, mruckman, robatino, satellitgo, vanmeeuwen+fedora
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Unspecified   
Whiteboard: abrt_hash:a307e4d5f492c5748e9fcde04f53ab8765548123fc8b970c595483e06defbcc3 RejectedBlocker
Fixed In Version: pykickstart-1.99.46-1.fc20 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1029628 (view as bug list) Environment:
Last Closed: 2013-11-24 03:59:34 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, 1029628    
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 Lukas Brabec 2013-11-07 13:02:27 UTC
Description of problem:
Tried to manual partitioning (delete old, autopart, manual change of some settings). 	Accidentally unselected my disk,  bug appeared. after reselecting it again and returning.

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/disk.py", line 269, in removePartition
    if self.__disk.remove_partition(partition.getPedPartition()):
  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/partitioning.py", line 595, in removeNewPartitions
    part.disk.format.partedDisk.removePartition(part.partedPartition)
  File "/usr/lib/python2.7/site-packages/blivet/partitioning.py", line 784, in doPartitioning
    removeNewPartitions(disks, partitions)
  File "/usr/lib/python2.7/site-packages/blivet/partitioning.py", line 320, in doAutoPartition
    doPartitioning(storage)
  File "/usr/lib64/python2.7/site-packages/pyanaconda/kickstart.py", line 263, in execute
    doAutoPartition(storage, ksdata)
  File "/usr/lib64/python2.7/site-packages/pyanaconda/kickstart.py", line 1740, in doKickstartStorage
    ksdata.autopart.execute(storage, ksdata, instClass)
  File "/usr/lib64/python2.7/site-packages/pyanaconda/ui/gui/spokes/storage.py", line 429, in _doExecute
    doKickstartStorage(self.storage, self.data, self.instclass)
  File "/usr/lib64/python2.7/threading.py", line 764, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/usr/lib64/python2.7/site-packages/pyanaconda/threads.py", line 168, in run
    threading.Thread.run(self, *args, **kwargs)
PartitionException: Partition is not part of the disk it is being removed from

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 865653

Comment 1 Lukas Brabec 2013-11-07 13:02:35 UTC
Created attachment 821068 [details]
File: anaconda-tb

Comment 2 Lukas Brabec 2013-11-07 13:02:43 UTC
Created attachment 821069 [details]
File: anaconda.log

Comment 3 Lukas Brabec 2013-11-07 13:02:47 UTC
Created attachment 821070 [details]
File: environ

Comment 4 Lukas Brabec 2013-11-07 13:02:50 UTC
Created attachment 821071 [details]
File: lsblk_output

Comment 5 Lukas Brabec 2013-11-07 13:02:59 UTC
Created attachment 821072 [details]
File: nmcli_dev_list

Comment 6 Lukas Brabec 2013-11-07 13:03:05 UTC
Created attachment 821073 [details]
File: os_info

Comment 7 Lukas Brabec 2013-11-07 13:03:09 UTC
Created attachment 821074 [details]
File: program.log

Comment 8 Lukas Brabec 2013-11-07 13:03:14 UTC
Created attachment 821075 [details]
File: storage.log

Comment 9 Lukas Brabec 2013-11-07 13:03:18 UTC
Created attachment 821076 [details]
File: syslog

Comment 10 Lukas Brabec 2013-11-07 13:03:23 UTC
Created attachment 821077 [details]
File: ifcfg.log

Comment 11 Lukas Brabec 2013-11-07 13:03:29 UTC
Created attachment 821078 [details]
File: packaging.log

Comment 12 Lukas Brabec 2013-11-07 13:17:33 UTC
1) storage -> done -> custom partitioning
2) delete (all) old and create new automatically
3) done -> accept
4) (accidentally, as used from previous Fedora) unselect disk -> done
5) select disk again -> done -> continue

It seems that the problem is 'create new automaticaly' in custom partitioning with reselecting of disk (this probably appeared in https://bugzilla.redhat.com/show_bug.cgi?id=978298 which is still broken).
When replacing steps 1 and 2 with space reclaiming bug doesn't appear.

Comment 13 Lukas Brabec 2013-11-07 13:33:41 UTC
Proposing as beta blocker (alongside with bug 978298) - violation of criterion: Custom partitioning (Reject or disallow invalid disk and volume configurations without crashing).

Comment 14 Kamil Páral 2013-11-07 17:55:12 UTC
Reproduced bug 1027846 exactly as in comment 12.

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:         PartitionException: Partition is not part of the disk it is being removed from
release:        Cannot get release name.
version:        20-Beta

Comment 15 Mike Ruckman 2013-11-07 18:00:24 UTC
Discussed in the 2013-11-07 Go/No-Go meeting [1]. Voted as a RejectedBlocker as going through the partitioning spoke multiple times was deemed not worthy of blocking beta and thus, this bug is rejected as a blocker for Fedora 20 beta. Please re-propose as a blocker for F20 final and mark for inclusion in CommonBugs.

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

Comment 16 Fedora Update System 2013-11-16 02:18:44 UTC
anaconda-20.25.8-1.fc20, pykickstart-1.99.46-1.fc20, python-blivet-0.23.5-1.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/pykickstart-1.99.46-1.fc20,python-blivet-0.23.5-1.fc20,anaconda-20.25.8-1.fc20

Comment 17 Fedora Update System 2013-11-17 07:03:49 UTC
Package anaconda-20.25.8-1.fc20, pykickstart-1.99.46-1.fc20, python-blivet-0.23.5-1.fc20:
* should fix your issue,
* was pushed to the Fedora 20 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing anaconda-20.25.8-1.fc20 pykickstart-1.99.46-1.fc20 python-blivet-0.23.5-1.fc20'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2013-21553/pykickstart-1.99.46-1.fc20,python-blivet-0.23.5-1.fc20,anaconda-20.25.8-1.fc20
then log in and leave karma (feedback).

Comment 18 lnie 2013-11-21 03:27:00 UTC
fixed with anaconda-20.25.8-1.fc20

Comment 19 Lukas Brabec 2013-11-21 10:50:16 UTC
anaconda-20.25.8-1.fc20 fixed the problem

Comment 20 Kamil Páral 2013-11-21 12:38:05 UTC
Guys, set to VERIFIED then, thanks.

Comment 21 Fedora Update System 2013-11-24 03:59:34 UTC
pykickstart-1.99.46-1.fc20, python-blivet-0.23.5-1.fc20, anaconda-20.25.9-1.fc20 has been pushed to the Fedora 20 stable repository.  If problems still persist, please make note of it in this bug report.