Bug 1208135 - UnusableConfigurationError: failed to scan disk sdb
Summary: UnusableConfigurationError: failed to scan disk sdb
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: python-blivet
Version: 22
Hardware: armv7l
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: David Lehman
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:1e279eed614e0073453084d582a...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-04-01 13:26 UTC by Dennis Gilmore
Modified: 2015-04-02 18:04 UTC (History)
9 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-04-02 18:04:09 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: anaconda-tb (176.61 KB, text/plain)
2015-04-01 13:26 UTC, Dennis Gilmore
no flags Details
File: anaconda.log (9.80 KB, text/plain)
2015-04-01 13:26 UTC, Dennis Gilmore
no flags Details
File: dnf.log (3.43 KB, text/plain)
2015-04-01 13:26 UTC, Dennis Gilmore
no flags Details
File: environ (492 bytes, text/plain)
2015-04-01 13:26 UTC, Dennis Gilmore
no flags Details
File: lsblk_output (2.63 KB, text/plain)
2015-04-01 13:26 UTC, Dennis Gilmore
no flags Details
File: nmcli_dev_list (1.63 KB, text/plain)
2015-04-01 13:26 UTC, Dennis Gilmore
no flags Details
File: os_info (443 bytes, text/plain)
2015-04-01 13:26 UTC, Dennis Gilmore
no flags Details
File: storage.log (44.56 KB, text/plain)
2015-04-01 13:26 UTC, Dennis Gilmore
no flags Details
File: syslog (69.47 KB, text/plain)
2015-04-01 13:26 UTC, Dennis Gilmore
no flags Details
File: ifcfg.log (1.66 KB, text/plain)
2015-04-01 13:26 UTC, Dennis Gilmore
no flags Details
File: packaging.log (804 bytes, text/plain)
2015-04-01 13:26 UTC, Dennis Gilmore
no flags Details
File: program.log (27.27 KB, application/octet-stream)
2015-04-01 13:26 UTC, Dennis Gilmore
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1208212 0 unspecified CLOSED Anaconda terminates on blivet's UnusableConfigurationError. 2021-02-22 00:41:40 UTC

Internal Links: 1208212

Description Dennis Gilmore 2015-04-01 13:26:45 UTC
Description of problem:
trying to select disk to install os to

Version-Release number of selected component:
anaconda-22.20.6-1

The following was filed automatically by anaconda:
anaconda 22.20.6-1 exception report
Traceback (most recent call first):
  File "/usr/lib/python2.7/site-packages/blivet/devicetree.py", line 949, in addUdevPartitionDevice
    raise UnusableConfigurationError(msg)
  File "/usr/lib/python2.7/site-packages/blivet/devicetree.py", line 1223, in addUdevDevice
    device = self.addUdevPartitionDevice(info)
  File "/usr/lib/python2.7/site-packages/blivet/devicetree.py", line 2177, in _populate
    self.addUdevDevice(dev)
  File "/usr/lib/python2.7/site-packages/blivet/devicetree.py", line 2111, in populate
    self._populate()
  File "/usr/lib/python2.7/site-packages/blivet/blivet.py", line 277, in reset
    self.devicetree.populate(cleanupOnly=cleanupOnly)
  File "/usr/lib/python2.7/site-packages/blivet/osinstall.py", line 1117, in storageInitialize
    storage.reset()
  File "/usr/lib/python2.7/threading.py", line 766, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/usr/lib/python2.7/site-packages/pyanaconda/threads.py", line 238, in run
    threading.Thread.run(self, *args, **kwargs)
UnusableConfigurationError: failed to scan disk sdb

Additional info:
addons:         com_redhat_kdump
cmdline:        /usr/bin/python2  /sbin/anaconda
cmdline_file:   inst.repo=http://tealc.ausil.us/f21a/armhfp/os/ console=ttyS0,115200
dnf.rpm.log:    Jan 01 00:04:18 INFO --- logging initialized ---
executable:     /sbin/anaconda
hashmarkername: anaconda
kernel:         4.0.0-0.rc5.git4.1.fc22.armv7hl
product:        Fedora
release:        Cannot get release name.
type:           anaconda
version:        22

Comment 1 Dennis Gilmore 2015-04-01 13:26:47 UTC
Created attachment 1009668 [details]
File: anaconda-tb

Comment 2 Dennis Gilmore 2015-04-01 13:26:48 UTC
Created attachment 1009669 [details]
File: anaconda.log

Comment 3 Dennis Gilmore 2015-04-01 13:26:49 UTC
Created attachment 1009670 [details]
File: dnf.log

Comment 4 Dennis Gilmore 2015-04-01 13:26:49 UTC
Created attachment 1009671 [details]
File: environ

Comment 5 Dennis Gilmore 2015-04-01 13:26:50 UTC
Created attachment 1009672 [details]
File: lsblk_output

Comment 6 Dennis Gilmore 2015-04-01 13:26:51 UTC
Created attachment 1009673 [details]
File: nmcli_dev_list

Comment 7 Dennis Gilmore 2015-04-01 13:26:52 UTC
Created attachment 1009674 [details]
File: os_info

Comment 8 Dennis Gilmore 2015-04-01 13:26:53 UTC
Created attachment 1009675 [details]
File: storage.log

Comment 9 Dennis Gilmore 2015-04-01 13:26:54 UTC
Created attachment 1009676 [details]
File: syslog

Comment 10 Dennis Gilmore 2015-04-01 13:26:55 UTC
Created attachment 1009677 [details]
File: ifcfg.log

Comment 11 Dennis Gilmore 2015-04-01 13:26:56 UTC
Created attachment 1009678 [details]
File: packaging.log

Comment 12 Dennis Gilmore 2015-04-01 13:26:57 UTC
Created attachment 1009679 [details]
File: program.log

Comment 13 mulhern 2015-04-01 14:34:39 UTC
It appears that blivet has detected a partition via udev and is addding it to the device tree. When it checks the disk, sdb, that the partition is supposed to be on, the disk does not seem to have any information about partitions at all.

Another thing that is wrong with the disk is that it has negative size.
13:25:26,059 DEBUG blivet:            DeviceTree.getDeviceByName returned existing -185.01 GiB disk sdb (31)

Comment 14 mulhern 2015-04-01 14:48:07 UTC
It is really unusual for a device to have a negative size and for parted device to show a negative length. Does changing the drive fix the problem?
If it does, then raising the error is the correct thing to do, and the only issue is where it is proper to catch it.

Comment 15 Dennis Gilmore 2015-04-01 15:19:57 UTC
/dev/sdb is a external usb drive with the factory setup

in another system parted print gives.

Model: WD My Passport 0820 (scsi)
Disk /dev/sdd: 2000GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags: 

Number  Start   End     Size    Type     File system  Flags
 1      1049kB  2000GB  2000GB  primary  ntfs

Comment 16 mulhern 2015-04-01 15:41:54 UTC
In that same other system can you check if blivet still fails in this way?

Are you able to open a Python shell and

>>> import blivet
>>> b = blivet.Blivet()
>>> b.reset()
>>> [d for d in b.devicetree.devices if "sdb" in d.name]

substituting for "sdb" in the above whatever name is appropriate?

You should expect to fail w/ the same error on the b.reset() step.

Comment 17 mulhern 2015-04-01 16:28:52 UTC
There are really two issues here...blivet having problems with a very odd looking disk...and the exception that raises actually crashing anaconda. I think it's reasonable to expect it to exit more nicely on an unusable configuration,
so I'll file that as a separate bug.

Comment 18 Dennis Gilmore 2015-04-02 18:04:09 UTC
seems that the hard drive is failing, closing the bug


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