installation crash after selected disk

Bug #1767295 reported by DawnCold
56
This bug affects 13 people
Affects Status Importance Assigned to Milestone
subiquity
Fix Released
Undecided
Unassigned

Bug Description

UPDATE: If I make a USB stick to install, it works fine, only ONE disk can be choose, so I think the disk list should be reviewed.

I install Ubuntu 18.04 with new released image on a DELL server with H740P RAID card.

I install Ubuntu via iDRAC.

After I selected my disk and enter the next screen, installer crashed, I found a installer debug log on `/var/log/installer`,

The useful logs are:
```
2018-04-27 07:24:29,241 subiquitycore.core:298 moving to screen Filesystem
2018-04-27 07:24:31,945 subiquitycore.controller.filesystem:151 spec: {'size': 898310864896, 'fstype': FS(label='ext4', is_mounted=True), 'mount': '/'}
2018-04-27 07:24:31,945 subiquitycore.controller.filesystem:152 disk.freespace: 898310864896
2018-04-27 07:24:31,945 subiquitycore.controller.filesystem:174 model has bootable device? False
2018-04-27 07:24:31,945 subiquitycore.controller.filesystem:180 Adding EFI partition first
2018-04-27 07:24:31,946 subiquity.models.filesystem:362 add_partition: rounded size from 536870912 to 536870912
2018-04-27 07:24:31,946 subiquity.models.filesystem:372 adding fat32 to Partition(id='part-0', type='partition', device=Disk(id='disk-1', type='disk', ptable='gpt', serial='36d0946601bac430022758b98d118a285', path='/dev/sda', model='PERC_H740P_Adp', wipe='superblock', preserve=False, name='', grub_device='', _info=<probert.storage.StorageInfo object at 0x7fb1ad52f828>), size=536870912, wipe=None, flag='boot', preserve=False)
2018-04-27 07:24:31,946 subiquitycore.controller.filesystem:194 Adjusting request down:898310864896 - 536870912 = 897773993984
2018-04-27 07:24:31,946 subiquity.models.filesystem:362 add_partition: rounded size from 897773993984 to 897773993984
2018-04-27 07:24:31,946 subiquity.models.filesystem:372 adding ext4 to Partition(id='part-1', type='partition', device=Disk(id='disk-1', type='disk', ptable='gpt', serial='36d0946601bac430022758b98d118a285', path='/dev/sda', model='PERC_H740P_Adp', wipe='superblock', preserve=False, name='', grub_device=True, _info=<probert.storage.StorageInfo object at 0x7fb1ad52f828>), size=897773993984, wipe=None, flag='', preserve=False)
2018-04-27 07:24:31,947 subiquitycore.controller.filesystem:203 Successfully added partition
2018-04-27 07:24:31,947 subiquitycore.controller.filesystem:113 In disk partition view, using 36d0946601bac430022758b98d118a285 as the disk.
2018-04-27 07:24:31,951 subiquity.ui.filesystem.filesystem:79 FileSystemView init start()
2018-04-27 07:24:31,951 subiquity.ui.filesystem.filesystem:121 FileSystemView: building part list
2018-04-27 07:24:31,953 subiquity.ui.filesystem.filesystem:155 FileSystemView: building buttons
2018-04-27 07:24:31,955 subiquity.ui.filesystem.filesystem:114 FileSystemView init complete()
2018-04-27 07:24:31,957 subiquitycore.core:350 Exception in controller.run():
Traceback (most recent call last):
  File "/snap/subiquity/346/lib/python3.6/site-packages/subiquitycore/core.py", line 348, in run
    self.common['loop'].run()
  File "/snap/subiquity/346/usr/lib/python3/dist-packages/urwid/main_loop.py", line 286, in run
    self._run()
  File "/snap/subiquity/346/usr/lib/python3/dist-packages/urwid/main_loop.py", line 384, in _run
    self.event_loop.run()
  File "/snap/subiquity/346/usr/lib/python3/dist-packages/urwid/main_loop.py", line 788, in run
    self._loop()
  File "/snap/subiquity/346/usr/lib/python3/dist-packages/urwid/main_loop.py", line 816, in _loop
    self._entering_idle()
  File "/snap/subiquity/346/usr/lib/python3/dist-packages/urwid/main_loop.py", line 777, in _entering_idle
    callback()
  File "/snap/subiquity/346/usr/lib/python3/dist-packages/urwid/main_loop.py", line 572, in entering_idle
    self.draw_screen()
  File "/snap/subiquity/346/usr/lib/python3/dist-packages/urwid/main_loop.py", line 586, in draw_screen
    canvas = self._topmost_widget.render(self.screen_size, focus=True)
  File "/snap/subiquity/346/usr/lib/python3/dist-packages/urwid/widget.py", line 144, in cached_render
    canv = fn(self, size, focus=focus)
  File "/snap/subiquity/346/usr/lib/python3/dist-packages/urwid/wimp.py", line 638, in render
    self._update_overlay(size, focus)
  File "/snap/subiquity/346/usr/lib/python3/dist-packages/urwid/wimp.py", line 618, in _update_overlay
    canv = self._original_widget.render(size, focus=focus)
  File "/snap/subiquity/346/usr/lib/python3/dist-packages/urwid/widget.py", line 144, in cached_render
    canv = fn(self, size, focus=focus)
  File "/snap/subiquity/346/usr/lib/python3/dist-packages/urwid/widget.py", line 1765, in render
    canv = get_delegate(self).render(size, focus=focus)
  File "/snap/subiquity/346/usr/lib/python3/dist-packages/urwid/widget.py", line 144, in cached_render
    canv = fn(self, size, focus=focus)
  File "/snap/subiquity/346/usr/lib/python3/dist-packages/urwid/decoration.py", line 226, in render
    canv = self._original_widget.render(size, focus=focus)
  File "/snap/subiquity/346/usr/lib/python3/dist-packages/urwid/widget.py", line 144, in cached_render
    canv = fn(self, size, focus=focus)
  File "/snap/subiquity/346/usr/lib/python3/dist-packages/urwid/container.py", line 1086, in render
    focus and self.focus_part == 'body')
  File "/snap/subiquity/346/usr/lib/python3/dist-packages/urwid/widget.py", line 144, in cached_render
    canv = fn(self, size, focus=focus)
  File "/snap/subiquity/346/usr/lib/python3/dist-packages/urwid/widget.py", line 1765, in render
    canv = get_delegate(self).render(size, focus=focus)
  File "/snap/subiquity/346/usr/lib/python3/dist-packages/urwid/widget.py", line 144, in cached_render
    canv = fn(self, size, focus=focus)
  File "/snap/subiquity/346/usr/lib/python3/dist-packages/urwid/container.py", line 1529, in render
    canv = w.render((maxcol, rows), focus=focus and item_focus)
  File "/snap/subiquity/346/usr/lib/python3/dist-packages/urwid/widget.py", line 144, in cached_render
    canv = fn(self, size, focus=focus)
  File "/snap/subiquity/346/usr/lib/python3/dist-packages/urwid/decoration.py", line 567, in render
    canv = self._original_widget.render((maxcol,)+size[1:], focus)
  File "/snap/subiquity/346/usr/lib/python3/dist-packages/urwid/widget.py", line 144, in cached_render
    canv = fn(self, size, focus=focus)
  File "/snap/subiquity/346/lib/python3.6/site-packages/subiquitycore/ui/container.py", line 407, in render
    visible = self.ends_visible(size, focus)
  File "/snap/subiquity/346/usr/lib/python3/dist-packages/urwid/listbox.py", line 1611, in ends_visible
    focus=focus )
  File "/snap/subiquity/346/usr/lib/python3/dist-packages/urwid/listbox.py", line 353, in calculate_visible
    self._set_focus_complete( (maxcol, maxrow), focus )
  File "/snap/subiquity/346/lib/python3.6/site-packages/subiquitycore/ui/container.py", line 381, in _set_focus_complete
    super()._set_focus_complete(size, focus)
  File "/snap/subiquity/346/usr/lib/python3/dist-packages/urwid/listbox.py", line 718, in _set_focus_complete
    (maxcol,maxrow), focus)
  File "/snap/subiquity/346/usr/lib/python3/dist-packages/urwid/listbox.py", line 688, in _set_focus_first_selectable
    (maxcol, maxrow), focus=focus)
  File "/snap/subiquity/346/usr/lib/python3/dist-packages/urwid/listbox.py", line 420, in calculate_visible
    n_rows = next.rows( (maxcol,) )
  File "/snap/subiquity/346/usr/lib/python3/dist-packages/urwid/widget.py", line 204, in cached_rows
    return fn(self, size, focus)
  File "/snap/subiquity/346/usr/lib/python3/dist-packages/urwid/decoration.py", line 615, in rows
    return self._original_widget.rows((maxcol-left-right,), focus=focus)
AttributeError: 'int' object has no attribute 'rows'
```

