Bug 1111376

Summary: MDRaidError: mddeactivate failed for /dev/md/localhost.localdomain:swap: running mdadm --stop /dev/md/localhost.localdomain:swap failed
Product: [Fedora] Fedora Reporter: tiapko
Component: anacondaAssignee: Anaconda Maintenance Team <anaconda-maint-list>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 20CC: anaconda-maint-list, g.kaviyarasu, jonathan, vanmeeuwen+fedora
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:69b0d6f454d0fcf9f698f6f4f2fb44cd8b386f7489c51e459c4e239bef5ceece
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-06-26 18:30:00 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 tiapko 2014-06-19 21:51:45 UTC
Description of problem:
I just tried to remove any partitions from one hard drive which was part of RAID

Version-Release number of selected component:
anaconda-20.25.15-1.fc20.x86_64

The following was filed automatically by anaconda:
anaconda 20.25.15-1 exception report
Traceback (most recent call first):
  File "/usr/lib/python2.7/site-packages/blivet/devicelibs/mdraid.py", line 222, in mddeactivate
    raise MDRaidError("mddeactivate failed for %s: %s" % (device, msg))
  File "/usr/lib/python2.7/site-packages/blivet/devices.py", line 3399, in teardown
    mdraid.mddeactivate(self.path)
  File "/usr/lib/python2.7/site-packages/blivet/deviceaction.py", line 317, in __init__
    device.teardown()
  File "/usr/lib/python2.7/site-packages/blivet/__init__.py", line 1220, in destroyDevice
    action = ActionDestroyDevice(device)
  File "/usr/lib/python2.7/site-packages/blivet/__init__.py", line 759, in recursiveRemove
    self.destroyDevice(leaf)
  File "/usr/lib64/python2.7/site-packages/pyanaconda/ui/gui/spokes/lib/resize.py", line 397, in _scheduleActions
    self.storage.recursiveRemove(device)
MDRaidError: mddeactivate failed for /dev/md/localhost.localdomain:swap: running mdadm --stop /dev/md/localhost.localdomain:swap failed

Additional info:
cmdline:        /usr/bin/python  /sbin/anaconda --liveinst --method=livecd:///dev/mapper/live-base
cmdline_file:   initrd=initrd0.img root=live:CDLABEL=LIVE rootfstype=vfat ro rd.live.image quiet  rhgb rd.luks=0 rd.md=0 rd.dm=0  BOOT_IMAGE=vmlinuz0 
executable:     /sbin/anaconda
hashmarkername: anaconda
kernel:         3.11.10-301.fc20.x86_64
other involved packages: python-blivet-0.23.9-1.fc20.noarch
product:        Fedora
release:        Fedora release 20 (Heisenbug)
type:           anaconda
version:        20

Comment 1 tiapko 2014-06-19 21:52:17 UTC
Created attachment 910562 [details]
File: anaconda-tb

Comment 2 tiapko 2014-06-19 21:52:21 UTC
Created attachment 910563 [details]
File: anaconda.log

Comment 3 tiapko 2014-06-19 21:52:24 UTC
Created attachment 910564 [details]
File: environ

Comment 4 tiapko 2014-06-19 21:52:39 UTC
Created attachment 910565 [details]
File: journalctl

Comment 5 tiapko 2014-06-19 21:52:41 UTC
Created attachment 910566 [details]
File: lsblk_output

Comment 6 tiapko 2014-06-19 21:52:43 UTC
Created attachment 910567 [details]
File: nmcli_dev_list

Comment 7 tiapko 2014-06-19 21:52:45 UTC
Created attachment 910568 [details]
File: os_info

Comment 8 tiapko 2014-06-19 21:52:48 UTC
Created attachment 910569 [details]
File: program.log

Comment 9 tiapko 2014-06-19 21:53:03 UTC
Created attachment 910570 [details]
File: storage.log

Comment 10 tiapko 2014-06-19 21:53:06 UTC
Created attachment 910571 [details]
File: ifcfg.log

Comment 11 Brian Lane 2014-06-26 18:30:00 UTC
17:22:44,633 INFO program: Running... mdadm --stop /dev/md/localhost.localdomain:swap
17:22:44,643 INFO program: mdadm: Cannot get exclusive access to /dev/md/localhost.localdomain:swap:Perhaps a running process, mounted filesystem or active volume group?

Something else is currently using that device -- probably swap. You could try running swapoff /dev/md/localhost.localdomain:swap before starting anaconda and see what happens.