Bug 927231

Summary: Blivet crashes on MD RAID on unpartitioned disk
Product: [Fedora] Fedora Reporter: Jan Safranek <jsafrane>
Component: python-blivetAssignee: David Lehman <dlehman>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 19CC: anaconda-maint-list, bcl, dlehman
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-06-11 13:05:31 UTC Type: Bug
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
blivet log none

Description Jan Safranek 2013-03-25 13:08:47 UTC
Created attachment 716006 [details]
blivet log

I have MD RAID array directly on a disk, without partition table:
$ mdadm -C -l 0 -n 3 /dev/md0  /dev/sda /dev/sdb{5,6}

Blivet throws an exception on blivet.reset()
  File "tools/blivet_init.py", line 27, in <module>
    b.reset()
  File "/usr/lib/python2.7/site-packages/blivet/__init__.py", line 401, in reset
    self.devicetree.populate(cleanupOnly=cleanupOnly)
  File "/usr/lib/python2.7/site-packages/blivet/devicetree.py", line 1787, in populate
    self._populate()
  File "/usr/lib/python2.7/site-packages/blivet/devicetree.py", line 1885, in _populate
    self.addUdevDevice(dev)
  File "/usr/lib/python2.7/site-packages/blivet/devicetree.py", line 990, in addUdevDevice
    device = self.addUdevMDDevice(info)
  File "/usr/lib/python2.7/site-packages/blivet/devicetree.py", line 698, in addUdevMDDevice
    "devicetree as %s" % (name, device.name))
blivet.errors.DeviceTreeError: MD RAID device None already in devicetree as 0

Version-Release number of selected component (if applicable):
python-blivet-0.8-1.fc20.noarch

Comment 1 David Lehman 2013-05-16 13:44:33 UTC
Please try this again with python-blivet-0.12-1 or later.

Comment 2 Jan Safranek 2013-05-16 15:03:13 UTC
It works now, blivet cat show and even create MD RAID on raw disk. Thanks!