Bug 949912 - ValueError: Cannot remove extended partition sda4. Logical partitions present.
Summary: ValueError: Cannot remove extended partition sda4. Logical partitions present.
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: anaconda
Version: 19
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: David Lehman
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:c32bf9c7d7bffc1199718482e35...
: 948719 (view as bug list)
Depends On:
Blocks: F19Alpha, F19AlphaBlocker
TreeView+ depends on / blocked
 
Reported: 2013-04-09 09:23 UTC by Petr Schindler
Modified: 2014-12-02 19:21 UTC (History)
15 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2013-04-19 17:48:20 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: anaconda-tb (780.96 KB, text/plain)
2013-04-09 09:23 UTC, Petr Schindler
no flags Details
File: anaconda.log (10.38 KB, text/plain)
2013-04-09 09:23 UTC, Petr Schindler
no flags Details
File: backtrace (790 bytes, text/plain)
2013-04-09 09:24 UTC, Petr Schindler
no flags Details
File: environ (780 bytes, text/plain)
2013-04-09 09:24 UTC, Petr Schindler
no flags Details
File: ifcfg.log (852 bytes, text/plain)
2013-04-09 09:24 UTC, Petr Schindler
no flags Details
File: lsblk_output (1.98 KB, text/plain)
2013-04-09 09:24 UTC, Petr Schindler
no flags Details
File: nmcli_dev_list (4.78 KB, text/plain)
2013-04-09 09:24 UTC, Petr Schindler
no flags Details
File: packaging.log (324.61 KB, text/plain)
2013-04-09 09:24 UTC, Petr Schindler
no flags Details
File: program.log (38.79 KB, text/plain)
2013-04-09 09:24 UTC, Petr Schindler
no flags Details
File: storage.log (130.02 KB, text/plain)
2013-04-09 09:24 UTC, Petr Schindler
no flags Details
File: syslog (140.00 KB, text/plain)
2013-04-09 09:24 UTC, Petr Schindler
no flags Details

Description Petr Schindler 2013-04-09 09:23:39 UTC
Description of problem:
In "installation destination" in "Reclaim disk space" I want to deleted all partitions (click on delete when the whole disk is choosen). Then I clicked on "Reclaim space".

After small pause this bug appeared.

I have tested it with Live and DVD.iso of RC1 (Alpha 19)

version of anaconda: anaconda 19.16-1

I have this layout:
sda1 - boot
sda2 - swap
sda3 - root
sda4 - extended partition
sda5 - home (on sda4)
The following was filed automatically by anaconda:
anaconda 19.16-1 exception report
Traceback (most recent call first):
  File "/usr/lib/python2.7/site-packages/blivet/devicetree.py", line 304, in _removeDevice
    "Logical partitions present." % dev.name)
  File "/usr/lib/python2.7/site-packages/blivet/devicetree.py", line 348, in registerAction
    self._removeDevice(action.device)
  File "/usr/lib/python2.7/site-packages/blivet/__init__.py", line 1163, in destroyDevice
    self.devicetree.registerAction(action)
  File "/usr/lib/python2.7/site-packages/blivet/__init__.py", line 725, in recursiveRemove
    self.destroyDevice(leaf)
  File "/usr/lib64/python2.7/site-packages/pyanaconda/ui/gui/spokes/lib/resize.py", line 353, in _scheduleActions
    self.storage.recursiveRemove(device)
ValueError: Cannot remove extended partition sda4.  Logical partitions present.

Version-Release number of selected component:
anaconda-19.16-1

Additional info:
cmdline:        /usr/bin/python  /sbin/anaconda
cmdline_file:   initrd=initrd.img inst.stage2=hd:UUID=22b64dd6-2a95-453e-bb92-3e17f74ae2ce quiet BOOT_IMAGE=vmlinuz 
executable:     /sbin/anaconda
hashmarkername: anaconda
kernel:         3.9.0-0.rc4.git0.1.fc19.x86_64
product:        Fedora
release:        Cannot get release name.
type:           anaconda
version:        19-Alpha

Truncated backtrace:
Traceback (most recent call last):
  File "/usr/lib64/python2.7/site-packages/pyanaconda/ui/gui/spokes/lib/resize.py", line 353, in _scheduleActions
    self.storage.recursiveRemove(device)
  File "/usr/lib/python2.7/site-packages/blivet/__init__.py", line 725, in recursiveRemove
    self.destroyDevice(leaf)
  File "/usr/lib/python2.7/site-packages/blivet/__init__.py", line 1163, in destroyDevice
    self.devicetree.registerAction(action)
  File "/usr/lib/python2.7/site-packages/blivet/devicetree.py", line 348, in registerAction
    self._removeDevice(action.device)
  File "/usr/lib/python2.7/site-packages/blivet/devicetree.py", line 304, in _removeDevice
    "Logical partitions present." % dev.name)