Then installer restarted.

Tags: filesystem
Revision history for this message
DawnCold (loooseleaves) wrote :
Revision history for this message
DawnCold (loooseleaves) wrote :
description: updated
DawnCold (loooseleaves)
description: updated
Revision history for this message
Michael Hudson-Doyle (mwhudson) wrote :

Looking at that traceback and the code I have no idea how this happens :( Would you be able to boot the system in the failing manner again, run subiquity.probert and capture the output? TIA.

Revision history for this message
Sujith Pandel (sujithpandel) wrote :

I'm facing the same installer restarting with "AttributeError: 'int' object has no attribute 'rows'" in installer logs with Ubuntu 18.04 on Dell server; installer iso mounted through Virtual Media..

Might be due to the presence of iDRAC Virtual Floppy (0B in size)??

Attaching the #subiquity.probert logs.

Revision history for this message
Michael Hudson-Doyle (mwhudson) wrote :

Ah thanks, that let me reproduce the bug. It was the 0B drive, but it was the fact that that drive came last in the list that caused the problem... fixed in git now.

Changed in subiquity:
status: New → Fix Committed
Revision history for this message
Michael Hudson-Doyle (mwhudson) wrote :
Revision history for this message
DawnCold (loooseleaves) wrote :

It works for me!

Revision history for this message
Roman Gershkovich (evaderx) wrote :

Had exactly the same issue in Dell R530, the ISO, provide by Michael, worked.

Revision history for this message
andremar (omega-palle) wrote :

Just a note that an alternative workaround is to enable virtual floppy in your iDrac, and mount a random virtual floppy (we used dos6.22.img from http://www.allbootdisks.com/download/dos.html). This removes it from the list of devices you can chose to partition

Revision history for this message
Michael Hudson-Doyle (mwhudson) wrote :

This has been fixed in dailies for a while. 18.04.1 will be released this week including the fix.

Changed in subiquity:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.