Bug 960794 - AttributeError: 'NoneType' object has no attribute 'type' (trying to manipulate a 'no media present' drive in custom partitioning)
Summary: AttributeError: 'NoneType' object has no attribute 'type' (trying to manipula...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: python-blivet
Version: 20
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Brian Lane
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:63feca39a816a74e2ecdca0108c...
: 962244 977279 982631 (view as bug list)
Depends On:
Blocks: 977279
TreeView+ depends on / blocked
 
Reported: 2013-05-08 02:32 UTC by Clyde E. Kunkel
Modified: 2014-09-05 21:02 UTC (History)
26 users (show)

Fixed In Version: anaconda-20.19-1
Clone Of:
Environment:
Last Closed: 2013-12-20 04:39:14 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: anaconda-tb (933.01 KB, text/plain)
2013-05-08 02:32 UTC, Clyde E. Kunkel
no flags Details
File: anaconda.log (28.17 KB, text/plain)
2013-05-08 02:32 UTC, Clyde E. Kunkel
no flags Details
File: backtrace (689 bytes, text/plain)
2013-05-08 02:32 UTC, Clyde E. Kunkel
no flags Details
File: environ (760 bytes, text/plain)
2013-05-08 02:32 UTC, Clyde E. Kunkel
no flags Details
File: ifcfg.log (1016 bytes, text/plain)
2013-05-08 02:32 UTC, Clyde E. Kunkel
no flags Details
File: lsblk_output (4.05 KB, text/plain)
2013-05-08 02:32 UTC, Clyde E. Kunkel
no flags Details
File: nmcli_dev_list (4.48 KB, text/plain)
2013-05-08 02:32 UTC, Clyde E. Kunkel
no flags Details
File: packaging.log (326.89 KB, text/plain)
2013-05-08 02:32 UTC, Clyde E. Kunkel
no flags Details
File: program.log (64.35 KB, text/plain)
2013-05-08 02:32 UTC, Clyde E. Kunkel
no flags Details
File: storage.log (232.93 KB, text/plain)
2013-05-08 02:32 UTC, Clyde E. Kunkel
no flags Details
File: syslog (108.47 KB, text/plain)
2013-05-08 02:32 UTC, Clyde E. Kunkel
no flags Details
anaconda-tb (974.53 KB, text/plain)
2013-06-25 17:05 UTC, Ladislav Jozsa
no flags Details
anaconda.log (11.15 KB, text/plain)
2013-06-25 17:07 UTC, Ladislav Jozsa
no flags Details
ifcg.log (1016 bytes, text/plain)
2013-06-25 17:08 UTC, Ladislav Jozsa
no flags Details
packaging.log (427.00 KB, text/plain)
2013-06-25 17:09 UTC, Ladislav Jozsa
no flags Details
program.log (33.27 KB, text/plain)
2013-06-25 17:10 UTC, Ladislav Jozsa
no flags Details
storage.log (212.07 KB, text/plain)
2013-06-25 17:10 UTC, Ladislav Jozsa
no flags Details
syslog (147.12 KB, text/plain)
2013-06-25 17:12 UTC, Ladislav Jozsa
no flags Details
lsblk (1.02 KB, text/plain)
2013-06-25 17:13 UTC, Ladislav Jozsa
no flags Details
Boot sector of troublesome disk (512 bytes, application/octet-stream)
2013-11-20 18:45 UTC, Steve Whitehouse
no flags Details

Description Clyde E. Kunkel 2013-05-08 02:32:13 UTC
Description of problem:
Was retrying install after hitting 960790 and while deleting btrfs partitions in custom partitioning, error occured.
The following was filed automatically by anaconda:
anaconda 19.24-1 exception report
Traceback (most recent call first):
  File "/usr/lib/python2.7/site-packages/blivet/platform.py", line 107, in bestDiskLabelType
    labelType = self.requiredDiskLabelType(device.partedDevice.type)
  File "/usr/lib/python2.7/site-packages/blivet/__init__.py", line 809, in initializeDisk
    labelType = _platform.bestDiskLabelType(disk)
  File "/usr/lib64/python2.7/site-packages/pyanaconda/ui/gui/spokes/custom.py", line 1988, in _destroy_device
    self.__storage.initializeDisk(device)
  File "/usr/lib64/python2.7/site-packages/pyanaconda/ui/gui/spokes/custom.py", line 2112, in on_remove_clicked
    self._destroy_device(dev)
AttributeError: 'NoneType' object has no attribute 'type'

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

Additional info:
cmdline:        /usr/bin/python  /sbin/anaconda
cmdline_file:   initrd=initrd.img inst.stage2=hd:UUID=afbcf488-11c6-4c3c-8c51-f8ef83d1920a selinux=0 BOOT_IMAGE=vmlinuz 
executable:     /sbin/anaconda
hashmarkername: anaconda
kernel:         3.9.0-301.fc19.x86_64
product:        Fedora
release:        Cannot get release name.
type:           anaconda
version:        19-Beta-TC3

Truncated backtrace:
Traceback (most recent call last):
  File "/usr/lib64/python2.7/site-packages/pyanaconda/ui/gui/spokes/custom.py", line 2112, in on_remove_clicked
    self._destroy_device(dev)
  File "/usr/lib64/python2.7/site-packages/pyanaconda/ui/gui/spokes/custom.py", line 1988, in _destroy_device
    self.__storage.initializeDisk(device)
  File "/usr/lib/python2.7/site-packages/blivet/__init__.py", line 809, in initializeDisk
    labelType = _platform.bestDiskLabelType(disk)
  File "/usr/lib/python2.7/site-packages/blivet/platform.py", line 107, in bestDiskLabelType
    labelType = self.requiredDiskLabelType(device.partedDevice.type)
AttributeError: 'NoneType' object has no attribute 'type'

Comment 1 Clyde E. Kunkel 2013-05-08 02:32:19 UTC
Created attachment 744969 [details]
File: anaconda-tb

Comment 2 Clyde E. Kunkel 2013-05-08 02:32:24 UTC
Created attachment 744970 [details]
File: anaconda.log

Comment 3 Clyde E. Kunkel 2013-05-08 02:32:26 UTC
Created attachment 744971 [details]
File: backtrace

Comment 4 Clyde E. Kunkel 2013-05-08 02:32:27 UTC
Created attachment 744972 [details]
File: environ

Comment 5 Clyde E. Kunkel 2013-05-08 02:32:29 UTC
Created attachment 744973 [details]
File: ifcfg.log

Comment 6 Clyde E. Kunkel 2013-05-08 02:32:31 UTC
Created attachment 744974 [details]
File: lsblk_output

Comment 7 Clyde E. Kunkel 2013-05-08 02:32:33 UTC
Created attachment 744975 [details]
File: nmcli_dev_list

Comment 8 Clyde E. Kunkel 2013-05-08 02:32:36 UTC
Created attachment 744976 [details]
File: packaging.log

Comment 9 Clyde E. Kunkel 2013-05-08 02:32:38 UTC
Created attachment 744977 [details]
File: program.log

Comment 10 Clyde E. Kunkel 2013-05-08 02:32:40 UTC
Created attachment 744978 [details]
File: storage.log

Comment 11 Clyde E. Kunkel 2013-05-08 02:32:43 UTC
Created attachment 744979 [details]
File: syslog

Comment 12 Ladislav Jozsa 2013-06-04 16:18:53 UTC
Description of problem:
Tried to delete all partitions from disks selected for installation. The installation was done from USB media.

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

Additional info:
reporter:       libreport-2.1.4
cmdline:        /usr/bin/python  /sbin/anaconda
cmdline_file:   initrd=initrd.img inst.stage2=hd:LABEL=Fedora\x2019-Beta\x20x86_64 rd.live.check quiet BOOT_IMAGE=vmlinuz 
executable:     /sbin/anaconda
hashmarkername: anaconda
kernel:         3.9.2-301.fc19.x86_64
product:        Fedora
release:        Cannot get release name.
type:           anaconda
version:        19-Beta

Truncated backtrace:
Traceback (most recent call last):
  File "/usr/lib64/python2.7/site-packages/pyanaconda/ui/gui/spokes/custom.py", line 2137, in on_remove_clicked
    self._destroy_device(dev)
  File "/usr/lib64/python2.7/site-packages/pyanaconda/ui/gui/spokes/custom.py", line 2013, in _destroy_device
    self.__storage.initializeDisk(device)
  File "/usr/lib/python2.7/site-packages/blivet/__init__.py", line 812, in initializeDisk
    labelType = _platform.bestDiskLabelType(disk)
  File "/usr/lib/python2.7/site-packages/blivet/platform.py", line 107, in bestDiskLabelType
    labelType = self.requiredDiskLabelType(device.partedDevice.type)
AttributeError: 'NoneType' object has no attribute 'type'

Comment 13 Ladislav Jozsa 2013-06-05 19:05:32 UTC
Description of problem:
When trying to delete all partitions by pressing minus button in manual partitioning screen and ticking that I want to delete all partitions, traceback occured.

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

Additional info:
reporter:       libreport-2.1.4
cmdline:        /usr/bin/python  /sbin/anaconda
cmdline_file:   initrd=initrd.img inst.stage2=hd:LABEL=Fedora\x2019-Beta\x20x86_64 quiet BOOT_IMAGE=vmlinuz 
executable:     /sbin/anaconda
hashmarkername: anaconda
kernel:         3.9.2-301.fc19.x86_64
product:        Fedora
release:        Cannot get release name.
type:           anaconda
version:        19-Beta

Truncated backtrace:
Traceback (most recent call last):
  File "/usr/lib64/python2.7/site-packages/pyanaconda/ui/gui/spokes/custom.py", line 2137, in on_remove_clicked
    self._destroy_device(dev)
  File "/usr/lib64/python2.7/site-packages/pyanaconda/ui/gui/spokes/custom.py", line 2013, in _destroy_device
    self.__storage.initializeDisk(device)
  File "/usr/lib/python2.7/site-packages/blivet/__init__.py", line 812, in initializeDisk
    labelType = _platform.bestDiskLabelType(disk)
  File "/usr/lib/python2.7/site-packages/blivet/platform.py", line 107, in bestDiskLabelType
    labelType = self.requiredDiskLabelType(device.partedDevice.type)
AttributeError: 'NoneType' object has no attribute 'type'

Comment 14 Dan Mashal 2013-06-24 08:28:34 UTC
Reproduced a 2nd time. This is when I  try to delete an existing partition.

cmdline:        /usr/bin/python  /sbin/anaconda
cmdline_file:   initrd=initrd.img inst.stage2=hd:LABEL=Fedora\x2019-TC6\x20x86_64 quiet BOOT_IMAGE=vmlinuz 
hashmarkername: anaconda
kernel:         3.9.5-301.fc19.x86_64
package:        anaconda-19.30.9-1
product:        Fedora
reason:         AttributeError: 'NoneType' object has no attribute 'type'
release:        Cannot get release name.
version:        19-TC6

Comment 15 Dan Mashal 2013-06-24 17:05:09 UTC
Probably a duplicate of #977279, I guess you could mark either one as a duplicate.

Comment 16 Adam Williamson 2013-06-24 17:18:44 UTC
Clyde: the device causing the problem for you appears to be sde, aka '/dev/disk/by-id/usb-Generic_2.0_Reader_-0_070302014067000001-0:0' . Do you know what this 'Generic 2.0 Reader' is on your system? Did you explicitly select it as a target disk (perhaps in error)? Is it removable?

Ladislav, you likely have a similar device in your system causing problems; can you identify what it is (look for 'no media present' in storage.log) or attach your logs so we can see?

Comment 17 Adam Williamson 2013-06-24 18:03:29 UTC
Discussed at 2013-06-24 blocker review meeting: http://meetbot.fedoraproject.org/fedora-blocker-review/2013-06-24/f19final-blocker-review-8.2013-06-24-16.00.log.txt . We agreed this is a potentially worrisome issue, but we need more data to make a blocker determination.

In particular we'd like to have more detailed information on the devices known to trigger this apart from Dan's iPhone - so Clyde's 'generic USB reader' and Ladislav's device - and we'd *really* like to know if you have to explicitly select the problematic device as an install target in order to hit the bug.

Comment 18 Clyde E. Kunkel 2013-06-24 18:14:44 UTC
sde was not selected.  It is a 1TB internal sata.  The only generic USB reader would have been sdi, the installation USB key.

For me this bug did not make any sense, the storage logs didn't make sense, and at the time I felt it was probably an artifact of a previous unsuccessful install attempt.

Probably a real corner case and I have not encountered it subsequently.

Comment 19 Adam Williamson 2013-06-24 18:25:38 UTC
No, for this install attempt, it was definitely sde. Just look at storage.log :

02:27:44,179 DEBUG blivet:          DeviceTree.addUdevDevice: info: {'DEVLINKS': '/dev/disk/by-id/usb-Generic_2.0_Reader_-0_070302014067000001-0:0 /dev/disk/by-path/pci-0000:00:1a.7-usb-0:3:1.0-scsi-0:0:0:0',
 'DEVNAME': 'sde',

sounds like perhaps your device tree somehow got screwed up in this attempt and perhaps you selected the wrong disks inadvertently? but if you can't reproduce it, might be hard to investigate further.

What system were you testing on? Does it have some kind of SD card reader?

Comment 20 Clyde E. Kunkel 2013-06-24 19:10:56 UTC
No card reader.  Just the usual USB ports on an ASUS P5K-E mobo.  The disks presented for selection on this system have been consistent throughout this release.  sdi has been consistently the USB key and sde the 1TB disk.  That is why I think this is an artifact.  The fact that someone else hit this speaks against it being an artifact, tho.

Getting ready to try the test again with RC6, but I won't be able to remember every step.  Lets see what happens.

Comment 21 Adam Williamson 2013-06-24 19:20:54 UTC
clyde: well we're fairly sure the basic bug here is when the storage code tries to deal with a disk that reports 'no media present', but what we're trying to figure out is how exactly that can be triggered and how likely it is to occur. We know Dan's case was triggered by having an iPhone connected during install; we don't know much about your case and less about Ladislav's.

Comment 22 Clyde E. Kunkel 2013-06-24 19:50:29 UTC
I'm working as fast as I can, but it is taking forever to create the USB key for some reason.  Could test from DVD, but this bz occurred when a USB key was used.

Comment 23 Dan Mashal 2013-06-24 19:56:30 UTC
I hit this on the DVD while trying to delete a partition of 0 bytes that pre-existed.

Steps to reproduce:

1) Install fedora on a clean hard drive. Create the partitions manually. 
- 1 partition for swap, 1 partition for / 
- Use EXT4 without LVM


2) Install fedora again on top of the existing installation using the same media (DVD in my case)