ValueError: Cannot remove extended partition sda4.  Logical partitions present.

Comment 1 Petr Schindler 2013-04-09 09:23:47 UTC
Created attachment 733084 [details]
File: anaconda-tb

Comment 2 Petr Schindler 2013-04-09 09:23:58 UTC
Created attachment 733085 [details]
File: anaconda.log

Comment 3 Petr Schindler 2013-04-09 09:24:01 UTC
Created attachment 733086 [details]
File: backtrace

Comment 4 Petr Schindler 2013-04-09 09:24:05 UTC
Created attachment 733087 [details]
File: environ

Comment 5 Petr Schindler 2013-04-09 09:24:08 UTC
Created attachment 733088 [details]
File: ifcfg.log

Comment 6 Petr Schindler 2013-04-09 09:24:12 UTC
Created attachment 733089 [details]
File: lsblk_output

Comment 7 Petr Schindler 2013-04-09 09:24:14 UTC
Created attachment 733090 [details]
File: nmcli_dev_list

Comment 8 Petr Schindler 2013-04-09 09:24:19 UTC
Created attachment 733091 [details]
File: packaging.log

Comment 9 Petr Schindler 2013-04-09 09:24:28 UTC
Created attachment 733092 [details]
File: program.log

Comment 10 Petr Schindler 2013-04-09 09:24:33 UTC
Created attachment 733093 [details]
File: storage.log

Comment 11 Petr Schindler 2013-04-09 09:24:38 UTC
Created attachment 733094 [details]
File: syslog

Comment 12 Fedora Blocker Bugs Application 2013-04-09 10:28:08 UTC
Proposed as a Blocker for 19-alpha by Fedora user pschindl using the blocker tracking app because:

 This bug violates criterion: "The installer must be able to complete an installation to a single disk using automatic partitioning."

Comment 13 Alexander Volovics 2013-04-09 11:24:10 UTC
Description of problem:
After clicking on the hard disk icon again to check something before clicking 'Begin installation'

Version-Release number of selected component:
anaconda-19.16-1

Additional info:
cmdline:        /usr/bin/python  /sbin/anaconda
cmdline_file:   initrd=initrd.img inst.stage2=hd:LABEL=Fedora\x2019-Alpha\x20x86_64 quiet BOOT_IMAGE=vmlinuz 
executable:     /sbin/anaconda
hashmarkername: anaconda
kernel:         3.9.0-0.rc4.git0.1.fc19.x86_64
product:        Fedora
release:        Cannot get release name.
type:           anaconda
version:        19-Alpha

Truncated backtrace:
Traceback (most recent call last):
  File "/usr/lib64/python2.7/site-packages/pyanaconda/ui/gui/spokes/lib/resize.py", line 353, in _scheduleActions
    self.storage.recursiveRemove(device)
  File "/usr/lib/python2.7/site-packages/blivet/__init__.py", line 725, in recursiveRemove
    self.destroyDevice(leaf)
  File "/usr/lib/python2.7/site-packages/blivet/__init__.py", line 1163, in destroyDevice
    self.devicetree.registerAction(action)
  File "/usr/lib/python2.7/site-packages/blivet/devicetree.py", line 348, in registerAction
    self._removeDevice(action.device)
  File "/usr/lib/python2.7/site-packages/blivet/devicetree.py", line 304, in _removeDevice
    "Logical partitions present." % dev.name)
ValueError: Cannot remove extended partition sda4.  Logical partitions present.

Comment 14 Vratislav Podzimek 2013-04-09 12:45:18 UTC
Description of problem:
Using automatic partitioning with logical partitions on an extended partition.

Version-Release number of selected component:
anaconda-19.16-1

Additional info:
cmdline:        /usr/bin/python  /sbin/anaconda
cmdline_file:   initrd=initrd.img inst.stage2=hd:LABEL=Fedora\x2019-Alpha\x20x86_64 quiet BOOT_IMAGE=vmlinuz 
executable:     /sbin/anaconda
hashmarkername: anaconda
kernel:         3.9.0-0.rc4.git0.1.fc19.x86_64
product:        Fedora
release:        Cannot get release name.
type:           anaconda
version:        19-Alpha

Truncated backtrace:
Traceback (most recent call last):
  File "/usr/lib64/python2.7/site-packages/pyanaconda/ui/gui/spokes/lib/resize.py", line 353, in _scheduleActions
    self.storage.recursiveRemove(device)
  File "/usr/lib/python2.7/site-packages/blivet/__init__.py", line 725, in recursiveRemove
    self.destroyDevice(leaf)
  File "/usr/lib/python2.7/site-packages/blivet/__init__.py", line 1163, in destroyDevice
    self.devicetree.registerAction(action)
  File "/usr/lib/python2.7/site-packages/blivet/devicetree.py", line 348, in registerAction
    self._removeDevice(action.device)
  File "/usr/lib/python2.7/site-packages/blivet/devicetree.py", line 304, in _removeDevice
    "Logical partitions present." % dev.name)
