Test for scsi-modules udeb in Disco:
---

Check the original/modified udeb contents:

$ dpkg-deb -c scsi-modules-4.19.0-13-generic-di_4.19.0-13.14_amd64.udeb | grep 
iscsi_ibft.ko
$

$ dpkg-deb -c 
scsi-modules-4.19.0-13-generic-di_4.19.0-13.14+test20190221b1_amd64.udeb | grep 
iscsi_ibft.ko
-rw-r--r-- root/root     17393 2019-02-21 19:27 
./lib/modules/4.19.0-13-generic/kernel/drivers/firmware/iscsi_ibft.ko

Check the module loads in the installer:

$ wget http://archive.ubuntu.com/ubuntu/dists/disco/main/installer-
amd64/current/images/netboot/ubuntu-installer/amd64/{linux,initrd.gz}

$ virt-install \
>   --name disco-ibft \
>   --vcpus 2 \
>   --memory 1024 \
>   --network user,model=virtio \
>   --graphics none \
>   --disk none \
>   --boot kernel=linux,initrd=initrd.gz,kernel_args='console=ttyS0'

After network configuration, udeb download/install, in users/password,
select go back and exit to shell.

Original udeb already downloaded and does not contain module:

~ # grep 'retrieving scsi.modules' /var/log/syslog 
Feb 22 13:08:57 anna[1509]: DEBUG: retrieving scsi-modules-4.19.0-13-generic-di 
4.19.0-13.14

~ # modinfo -n iscsi_ibft
modinfo: ERROR: Module iscsi_ibft not found.

Download modified udeb, install, test module load:

~ # wget https://.../scsi-modules-4.19.0-13-generic-
di_4.19.0-13.14+test20190221b1_amd64.udeb

~ # udpkg -i 
scsi-modules-4.19.0-13-generic-di_4.19.0-13.14+test20190221b1_amd64.udeb
~ # depmod -a

~ # modinfo -n iscsi_ibft
/lib/modules/4.19.0-13-generic/kernel/drivers/firmware/iscsi_ibft.ko

~ # modprobe iscsi_ibft

~ # lsmod | grep ^iscsi_ibft
iscsi_ibft             16384  0

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1817321

Title:
  installer does not support iSCSI iBFT

Status in linux package in Ubuntu:
  Confirmed

Bug description:
  [Impact]

   * It's not possible to access iBFT (iSCSI Boot Firmware Table) information
     (settings for network interface, initiator, and target) in the installer
     because the 'iscsi_ibft' module is not present in udeb packages.

   * Even if it was, the installer does not handle iBFT information at all,
     thus any settings are ignored, and iSCSI-related configuration has to
     be done manually or with workarounds.

   * This impacts user-experience and automatic installation on systems and
     deployments which actually do provide the iBFT feature and information,
     but cannot use it practically.

   * With proper iBFT support in the installer (kernel module in udeb package
     and automatic iSCSI-related configuration) users will be able to rely on
     iBFT to install/deploy Ubuntu on their servers and datacenters.

   * These fixes add the 'iscsi_ibft' kernel module in the scsi-modules udeb,
     and configure network/iSCSI according to iBFT information in disk-detect.

     This is done in disk-detect so that the iSCSI LUNs are detected as disks
     (useful in case of no other disks in the system so the installer doesn't
     complain nor wait too long) and that any partman-related preseed options
     are not required and may be still available for the user.

  [Test Case]

   * linux package / kernel module in udeb:

     $ dpkg-deb -c scsi-modules_*.udeb | grep iscsi_ibft.ko

     Check the module loads in the installer environment.
     See comment with example for disco.

   * d-i/hw-detect package:
     (to be done)

  [Regression Potential]

   * linux package: low, the kernel module is not loaded by default,
     and only checks whether iBFT information is present in firmware,
     then exposes that in sysfs in read-only mode.

   * d-i/hw-detect:
     (to be done)

  [Other Info]
   
   * This has been verified both by the developer with a simple iSCSI
     iBFT environment (2 VMs: iSCSI target & initiator with UEFI+iPXE)
     and by an user with system/firmware that supports iBFT for iSCSI.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1817321/+subscriptions

-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to     : kernel-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kernel-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to