Testing on amd64:

livecd-rootfs 24.04.97 (currently in -proposed)
-----------------------------------------------

livefs build run with -proposed enabled:

https://launchpad.net/~ogayot/+livefs/ubuntu/noble/test/+build/969780

build logs show that multipath-tools-boot got installed.

+ chroot chroot /usr/bin/env -i HOME=/root 
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin TERM= 
DEBIAN_FRONTEND=noninteractive DEBIAN_PRIORITY=critical DEBCONF_NOWARNINGS=yes 
PASS=ubuntu-server-minimal.ubuntu-server.installer xargs 
--arg-file=/root/packages.chroot apt-get --yes 
-oDebug::pkgDepCache::AutoInstall=yes install
Reading package lists...
Building dependency tree...
Reading state information...
  Installing kpartx-boot:amd64 as Depends of multipath-tools-boot:amd64
The following additional packages will be installed:
  kpartx-boot
Suggested packages:
  smbclient winbind molly-guard monkeysphere ssh-askpass
The following NEW packages will be installed:
  casper cifs-utils firmware-sof-signed keyutils kpartx-boot libtalloc2
  libwbclient0 libwrap0 linux-firmware localechooser-data multipath-tools-boot


the two initrd artifacts contain multipath scripts:

$ unmkinitramfs 'livecd.ubuntu-server.initrd-generic' initrd-default
$ find initrd-default/ -name multipath
initrd-default/scripts/init-top/multipath
initrd-default/scripts/local-premount/multipath
initrd-default/scripts/init-bottom/multipath
initrd-default/etc/multipath
initrd-default/usr/sbin/multipath
initrd-default/usr/lib/multipath

$ unmkinitramfs 'livecd.ubuntu-server.initrd-generic-hwe' initrd-hwe
$ find initrd-hwe/ -name multipath
initrd-hwe/scripts/init-top/multipath
initrd-hwe/scripts/local-premount/multipath
initrd-hwe/scripts/init-bottom/multipath
initrd-hwe/etc/multipath
initrd-hwe/usr/sbin/multipath
initrd-hwe/usr/lib/multipath

==> [ OK ]

multipath-tools-boot 0.9.4-5ubuntu8.2
-------------------------------------
The livefs build shows that the right version of multipath-tools-boot was 
installed, and the right version ended up in the initramfs:

Get:9 http://archive.ubuntu.com/ubuntu noble-proposed/main amd64
multipath-tools amd64 0.9.4-5ubuntu8.2 [310 kB]


1. Step one on the [ Test Plan ] is to get an Ubuntu Server ISO built using 
livecd-rootfs and multipath-tools-boot, both from proposed:

Started from a daily noble ISO located in /srv/iso/noble-live-server-
amd64.iso

Used dbungert's livecd-rootfs-testing scripts
(https://git.launchpad.net/~dbungert/+git/livecd-rootfs-testing/tree) to
download the livefs artifacts and inject them into the noble ISO:

a. $ ./dl-livefs-build 
https://launchpad.net/~ogayot/+livefs/ubuntu/noble/test/+build/969780
b. Applied this diff:

--- a/iso-repack
+++ b/iso-repack
@@ -4,8 +4,8 @@ set -eux
 # unpack an ISO, copy new install bits into the ISO, and repack it
 # uses https://github.com/mwhudson/livefs-editor for ISO manipulation
 
-src=/srv/iso/input.iso
-tgt=/srv/iso/output.iso
+src=/srv/iso/noble-live-server-amd64.iso
+tgt=/srv/iso/noble-updated.iso
 
 startdir=$PWD
 builddir=.

c. $ ./iso-repack

With the new updated ISO now at /srv/iso/noble-updated.iso, I followed
the rest of the [ Test Plan ]:

2. Ensured the ISO contains multipath support:
   $ sudo mount -o loop,ro /srv/iso/noble-updated.iso /mnt/loop
   $ mkdir /tmp/test-initramfs
   $ unmkinitramfs /mnt/loop/casper/initrd /tmp/test-initramfs/
   $ cd /tmp/test-initramfs/
   $ find -name multipathd
   ./usr/sbin/multipathd

==> [ OK ]

3. Installed a 26.04 VM that uses multipath + LVM
   $ kvm-test --install --iso /srv/iso/ubuntu-26.04-live-server-amd64.iso 
--disk-interface scsi-multipath --recreate-target

4. Attempted installing Ubuntu 24.04 over it, using the patched ISO:
   $ kvm-test --install --iso /srv/iso/noble-updated.iso --disk-interface 
scsi-multipath --reuse-target

   (guest) $ systemctl status multipathd      ==> [ OK ], no EBUSY error
   (guest) $ ls /dev/mapper/
   control mpatha mpatha-part1 mpatha-part2 mpatha-part3 ubuntu--vg-ubuntu--lv
   =>> [ OK ], mpatha is up

   After reaching the storage screen, the disk is detected as multipath:
   [ 0xQEMU_QEMU_HARDDISK_MPIO0     multipath device 12.000G ]
   ==> [ OK ]
   
   Eventually, the installation was successful!
   ==> [ OK ]

Everything looks fine from my standpoint. Marking verification-done-
noble.

** Tags removed: verification-needed-noble
** Tags added: verification-done-noble

-- 
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:
  [SRU] cannot install Ubuntu Server over a multipath disk used as an
  LVM PV

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


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to