Created attachment 713221 [details] reproducer If I remove MD RAID array using attached reproducer, I get a traceback: File "/mnt/home/project/blivet/examples/delete-raid.py", line 47, in <module> storage.devicetree.processActions(dryRun=False) File "/usr/lib/python2.7/site-packages/blivet/devicetree.py", line 211, in processActions action.device.preCommitFixup(mountpoints=mpoints) File "/usr/lib/python2.7/site-packages/blivet/devices.py", line 3097, in preCommitFixup if self.size < 1000 or self.format.type == "swap": File "/usr/lib/python2.7/site-packages/blivet/devices.py", line 2782, in size if not self.exists or not self.partedDevice: File "/usr/lib/python2.7/site-packages/blivet/devices.py", line 584, in partedDevice if self.exists and self.status and not self._partedDevice: File "/usr/lib/python2.7/site-packages/blivet/devices.py", line 3006, in status state = open(state_file).read().strip() IOError: [Errno 16] Device or resource busy The reason is: 1) storage.devicetree.registerAction(action) actually stops the MD RAID (shouldn't it be stopped in processActions()???) 2) storage.devicetree.processActions reads its /sys/block/md0/md/array_state, which still exists (even though the MD RAID is already stopped?!), but returns 'Device or resource busy' upon reading.
Usage of the reproducer: python delete-raid.py /dev/sdb1 /dev/sdb2 It creates new MD raid with $* (/dev/sdb1 + /dev/sdb2) and then deletes it. Log is in /tmp/blivet.log.
Created attachment 713233 [details] experimental patch
anaconda-19.24-1.fc19, python-blivet-0.12-1.fc19 has been submitted as an update for Fedora 19. https://admin.fedoraproject.org/updates/python-blivet-0.12-1.fc19,anaconda-19.24-1.fc19
Package anaconda-19.24-1.fc19, python-blivet-0.12-1.fc19: * should fix your issue, * was pushed to the Fedora 19 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing anaconda-19.24-1.fc19 python-blivet-0.12-1.fc19' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2013-7403/python-blivet-0.12-1.fc19,anaconda-19.24-1.fc19 then log in and leave karma (feedback).
anaconda-19.24-1.fc19, python-blivet-0.12-1.fc19 has been pushed to the Fedora 19 stable repository. If problems still persist, please make note of it in this bug report.