3) Follow the same steps to get back to custom partitioning. You will see 3 partitions. The 2 you created on the first install and a 0 byte partition. Try to delete the 0 byte partition and Anaconda will crash.

Comment 24 Adam Williamson 2013-06-24 21:03:22 UTC
Dan: we don't think that is the reproducer for you. We think the reproducer for you is this:

'name': 'sdb'
'symlinks': ['/dev/disk/by-id/usb-HTC_Android_Phone_HT119HV00691-0:0',
...
01:23:04,611 DEBUG blivet: looking up parted Device: /dev/sdb
01:23:04,634 DEBUG blivet: no device or no media present

i.e., your Android phone (not iPhone, got that mixed up) reports 'no device or no media present', like Clyde's mysterious USB reader reports 'no media present'.

That's from the storage.log you attached to 977279 .

Comment 25 Adam Williamson 2013-06-24 21:05:15 UTC
Dan: if you disconnect your phone, do you still hit the crash? How about if you leave it connected but don't select it at the disk selection screen?

Comment 26 Dan Mashal 2013-06-24 22:06:46 UTC
Good catch. I did not even think about that. Let me try that when I get home.

Comment 27 Brian Lane 2013-06-25 00:47:54 UTC
*** Bug 977279 has been marked as a duplicate of this bug. ***

Comment 28 Clyde E. Kunkel 2013-06-25 02:01:57 UTC
I have tried to duplicate the original sequence used that caused this bz to no avail.  All I can think of is that I had inadvertently selected sde.  In any case there is no card reader on this system and never has been.

Comment 29 Dan Mashal 2013-06-25 05:05:49 UTC
Reproduced when my phone is plugged in, it shows a 0 byte sized partition that crashes anaconda when I attempted to delete it.

Comment 30 Adam Williamson 2013-06-25 05:10:23 UTC
So to be clear: when your phone is plugged in, your phone does not appear on the disk selection screen - the first screen after clicking Installation Destination - but a 0-byte partition shows up as part of your primary hard disk, and trying to delete that causes the bug? And if you boot without the phone connected, that 0-byte partition does not appear?

Comment 31 Dan Mashal 2013-06-25 05:16:26 UTC
1) In custom partitioning only 1 hard drive shows
2) Phone is set to charge only, does not try to present itself as a drive.
3) The 0 byte partition shows as a 0 byte partition under my primary hard drive.
4) On second try when the phone is not plugged in it does not show up as a 0 byte partition
5) I never click "installation destination" doing that deselects my primary hard drive. By default it is checked, clicking on it would deselect it. I just click next -> custom partitioning. 
6) Only 1 installation destination ever shows with or without the phone.

