Bug 1626057 - TypeError: 'NoneType' object is not subscriptable
Summary: TypeError: 'NoneType' object is not subscriptable
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: python-blivet
Version: 29
Hardware: All
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Blivet Maintenance Team
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:0d8e48b8f369069bbd675d79c14...
Keywords:
Depends On:
Blocks: PPCTracker 1666242
TreeView+ depends on / blocked
 
Reported: 2018-09-06 13:22 UTC by Menanteau Guy
Modified: 2019-01-15 10:32 UTC (History)
18 users (show)

(edit)
Clone Of:
(edit)
Last Closed:


Attachments (Terms of Use)
File: anaconda-tb (989.14 KB, text/plain)
2018-09-06 13:23 UTC, Menanteau Guy
no flags Details
File: anaconda.log (16.74 KB, text/plain)
2018-09-06 13:23 UTC, Menanteau Guy
no flags Details
File: dbus.log (3.13 KB, text/plain)
2018-09-06 13:23 UTC, Menanteau Guy
no flags Details
File: dnf.librepo.log (6.99 KB, text/plain)
2018-09-06 13:23 UTC, Menanteau Guy
no flags Details
File: environ (637 bytes, text/plain)
2018-09-06 13:23 UTC, Menanteau Guy
no flags Details
File: hawkey.log (1.87 KB, text/plain)
2018-09-06 13:23 UTC, Menanteau Guy
no flags Details
File: lorax-packages.log (26.11 KB, text/plain)
2018-09-06 13:23 UTC, Menanteau Guy
no flags Details
File: lsblk_output (1.46 KB, text/plain)
2018-09-06 13:23 UTC, Menanteau Guy
no flags Details
File: nmcli_dev_list (1.73 KB, text/plain)
2018-09-06 13:23 UTC, Menanteau Guy
no flags Details
File: os_info (554 bytes, text/plain)
2018-09-06 13:23 UTC, Menanteau Guy
no flags Details
File: program.log (33.22 KB, text/plain)
2018-09-06 13:23 UTC, Menanteau Guy
no flags Details
File: storage.log (47.12 KB, text/plain)
2018-09-06 13:23 UTC, Menanteau Guy
no flags Details
File: syslog (552.44 KB, text/plain)
2018-09-06 13:23 UTC, Menanteau Guy
no flags Details
File: ifcfg.log (2.30 KB, text/plain)
2018-09-06 13:23 UTC, Menanteau Guy
no flags Details
File: packaging.log (9.29 KB, text/plain)
2018-09-06 13:23 UTC, Menanteau Guy
no flags Details


External Trackers
Tracker ID Priority Status Summary Last Updated
IBM Linux Technology Center 174717 None None None 2019-03-13 07:39 UTC

Description Menanteau Guy 2018-09-06 13:22:54 UTC
Description of problem:
I am trying to test multipath on VM for f29 iso Fedora-Server-dvd-ppc64le-28-20180903.n.0.iso in ppc64le but 
anaconda crashes.
python3-blivet-3.1.0-1 should have corrected bug https://bugzilla.redhat.com/show_bug.cgi?id=1565693 

anaconda crashed with this error.
13:53:59,329 DBG exception: running handleException                            
13:53:59,330 CRT exception: Traceback (most recent call last):                 

  File "/usr/lib64/python3.7/site-packages/pyanaconda/ui/gui/hubs/__init__.py",
line 424, in _on_spoke_clicked
    spoke.refresh()

  File "/usr/lib64/python3.7/site-packages/pyanaconda/ui/gui/spokes/storage.py", line 698, in refresh
    self._add_disk_overview(obj, self.specialized_disks_box)                   

  File "/usr/lib64/python3.7/site-packages/pyanaconda/ui/gui/spokes/storage.py", line 758, in _add_disk_overview
    description = desc[0:6] + "..." + desc[-8:]                                

TypeError: 'NoneType' object is not subscriptable                 

qemu command used:
/usr/bin/qemu-system-ppc64 -name vm54 -enable-kvm -M pseries -smp 4 -m 8G -nographic -nodefaults -monitor stdio -serial pty -device
virtio-net-pci,netdev=net10094,mac=c0:ff:ee:00:00:54 -netdev bridge,br=br0,id=net10094 -cdrom isolef29 -device virtio-scsi-pci,id=scsi -drive if=none,id=hda,file=hd1.qcow2 -device scsi-hd,drive=hda,serial=0002 -drive if=none,id=hdb,file=hd2.qcow2 -device scsi-hd,drive=hdb,serial=0002 -boot d -S


Version-Release number of selected component:
anaconda-29.24.1

