Bug 593754 - PartitionException: Extended partitions cannot be hidden on msdos disk labels.
Summary: PartitionException: Extended partitions cannot be hidden on msdos disk labels.
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: anaconda
Version: 6.0
Hardware: x86_64
OS: Linux
medium
medium
Target Milestone: rc
: ---
Assignee: Hans de Goede
QA Contact: Release Test Team
URL:
Whiteboard: anaconda_trace_hash:dfacaa53651c4bd0f...
Keywords:
Depends On:
Blocks: 582286
TreeView+ depends on / blocked
 
Reported: 2010-05-19 16:08 UTC by Alexander Todorov
Modified: 2010-07-02 20:49 UTC (History)
1 user (show)

(edit)
Clone Of:
(edit)
Last Closed: 2010-07-02 20:49:50 UTC


Attachments (Terms of Use)
Attached traceback automatically from anaconda. (281.04 KB, text/plain)
2010-05-19 16:09 UTC, Alexander Todorov
no flags Details

Description Alexander Todorov 2010-05-19 16:08:56 UTC
The following was filed automatically by anaconda:
anaconda 13.21.39 exception report
Traceback (most recent call first):
  File "/usr/lib64/python2.6/site-packages/parted/partition.py", line 161, in unsetFlag
    return self.__partition.set_flag(flag, 0)
  File "/usr/lib64/python2.6/site-packages/parted/decorators.py", line 31, in localeC
    ret = fn(*args, **kwds)
  File "<string>", line 2, in unsetFlag
  File "/usr/lib/anaconda/storage/devices.py", line 1232, in unsetFlag
    self.partedPartition.unsetFlag(flag)
  File "/usr/lib/anaconda/storage/deviceaction.py", line 276, in execute
    self.device.unsetFlag(flag)
  File "/usr/lib/anaconda/storage/devicetree.py", line 693, in processActions
    action.execute(intf=self.intf)
  File "/usr/lib/anaconda/storage/__init__.py", line 292, in doIt
    self.devicetree.processActions()
  File "/usr/lib/anaconda/packages.py", line 109, in turnOnFilesystems
    anaconda.id.storage.doIt()
  File "/usr/lib/anaconda/dispatch.py", line 205, in moveStep
    rc = stepFunc(self.anaconda)
  File "/usr/lib/anaconda/dispatch.py", line 126, in gotoNext
    self.moveStep()
  File "/usr/lib/anaconda/gui.py", line 1260, in nextClicked
    self.anaconda.dispatch.gotoNext()
  File "/usr/lib/anaconda/gui.py", line 1398, in keyRelease
    self.nextClicked()
PartitionException: Extended partitions cannot be hidden on msdos disk labels.

Comment 1 Alexander Todorov 2010-05-19 16:09:02 UTC
Created attachment 415183 [details]
Attached traceback automatically from anaconda.

Comment 2 Alexander Todorov 2010-05-19 16:13:06 UTC
I've created the following disk layout:

/dev/vda1 - /boot, ext4
/dev/vda2 - swap
/dev/vda3 - /home, ext4
/dev/vda4 - extended
  /dev/vda5 - /, ext4

Then selected the extended partition and clicked Edit. It was showing fstype: ext4, size 1. I've changed the fstype to xfs, pressed OK and continued to write changes on disk. Then anaconda spew this traceback.

Should the user be able to edit an extended partition? (I think not).

Comment 3 Hans de Goede 2010-05-20 15:02:45 UTC
Hi,

Thanks for the report, and thanks for the hint that this is caused by editing extended partitions indeed that should not be allowed.

Regards,

Hans

Comment 4 Hans de Goede 2010-05-20 15:05:24 UTC
Dave,

I see that you've taken this one, I've just send a patch for that to the list, I've even tested it :)

I guess I should have taken this bug before started working on it.

Regards,

Hans

Comment 5 Hans de Goede 2010-05-31 12:51:58 UTC
This is fixed in anaconda-13.21.50-1, moving to modified.

Comment 7 Alexander Todorov 2010-06-29 10:33:32 UTC
with anaconda-13.21.50-9 it's not possible to edit the extended partition. Moving to VERIFIED.

Comment 8 releng-rhel@redhat.com 2010-07-02 20:49:50 UTC
Red Hat Enterprise Linux Beta 2 is now available and should resolve
the problem described in this bug report. This report is therefore being closed
with a resolution of CURRENTRELEASE. You may reopen this bug report if the
solution does not work for you.


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