Bug 1229186 - ValueError: Cannot remove extended partition sda4. Logical partitions present.
Summary: ValueError: Cannot remove extended partition sda4. Logical partitions present.
Keywords:
Status: CLOSED EOL
Alias: None
Product: Fedora
Classification: Fedora
Component: pyparted
Version: 23
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Vratislav Podzimek
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:ef5311e7d627854d5cf619d939d...
: 1257218 (view as bug list)
Depends On:
Blocks: F23PPCBeta
TreeView+ depends on / blocked
 
Reported: 2015-06-08 09:06 UTC by Jiri Konecny
Modified: 2016-12-20 13:44 UTC (History)
12 users (show)

Fixed In Version: pyparted-3.10.6-1
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-12-20 13:44:58 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: anaconda-tb (340.71 KB, text/plain)
2015-06-08 09:06 UTC, Jiri Konecny
no flags Details
File: anaconda.log (16.55 KB, text/plain)
2015-06-08 09:06 UTC, Jiri Konecny
no flags Details
File: dnf.log (5.41 KB, text/plain)
2015-06-08 09:06 UTC, Jiri Konecny
no flags Details
File: dnf.rpm.log (149 bytes, text/plain)
2015-06-08 09:06 UTC, Jiri Konecny
no flags Details
File: environ (492 bytes, text/plain)
2015-06-08 09:07 UTC, Jiri Konecny
no flags Details
File: lsblk_output (1.54 KB, text/plain)
2015-06-08 09:07 UTC, Jiri Konecny
no flags Details
File: nmcli_dev_list (1.60 KB, text/plain)
2015-06-08 09:07 UTC, Jiri Konecny
no flags Details
File: os_info (451 bytes, text/plain)
2015-06-08 09:07 UTC, Jiri Konecny
no flags Details
File: storage.log (116.07 KB, text/plain)
2015-06-08 09:07 UTC, Jiri Konecny
no flags Details
File: syslog (68.60 KB, text/plain)
2015-06-08 09:07 UTC, Jiri Konecny
no flags Details
File: ifcfg.log (1.65 KB, text/plain)
2015-06-08 09:07 UTC, Jiri Konecny
no flags Details
File: packaging.log (2.10 KB, text/plain)
2015-06-08 09:07 UTC, Jiri Konecny
no flags Details
File: program.log (41.25 KB, application/octet-stream)
2015-06-08 09:07 UTC, Jiri Konecny
no flags Details
Reclaim space dialog screenshot (109.58 KB, image/png)
2015-06-08 11:54 UTC, Jiri Konecny
no flags Details

Description Jiri Konecny 2015-06-08 09:06:51 UTC
Version-Release number of selected component:
anaconda-23.9-1

The following was filed automatically by anaconda:
anaconda 23.9-1 exception report
Traceback (most recent call first):
  File "/tmp/updates/blivet/devices/partition.py", line 482, in removeHook
    "Logical partitions present." % self.name)
  File "/tmp/updates/blivet/devicetree.py", line 223, in _removeDevice
    dev.removeHook(modparent=modparent)
  File "/tmp/updates/blivet/devicetree.py", line 312, in registerAction
    self._removeDevice(action.device)
  File "/tmp/updates/blivet/devicetree.py", line 273, in recursiveRemove
    self.registerAction(ActionDestroyDevice(leaf))
  File "/tmp/updates/blivet/blivet.py", line 611, in recursiveRemove
    self.devicetree.recursiveRemove(device)
  File "/tmp/updates/pyanaconda/ui/gui/spokes/lib/resize.py", line 418, in _recursiveRemove
    self.storage.recursiveRemove(device)
  File "/tmp/updates/pyanaconda/ui/gui/spokes/lib/resize.py", line 443, in _scheduleActions
    self._recursiveRemove(device)
ValueError: Cannot remove extended partition sda4.  Logical partitions present.

Additional info:
addons:         com_redhat_kdump
cmdline:        /usr/bin/python2  /sbin/anaconda
cmdline_file:   initrd=/test/jk/fedora/initrd.img root=live:http://cobra02/trees/jk/rawhide.img nokill resolution=1024x768 updates=http://cobra02/ks/jk/master_updates.img BOOT_IMAGE=/test/jk/fedora/vmlinuz 
executable:     /sbin/anaconda
hashmarkername: anaconda
kernel:         4.1.0-0.rc1.git0.1.fc23.x86_64
product:        Fedora
release:        Cannot get release name.
type:           anaconda
version:        Rawhide

