[Bug 2035161] Re: Device busy after starting guided LVM install
Dan Bungert
2035161 at bugs.launchpad.net
Tue Sep 12 17:09:52 UTC 2023
Hi Phreed, thanks for the report.
There seem to be glitches in that area, and for whatever reason LVM is
good at triggering it. If you repeat the install I bet it works for you
the second time.
curtin-side I suspect this is the same problem that is being worked
around in commit 412ffeb08e8b981005a8342d93816e5bc2cc63a5.
** Changed in: subiquity
Importance: Undecided => High
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/2035161
Title:
Device busy after starting guided LVM install
Status in subiquity:
Triaged
Bug description:
Sep 11 22:12:00 ubuntu subiquity_log.3279[5070]: Failed to exclusively open path: /dev/nvme0n1p3
Sep 11 22:12:00 ubuntu subiquity_log.3279[5070]: devname '/dev/nvme0n1p3' had holders: ['dm-0']
Sep 11 22:12:00 ubuntu subiquity_log.3279[5070]: Device holders with exclusive access: ['dm-0']
Sep 11 22:12:00 ubuntu subiquity_log.3279[5070]: Device mounts: []
Sep 11 22:12:00 ubuntu subiquity_log.3279[5070]: Running command ['fuser', '--verbose', '--mount', '/dev/nvme0n1p3'] with allowed return codes [0] (capture=True)
Sep 11 22:12:00 ubuntu subiquity_log.3279[5070]: fuser returned non-zero: ''
Sep 11 22:12:00 ubuntu subiquity_log.3279[5070]: Possible users of /dev/nvme0n1p3:
Sep 11 22:12:00 ubuntu subiquity_log.3279[5070]: None
Sep 11 22:12:00 ubuntu subiquity_log.3279[5070]: An error occured handling 'disk-nvme0n1': OSError - [Errno 16] Device or resource busy: '/dev/nvme0n1p3'
Sep 11 22:12:00 ubuntu subiquity_log.3279[5070]: finish: cmd-install/stage-partitioning/builtin/cmd-block-meta: FAIL: configuring disk: disk-nvme0n1
Sep 11 22:12:00 ubuntu subiquity_log.3279[5070]: TIMED BLOCK_META: 1.112
Sep 11 22:12:00 ubuntu subiquity_log.3279[5070]: finish: cmd-install/stage-partitioning/builtin/cmd-block-meta: FAIL: curtin command block-meta
Sep 11 22:12:00 ubuntu subiquity_log.3279[5070]: Traceback (most recent call last):
Sep 11 22:12:00 ubuntu subiquity_log.3279[5070]: File "/snap/ubuntu-desktop-installer/939/lib/python3.10/site-packages/curtin/commands/main.py", line 202, in main
Sep 11 22:12:00 ubuntu subiquity_log.3279[5070]: ret = args.func(args)
Sep 11 22:12:00 ubuntu subiquity_log.3279[5070]: File "/snap/ubuntu-desktop-installer/939/lib/python3.10/site-packages/curtin/log.py", line 97, in wrapper
Sep 11 22:12:00 ubuntu subiquity_log.3279[5070]: return log_time("TIMED %s: " % msg, func, *args, **kwargs)
Sep 11 22:12:00 ubuntu subiquity_log.3279[5070]: File "/snap/ubuntu-desktop-installer/939/lib/python3.10/site-packages/curtin/log.py", line 79, in log_time
Sep 11 22:12:00 ubuntu subiquity_log.3279[5070]: return func(*args, **kwargs)
Sep 11 22:12:00 ubuntu subiquity_log.3279[5070]: File "/snap/ubuntu-desktop-installer/939/lib/python3.10/site-packages/curtin/commands/block_meta.py", line 124, in block_meta
Sep 11 22:12:00 ubuntu subiquity_log.3279[5070]: return meta_custom(args)
Sep 11 22:12:00 ubuntu subiquity_log.3279[5070]: File "/snap/ubuntu-desktop-installer/939/lib/python3.10/site-packages/curtin/commands/block_meta.py", line 2191, in meta_custom
Sep 11 22:12:00 ubuntu subiquity_log.3279[5070]: handler(command, storage_config_dict, context)
Sep 11 22:12:00 ubuntu subiquity_log.3279[5070]: File "/snap/ubuntu-desktop-installer/939/lib/python3.10/site-packages/curtin/commands/block_meta_v2.py", line 492, in disk_handler_v2
Sep 11 22:12:00 ubuntu subiquity_log.3279[5070]: block.wipe_volume(block.kname_to_path(kname), wipe)
Sep 11 22:12:00 ubuntu subiquity_log.3279[5070]: File "/snap/ubuntu-desktop-installer/939/lib/python3.10/site-packages/curtin/block/__init__.py", line 1322, in wipe_volume
Sep 11 22:12:00 ubuntu subiquity_log.3279[5070]: quick_zero(path, partitions=False, exclusive=exclusive)
Sep 11 22:12:00 ubuntu subiquity_log.3279[5070]: File "/snap/ubuntu-desktop-installer/939/lib/python3.10/site-packages/curtin/block/__init__.py", line 1236, in quick_zero
Sep 11 22:12:00 ubuntu subiquity_log.3279[5070]: return zero_file_at_offsets(path, offsets, buflen=buflen, count=count,
Sep 11 22:12:00 ubuntu subiquity_log.3279[5070]: File "/snap/ubuntu-desktop-installer/939/lib/python3.10/site-packages/curtin/block/__init__.py", line 1257, in zero_file_at_offsets
Sep 11 22:12:00 ubuntu subiquity_log.3279[5070]: with exclusive_open(path, exclusive=exclusive) as fp:
Sep 11 22:12:00 ubuntu subiquity_log.3279[5070]: File "/snap/ubuntu-desktop-installer/939/usr/lib/python3.10/contextlib.py", line 135, in __enter__
Sep 11 22:12:00 ubuntu subiquity_log.3279[5070]: return next(self.gen)
Sep 11 22:12:00 ubuntu subiquity_log.3279[5070]: File "/snap/ubuntu-desktop-installer/939/lib/python3.10/site-packages/curtin/block/__init__.py", line 1149, in exclusive_open
Sep 11 22:12:00 ubuntu subiquity_log.3279[5070]: fd = os.open(path, flags)
Sep 11 22:12:00 ubuntu subiquity_log.3279[5070]: OSError: [Errno 16] Device or resource busy: '/dev/nvme0n1p3'
Sep 11 22:12:00 ubuntu subiquity_log.3279[5070]: [Errno 16] Device or resource busy: '/dev/nvme0n1p3'
Sep 11 22:12:00 ubuntu subiquity_log.3279[5070]:
Sep 11 22:12:00 ubuntu subiquity_log.3279[5070]: Stderr: ''
Sep 11 22:12:00 ubuntu subiquity_event.3279[3279]: executing curtin install partitioning step
Sep 11 22:12:00 ubuntu subiquity_event.3279[3279]: installing system
Sep 11 22:12:00 ubuntu subiquity_event.3279[3279]:
ProblemType: Bug
DistroRelease: Ubuntu 23.04
Package: subiquity (unknown)
ProcVersionSignature: Ubuntu 6.2.0-20.20-generic 6.2.6
Uname: Linux 6.2.0-20-generic x86_64
NonfreeKernelModules: zfs zunicode zavl icp zcommon znvpair
ApportVersion: 2.26.1-0ubuntu2
Architecture: amd64
CasperMD5CheckResult: unknown
CasperVersion: 1.480
CurtinAptConfig: /var/log/installer/subiquity-curtin-apt.conf
Date: Tue Sep 12 02:12:00 2023
DesktopInstallerRev: 939
ExecutablePath: /snap/ubuntu-desktop-installer/939/bin/subiquity/subiquity/cmd/server.py
InterpreterPath: /snap/ubuntu-desktop-installer/939/usr/bin/python3.10
LiveMediaBuild: Ubuntu 23.04 "Lunar Lobster" - Release amd64 (20230418)
MachineType: Framework Laptop
ProcAttrCurrent: snap.hostname-desktop-installer.subiquity-server (complain)
ProcCmdline: /snap/hostname-desktop-installer/939/usr/bin/python3.10 -m subiquity.cmd.server --use-os-prober --storage-version=2 --postinst-hooks-dir=/snap/hostname-desktop-installer/939/etc/subiquity/postinst.d
ProcEnviron:
LANG=C.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.2, python3-minimal, 3.11.2-1
PythonDetails: N/A
SnapChannel:
SnapRevision: 939
SnapUpdated: False
SnapVersion: 0+git.1dbbc6f7
SourcePackage: subiquity
Title: install failed crashed with CalledProcessError
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 10/27/2022
dmi.bios.release: 3.17
dmi.bios.vendor: INSYDE Corp.
dmi.bios.version: 03.17
dmi.board.asset.tag: *
dmi.board.name: FRANBMCP0A
dmi.board.vendor: Framework
dmi.board.version: AA
dmi.chassis.asset.tag: FRANBMCPAA201500JD
dmi.chassis.type: 10
dmi.chassis.vendor: Framework
dmi.chassis.version: AA
dmi.modalias: dmi:bvnINSYDECorp.:bvr03.17:bd10/27/2022:br3.17:svnFramework:pnLaptop:pvrAA:rvnFramework:rnFRANBMCP0A:rvrAA:cvnFramework:ct10:cvrAA:skuFRANBMCP0A:
dmi.product.family: FRANBMCP
dmi.product.name: Laptop
dmi.product.sku: FRANBMCP0A
dmi.product.version: AA
dmi.sys.vendor: Framework
To manage notifications about this bug go to:
https://bugs.launchpad.net/subiquity/+bug/2035161/+subscriptions
More information about the foundations-bugs
mailing list