Comment 32 Ladislav Jozsa 2013-06-25 07:45:47 UTC
(In reply to Adam Williamson from comment #16)
> Ladislav, you likely have a similar device in your system causing problems;
> can you identify what it is (look for 'no media present' in storage.log) or
> attach your logs so we can see?

Adam, I will try to reproduce it later in the evening when I return home as it happened during installation to my home desktop. 

The installation was done from USB flash disk connected directly to the PC. The 'no media present' message might come from SD card reader in my Dell 2410 LCD. From what I remember, Anaconda detected some disk (named sdf) with 0b size and that could be troubled SD card reader.

Comment 33 Adam Williamson 2013-06-25 15:59:48 UTC
I left one bit of clarification out of Dan's case: the crash only happens if he tries to delete the mysterious 0-byte partition. If he does not, he doesn't hit the crash. He hasn't tried completing a full installation without deleting that partition (I wouldn't either, I'd be worried it'd nuke my phone), but at least there seems to be a way to avoid the crash.

On the current data I'm -1 blocker on this, but it'd be nice to hear back from Ladislav. Ladislav, as well as general background, we're specifically interested in whether you have to explicitly select the disk as a target disk on the first screen after clicking 'Installation Destination' from the hub, and whether you can avoid the crash and install successfully simply by not trying to manipulate the problematic device/partition.