Comment 1 Jiri Konecny 2015-06-08 09:06:55 UTC
Created attachment 1036234 [details]
File: anaconda-tb

Comment 2 Jiri Konecny 2015-06-08 09:06:57 UTC
Created attachment 1036235 [details]
File: anaconda.log

Comment 3 Jiri Konecny 2015-06-08 09:06:58 UTC
Created attachment 1036236 [details]
File: dnf.log

Comment 4 Jiri Konecny 2015-06-08 09:06:59 UTC
Created attachment 1036237 [details]
File: dnf.rpm.log

Comment 5 Jiri Konecny 2015-06-08 09:07:00 UTC
Created attachment 1036238 [details]
File: environ

Comment 6 Jiri Konecny 2015-06-08 09:07:01 UTC
Created attachment 1036239 [details]
File: lsblk_output

Comment 7 Jiri Konecny 2015-06-08 09:07:02 UTC
Created attachment 1036240 [details]
File: nmcli_dev_list

Comment 8 Jiri Konecny 2015-06-08 09:07:04 UTC
Created attachment 1036241 [details]
File: os_info

Comment 9 Jiri Konecny 2015-06-08 09:07:06 UTC
Created attachment 1036242 [details]
File: storage.log

Comment 10 Jiri Konecny 2015-06-08 09:07:07 UTC
Created attachment 1036243 [details]
File: syslog

Comment 11 Jiri Konecny 2015-06-08 09:07:08 UTC
Created attachment 1036244 [details]
File: ifcfg.log

Comment 12 Jiri Konecny 2015-06-08 09:07:10 UTC
Created attachment 1036245 [details]
File: packaging.log

Comment 13 Jiri Konecny 2015-06-08 09:07:11 UTC
Created attachment 1036246 [details]
File: program.log

Comment 14 Jiri Konecny 2015-06-08 11:53:16 UTC
This happens in my virtual machine when I want to reclaim space. The reclaim space dialog is confirmed and after that the anaconda will crash.

It seems the problem is only with LVM on extended partition. Without LVM it can't be reproduced.

How reproducible:
Is reproducible always on my machine (have snapshot).

I'm attaching screenshot of the Reclaim space dialog.

Comment 15 Jiri Konecny 2015-06-08 11:54:10 UTC
Created attachment 1036327 [details]
Reclaim space dialog screenshot

Comment 16 Vratislav Podzimek 2015-06-10 15:48:46 UTC
This is a bug in recent Python3-related changes done by me in pyparted. Comparison of PartedPartition objects is wrong and blivet thinks the to-be-removed partition is not a part of the disk it tries to remove it from (because none of the disk's partitions matches).

Comment 17 Vratislav Podzimek 2015-06-11 12:29:27 UTC
updates.img for this issue:
http://vpodzime.fedorapeople.org/1229186_updates.img

Comment 18 Vratislav Podzimek 2015-06-11 12:31:26 UTC
Submitted as pull request https://github.com/rhinstaller/pyparted/pull/14

Comment 19 Jan Kurik 2015-07-15 14:03:02 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 23 development cycle.
Changing version to '23'.

(As we did not run this process for some time, it could affect also pre-Fedora 23 development
cycle bugs. We are very sorry. It will help us with cleanup during Fedora 23 End Of Life. Thank you.)

More information and reason for this action is here:
https://fedoraproject.org/wiki/BugZappers/HouseKeeping/Fedora23

Comment 20 Menanteau Guy 2015-08-27 12:15:26 UTC
*** Bug 1257218 has been marked as a duplicate of this bug. ***

Comment 21 Fedora End Of Life 2016-11-24 11:51:53 UTC
This message is a reminder that Fedora 23 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 23. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as EOL if it remains open with a Fedora  'version'
of '23'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora 23 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 22 Fedora End Of Life 2016-12-20 13:44:58 UTC
Fedora 23 changed to end-of-life (EOL) status on 2016-12-20. Fedora 23 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.


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