Bug 1098185

Summary: PartitionException: Partition is not part of the disk it is being removed from
Product: [Fedora] Fedora Reporter: Vratislav Podzimek <vpodzime>
Component: anacondaAssignee: Vratislav Podzimek <vpodzime>
Status: CLOSED EOL QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 22CC: anaconda-maint-list, g.kaviyarasu, jonathan, mkolman, vanmeeuwen+fedora
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:9346ae6f9f809828b2b68584e48ecb47a7020069af2f7bfc91d9a1231ec05344
Fixed In Version: python-blivet-0.54-1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-07-19 11:31:22 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: 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 Vratislav Podzimek 2014-05-15 12:55:06 UTC
Description of problem:
1. go to Custom partitioning
2. remove all existing systems
3. click "Create...automatically"
4. remove the /boot partition

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

The following was filed automatically by anaconda:
anaconda 21.36-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 "/tmp/updates/blivet/formats/disklabel.py", line 328, in removePartition
    self.partedDisk.removePartition(partition)
  File "/tmp/updates/blivet/devicetree.py", line 431, in _removeDevice
    dev.disk.format.removePartition(dev.partedPartition)
  File "/tmp/updates/blivet/devicetree.py", line 489, in registerAction
    self._removeDevice(action.device)
  File "/tmp/updates/blivet/__init__.py", line 1297, in destroyDevice
    self.devicetree.registerAction(action)
  File "/tmp/updates/pyanaconda/ui/gui/spokes/custom.py", line 1678, in _destroy_device
    self._storage_playground.destroyDevice(device)
  File "/tmp/updates/pyanaconda/ui/gui/spokes/custom.py", line 120, in decorated
    return func(*args, **kwargs)
  File "/tmp/updates/pyanaconda/ui/gui/spokes/custom.py", line 1783, in on_remove_clicked
    self._destroy_device(device)
PartitionException: Partition is not part of the disk it is being removed from

Additional info:
cmdline:        /usr/bin/python  /sbin/anaconda
cmdline_file:   initrd=/test/vpodzime/my_composes/initrd.img root=live:http://cobra02/trees/vp/my_comps_squashfs.img nokill repo=http://cobra02/trees/rawhide/x86_64/os/ lang=en_US.UTF-8 updates=http://cobra02/ks/vp/compose_updates.img BOOT_IMAGE=/test/vpodzime/my_composes/vmlinuz 
executable:     /sbin/anaconda
hashmarkername: anaconda
kernel:         3.15.0-0.rc5.git2.3.fc21.x86_64
product:        Fedora
release:        Cannot get release name.
type:           anaconda
version:        21

Comment 1 Vratislav Podzimek 2014-05-15 12:55:11 UTC
Created attachment 895901 [details]
File: anaconda-tb

Comment 2 Vratislav Podzimek 2014-05-15 12:55:14 UTC
Created attachment 895902 [details]
File: anaconda.log

Comment 3 Vratislav Podzimek 2014-05-15 12:55:16 UTC
Created attachment 895903 [details]
File: environ

Comment 4 Vratislav Podzimek 2014-05-15 12:55:19 UTC
Created attachment 895904 [details]
File: lsblk_output

Comment 5 Vratislav Podzimek 2014-05-15 12:55:21 UTC
Created attachment 895905 [details]
File: nmcli_dev_list

Comment 6 Vratislav Podzimek 2014-05-15 12:55:23 UTC
Created attachment 895906 [details]
File: os_info

Comment 7 Vratislav Podzimek 2014-05-15 12:55:25 UTC
Created attachment 895907 [details]
File: program.log

Comment 8 Vratislav Podzimek 2014-05-15 12:55:28 UTC
Created attachment 895908 [details]
File: storage.log

Comment 9 Vratislav Podzimek 2014-05-15 12:55:30 UTC
Created attachment 895909 [details]
File: syslog

Comment 10 Vratislav Podzimek 2014-05-15 12:55:32 UTC
Created attachment 895910 [details]
File: ifcfg.log

Comment 11 Vratislav Podzimek 2014-05-15 12:55:35 UTC
Created attachment 895911 [details]
File: packaging.log

Comment 12 Vratislav Podzimek 2014-05-15 14:58:01 UTC
This happens when the original system is RAID. And the error is caused by the newly created/scheduled /boot partition (vda1) for some reason having two parents -- vda, vdd. I need to figure out how this happens and fix it.

Comment 13 Vratislav Podzimek 2014-05-27 14:54:53 UTC
*** Bug 1083581 has been marked as a duplicate of this bug. ***

Comment 14 Jaroslav Reznik 2015-03-03 17:13:33 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 22 development cycle.
Changing version to '22'.

More information and reason for this action is here:
https://fedoraproject.org/wiki/Fedora_Program_Management/HouseKeeping/Fedora22

Comment 15 Fedora End Of Life 2016-07-19 11:31:22 UTC
Fedora 22 changed to end-of-life (EOL) status on 2016-07-19. Fedora 22 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.