ValueError: Cannot remove extended partition vda4.  Logical partitions present.

Comment 15 Jaroslav Reznik 2013-04-09 14:08:57 UTC
dlehman is testing fix right now. 
I'll be +1 blocker as it violates criteria to have it pulled in as fast as possible.

Comment 16 Adam Williamson 2013-04-09 15:17:36 UTC
+1 per comment #12, that's +3, setting accepted.

Comment 17 Adam Williamson 2013-04-09 21:11:57 UTC
I tried to build an updates.img to test this fix. If anyone wants to try it, it's at:

https://www.happyassassin.net/extras/updates-949912.img

disclaimer: this is the first time I've tried to build an updates.img for a change that's in blivet (not anaconda), so I may have screwed up. I had to manually apply dlehman's patches to blivet master and then create the updates image. This includes several unrelated changes too, so that could throw a spanner in the works. But give it a shot if you like.

Comment 18 Fedora Update System 2013-04-09 22:57:58 UTC
python-blivet-0.10-1.fc19,anaconda-19.17-1.fc19 has been submitted as an update for Fedora 19.
https://admin.fedoraproject.org/updates/python-blivet-0.10-1.fc19,anaconda-19.17-1.fc19

Comment 19 Fedora Update System 2013-04-10 15:19:26 UTC
Package python-blivet-0.10-1.fc19, anaconda-19.17-1.fc19:
* should fix your issue,
* was pushed to the Fedora 19 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing python-blivet-0.10-1.fc19 anaconda-19.17-1.fc19'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2013-5323/python-blivet-0.10-1.fc19,anaconda-19.17-1.fc19
then log in and leave karma (feedback).

Comment 20 Adam Williamson 2013-04-10 16:55:29 UTC
Can someone who's able to reproduce this please test with RC2 and confirm the fix? Thanks!

Comment 21 Mark Hamzy 2013-04-10 19:32:58 UTC
Description of problem:
Tried reclaiming a previous Fedora 19 install with default partitions instead of LVM.

Version-Release number of selected component:
anaconda-19.16-1

Additional info:
cmdline:        /usr/bin/python  /sbin/anaconda
cmdline_file:   ro  inst.vnc inst.sshd ip=9.5.114.36::9.5.114.1:255.255.255.0:sharpie.rch.stglabs.ibm.com:eth0:none ip=9.5.114.41::9.5.114.1:255.255.255.0::eth1:none nameserver=9.10.244.100 bootdev=eth0 
executable:     /sbin/anaconda
hashmarkername: anaconda
kernel:         3.9.0-0.rc4.git0.1.fc19.ppc64
product:        Fedora
release:        Cannot get release name.
type:           anaconda
version:        19

Truncated backtrace:
Traceback (most recent call last):
  File "/usr/lib64/python2.7/site-packages/pyanaconda/ui/gui/spokes/lib/resize.py", line 353, in _scheduleActions
    self.storage.recursiveRemove(device)
  File "/usr/lib/python2.7/site-packages/blivet/__init__.py", line 725, in recursiveRemove
    self.destroyDevice(leaf)
  File "/usr/lib/python2.7/site-packages/blivet/__init__.py", line 1163, in destroyDevice
    self.devicetree.registerAction(action)
  File "/usr/lib/python2.7/site-packages/blivet/devicetree.py", line 348, in registerAction
    self._removeDevice(action.device)
  File "/usr/lib/python2.7/site-packages/blivet/devicetree.py", line 304, in _removeDevice
    "Logical partitions present." % dev.name)
ValueError: Cannot remove extended partition sda4.  Logical partitions present.

Comment 22 Adam Williamson 2013-04-10 23:05:40 UTC
hamz: please test with RC2 (anaconda 19.17), it includes a change that is expected to fix this bug and we need to verify that it does.

Comment 23 Petr Schindler 2013-04-11 06:35:12 UTC
The fix seems to work properly. It works normally now with disk layout I described in Description.

Comment 24 Vratislav Podzimek 2013-04-11 11:35:58 UTC
Works for me as well. I think this can be moved to VERIFIED.

Comment 25 Adam Williamson 2013-04-19 17:48:20 UTC
anaconda 19.20 went stable, so let's close this.

Comment 26 David Lehman 2014-12-02 19:21:52 UTC
*** Bug 948719 has been marked as a duplicate of this bug. ***


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