Bug 491326 - PartitionException: Attempting to remove an extended partition that still contains logical partitions
Summary: PartitionException: Attempting to remove an extended partition that still con...
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: pyparted
Version: rawhide
Hardware: x86_64
OS: Linux
medium
medium
Target Milestone: ---
Assignee: David Cantrell
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: anaconda_trace_hash:dd04a3f502f226a33...
Depends On:
Blocks: F11Beta, F11BetaBlocker
TreeView+ depends on / blocked
 
Reported: 2009-03-20 13:16 UTC by James Laska
Modified: 2013-09-02 06:32 UTC (History)
7 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2009-03-23 14:42:17 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
Attached traceback automatically from anaconda. (73.81 KB, text/plain)
2009-03-20 13:16 UTC, James Laska
no flags Details
anaconda logs at the time of crash (22.55 KB, application/x-bzip2)
2009-03-20 14:26 UTC, Joel Andres Granados
no flags Details
Attached traceback automatically from anaconda. (99.16 KB, text/plain)
2009-03-20 18:52 UTC, Vinagre
no flags Details

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).


Note You need to log in before you can comment on or make changes to this bug.