Bug 1245191

Summary: AttributeError: 'MDBiosRaidArrayDevice' object has no attribute '_currentSize'
Product: [Fedora] Fedora Reporter: Petr Schindler <pschindl>
Component: python-blivetAssignee: David Lehman <dlehman>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 23CC: anaconda-maint-list, awilliam, bcl, b.gatessucks, dlehman, g.kaviyarasu, ipilcher, jonathan, mk, robatino, vanmeeuwen+fedora, vpodzime
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:3fc7a094361d5e4bb90db6996469ea4b49bd117a9dee9d8e975940222b1c862d AcceptedBlocker AcceptedFreezeException
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-09-04 02:29:55 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:
Bug Depends On:    
Bug Blocks: 1170818, 1170819    
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 Petr Schindler 2015-07-21 12:36:11 UTC
Description of problem:
This happened right after start of anaconda on Live (build from 2015-07-17). There is RAID5 (firmware raid) set on this desktop. F22 images works fine with the same setup.

Version-Release number of selected component:
anaconda-core-23.16-1.fc23.x86_64

The following was filed automatically by anaconda:
anaconda 23.16-1 exception report
Traceback (most recent call first):
  File "/usr/lib/python3.4/site-packages/blivet/devices/storage.py", line 594, in currentSize
    if self._currentSize == Size(0):
  File "/usr/lib/python3.4/site-packages/blivet/devices/md.py", line 332, in _addParent
    self._size = self.currentSize
  File "/usr/lib/python3.4/site-packages/blivet/devices/lib.py", line 156, in append
    self.appendfunc(y)
  File "/usr/lib/python3.4/site-packages/blivet/devices/device.py", line 153, in _setParentList
    self._parents.append(parent)
  File "/usr/lib/python3.4/site-packages/blivet/devices/device.py", line 89, in __init__
    self.parents = parents or []
  File "/usr/lib/python3.4/site-packages/blivet/devices/storage.py", line 107, in __init__
    super(StorageDevice, self).__init__(name, parents=parents)
  File "/usr/lib/python3.4/site-packages/blivet/devices/container.py", line 63, in __init__
    super(ContainerDevice, self).__init__(*args, **kwargs)
  File "/usr/lib/python3.4/site-packages/blivet/devices/md.py", line 112, in __init__
    sysfsPath=sysfsPath)
  File "/usr/lib/python3.4/site-packages/blivet/devices/md.py", line 633, in __init__
    super(MDBiosRaidArrayDevice, self).__init__(name, **kwargs)
  File "/usr/lib/python3.4/site-packages/blivet/populator.py", line 568, in addUdevDiskDevice
    sysfsPath=sysfs_path, **kwargs)
  File "/usr/lib/python3.4/site-packages/blivet/populator.py", line 721, in addUdevDevice
    device = self.addUdevDiskDevice(info)
  File "/usr/lib/python3.4/site-packages/blivet/populator.py", line 421, in addUdevPartitionDevice
    self.addUdevDevice(new_info)
  File "/usr/lib/python3.4/site-packages/blivet/populator.py", line 724, in addUdevDevice
    device = self.addUdevPartitionDevice(info)
  File "/usr/lib/python3.4/site-packages/blivet/populator.py", line 260, in _addSlaveDevices
    self.addUdevDevice(slave_info)
  File "/usr/lib/python3.4/site-packages/blivet/populator.py", line 289, in addUdevLVDevice
    self._addSlaveDevices(info)
  File "/usr/lib/python3.4/site-packages/blivet/populator.py", line 710, in addUdevDevice
    device = self.addUdevLVDevice(info)
  File "/usr/lib/python3.4/site-packages/blivet/populator.py", line 1660, in _populate
    self.addUdevDevice(dev)
  File "/usr/lib/python3.4/site-packages/blivet/populator.py", line 1597, in populate
    self._populate()
  File "/usr/lib/python3.4/site-packages/blivet/devicetree.py", line 554, in populate
    self._populator.populate(cleanupOnly=cleanupOnly)
  File "/usr/lib/python3.4/site-packages/blivet/blivet.py", line 279, in reset
    self.devicetree.populate(cleanupOnly=cleanupOnly)
  File "/usr/lib/python3.4/site-packages/blivet/osinstall.py", line 1123, in storageInitialize
    storage.reset()
  File "/usr/lib64/python3.4/threading.py", line 868, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/lib64/python3.4/site-packages/pyanaconda/threads.py", line 247, in run
    threading.Thread.run(self, *args, **kwargs)
  File "/usr/lib64/python3.4/site-packages/pyanaconda/threads.py", line 166, in raise_if_error
    raise exc_info[0](exc_info[1]).with_traceback(exc_info[2])
  File "/usr/lib64/python3.4/site-packages/pyanaconda/threads.py", line 115, in wait
    self.raise_if_error(name)
  File "/usr/lib64/python3.4/site-packages/pyanaconda/timezone.py", line 76, in time_initialize
    threadMgr.wait(THREAD_STORAGE)
  File "/usr/lib64/python3.4/threading.py", line 868, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/lib64/python3.4/site-packages/pyanaconda/threads.py", line 247, in run
    threading.Thread.run(self, *args, **kwargs)
