Bug 1156239

Summary: ValueError: Cannot remove non-leaf device 'sdc3'
Product: [Fedora] Fedora Reporter: Adam Reeve <adreeve>
Component: python-blivetAssignee: David Lehman <dlehman>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 21CC: adreeve, amulhern, anaconda-maint-list, bcl, dlehman, g.kaviyarasu, jonathan, vanmeeuwen+fedora, vpodzime
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:05a3e6145ad86677cc08f536da24abaeff000f156e3232bde1b942cd60e904ae
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-12-19 08:45:51 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:
Description Flags
File: anaconda-tb
none
File: anaconda.log
none
File: environ
none
File: journalctl
none
File: lsblk_output
none
File: nmcli_dev_list
none
File: os_info
none
File: program.log
none
File: storage.log
none
File: ifcfg.log none

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.