Bug 1156239 - ValueError: Cannot remove non-leaf device 'sdc3'
Summary: ValueError: Cannot remove non-leaf device 'sdc3'
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: python-blivet
Version: 21
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: David Lehman
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:05a3e6145ad86677cc08f536da2...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-10-24 00:16 UTC by Adam Reeve
Modified: 2014-12-19 08:45 UTC (History)
9 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2014-12-19 08:45:51 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: anaconda-tb (2.96 MB, text/plain)
2014-10-24 00:16 UTC, Adam Reeve
no flags Details
File: anaconda.log (203.17 KB, text/plain)
2014-10-24 00:16 UTC, Adam Reeve
no flags Details
File: environ (614 bytes, text/plain)
2014-10-24 00:16 UTC, Adam Reeve
no flags Details
File: journalctl (1018.70 KB, text/plain)
2014-10-24 00:17 UTC, Adam Reeve
no flags Details
File: lsblk_output (3.11 KB, text/plain)
2014-10-24 00:17 UTC, Adam Reeve
no flags Details
File: nmcli_dev_list (1.60 KB, text/plain)
2014-10-24 00:17 UTC, Adam Reeve
no flags Details
File: os_info (377 bytes, text/plain)
2014-10-24 00:17 UTC, Adam Reeve
no flags Details
File: program.log (252.27 KB, text/plain)
2014-10-24 00:17 UTC, Adam Reeve
no flags Details
File: storage.log (1.20 MB, text/plain)
2014-10-24 00:17 UTC, Adam Reeve
no flags Details
File: ifcfg.log (5.17 KB, text/plain)
2014-10-24 00:17 UTC, Adam Reeve
no flags Details

Description Adam Reeve 2014-10-24 00:16:15 UTC
Description of problem:
I was trying to install Fedora 21 over my Fedora 20 install. My Fedora 20 installation has a btrfs volume with subvolumes for / and /home, as well as a separate ext3 /boot partition and a swap partition. I selected the /home btrfs subvolume and clicked the button to remove it. I selected the option to remove other volumes on this partition. There was a message asking if I was sure I wanted to do this. After I agreed to that, Anaconda crashed.

Version-Release number of selected component:
anaconda-core-21.48.6-1.fc21.x86_64

The following was filed automatically by anaconda:
anaconda 21.48.6-1 exception report
Traceback (most recent call first):
  File "/usr/lib/python2.7/site-packages/blivet/devicetree.py", line 426, in _removeDevice
    raise ValueError("Cannot remove non-leaf device '%s'" % dev.name)
  File "/usr/lib/python2.7/site-packages/blivet/devicetree.py", line 496, in registerAction
    self._removeDevice(action.device)
  File "/usr/lib/python2.7/site-packages/blivet/__init__.py", line 1296, in destroyDevice
    self.devicetree.registerAction(action)
  File "/usr/lib64/python2.7/site-packages/pyanaconda/ui/gui/spokes/custom.py", line 1703, in _destroy_device
    self._storage_playground.destroyDevice(device)
  File "/usr/lib64/python2.7/site-packages/pyanaconda/ui/gui/spokes/custom.py", line 122, in decorated
    return func(*args, **kwargs)
  File "/usr/lib64/python2.7/site-packages/pyanaconda/ui/gui/spokes/custom.py", line 1826, in on_remove_clicked
    self._destroy_device(dev)
ValueError: Cannot remove non-leaf device 'sdc3'

Additional info:
cmdline:        /usr/bin/python  /sbin/anaconda --liveinst --method=livecd:///dev/mapper/live-base
cmdline_file:   initrd=/isolinux/initrd0.img root=live:UUID=B8F8-F63E rootfstype=auto ro rd.live.image quiet  rhgb rd.luks=0 rd.md=0 rd.dm=0 BOOT_IMAGE=/isolinux/vmlinuz0 
executable:     /sbin/anaconda
hashmarkername: anaconda
kernel:         3.16.1-301.fc21.x86_64
other involved packages: python-blivet-0.62-1.fc21.noarch, anaconda-gui-21.48.6-1.fc21.x86_64
product:        Fedora
release:        Fedora release 21 (Twenty One)
type:           anaconda
version:        21

Comment 1 Adam Reeve 2014-10-24 00:16:53 UTC
Created attachment 950131 [details]
File: anaconda-tb

Comment 2 Adam Reeve 2014-10-24 00:16:58 UTC
Created attachment 950132 [details]
File: anaconda.log

Comment 3 Adam Reeve 2014-10-24 00:16:59 UTC
Created attachment 950133 [details]
File: environ

Comment 4 Adam Reeve 2014-10-24 00:17:12 UTC
Created attachment 950134 [details]
File: journalctl

Comment 5 Adam Reeve 2014-10-24 00:17:14 UTC
Created attachment 950135 [details]
File: lsblk_output

Comment 6 Adam Reeve 2014-10-24 00:17:15 UTC
Created attachment 950136 [details]
File: nmcli_dev_list

Comment 7 Adam Reeve 2014-10-24 00:17:17 UTC
Created attachment 950137 [details]
File: os_info

Comment 8 Adam Reeve 2014-10-24 00:17:21 UTC
Created attachment 950138 [details]
File: program.log

Comment 9 Adam Reeve 2014-10-24 00:17:39 UTC
Created attachment 950139 [details]
File: storage.log

Comment 10 Adam Reeve 2014-10-24 00:17:40 UTC
Created attachment 950140 [details]
File: ifcfg.log

Comment 11 David Lehman 2014-12-02 21:31:53 UTC
Are you still in a position to reproduce this?

Comment 12 Adam Reeve 2014-12-19 08:45:51 UTC
Sorry for the late reply. I tried repeating this with the final install image for Fedora 21 (Fedora-Live-Workstation-x86_64-21-5) and I could no longer reproduce the issue. Following the same procedure resulted in the existing volumes being removed from the volume list as expected.


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