RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 574379 - PartitionException: Can't add a logical partition to /dev/sda, because there is no extended partition.
Summary: PartitionException: Can't add a logical partition to /dev/sda, because there ...
Keywords:
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
high
Target Milestone: beta
: ---
Assignee: David Lehman
QA Contact: Release Test Team
URL:
Whiteboard: anaconda_trace_hash:23f46a6a7f02b70e2...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-03-17 12:25 UTC by Alexander Todorov
Modified: 2010-07-02 20:45 UTC (History)
6 users (show)

Fixed In Version: anaconda-13.21.20.5-1
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-07-02 20:45:14 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Attached traceback automatically from anaconda. (375.97 KB, text/plain)
2010-03-17 12:25 UTC, Alexander Todorov
no flags Details
Attached traceback automatically from anaconda. (175.36 KB, text/plain)
2010-03-17 13:45 UTC, Alexander Todorov
no flags Details
Attached traceback automatically from anaconda. (175.96 KB, text/plain)
2010-04-01 14:17 UTC, Alexander Todorov
no flags Details

Description Alexander Todorov 2010-03-17 12:25:33 UTC
The following was filed automatically by anaconda:
anaconda 13.21.20 exception report
Traceback (most recent call first):
  File "/usr/lib64/python2.6/site-packages/parted/disk.py", line 246, in addPartition
    constraint.getPedConstraint())
  File "/usr/lib64/python2.6/site-packages/parted/decorators.py", line 30, in localeC
    ret = fn(*args, **kwds)
  File "<string>", line 2, in addPartition
  File "/usr/lib/anaconda/storage/formats/disklabel.py", line 275, in addPartition
    constraint=constraint)
  File "/usr/lib/anaconda/storage/devices.py", line 1256, in create
    self.disk.format.addPartition(self.partedPartition)
  File "/usr/lib/anaconda/storage/deviceaction.py", line 203, in execute
    self.device.create(intf=intf)
  File "/usr/lib/anaconda/storage/devicetree.py", line 670, in processActions
    action.execute(intf=self.intf)
  File "/usr/lib/anaconda/storage/__init__.py", line 287, in doIt
    self.devicetree.processActions()
  File "/usr/lib/anaconda/packages.py", line 110, 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/dispatch.py", line 228, in currentStep
    self.gotoNext()
  File "/usr/lib/anaconda/gui.py", line 1341, in setScreen
    (step, anaconda) = self.anaconda.dispatch.currentStep()
  File "/usr/lib/anaconda/gui.py", line 1517, in setup_window
    self.setScreen()
  File "/usr/lib/anaconda/gui.py", line 1527, in run
    self.setup_window(runres)
  File "/usr/lib/anaconda/gui.py", line 1258, in run
    self.icw.run (self.runres)
  File "/usr/bin/anaconda", line 1048, in <module>
    anaconda.intf.run(anaconda)
PartitionException: Can't add a logical partition to /dev/sda, because there is no extended partition.

Comment 1 Alexander Todorov 2010-03-17 12:25:37 UTC
Created attachment 400731 [details]
Attached traceback automatically from anaconda.

Comment 3 RHEL Program Management 2010-03-17 12:55:56 UTC
This request was evaluated by Red Hat Product Management for inclusion in a Red
Hat Enterprise Linux major release.  Product Management has requested further
review of this request by Red Hat Engineering, for potential inclusion in a Red
Hat Enterprise Linux Major release.  This request is not yet committed for
inclusion.

Comment 4 Alexander Todorov 2010-03-17 13:45:58 UTC
Created attachment 400756 [details]
Attached traceback automatically from anaconda.

Comment 7 Marian Ganisin 2010-03-30 15:21:49 UTC
Reproducer:
 Setup:
  Clear disk without partition table.
  Alternatively exactly same configuration as described. If first attempt won't
  fail, just make second round with created partitioning. In that case remove all
  partitions manually first.

 Action:
  Choose 'Create custom layout' option.
  Create following layout:
   /boot, ext4, 200 MB
   swap, 2 000 MB
   lvm pv, 4 000 MB
   lvm pv, 4 000 MB
   / on lv, ext4, max size

There should be 3 primary partitions + 1 extended with 1 logical partition (probably swap). When formatting creation of extended partition is (probably) omitted and installation fails with attached traceback.

Comment 9 Alexander Todorov 2010-04-01 14:17:24 UTC
Created attachment 403994 [details]
Attached traceback automatically from anaconda.

Comment 11 Chris Lumens 2010-04-01 17:21:22 UTC
This looks like an action sorting bug to me:

04:57:06,285 DEBUG   : action: Destroy Format None on disk sda (id 0)
04:57:06,286 DEBUG   : action: Create Format disklabel on disk sda (id 0)
04:57:06,286 DEBUG   : action: Create Device partition sda1 (id 1)
04:57:06,286 DEBUG   : action: Create Format ext3 on partition sda1 (id 1)
04:57:06,286 DEBUG   : action: Create Device partition sda2 (id 3)
04:57:06,286 DEBUG   : action: Create Format lvmpv on partition sda2 (id 3)
04:57:06,286 DEBUG   : action: Create Device partition sda3 (id 4)
04:57:06,287 DEBUG   : action: Create Format lvmpv on partition sda3 (id 4)
04:57:06,287 DEBUG   : action: Create Device partition sda5 (id 2)
04:57:06,287 DEBUG   : action: Create Format swap on partition sda5 (id 2)
04:57:06,287 DEBUG   : action: Create Device lvmvg SNAKEVG (id 5)
04:57:06,287 DEBUG   : action: Create Device lvmlv SNAKEVG-SNAKEROOT (id 6)
04:57:06,287 DEBUG   : action: Create Format gfs2 on lvmlv SNAKEVG-SNAKEROOT (id 6)
04:57:06,288 DEBUG   : action: Create Device lvmlv SNAKEVG-SNAKE0 (id 7)
04:57:06,288 DEBUG   : action: Create Format gfs2 on lvmlv SNAKEVG-SNAKE0 (id 7)
04:57:06,288 DEBUG   : action: Create Device partition sda4 (id 8)

Note sda4 is sorted to after sda5.

Comment 13 David Lehman 2010-04-06 19:00:58 UTC
We add the actions that create extended partitions to the list right before
sorting the actions, and sometimes the set of comparisons that gets run isn't
sufficient to bubble them up where they need to be. Patched sort so that
partition create actions go before all other create actions except those that
create partitioned devices.

Comment 17 releng-rhel@redhat.com 2010-07-02 20:45:14 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.