The following was filed automatically by anaconda:
anaconda 29.24.1 exception report
Traceback (most recent call first):
  File "/usr/lib64/python3.7/site-packages/pyanaconda/ui/gui/spokes/storage.py", line 758, in _add_disk_overview
    description = desc[0:6] + "..." + desc[-8:]
  File "/usr/lib64/python3.7/site-packages/pyanaconda/ui/gui/spokes/storage.py", line 698, in refresh
    self._add_disk_overview(obj, self.specialized_disks_box)
  File "/usr/lib64/python3.7/site-packages/pyanaconda/ui/gui/hubs/__init__.py", line 424, in _on_spoke_clicked
    spoke.refresh()
TypeError: 'NoneType' object is not subscriptable

Additional info:
addons:         com_redhat_docker, com_redhat_kdump
blivet-gui-utils.log: 
cmdline:        /usr/bin/python3  /sbin/anaconda
cmdline_file:   BOOT_IMAGE=/ppc/ppc64/vmlinuz ro
executable:     /sbin/anaconda
hashmarkername: anaconda
kernel:         4.18.5-300.fc29.ppc64le
product:        Fedora
release:        Cannot get release name.
release_type:   pre-release
type:           anaconda
version:        29

Comment 1 Menanteau Guy 2018-09-06 13:23:01 UTC
Created attachment 1481306 [details]
File: anaconda-tb

Comment 2 Menanteau Guy 2018-09-06 13:23:03 UTC
Created attachment 1481307 [details]
File: anaconda.log

Comment 3 Menanteau Guy 2018-09-06 13:23:04 UTC
Created attachment 1481308 [details]
File: dbus.log

Comment 4 Menanteau Guy 2018-09-06 13:23:06 UTC
Created attachment 1481309 [details]
File: dnf.librepo.log

Comment 5 Menanteau Guy 2018-09-06 13:23:08 UTC
Created attachment 1481310 [details]
File: environ

Comment 6 Menanteau Guy 2018-09-06 13:23:09 UTC
Created attachment 1481311 [details]
File: hawkey.log

Comment 7 Menanteau Guy 2018-09-06 13:23:11 UTC
Created attachment 1481312 [details]
File: lorax-packages.log

Comment 8 Menanteau Guy 2018-09-06 13:23:13 UTC
Created attachment 1481313 [details]
File: lsblk_output

Comment 9 Menanteau Guy 2018-09-06 13:23:15 UTC
Created attachment 1481314 [details]
File: nmcli_dev_list

Comment 10 Menanteau Guy 2018-09-06 13:23:17 UTC
Created attachment 1481315 [details]
File: os_info

Comment 11 Menanteau Guy 2018-09-06 13:23:18 UTC
Created attachment 1481316 [details]
File: program.log

Comment 12 Menanteau Guy 2018-09-06 13:23:20 UTC
Created attachment 1481317 [details]
File: storage.log

Comment 13 Menanteau Guy 2018-09-06 13:23:25 UTC
Created attachment 1481318 [details]
File: syslog

Comment 14 Menanteau Guy 2018-09-06 13:23:26 UTC
Created attachment 1481319 [details]
File: ifcfg.log

Comment 15 Menanteau Guy 2018-09-06 13:23:27 UTC
Created attachment 1481320 [details]
File: packaging.log

Comment 16 Vendula Poncova 2018-09-07 07:59:51 UTC
From pyanaconda/ui/gui/spokes/storage.py:

if isinstance(disk, MultipathDevice):
  desc = disk.wwn
  description = desc[0:6] + "..." + desc[-8:]

Anaconda fails, because the wwn attribute is set to None. I am not sure if it is a valid value in this case. Let's see what blivet thinks about it. Reassigning.

Comment 17 Dan Horák 2018-09-27 14:18:19 UTC
Guy, could it be reproduced with similar setup on x86? I guess it should.

Comment 18 Menanteau Guy 2018-09-28 12:25:05 UTC
same problem on x86-64 using this xml part to simulate the multipath with libvirt

    <disk type='file' device='disk'> 
      <driver name='qemu' type='qcow2' cache='none'/> 
      <source file='/home/menantea/images/vm60-fedora-Server-x86_64-29.qcow2'/> 
      <backingStore/> 
      <target dev='vda' bus='scsi'/> 
      <serial>0002</serial> 
      <address type='drive' controller='0' bus='0' target='0' unit='0'/> 
    </disk> 
    <disk type='file' device='disk'> 
      <driver name='qemu' type='qcow2' cache='none'/> 
      <source file='/home/menantea/images/vm60-fedora-Server-x86_64-29.qcow2'/> 
      <backingStore/> 
      <target dev='vdb' bus='scsi'/> 
      <serial>0002</serial> 
      <address type='drive' controller='0' bus='0' target='0' unit='1'/> 
    </disk>


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