Crash in 21.10 installation if lvm groups is unchecked and subsequent crash when reporting to Canonical

Bug #1960135 reported by Gabriel
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
subiquity
New
Undecided
Unassigned

Bug Description

I was testing the Ubuntu 21.10 ARM server image on QEMU, and hit two bugs. Searched the reports but could not find either of them.

Link to the iso: https://cdimage.ubuntu.com/releases/21.10/release/ubuntu-21.10-live-server-arm64.iso

The SHA256 matches.

The first crash happened when I unchecked the LVM group option on the disk settings.

connecting...
waiting for cloud-init...
generating crash report
report saved to /var/crash/1644069599.816040754.ui.crash
Traceback (most recent call last):
  File "/snap/subiquity/2824/usr/bin/subiquity", line 8, in <module>
    sys.exit(main())
  File "/snap/subiquity/2824/lib/python3.8/site-packages/subiquity/cmd/tui.py", line 144, in main
    subiquity_interface.run()
  File "/snap/subiquity/2824/lib/python3.8/site-packages/subiquity/client/client.py", line 402, in run
    super().run()
  File "/snap/subiquity/2824/lib/python3.8/site-packages/subiquitycore/tui.py", line 374, in run
    super().run()
  File "/snap/subiquity/2824/lib/python3.8/site-packages/subiquitycore/core.py", line 135, in run
    raise exc
  File "/snap/subiquity/2824/lib/python3.8/site-packages/subiquity/client/controllers/filesystem.py", line 211, in _guided_choice
    self.model.load_server_data(status)
  File "/snap/subiquity/2824/lib/python3.8/site-packages/subiquity/models/filesystem.py", line 952, in load_server_data
    self._actions = self._actions_from_config(
  File "/snap/subiquity/2824/lib/python3.8/site-packages/subiquity/models/filesystem.py", line 1083, in _actions_from_config
    for action in config:
TypeError: 'NoneType' object is not iterable

Then I selected the option to report the crash to Canonical and hit another bug.

Ubuntu 21.10 ubuntu-server ttyAMA0

report to canonical =>

connecting...
generating crash report
report saved to /var/crash/1644069638.135836363.ui.crashTraceback (most recent call last):
  File "/snap/subiquity/2824/usr/bin/subiquity", line 8, in <module>
    sys.exit(main())
  File "/snap/subiquity/2824/lib/python3.8/site-packages/subiquity/cmd/tui.py", line 144, in main
    subiquity_interface.run()
  File "/snap/subiquity/2824/lib/python3.8/site-packages/subiquity/client/client.py", line 402, in run
    super().run()
  File "/snap/subiquity/2824/lib/python3.8/site-packages/subiquitycore/tui.py", line 374, in run
    super().run()
  File "/snap/subiquity/2824/lib/python3.8/site-packages/subiquitycore/core.py", line 135, in run
    raise exc
  File "/snap/subiquity/2824/usr/lib/python3.8/asyncio/events.py", line 81, in _run
    self._context.run(self._callback, *self._args)
  File "/snap/subiquity/2824/lib/python3.8/site-packages/subiquitycore/async_helpers.py", line 26, in _done
    fut.result()
  File "/snap/subiquity/2824/lib/python3.8/site-packages/subiquity/common/errorreport.py", line 243, in upload
    oops_id = await run_in_thread(_bg_upload)
  File "/snap/subiquity/2824/lib/python3.8/site-packages/subiquitycore/async_helpers.py", line 46, in run_in_thread
    return await loop.run_in_executor(None, func, *args)
  File "/snap/subiquity/2824/usr/lib/python3.8/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/snap/subiquity/2824/lib/python3.8/site-packages/subiquity/common/errorreport.py", line 230, in _bg_upload
    data = bson.BSON().encode(for_upload)
AttributeError: module 'bson' has no attribute 'BSON'

Checking LVM again made the installation continue as expected.

Gabriel (gabrielcarvfer)
description: updated
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.