Bug 862947

Summary: ValueError: Cannot remove non-leaf device 'sdb1'
Product: [Fedora] Fedora Reporter: Reartes Guillermo <rtguille>
Component: anacondaAssignee: Anaconda Maintenance Team <anaconda-maint-list>
Status: CLOSED INSUFFICIENT_DATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 18CC: anaconda-maint-list, g.kaviyarasu, jonathan, plambri, vanmeeuwen+fedora
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:c6b8e8987d9214876979c28ef0b9bcd9ed46c20cea39fd668d7d2778176305f4
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-05-30 16:48:53 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: ifcfg.log
none
File: anaconda-tb
none
File: product
none
File: type
none
File: environ
none
File: storage.log
none
File: version
none
File: program.log
none
File: anaconda.log
none
File: syslog
none
File: hashmarkername
none
File: packaging.log
none
File: cmdline_file
none
File: release none

Description Reartes Guillermo 2012-10-04 01:50:23 UTC
Version-Release number of selected component:
anaconda-18.11

Additional info:
libreport version: 2.0.14
cmdline:        /usr/bin/python  /sbin/anaconda
kernel:         3.6.0-1.fc18.x86_64

description:
:The following was filed automatically by anaconda:
:anaconda 18.11 exception report
:Traceback (most recent call first):
:  File "/usr/lib64/python2.7/site-packages/pyanaconda/storage/devicetree.py", line 375, in _removeDevice
:    raise ValueError("Cannot remove non-leaf device '%s'" % dev.name)
:  File "/usr/lib64/python2.7/site-packages/pyanaconda/storage/devicetree.py", line 425, in registerAction
:    self._removeDevice(action.device)
:  File "/usr/lib64/python2.7/site-packages/pyanaconda/storage/__init__.py", line 1219, in destroyDevice
:    self.devicetree.registerAction(action)
:  File "/usr/lib64/python2.7/site-packages/pyanaconda/storage/__init__.py", line 799, in recursiveRemove
:    self.destroyDevice(device)
:  File "/usr/lib64/python2.7/site-packages/pyanaconda/storage/__init__.py", line 828, in clearPartitions
:    self.recursiveRemove(part)
:  File "/usr/lib64/python2.7/site-packages/pyanaconda/kickstart.py", line 442, in execute
:    storage.clearPartitions()
:  File "/usr/lib64/python2.7/site-packages/pyanaconda/kickstart.py", line 1554, in doKickstartStorage
:    ksdata.clearpart.execute(storage, ksdata, instClass)
:  File "/usr/lib64/python2.7/site-packages/pyanaconda/ui/gui/spokes/storage.py", line 333, in _doExecute
:    doKickstartStorage(self.storage, self.data, self.instclass)
:  File "/usr/lib64/python2.7/threading.py", line 504, in run
:    self.__target(*self.__args, **self.__kwargs)
:  File "/usr/lib64/python2.7/site-packages/pyanaconda/threads.py", line 87, in run
:    threading.Thread.run(self, *args, **kwargs)
:ValueError: Cannot remove non-leaf device 'sdb1'

Comment 1 Reartes Guillermo 2012-10-04 01:50:26 UTC
Created attachment 621230 [details]
File: ifcfg.log

Comment 2 Reartes Guillermo 2012-10-04 01:50:34 UTC
Created attachment 621231 [details]
File: anaconda-tb

Comment 3 Reartes Guillermo 2012-10-04 01:50:36 UTC
Created attachment 621232 [details]
File: product

Comment 4 Reartes Guillermo 2012-10-04 01:50:39 UTC
Created attachment 621233 [details]
File: type

Comment 5 Reartes Guillermo 2012-10-04 01:50:41 UTC
Created attachment 621234 [details]
File: environ

Comment 6 Reartes Guillermo 2012-10-04 01:50:45 UTC
Created attachment 621235 [details]
File: storage.log

Comment 7 Reartes Guillermo 2012-10-04 01:50:47 UTC
Created attachment 621236 [details]
File: version

Comment 8 Reartes Guillermo 2012-10-04 01:50:50 UTC
Created attachment 621237 [details]
File: program.log

Comment 9 Reartes Guillermo 2012-10-04 01:50:53 UTC
Created attachment 621238 [details]
File: anaconda.log

Comment 10 Reartes Guillermo 2012-10-04 01:50:56 UTC
Created attachment 621239 [details]
File: syslog

Comment 11 Reartes Guillermo 2012-10-04 01:50:59 UTC
Created attachment 621240 [details]
File: hashmarkername

Comment 12 Reartes Guillermo 2012-10-04 01:51:01 UTC
Created attachment 621241 [details]
File: packaging.log

Comment 13 Reartes Guillermo 2012-10-04 01:51:03 UTC
Created attachment 621242 [details]
File: cmdline_file

Comment 14 Reartes Guillermo 2012-10-04 01:51:05 UTC
Created attachment 621243 [details]
File: release

Comment 15 David Lehman 2012-10-05 15:51:30 UTC
This issue arises from the following scenario:

1. start with an lvm setup across two disks
2. hide the second disk
3. reformat the pv on the first disk as ext4
4. hide the first disk
5. unhide the second disk
6. run clearpart (type all) on the second disk


It looks like there is some issue with child reference count getting messed up.

Comment 16 Chris Lumens 2012-11-06 15:07:45 UTC
Is this reproducible with anaconda-18.25-1?