Bug 610749 - PartitionException: Attempting to remove a partition that is not owned by any disk.
Summary: PartitionException: Attempting to remove a partition that is not owned by any...
Status: CLOSED DUPLICATE of bug 592339
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: anaconda   
(Show other bugs)
Version: 6.0
Hardware: x86_64
OS: Linux
Target Milestone: rc
: ---
Assignee: Anaconda Maintenance Team
QA Contact: Release Test Team
Whiteboard: anaconda_trace_hash:976f2aeffac5fbdb3...
Depends On:
TreeView+ depends on / blocked
Reported: 2010-07-02 11:08 UTC by Alexander Todorov
Modified: 2010-07-02 11:11 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2010-07-02 11:11:10 UTC
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
Attached traceback automatically from anaconda. (217.47 KB, text/plain)
2010-07-02 11:08 UTC, Alexander Todorov
no flags Details

Description Alexander Todorov 2010-07-02 11:08:48 UTC
The following was filed automatically by anaconda:
anaconda 13.21.50 exception report
Traceback (most recent call first):
  File "/usr/lib64/python2.6/site-packages/parted/disk.py", line 269, in removePartition
    if self.__disk.remove_partition(partition.getPedPartition()):
  File "/usr/lib64/python2.6/site-packages/parted/decorators.py", line 31, in localeC
    ret = fn(*args, **kwds)
  File "<string>", line 2, in removePartition
  File "/usr/lib/anaconda/storage/formats/disklabel.py", line 277, in removePartition
  File "/usr/lib/anaconda/storage/devices.py", line 1352, in destroy
  File "/usr/lib/anaconda/storage/deviceaction.py", line 218, in execute
  File "/usr/lib/anaconda/storage/devicetree.py", line 705, in processActions
  File "/usr/lib/anaconda/storage/__init__.py", line 293, in doIt
  File "/usr/lib/anaconda/packages.py", line 109, in turnOnFilesystems
  File "/usr/lib/anaconda/dispatch.py", line 208, in moveStep
    rc = stepFunc(self.anaconda)
  File "/usr/lib/anaconda/dispatch.py", line 126, in gotoNext
  File "/usr/lib/anaconda/gui.py", line 1335, in nextClicked
  File "/usr/lib/anaconda/gui.py", line 1473, in keyRelease
PartitionException: Attempting to remove a partition that is not owned by any disk.

Comment 1 Alexander Todorov 2010-07-02 11:08:53 UTC
Created attachment 429030 [details]
Attached traceback automatically from anaconda.

Comment 2 Alexander Todorov 2010-07-02 11:09:22 UTC
Steps to reproduce with 0603.1/anaconda 13.21.50

1) On 10G disk create this layout
  1.1) /boot - 500M
  1.2) swap - 2048M
  1.3) / - 4096M
The layout as shown in anaconda UI is:
vda1 - /boot
vda2 - /
vda3 - swap
Free space

2) Start a second install and do this
  2.1) Format vda1 for /boot
  2.2) Delete vda2
  2.3) Format vda3 for swap
  2.4) Create new partition for / and make it occupy all available space. It will occupy the free space left from vda2. There will be free space after vda3 left as well.
  2.5) Delet swap - vda2 will extend to all available space. 
  2.6) Delete vda2
  2.7) Create swap - 2048 which will become vda2
  2.8) Create / with all remaining space - this will becomde vda3
  2.9) Proceed with writing changes to disk

Comment 3 Alexander Todorov 2010-07-02 11:11:10 UTC

*** This bug has been marked as a duplicate of bug 592339 ***

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