Bug 574379
| Summary: | PartitionException: Can't add a logical partition to /dev/sda, because there is no extended partition. | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 6 | Reporter: | Alexander Todorov <atodorov> | ||||||||
| Component: | anaconda | Assignee: | David Lehman <dlehman> | ||||||||
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Release Test Team <release-test-team-automation> | ||||||||
| Severity: | high | Docs Contact: | |||||||||
| Priority: | medium | ||||||||||
| Version: | 6.0 | CC: | atodorov, jburke, jstodola, mganisin, rwilliam, syeghiay | ||||||||
| Target Milestone: | beta | ||||||||||
| Target Release: | --- | ||||||||||
| Hardware: | x86_64 | ||||||||||
| OS: | Linux | ||||||||||
| Whiteboard: | anaconda_trace_hash:23f46a6a7f02b70e272c9beefd9fb6da9951be9790178e2b4b8cd17b0e91b664 | ||||||||||
| Fixed In Version: | anaconda-13.21.20.5-1 | Doc Type: | Bug Fix | ||||||||
| Doc Text: | Story Points: | --- | |||||||||
| Clone Of: | Environment: | ||||||||||
| Last Closed: | 2010-07-02 20:45:14 UTC | Type: | --- | ||||||||
| Regression: | --- | Mount Type: | --- | ||||||||
| Documentation: | --- | CRM: | |||||||||
| Verified Versions: | Category: | --- | |||||||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||||||
| Embargoed: | |||||||||||
| Attachments: |
|
||||||||||
Created attachment 400731 [details]
Attached traceback automatically from anaconda.
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. Created attachment 400756 [details]
Attached traceback automatically from anaconda.
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. Created attachment 403994 [details]
Attached traceback automatically from anaconda.
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. 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. 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. |
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.