Bug 927231 - Blivet crashes on MD RAID on unpartitioned disk
Summary: Blivet crashes on MD RAID on unpartitioned disk
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: python-blivet
Version: 19
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: David Lehman
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-03-25 13:08 UTC by Jan Safranek
Modified: 2013-06-11 13:05 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2013-06-11 13:05:31 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
blivet log (94.60 KB, text/x-log)
2013-03-25 13:08 UTC, Jan Safranek
no flags Details

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!


Note You need to log in before you can comment on or make changes to this bug.