ValueError: Partition(...) is not in list

Bug #2063474 reported by Iakovos
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
subiquity
New
Undecided
Unassigned

Bug Description

Trying to install Ubuntu 24.04 on a Lenovo X1 Carbon Gen 9 with full disk encryption enabled on the previous installation, the new install gives an error and halts towards the end of the wizard. It happens no matter if I try LVM, ZFS, with or without full disk encryption.

Traceback (most recent call last):
  File "/snap/ubuntu-desktop-bootstrap/171/bin/subiquity/subiquity/common/api/server.py", line 164, in handler
    result = await implementation(**args)
  File "/snap/ubuntu-desktop-bootstrap/171/bin/subiquity/subiquity/server/controllers/filesystem.py", line 1184, in v2_guided_POST
    await self.guided(data)
  File "/snap/ubuntu-desktop-bootstrap/171/bin/subiquity/subiquity/server/controllers/filesystem.py", line 726, in guided
    gap = self.start_guided(choice.target, disk)
  File "/snap/ubuntu-desktop-bootstrap/171/usr/lib/python3.10/functools.py", line 926, in _method
    return method.__get__(obj, cls)(*args, **kwargs)
  File "/snap/ubuntu-desktop-bootstrap/171/bin/subiquity/subiquity/server/controllers/filesystem.py", line 645, in start_guided_reformat
    self.reformat(disk, wipe="superblock-recursive")
  File "/snap/ubuntu-desktop-bootstrap/171/bin/subiquity/subiquity/common/filesystem/manipulator.py", line 257, in reformat
    self.delete_partition(p, True)
  File "/snap/ubuntu-desktop-bootstrap/171/bin/subiquity/subiquity/common/filesystem/manipulator.py", line 120, in delete_partition
    self.model.remove_partition(part)
  File "/snap/ubuntu-desktop-bootstrap/171/bin/subiquity/subiquity/models/filesystem.py", line 2110, in remove_partition
    for p2 in movable_trailing_partitions_and_gap_size(part)[0]:
  File "/snap/ubuntu-desktop-bootstrap/171/usr/lib/python3.10/functools.py", line 889, in wrapper
    return dispatch(args[0].__class__)(*args, **kw)
  File "/snap/ubuntu-desktop-bootstrap/171/bin/subiquity/subiquity/common/filesystem/gaps.py", line 281, in _movable_trailing_partitions_and_gap_size_partition
    part_idx = pgs.index(partition)
ValueError: Partition(device=disk-nvme0n1, size=536870912, wipe='superblock', flag='boot', number=1, preserve=True, offset=1048576, partition_type='c12a7328-f81f-11d2-ba4b-00a0c93ec93b', path='/dev/nvme0n1p1', uuid='f6715a39-6ef5-4b7e-9aa9-3bb9482e2508', id='partition-nvme0n1p1', type='partition') is not in list

ProblemType: Bug
DistroRelease: Ubuntu 24.04
Package: subiquity (unknown)
ProcVersionSignature: Ubuntu 6.8.0-31.31-generic 6.8.1
Uname: Linux 6.8.0-31-generic x86_64
NonfreeKernelModules: zfs
ApportVersion: 2.28.1-0ubuntu2
Architecture: amd64
CasperMD5CheckResult: pass
CasperVersion: 1.498
CloudArchitecture: x86_64
CloudID: nocloud
CloudName: unknown
CloudPlatform: nocloud
CloudSubPlatform: seed-dir (/var/lib/cloud/seed/nocloud)
Date: Thu Apr 25 16:52:20 2024
DesktopInstallerRev: 171
ExecutablePath: /snap/ubuntu-desktop-bootstrap/171/bin/subiquity/subiquity/cmd/server.py
InterpreterPath: /snap/ubuntu-desktop-bootstrap/171/usr/bin/python3.10
LiveMediaBuild: Ubuntu 24.04 LTS "Noble Numbat" - Release amd64 (20240424)
MachineType: LENOVO 20XW002BFR
ProcAttrCurrent: snap.hostname-desktop-bootstrap.subiquity-server (complain)
ProcCmdline: /snap/hostname-desktop-bootstrap/171/usr/bin/python3.10 -m subiquity.cmd.server --use-os-prober --storage-version=2 --postinst-hooks-dir=/snap/hostname-desktop-bootstrap/171/etc/subiquity/postinst.d
ProcEnviron:
 LANG=C.UTF-8
 LD_LIBRARY_PATH=<set>
 PATH=(custom, no user)
ProcKernelCmdLine: BOOT_IMAGE=/casper/vmlinuz --- quiet splash
Python3Details: /usr/bin/python3.12, Python 3.12.3, python3-minimal, 3.12.3-0ubuntu1
PythonDetails: N/A
SnapChannel:

SnapRevision: 171
SnapUpdated: False
SnapVersion: 0+git.2d119e1b3
SourcePackage: subiquity
Title: request to /storage/v2/guided crashed with ValueError
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 11/20/2023
dmi.bios.release: 1.66
dmi.bios.vendor: LENOVO
dmi.bios.version: N32ET90W (1.66 )
dmi.board.asset.tag: Not Available
dmi.board.name: 20XW002BFR
dmi.board.vendor: LENOVO
dmi.board.version: SDK0J40697 WIN
dmi.chassis.asset.tag: No Asset Information
dmi.chassis.type: 10
dmi.chassis.vendor: LENOVO
dmi.chassis.version: None
dmi.ec.firmware.release: 1.36
dmi.modalias: dmi:bvnLENOVO:bvrN32ET90W(1.66):bd11/20/2023:br1.66:efr1.36:svnLENOVO:pn20XW002BFR:pvrThinkPadX1CarbonGen9:rvnLENOVO:rn20XW002BFR:rvrSDK0J40697WIN:cvnLENOVO:ct10:cvrNone:skuLENOVO_MT_20XW_BU_Think_FM_ThinkPadX1CarbonGen9:
dmi.product.family: ThinkPad X1 Carbon Gen 9
dmi.product.name: 20XW002BFR
dmi.product.sku: LENOVO_MT_20XW_BU_Think_FM_ThinkPad X1 Carbon Gen 9
dmi.product.version: ThinkPad X1 Carbon Gen 9
dmi.sys.vendor: LENOVO

Revision history for this message
Iakovos (jacobthir) wrote :
Iakovos (jacobthir)
description: updated
summary: - Installation of Ubuntu 24.04 fails to start due to error at the end of
- the wizard
+ Installation of Ubuntu 24.04 fails to start due to an error towards the
+ end of the wizard
Revision history for this message
Iakovos (jacobthir) wrote : Re: Installation of Ubuntu 24.04 fails to start due to an error towards the end of the wizard
Revision history for this message
Iakovos (jacobthir) wrote :
Revision history for this message
Iakovos (jacobthir) wrote :
description: updated
information type: Private → Public
Olivier Gayot (ogayot)
summary: - Installation of Ubuntu 24.04 fails to start due to an error towards the
- end of the wizard
+ ValueError: Partition(...) is not in list
Olivier Gayot (ogayot)
tags: added: storage-v2-api
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.