Bug 491326

Summary: PartitionException: Attempting to remove an extended partition that still contains logical partitions
Product: [Fedora] Fedora Reporter: James Laska <jlaska>
Component: pypartedAssignee: Dave Cantrell <dcantrell>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: dcantrell, jturner, orion, pjones, rmaximo, vanmeeuwen+fedora, vinagr3
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard: anaconda_trace_hash:dd04a3f502f226a338acf9a7166b60899178627dcc63266fe777f2b0345efa29
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-03-23 14:42:17 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: 476774    
Attachments:
Description Flags
Attached traceback automatically from anaconda.
none
anaconda logs at the time of crash
none
Attached traceback automatically from anaconda. none

Description James Laska 2009-03-20 13:16:09 UTC
The following was filed automatically by anaconda:
anaconda 11.5.0.34 exception report
Traceback (most recent call first):
  File "/usr/lib64/python2.6/site-packages/parted/disk.py", line 194, in removePartition
    if self.__disk.remove_partition(partition.getPedPartition()):
  File "/usr/lib/anaconda/storage/devicetree.py", line 697, in _removeDevice
    dev.disk.partedDisk.removePartition(dev.partedPartition)
  File "/usr/lib/anaconda/storage/devicetree.py", line 731, in registerAction
    self._removeDevice(action.device)
  File "/usr/lib/anaconda/storage/__init__.py", line 597, in destroyDevice
    self.devicetree.registerAction(action)
  File "/usr/lib/anaconda/storage/partitioning.py", line 348, in removeEmptyExtendedPartitions
    storage.destroyDevice(extended)
  File "/usr/lib/anaconda/storage/partitioning.py", line 335, in clearPartitions
    removeEmptyExtendedPartitions(storage)
  File "/usr/lib/anaconda/storage/partitioning.py", line 170, in doAutoPartition
    clearPartitions(anaconda.id.storage)
  File "/usr/lib/anaconda/dispatch.py", line 205, in moveStep
    rc = stepFunc(self.anaconda)
  File "/usr/lib/anaconda/dispatch.py", line 128, in gotoNext
    self.moveStep()
  File "/usr/lib/anaconda/gui.py", line 1317, in nextClicked
    self.anaconda.dispatch.gotoNext()
PartitionException: Attempting to remove an extended partition that still contains logical partitions

Comment 1 James Laska 2009-03-20 13:16:14 UTC
Created attachment 336046 [details]
Attached traceback automatically from anaconda.

Comment 2 Joel Andres Granados 2009-03-20 14:26:44 UTC
Created attachment 336054 [details]
anaconda logs at the time of crash 

This was wile attempting to remove an extended partition after removing all the other partitions.  I had 2 primary and 2 logical (and 1 extended).  It removed the two primaries firs, then the two logicals and then the extended.  at the moment of removing the extended... boom!!!!!

Comment 3 Chris Lumens 2009-03-20 18:26:10 UTC
This should be fixed in the next build of pyparted.

Comment 4 Vinagre 2009-03-20 18:52:27 UTC
Created attachment 336105 [details]
Attached traceback automatically from anaconda.

Comment 5 James Laska 2009-03-23 14:42:17 UTC
Not seeing this in rawhide (includes anaconda-11.5.0.35 and pyparted-2.0.8).