Comment 34 Jaroslav Reznik 2013-06-25 16:07:23 UTC
Ladislav is going to take a look once he gets home, based on the info available, I'm also leaning to -1 blocker. Another thing is - it it would be more widespread with no media in internal sd readers, I'd say we would see explosion on this bug (it's part of every single laptop now). We had similar issue in KDE as far as I remember and it was reported with ipads and similar hw - it could be detached for installation.

Comment 35 Kevin Fenzi 2013-06-25 16:12:35 UTC
I'm also -1 blocker unless this turns out to be much more widespread.

Comment 36 Adam Williamson 2013-06-25 16:25:29 UTC
So bcl and dlehman poked at this and figured out what's going on.

Drives which report 'no media present' won't show up in the 'disk selection' screen (the first screen you see on clicking Installation Destination) - they're filtered out of a list called 'storage.disks'. However, they aren't filtered out of a list called 'storage.devices', which is used to construct the list of volumes on the left hand side of the custom partitioning screen. So if you have such a drive, it will always show up in custom partitioning, and if you try to manipulate it, you'll likely hit this bug.

We believe that this bug is only likely to hit removable devices which can actually have 'media present' and 'no media present' states (Dan's phone appears to use 'drive with no media present' when it's in 'charge only' mode, for instance). In most cases it will be easy to 'work around' this bug by just unplugging the offending device. We also don't expect that anything bad will happen if you just complete custom partitioning without making any changes to the offending 'drive'. There may be corner cases where, say, a media card reader built into a laptop or desktop behaves in this way and isn't really 'removable', but overall, our assessment is this is unlikely to hit that many people and there are two fairly obvious workarounds, so we don't see a reason to block release for it.

Note that in Dan's case we don't think the device isn't really showing up 'as a partition on his main drive', that's just a mis-interpretation of what anaconda was showing him: because he'd only selected his main disk as an install target he assumed the phone 'drive' showing up in custom partitioning was being seen as a partition on his main drive, but really what was happening was what I described in the first paragraph of this post.

Comment 37 Adam Williamson 2013-06-25 16:26:57 UTC
We have several -1 votes now so setting rejectedblocker. We can re-assess this if Ladislav's info contradicts the above assessment somehow, but we don't expect it to.

Comment 38 Ladislav Jozsa 2013-06-25 17:05:39 UTC
Created attachment 765188 [details]
anaconda-tb

I can confirm that bug is triggered by attempt to remove SD Card reader which is detected as sdf on my system with zero byte size. Attaching logs.

Comment 39 Ladislav Jozsa 2013-06-25 17:07:33 UTC
Created attachment 765201 [details]
anaconda.log

Comment 40 Ladislav Jozsa 2013-06-25 17:08:51 UTC
Created attachment 765202 [details]
ifcg.log

Comment 41 Ladislav Jozsa 2013-06-25 17:09:34 UTC
Created attachment 765203 [details]
packaging.log

Comment 42 Ladislav Jozsa 2013-06-25 17:10:19 UTC
Created attachment 765205 [details]
program.log

Comment 43 Ladislav Jozsa 2013-06-25 17:10:55 UTC
Created attachment 765206 [details]
storage.log

Comment 44 Ladislav Jozsa 2013-06-25 17:12:06 UTC
Created attachment 765207 [details]
syslog

Comment 45 Ladislav Jozsa 2013-06-25 17:13:50 UTC
Created attachment 765208 [details]
lsblk

Comment 46 Adam Williamson 2013-06-25 17:21:08 UTC
Thanks, Ladislav. Is the device removable or built in to your system? Can you do an install successfully if you just leave the offending 'partition' alone? Thanks!

Comment 47 Ladislav Jozsa 2013-06-25 17:33:03 UTC
(In reply to Adam Williamson from comment #46)
> Thanks, Ladislav. Is the device removable or built in to your system? Can
> you do an install successfully if you just leave the offending 'partition'
> alone? Thanks!

The SD card reader is built-in in the LCD and it is internally connected to LCD's USB hub which is further connected to the PC. If I disconnect LCD's USB hub from the PC the SC card reader (sdf) disappears as well and problem is solved. I can remove all partitions without triggering traceback.

Another solution to the problem is not touching the problematic zero byte partition.

Comment 48 Michal Kovarik 2013-07-02 06:21:09 UTC
On Custom partitition window device sdc (empty memcard reader) appeared as unknow device. I've selected this device and clicked on minus for remove.
I didn't select this drive on previous screen, it didn't appeared there.

cmdline:        /usr/bin/python  /sbin/anaconda
cmdline_file:   BOOT_IMAGE=/images/pxeboot/vmlinuz inst.stage2=hd:LABEL=Fedora\x2019\x20x86_64 quiet
hashmarkername: anaconda
kernel:         3.9.5-301.fc19.x86_64
package:        anaconda-19.30.13-1
product:        Fedora
reason:         AttributeError: 'NoneType' object has no attribute 'type'
release:        Cannot get release name.
version:        19

Comment 49 Charles R. Anderson 2013-07-15 19:59:14 UTC
While reviewing partitions, try deleting a zero-byte device (flash memory card reader built in to a Dell Optiplex).

cmdline:        /usr/bin/python  /sbin/anaconda
cmdline_file:   graphical ksdevice=bootif repo=http://download.wpi.edu/pub/fedora/linux/releases/19/Fedora/x86_64/os lang=en_US keymap=us initrd=f19-x86_64-initrd.img BOOTIF=01-b8-ca-3a-8c-c4-b8 BOOT_IMAGE=f19-x86_64-vmlinuz 
hashmarkername: anaconda
kernel:         3.9.5-301.fc19.x86_64
package:        anaconda-19.30.13-1
product:        Fedora
reason:         AttributeError: 'NoneType' object has no attribute 'type'
release:        Cannot get release name.
version:        19

Comment 50 Brian Lane 2013-07-16 00:26:53 UTC
*** Bug 982631 has been marked as a duplicate of this bug. ***

Comment 51 Matthew Javelet 2013-08-08 02:26:39 UTC
I had an unknown partition with 0 Bytes of data during the custom partitioning screen.

I proceeded to delete that partition which gave anaconda a white screen.

cmdline:        /usr/bin/python  /sbin/anaconda
cmdline_file:   initrd=initrd.img inst.stage2=hd:LABEL=Fedora\x2019\x20x86_64 rd.live.check quiet BOOT_IMAGE=vmlinuz 
hashmarkername: anaconda
kernel:         3.9.5-301.fc19.x86_64
package:        anaconda-19.30.13-1
product:        Fedora
reason:         AttributeError: 'NoneType' object has no attribute 'type'
release:        Cannot get release name.
version:        19

Comment 52 Matthew Javelet 2013-08-08 02:32:31 UTC
I attempted to delete an unknown partition with 0 Bytes of data.

cmdline:        /usr/bin/python  /sbin/anaconda
cmdline_file:   initrd=initrd.img inst.stage2=hd:LABEL=Fedora\x2019\x20x86_64 quiet BOOT_IMAGE=vmlinuz 
hashmarkername: anaconda
kernel:         3.9.5-301.fc19.x86_64
package:        anaconda-19.30.13-1
product:        Fedora
reason:         AttributeError: 'NoneType' object has no attribute 'type'
release:        Cannot get release name.
version:        19

Comment 53 Pavel Sergeev 2013-08-12 19:50:22 UTC
Installation. A hard disk is detected as Unknown device. While manual partitioning, press "-" to remove a partition, select "Remove all partitions on Unknown device" (do not remember exactly expression) checkbox. Press OK.

cmdline:        /usr/bin/python  /sbin/anaconda
cmdline_file:   initrd=initrd.img inst.stage2=hd:LABEL=Fedora\x2019\x20x86_64 quiet BOOT_IMAGE=vmlinuz 
hashmarkername: anaconda
kernel:         3.9.5-301.fc19.x86_64
package:        anaconda-19.30.13-1
product:        Fedora
reason:         AttributeError: 'NoneType' object has no attribute 'type'
release:        Cannot get release name.
version:        19

Comment 54 Adam Williamson 2013-08-17 06:28:32 UTC
anaconda folks, looks like enough people inexplicably decide it's a good idea to go around wiping 0 byte partitions they are unsure of the origin of that we should really fix this for f20...(do people really hate their data or something? if an installer showed me a weird 0 byte partition for reasons I didn't understand, the last thing I'd do is *try and delete it*...)

Comment 55 Jan Welker 2013-08-29 07:15:28 UTC
Deleted all partitions in the root

cmdline:        /usr/bin/python  /sbin/anaconda
cmdline_file:   initrd=initrd.img inst.stage2=hd:LABEL=Fedora\x2019\x20x86_64 quiet BOOT_IMAGE=vmlinuz 
hashmarkername: anaconda
kernel:         3.9.5-301.fc19.x86_64
package:        anaconda-19.30.13-1
product:        Fedora
reason:         AttributeError: 'NoneType' object has no attribute 'type'
release:        Cannot get release name.
version:        19

Comment 56 Fedora End Of Life 2013-09-16 13:49:23 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 20 development cycle.
Changing version to '20'.

More information and reason for this action is here:
https://fedoraproject.org/wiki/BugZappers/HouseKeeping/Fedora20

Comment 57 Bruno Mairlot 2013-11-01 11:05:17 UTC
I was trying to reinstall Fedora 19 from an old RHEL6 server where some old iscsi connexions where apparently still discovered. 
The partitioning tool showed me the old system on /dev/sda but also a /dev/sdb disk (which should not have been there).

When I tried to remove it, the error triggered.

cmdline:        /usr/bin/python  /sbin/anaconda
cmdline_file:   initrd=initrd.img inst.stage2=hd:LABEL=Fedora\x2019\x20x86_64 quiet nomodeset usbcore.autosuspend=-1 BOOT_IMAGE=vmlinuz 
hashmarkername: anaconda
kernel:         3.9.5-301.fc19.x86_64
package:        anaconda-19.30.13-1
product:        Fedora
reason:         AttributeError: 'NoneType' object has no attribute 'type'
release:        Cannot get release name.
version:        19

Comment 58 Steve Whitehouse 2013-11-20 11:27:00 UTC
While using the live cd installer, the error prevents removal of existing disk partitions to create space to intsall fedora. I've hit it twice now, and I'm not sure how to work around it. Will try a "normal" install dvd shortly to see if that has the same issue

cmdline:        /usr/bin/python  /sbin/anaconda --liveinst --method=livecd:///dev/mapper/live-osimg-min --lang en_US.UTF-8
cmdline_file:   initrd=/Fedora-Live-Desktop-x86_64-19-1/isolinux/initrd0.img root=live:CDLABEL=Multi-Boot live_dir=/Fedora-Live-Desktop-x86_64-19-1/LiveOS/ rootfstype=auto ro rd.live.image quiet rhgb rd.luks=0 rd.md=0 rd.dm=0 BOOT_IMAGE=/Fedora-Live-Desktop-x86_64-19-1/isolinux/vmlinuz0 
hashmarkername: anaconda
kernel:         3.9.5-301.fc19.x86_64
other involved packages: python-blivet-0.17-1.fc19.noarch
package:        anaconda-19.30.13-1.fc19.x86_64
packaging.log:  
product:        Fedora
reason:         AttributeError: 'NoneType' object has no attribute 'type'
release:        Fedora release 19 (Schrödinger’s Cat)
version:        19

Comment 59 Adam Williamson 2013-11-20 16:49:21 UTC
steve: every case of this we've seen so far involved removing a bogus partition that represents a storage device with no medium. If that's not the case for you, we'll need more details.

Comment 60 Steve Whitehouse 2013-11-20 18:45:16 UTC
Created attachment 826800 [details]
Boot sector of troublesome disk

I don't think that the problem in this case was related to anything of zero size. The partition size was fairly large in the cases that I was trying to delete.

In the end I didn't bother to try the install image, and stayed with the live image, but simply blotted out the boot sector. Since it was then installing from scratch, there was no problem after that.

Comment 61 Adam Williamson 2013-12-20 04:39:14 UTC
well, no-one's filed a report of this with F20, so let's say bcl's fix in 20.19 worked.

Comment 62 David Shea 2014-09-05 21:02:01 UTC
*** Bug 962244 has been marked as a duplicate of this bug. ***


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