Subiquity crashes if encrypted devices present in the system

Bug #2042872 reported by Alexey Kharlamov
50
This bug affects 11 people
Affects Status Importance Assigned to Milestone
subiquity
New
Undecided
Unassigned

Bug Description

The problem easily reproducible in my configuration. It may be due lack of partition table on one of SSDs.

ProblemType: Bug
DistroRelease: Ubuntu 23.10
Package: subiquity (unknown)
ProcVersionSignature: Ubuntu 6.5.0-9.9-generic 6.5.3
Uname: Linux 6.5.0-9-generic x86_64
NonfreeKernelModules: zfs
ApportVersion: 2.27.0-0ubuntu5
Architecture: amd64
CasperMD5CheckResult: pass
CasperVersion: 1.486
CloudArchitecture: x86_64
CloudID: nocloud
CloudName: unknown
CloudPlatform: nocloud
CloudSubPlatform: seed-dir (/var/lib/cloud/seed/nocloud)
Date: Mon Nov 6 20:28:22 2023
DesktopInstallerRev: 1269
ExecutablePath: /snap/ubuntu-desktop-installer/1269/bin/subiquity/subiquity/cmd/server.py
InterpreterPath: /snap/ubuntu-desktop-installer/1269/usr/bin/python3.10
LiveMediaBuild: Ubuntu 23.10.1 "Mantic Minotaur" - Release amd64 (20231016.1)
MachineType: ASUS All Series
ProcAttrCurrent: snap.hostname-desktop-installer.subiquity-server (complain)
ProcCmdline: /snap/hostname-desktop-installer/1269/usr/bin/python3.10 -m subiquity.cmd.server --use-os-prober --storage-version=2 --postinst-hooks-dir=/snap/hostname-desktop-installer/1269/etc/subiquity/postinst.d
ProcEnviron:
 LANG=en_US.UTF-8
 LD_LIBRARY_PATH=<set>
 PATH=(custom, no user)
ProcKernelCmdLine: BOOT_IMAGE=/casper/vmlinuz layerfs-path=minimal.standard.live.squashfs --- quiet splash
Python3Details: /usr/bin/python3.11, Python 3.11.6, python3-minimal, 3.11.4-5
PythonDetails: N/A
SnapChannel: latest/stable
SnapRevision: 1269
SnapUpdated: False
SnapVersion: 0+git.1c719695
SourcePackage: subiquity
Title: request to /storage/v2?wait=true crashed with KeyError
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 07/10/2019
dmi.bios.release: 5.11
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: 2101
dmi.board.asset.tag: Default string
dmi.board.name: X99-A II
dmi.board.vendor: ASUSTeK COMPUTER INC.
dmi.board.version: Rev 1.xx
dmi.chassis.asset.tag: Default string
dmi.chassis.type: 3
dmi.chassis.vendor: Default string
dmi.chassis.version: Default string
dmi.modalias: dmi:bvnAmericanMegatrendsInc.:bvr2101:bd07/10/2019:br5.11:svnASUS:pnAllSeries:pvrSystemVersion:rvnASUSTeKCOMPUTERINC.:rnX99-AII:rvrRev1.xx:cvnDefaultstring:ct3:cvrDefaultstring:skuAll:
dmi.product.family: ASUS MB
dmi.product.name: All Series
dmi.product.sku: All
dmi.product.version: System Version
dmi.sys.vendor: ASUS

Revision history for this message
Alexey Kharlamov (aih1013) wrote :
Revision history for this message
Alexey Kharlamov (aih1013) wrote :

Further investigation shows that the installed fails to recognize the file system on an encrypted drive, /dev/sdb.

information type: Private → Public
summary: - request to /storage/v2?wait=true crashed with KeyError
+ Subiquity crashes if encrypted devices present in the system
Olivier Gayot (ogayot)
tags: added: storage-v2-api
Revision history for this message
sim (yamatogatedarksim) wrote :

It also happens in Ubuntu 20.04 without encrypted devices.

Revision history for this message
Chris Peterson (cpete) wrote :

Hi and thank you for the report!

Indeed it looks like an issue where we are not handling a case of Curtin not supporting / finding a partition table on one of the devices. Since you're able to reproduce the issue easily, could you try on 24.04 and see if it's reproducible there?

