------- Comment From amit.machhi...@ibm.com 2025-02-18 14:00 EDT-------
Hi Olivier,

I further tried recreating this installer crash with multipath disks on a Qemu
setup. I followed the below steps:
1. Download the Ubuntu 24.04.1 iso from here:
https://cdimage.ubuntu.com/releases/noble/release/ubuntu-24.04.1-live-server-ppc64el.iso
2. Create a qcow2 for provisioning a Ubuntu 24.04.1 guest
qemu-img create -f qcow2 /home/amachhiw/images/ubunut-disk.qcow2 10G
3. Provision a guest with multipath disk configuration by running the
following Qemu command line. The guest provisioning goes fine as
expected.
qemu-system-ppc64 \
-enable-kvm \
-m 4G \
-smp 2 \
-boot menu=on \
-device spapr-vscsi,id=scsi \
-drive 
if=none,id=mpatha,file=/home/amachhiw/images/multipath-disk.qcow2,format=qcow2,file.locking=off
 \
-device scsi-hd,drive=mpatha,serial=MPIO \
-drive 
if=none,id=mpathb,file=/home/amachhiw/images/multipath-disk.qcow2,format=qcow2,file.locking=off
 \
-drive 
file=/home/amachhiw/images/ubuntu-24.04.1-live-server-ppc64el.iso,media=cdrom \
-device scsi-hd,drive=mpathb,serial=MPIO \
-net nic,model=virtio \
-net user,hostfwd=::15447-:22 \
-nographic
5. Try a re-provision of the guest:
a. Once provisioning completes and reach to the login prompt, just login
and reboot.
b. Keep hitting F12 for getting into the boot menu and boot from the
cdrom
6. Follow the on-screen instructions for proceeding on the installer.
Eventually, during the installation, the installer crashes with the below
Traceback

Traceback (most recent call last):
File 
"/snap/subiquity/6065/lib/python3.10/site-packages/curtin/commands/main.py", 
line 202, in main
ret = args.func(args)
File "/snap/subiquity/6065/lib/python3.10/site-packages/curtin/log.py", line 
97, in wrapper
return log_time("TIMED %s: " % msg, func, *args, **kwargs)
File "/snap/subiquity/6065/lib/python3.10/site-packages/curtin/log.py", line 
79, in log_time
return func(*args, **kwargs)
File 
"/snap/subiquity/6065/lib/python3.10/site-packages/curtin/commands/block_meta.py",
 line 118, in block_meta
meta_clear(devices, state.get('report_stack_prefix', ''))
File 
"/snap/subiquity/6065/lib/python3.10/site-packages/curtin/commands/block_meta.py",
 line 2213, in meta_clear
clear_holders.clear_holders(devices)
File 
"/snap/subiquity/6065/lib/python3.10/site-packages/curtin/block/clear_holders.py",
 line 638, in clear_holders
shutdown_function(dev_info['device'])
File 
"/snap/subiquity/6065/lib/python3.10/site-packages/curtin/block/clear_holders.py",
 line 138, in shutdown_lvm