AttributeError: 'MDBiosRaidArrayDevice' object has no attribute '_currentSize'

Additional info:
cmdline:        /usr/bin/python3  /sbin/anaconda --liveinst --method=livecd:///dev/mapper/live-base
cmdline_file:   BOOT_IMAGE=/syslinux/vmlinuz0 root=live:UUID=B9BD-366C ro rd.live.image quiet rhgb rd.live.check
executable:     /sbin/anaconda
hashmarkername: anaconda
kernel:         4.2.0-0.rc2.git1.1.fc23.x86_64
other involved packages: python3-libs-3.4.3-5.fc23.x86_64, python3-blivet-1.9-1.fc23.noarch
product:        Fedora
release:        Fedora release 23 (Twenty Three)
type:           anaconda
version:        23

Comment 1 Petr Schindler 2015-07-21 12:36:15 UTC
Created attachment 1054343 [details]
File: anaconda-tb

Comment 2 Petr Schindler 2015-07-21 12:36:17 UTC
Created attachment 1054344 [details]
File: anaconda.log

Comment 3 Petr Schindler 2015-07-21 12:36:18 UTC
Created attachment 1054345 [details]
File: environ

Comment 4 Petr Schindler 2015-07-21 12:36:21 UTC
Created attachment 1054346 [details]
File: journalctl

Comment 5 Petr Schindler 2015-07-21 12:36:22 UTC
Created attachment 1054347 [details]
File: lsblk_output

Comment 6 Petr Schindler 2015-07-21 12:36:23 UTC
Created attachment 1054348 [details]
File: nmcli_dev_list

Comment 7 Petr Schindler 2015-07-21 12:36:25 UTC
Created attachment 1054349 [details]
File: os_info

Comment 8 Petr Schindler 2015-07-21 12:36:26 UTC
Created attachment 1054350 [details]
File: program.log

Comment 9 Petr Schindler 2015-07-21 12:36:28 UTC
Created attachment 1054351 [details]
File: storage.log

Comment 10 Petr Schindler 2015-07-21 12:36:29 UTC
Created attachment 1054352 [details]
File: ifcfg.log

Comment 11 Petr Schindler 2015-07-21 12:45:41 UTC
I propose this as beta blocker as it violates Beta criterion: "The installer must be able to detect and install to hardware or firmware RAID storage devices."

Also it seems to be very similar to bug 1234097.

Comment 12 Petr Schindler 2015-07-21 12:51:03 UTC
It happens also with newly created RAID1.

Comment 13 Adam Williamson 2015-07-27 16:47:12 UTC
Discussed at 2015-07-27 blocker review meeting: http://meetbot-raw.fedoraproject.org/fedora-blocker-review/2015-07-27/f23-blocker-review.2015-07-27-16.00.log.txt . Accepted as a Beta blocker per criterion cited in #c11.

Comment 14 Adam Williamson 2015-07-27 17:19:22 UTC
Proposing as an Alpha freeze exception, it'd obviously be good to fix this for Alpha if possible.

Comment 15 Adam Williamson 2015-07-28 23:39:04 UTC
dlehman has a fix for this - it's in http://dlehman.fedorapeople.org/updates/1245191.5.img . After this, I ran into http://bugzilla.redhat.com/show_bug.cgi?id=1247803 during install (though that may only occur when installing over an existing install).

Comment 16 Vojtech Trefny 2015-08-03 11:49:01 UTC
*** Bug 1248186 has been marked as a duplicate of this bug. ***

Comment 17 Petr Schindler 2015-08-03 17:07:28 UTC
Discussed at today's blocker review meeting [1].

This bug was accepted as Alpha Freeze Exception - Provided the provided fix isn't the cause of other bugs, we'd consider a fix during Alpha freeze.

[1] http://meetbot.fedoraproject.org/fedora-blocker-review/2015-08-03/

Comment 18 David Lehman 2015-08-04 18:39:31 UTC
https://github.com/rhinstaller/blivet/pull/193

Comment 19 Vojtech Trefny 2015-08-10 06:59:08 UTC
*** Bug 1251537 has been marked as a duplicate of this bug. ***

Comment 20 Adam Williamson 2015-09-04 02:29:55 UTC
This was merged back on August 6, and I got a successful fwraid install test with Beta TC1. Closing.

Comment 21 Vojtech Trefny 2015-09-07 05:30:16 UTC
*** Bug 1260427 has been marked as a duplicate of this bug. ***