Revision history for this message
Chris Peterson (cpete) wrote :

Only after posting did I realize the date on the bug! @sim would you mind opening a separate bug with further details?

Revision history for this message
Alexey Kharlamov (aih1013) wrote : Re: [Bug 2042872] Re: Subiquity crashes if encrypted devices present in the system
Download full text (3.4 KiB)

Unfortunately, I had to change the partition layout to make Ubuntu 24.04
work. My understanding the issue is easily reproducible by encryption the
whole block device instead of a single partition.

On Mon, Jul 15, 2024 at 6:10 PM Chris Peterson <email address hidden>
wrote:

> Only after posting did I realize the date on the bug! @sim would you
> mind opening a separate bug with further details?
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/2042872
>
> Title:
> Subiquity crashes if encrypted devices present in the system
>
> Status in subiquity:
> New
>
> Bug description:
> The problem easily reproducible in my configuration. It may be due
> lack of partition table on one of SSDs.
>
> ProblemType: Bug
> DistroRelease: Ubuntu 23.10
> Package: subiquity (unknown)
> ProcVersionSignature: Ubuntu 6.5.0-9.9-generic 6.5.3
> Uname: Linux 6.5.0-9-generic x86_64
> NonfreeKernelModules: zfs
> ApportVersion: 2.27.0-0ubuntu5
> Architecture: amd64
> CasperMD5CheckResult: pass
> CasperVersion: 1.486
> CloudArchitecture: x86_64
> CloudID: nocloud
> CloudName: unknown
> CloudPlatform: nocloud
> CloudSubPlatform: seed-dir (/var/lib/cloud/seed/nocloud)
> Date: Mon Nov 6 20:28:22 2023
> DesktopInstallerRev: 1269
> ExecutablePath:
> /snap/ubuntu-desktop-installer/1269/bin/subiquity/subiquity/cmd/server.py
> InterpreterPath: /snap/ubuntu-desktop-installer/1269/usr/bin/python3.10
> LiveMediaBuild: Ubuntu 23.10.1 "Mantic Minotaur" - Release amd64
> (20231016.1)
> MachineType: ASUS All Series
> ProcAttrCurrent: snap.hostname-desktop-installer.subiquity-server
> (complain)
> ProcCmdline: /snap/hostname-desktop-installer/1269/usr/bin/python3.10 -m
> subiquity.cmd.server --use-os-prober --storage-version=2
> --postinst-hooks-dir=/snap/hostname-desktop-installer/1269/etc/subiquity/postinst.d
> ProcEnviron:
> LANG=en_US.UTF-8
> LD_LIBRARY_PATH=<set>
> PATH=(custom, no user)
> ProcKernelCmdLine: BOOT_IMAGE=/casper/vmlinuz
> layerfs-path=minimal.standard.live.squashfs --- quiet splash
> Python3Details: /usr/bin/python3.11, Python 3.11.6, python3-minimal,
> 3.11.4-5
> PythonDetails: N/A
> SnapChannel: latest/stable
> SnapRevision: 1269
> SnapUpdated: False
> SnapVersion: 0+git.1c719695
> SourcePackage: subiquity
> Title: request to /storage/v2?wait=true crashed with KeyError
> UpgradeStatus: No upgrade log present (probably fresh install)
> dmi.bios.date: 07/10/2019
> dmi.bios.release: 5.11
> dmi.bios.vendor: American Megatrends Inc.
> dmi.bios.version: 2101
> dmi.board.asset.tag: Default string
> dmi.board.name: X99-A II
> dmi.board.vendor: ASUSTeK COMPUTER INC.
> dmi.board.version: Rev 1.xx
> dmi.chassis.asset.tag: Default string
> dmi.chassis.type: 3
> dmi.chassis.vendor: Default string
> dmi.chassis.version: Default string
> dmi.modalias:
> dmi:bvnAmericanMegatrendsInc.:bvr2101:bd07/10/2019:br5.11:svnASUS:pnAllSeries:pvrSystemVersion:rvnASUSTeKCOMPUTERINC.:rnX99-AII:rvrRev1.xx:cvnDefaultstring:ct3:cvrDefaultstring:skuAll:
> dmi.product.family: ASUS MB
> dmi.product.name: A...

Read more...

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.