cloud images with open-iscsi do not have iscsi support in initramfs

Bug #1533809 reported by Scott Moser
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
cloud-images
Confirmed
Low
Unassigned

Bug Description

The cloud images in xenial have open-iscsi installed.
owever, the initramfs built there do not have open-iscsi support.
The package doesn't enable itself for initramfs-tools by default.

In order to have open-iscsi in the initramfs we need to touch
/etc/iscsi/iscsi.initramfs and update-initramfs before the build
process ends.

The net change of doing this is
 a.) current and future initramfs will have open-iscsi support
 b.) initramfs grows by ~ 120k due to inclusion of (iscsi_ibft.ko and /sbin/iscsistart)
 c.) shipped initramfs has support for iscsi boot params ad documented in /usr/share/doc/open-iscsi/README.Debian.gz

A specific example of what affect that has:
$ cat /etc/cloud/build.info
build_name: server
serial: 20151212

$ kver=$(uname -r) ; echo $kver
4.3.0-2-generic
$ initrd=/boot/initrd.img-$kver

## build one with
$ rm -f /etc/iscsi/iscsi.initramfs ; touch /etc/iscsi/iscsi.initramfs
$ update-initramfs -u -k $kver
$ cp $initrd $initrd.open-iscsi

## build one without
$ rm -f /etc/iscsi/iscsi.initramfs
$ update-initramfs -u -k $kver
update-initramfs: Generating /boot/initrd.img-4.3.0-2-generic
$ cp $initrd $initrd.no-open-iscsi

$ ls -l $initrd.*open*
-rw-r--r-- 1 root root 10976919 Jan 13 19:27 /boot/initrd.img-4.3.0-2-generic.no-open-iscsi
-rw-r--r-- 1 root root 11098059 Jan 13 19:27 /boot/initrd.img-4.3.0-2-generic.open-iscsi

$ lsinitramfs $initrd.no-open-iscsi | sort > /tmp/no-open-iscsi
$ lsinitramfs $initrd.open-iscsi | sort > /tmp/open-iscsi

$ diff -u /tmp/no-open-iscsi /tmp/open-iscsi
--- /tmp/no-open-iscsi 2016-01-13 19:29:02.083445519 +0000
+++ /tmp/open-iscsi 2016-01-13 19:29:47.995460389 +0000
@@ -119,7 +119,7 @@
 bin/which
 bin/yes
 bin/zcat
-/boot/initrd.img-4.3.0-2-generic.no-open-iscsi
+/boot/initrd.img-4.3.0-2-generic.open-iscsi
 conf
 conf/arch.conf
 conf/conf.d
@@ -133,6 +133,8 @@
 etc/default/keyboard
 etc/e2fsck.conf
 etc/fstab
+etc/initiatorname.iscsi
+etc/iscsi.initramfs
 etc/ld.so.cache
 etc/ld.so.conf
 etc/ld.so.conf.d
@@ -301,6 +303,8 @@
 lib/modules/4.3.0-2-generic/kernel/drivers/block/nbd.ko
 lib/modules/4.3.0-2-generic/kernel/drivers/block/nvme.ko
 lib/modules/4.3.0-2-generic/kernel/drivers/block/rbd.ko
+lib/modules/4.3.0-2-generic/kernel/drivers/firmware
+lib/modules/4.3.0-2-generic/kernel/drivers/firmware/iscsi_ibft.ko
 lib/modules/4.3.0-2-generic/kernel/drivers/hid
 lib/modules/4.3.0-2-generic/kernel/drivers/hid/hid-hyperv.ko
 lib/modules/4.3.0-2-generic/kernel/drivers/hid/hid.ko
@@ -543,6 +547,7 @@
 sbin/fsck
 sbin/fsck.ext4
 sbin/hwclock
+sbin/iscsistart
 sbin/logsave
 sbin/lvm
 sbin/mdadm

Revision history for this message
Scott Moser (smoser) wrote :

I marked this 'low' as the maas-images project builds initramfs with this change in place, and it doesn't actually have to be present if the root system if the initramfs has it.

tags: added: cloud-images cloud-images-build
Changed in ubuntu:
status: New → Confirmed
importance: Undecided → Low
Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. It seems that your bug report is not filed about a specific source package though, rather it is just filed against Ubuntu in general. It is important that bug reports be filed about source packages so that people interested in the package can find the bugs about it. You can find some hints about determining what package your bug might be about at https://wiki.ubuntu.com/Bugs/FindRightPackage. You might also ask for help in the #ubuntu-bugs irc channel on Freenode.

To change the source package that this bug is filed about visit https://bugs.launchpad.net/ubuntu/+bug/1533809/+editstatus and add the package name in the text box next to the word Package.

[This is an automated message. I apologize if it reached you inappropriately; please just reply to this message indicating so.]

tags: added: bot-comment
Mathew Hodson (mhodson)
affects: ubuntu → cloud-images
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.