Bug 704259

Summary: ValueError: Cannot remove extended partition sda4. Logical partitions present.
Product: [Fedora] Fedora Reporter: Juan Manuel Rodriguez <nushio>
Component: anacondaAssignee: Anaconda Maintenance Team <anaconda-maint-list>
Status: CLOSED INSUFFICIENT_DATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: 15CC: anaconda-maint-list, jonathan, vanmeeuwen+fedora
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard: anaconda_trace_hash:47041493260f7ddc48304b389de4316a047ab11164f03989e69fa19243f35282
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-05-17 18:43:00 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
Attached traceback automatically from anaconda. none

Description Juan Manuel Rodriguez 2011-05-12 15:34:00 UTC
The following was filed automatically by anaconda:
anaconda 15.27 exception report
Traceback (most recent call first):
  File "/usr/lib/python2.7/site-packages/pyanaconda/storage/devicetree.py", line 367, in _removeDevice
    "Logical partitions present." % dev.name)
  File "/usr/lib/python2.7/site-packages/pyanaconda/storage/devicetree.py", line 411, in registerAction
    self._removeDevice(action.device)
  File "/usr/lib/python2.7/site-packages/pyanaconda/storage/__init__.py", line 855, in destroyDevice
    self.devicetree.registerAction(action)
  File "/usr/lib/python2.7/site-packages/pyanaconda/partIntfHelpers.py", line 202, in doClearPartitionedDevice
    storage.destroyDevice(p)
  File "/usr/lib/python2.7/site-packages/pyanaconda/iw/partition_gui.py", line 1314, in deleteCB
    device):
ValueError: Cannot remove extended partition sda4.  Logical partitions present.

Comment 1 Juan Manuel Rodriguez 2011-05-12 15:34:16 UTC
Created attachment 498568 [details]
Attached traceback automatically from anaconda.

Comment 2 David Lehman 2011-05-12 17:45:48 UTC
It looks like you actually had two crashes. The first one was probably caused by having some partitions in use while performing the install. This led to some bad state in which the on-disk information does not agree with what the kernel/OS sees. To remedy the problem you should either reboot or, if that does not work, use parted to remove the sda5 and sda6 partitions and then try again to install.

Please report the results so I can update the bug's status.

Comment 3 Juan Manuel Rodriguez 2011-05-16 17:55:45 UTC
Yeah, I had tried both Fedora 14 and Fedora 15 Anacondas to be honest, (And even Centos 5 and Centos 6 where unable to format it) and they decided to mount sda5/6. I could not get them to umount, and even gparted failed to partition both partitions. 

Rebooting did not solve this issue. 

dd if=/dev/zero of=/dev/sda solved the issue, but took about 40 minutes to get blank aa 80gb harddrive. 

I just wanted to report the bug, but since I've managed to solve it, I can't provide more feedback at the moment.

Comment 4 Juan Manuel Rodriguez 2011-05-16 20:36:07 UTC
Just to clarify, I meant Centos 5.6 and 4.8. Centos 6 isn't out yet.

Comment 5 Chris Lumens 2011-05-17 18:43:00 UTC
If you are able to reproduce this in the future, please feel free to reopen.  Thanks.