util.subp(['lvremove', '--force', '--force', vg_lv_name])
File "/snap/subiquity/6065/lib/python3.10/site-packages/curtin/util.py", line 
323, in subp
return _subp(*args, **kwargs)
File "/snap/subiquity/6065/lib/python3.10/site-packages/curtin/util.py", line 
172, in _subp
raise ProcessExecutionError(stdout=out, stderr=err,
curtin.util.ProcessExecutionError: Unexpected error while running command.
Command: ['lvremove', '--force', '--force', 'ubuntu-vg/ubuntu-lv']

Though this is not exactly the same as the original issue being discussed in the
bugzilla, I have again been able to recreate this installer crash with 100% hit.

Additionally, I observe the above errors mentioned in 
https://bugzilla.linux.ibm.com/show_bug.cgi?id=208604#c51
as well. Pasting the snippet of those errors below:

dmesg
-----
root@ubuntu:~# cat dmesg.log | grep -i device-mapper
[    0.148915] device-mapper: core: CONFIG_IMA_DISABLE_HTABLE is disabled. 
Duplicate IMA measurements will not be recorded in the IMA log.
[    0.148929] device-mapper: uevent: version 1.0.3
[    0.148993] device-mapper: ioctl: 4.48.0-ioctl (2023-03-01) initialised: 
dm-de...@redhat.com
[    8.671602] systemd[1]: Listening on dm-event.socket - Device-mapper event 
daemon FIFOs.
[    8.937037] systemd[1]: Starting multipathd.service - Device-Mapper 
Multipath Device Controller...
[    9.628257] device-mapper: multipath service-time: version 0.3.0 loaded
[    9.628444] device-mapper: table: 252:1: multipath: error getting device 
(-EBUSY)
[    9.628553] device-mapper: ioctl: error adding target to table
[    9.650510] device-mapper: table: 252:1: multipath: error getting device 
(-EBUSY)
[    9.650593] device-mapper: ioctl: error adding target to table
[24100.057137] device-mapper: table: 252:1: multipath: error getting device 
(-EBUSY)
[24100.057146] device-mapper: ioctl: error adding target to table
[24100.058323] device-mapper: table: 252:1: multipath: error getting device 
(-EBUSY)
[24100.058328] device-mapper: ioctl: error adding target to table
[24230.276605] device-mapper: table: 252:1: multipath: error getting device 
(-EBUSY)
[24230.276612] device-mapper: ioctl: error adding target to table
[24230.284808] device-mapper: table: 252:1: multipath: error getting device 
(-EBUSY)
[24230.284812] device-mapper: ioctl: error adding target to table

multipath-tools
---------------
root@ubuntu:~# systemctl status multipath-tools
* multipathd.service - Device-Mapper Multipath Device Controller
Loaded: loaded (/usr/lib/systemd/system/multipathd.service; enabled; preset: 
enabled)
Active: active (running) since Tue 2025-02-18 11:29:09 UTC; 6h ago
TriggeredBy: * multipathd.socket
Main PID: 925 (multipathd)
Status: "up"
Tasks: 7
Memory: 27.1M (peak: 35.0M)
CPU: 1.429s
CGroup: /system.slice/multipathd.service
`-925 /sbin/multipathd -d -s

Feb 18 18:12:48 ubuntu-server multipathd[925]: mpatha: addmap [0 20971520 
multipath 0 0 2 1 service-time 0 1 1 8:0 1 service-time 0 1 1 8:16 1]
Feb 18 18:12:48 ubuntu-server multipathd[925]: libdevmapper: 
ioctl/libdm-iface.c(1990): device-mapper: reload ioctl on mpatha (252:1) 
failed: Device or resource busy
Feb 18 18:12:48 ubuntu-server multipathd[925]: dm_addmap: libdm task=0 error: 
Device or resource busy
Feb 18 18:12:48 ubuntu-server multipathd[925]: mpatha: ignoring map
Feb 18 18:12:48 ubuntu-server multipathd[925]: sda: setting scsi timeouts is 
unsupported for protocol scsi:unspec
Feb 18 18:12:48 ubuntu-server multipathd[925]: sdb: setting scsi timeouts is 
unsupported for protocol scsi:unspec
Feb 18 18:12:48 ubuntu-server multipathd[925]: mpatha: addmap [0 20971520 
multipath 0 0 2 1 service-time 0 1 1 8:0 1 service-time 0 1 1 8:16 1]
Feb 18 18:12:48 ubuntu-server multipathd[925]: libdevmapper: 
ioctl/libdm-iface.c(1990): device-mapper: reload ioctl on mpatha (252:1) 
failed: Device or resource busy
Feb 18 18:12:48 ubuntu-server multipathd[925]: dm_addmap: libdm task=0 error: 
Device or resource busy
Feb 18 18:12:48 ubuntu-server multipathd[925]: mpatha: ignoring map

multipath
---------
root@ubuntu:~# multipath
24099.227017 | sda: setting scsi timeouts is unsupported for protocol 
scsi:unspec
24099.227049 | sdb: setting scsi timeouts is unsupported for protocol 
scsi:unspec
24099.227085 | mpatha: addmap [0 20971520 multipath 0 0 2 1 service-time 0 1 1 
8:0 1 service-time 0 1 1 8:16 1]
24099.227368 | libdevmapper: ioctl/libdm-iface.c(1990): device-mapper: reload 
ioctl on mpatha (252:1) failed: Device or resource busy
24099.227574 | dm_addmap: libdm task=0 error: Device or resource busy
24099.227653 | mpatha: ignoring map
24099.228300 | sda: setting scsi timeouts is unsupported for protocol 
scsi:unspec
24099.228313 | sdb: setting scsi timeouts is unsupported for protocol 
scsi:unspec
24099.228345 | mpatha: addmap [0 20971520 multipath 0 0 2 1 service-time 0 1 1 
8:0 1 service-time 0 1 1 8:16 1]
24099.228548 | libdevmapper: ioctl/libdm-iface.c(1990): device-mapper: reload 
ioctl on mpatha (252:1) failed: Device or resource busy
24099.228741 | dm_addmap: libdm task=0 error: Device or resource busy
24099.228805 | mpatha: ignoring map

I'm attaching all the relevant logs for you to take a look.

Also, please note that the installer does *NOT* crash when the above steps are
followed WITHOUT multipath disks. The re-provision of the guest goes fine every
time with normal disks. I tried this case with the following Qemu command line:

qemu-system-ppc64 -smp 8 -m 4G \
-enable-kvm \
-boot menu=on \
-drive 
file=/home/amachhiw/images/ubuntu-24.04.1-live-server-ppc64el.iso,media=cdrom \
-drive file=/home/amachhiw/images/ubuntu-disk.qcow2,format=qcow2 \
-net nic,model=virtio \
-net user,hostfwd=::15460-:22 \
-vga none -nographic

Thanks,
Amit

** Bug watch added: bugzilla.linux.ibm.com/ #208604
   https://bugzilla.linux.ibm.com/show_bug.cgi?id=208604

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2080474

Title:
  ubuntu installation failing for systems having SAN disk

To manage notifications about this bug go to:
https://bugs.launchpad.net/subiquity/+bug/2080474/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to