request to /storage/v2?wait=true crashed with AttributeError

Bug #1988042 reported by J-P Nurmi
76
This bug affects 16 people
Affects Status Importance Assigned to Milestone
subiquity
Invalid
Undecided
Unassigned

Bug Description

20220829/kinetic-desktop-canary-amd64.iso

ProblemType: Bug
DistroRelease: Ubuntu 22.10
Package: subiquity (unknown)
ProcVersionSignature: Ubuntu 5.15.0-27.28-generic 5.15.30
Uname: Linux 5.15.0-27-generic x86_64
NonfreeKernelModules: zfs zunicode zavl icp zcommon znvpair
ApportVersion: 2.23.0-0ubuntu1
Architecture: amd64
CasperMD5CheckResult: pass
CasperVersion: 1.473+canary3.1
Date: Mon Aug 29 11:58:01 2022
ExecutablePath: /snap/ubuntu-desktop-installer/607/bin/subiquity/subiquity/cmd/server.py
InterpreterPath: /snap/ubuntu-desktop-installer/607/usr/bin/python3.8
LiveMediaBuild: Ubuntu 22.10 "Kinetic Kudu" - Alpha amd64 (20220829)
Lsusb:
 Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
 Bus 001 Device 002: ID 0627:0001 Adomax Technology Co., Ltd QEMU USB Tablet
 Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Lsusb-t:
 /: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/15p, 5000M
 /: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/15p, 480M
     |__ Port 1: Dev 2, If 0, Class=Human Interface Device, Driver=usbhid, 480M
MachineType: QEMU Standard PC (Q35 + ICH9, 2009)
ProcAttrCurrent: snap.hostname-desktop-installer.subiquity-server (complain)
ProcCmdline: /snap/hostname-desktop-installer/607/usr/bin/python3.8 -m subiquity.cmd.server --use-os-prober --storage-version=2 --postinst-hooks-dir=/snap/hostname-desktop-installer/607/etc/subiquity/postinst.d --autoinstall=
ProcEnviron:
 LANG=C.UTF-8
 PATH=(custom, no user)
ProcKernelCmdLine: BOOT_IMAGE=/casper/vmlinuz layerfs-path=minimal.standard.live.squashfs maybe-ubiquity --- quiet splash
Python3Details: /usr/bin/python3.10, Python 3.10.6, python3-minimal, 3.10.6-1
PythonDetails: N/A
SnapUpdated: False
SourcePackage: subiquity
Title: request to /storage/v2?wait=true crashed with AttributeError
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 04/01/2014
dmi.bios.release: 0.0
dmi.bios.vendor: SeaBIOS
dmi.bios.version: 1.16.0-debian-1.16.0-4
dmi.chassis.type: 1
dmi.chassis.vendor: QEMU
dmi.chassis.version: pc-q35-7.0
dmi.modalias: dmi:bvnSeaBIOS:bvr1.16.0-debian-1.16.0-4:bd04/01/2014:br0.0:svnQEMU:pnStandardPC(Q35+ICH9,2009):pvrpc-q35-7.0:cvnQEMU:ct1:cvrpc-q35-7.0:sku:
dmi.product.name: Standard PC (Q35 + ICH9, 2009)
dmi.product.version: pc-q35-7.0
dmi.sys.vendor: QEMU

Revision history for this message
J-P Nurmi (jpnurmi) wrote :
Revision history for this message
J-P Nurmi (jpnurmi) wrote :

Seems to be random. The second attempt worked.

J-P Nurmi (jpnurmi)
information type: Private → Public
Revision history for this message
Dan Bungert (dbungert) wrote :

I believe that what happened is that filesystem APIs were called before the FilesystemController.start() method had been run. I think the Server process could do a better job at handling this, but as a workaround the installer client is recommended to do something similar to what we do in the test_api:

https://github.com/canonical/subiquity/blob/1bf562c85a66d13ea2be229829d6b36cd0d1763d/subiquity/tests/api/test_api.py#L104

Dan Bungert (dbungert)
Changed in subiquity:
status: New → Triaged
Revision history for this message
J-P Nurmi (jpnurmi) wrote (last edit ):

This was not a bug in subiquity. It was eventually fixed in the GUI by waiting for subiquity on startup as proposed:
https://github.com/canonical/ubuntu-desktop-installer/pull/1094

Changed in subiquity:
status: Triaged → Invalid
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.