← Back to team overview

touch-packages team mailing list archive

[Bug 1391354] Re: Failure to boot ephemeral image for Utopic Fast Installer deployment: no ID_PATH for iSCSI device any more

 

I've verified this change fixes the issue with initramfs mounting iscsi targets .  I did this inside of maas.
 * basically set up functional maas with some nodes, and daily images of utopic imported.

from there

### repro
# get some tools
$ apt-get install cloud-image-utils --no-install-recommends --assume-yes

# find the directory that has the image we're interested in
$ imgd=$(for d in /var/lib/maas/boot-r*/snapshot-*/*/amd64/*/utopic/*; do :; done; echo $d)
img=${imgd}/root-image
kernel=${imgd}/boot-kernel
initrd=${imgd}/boot-initrd

$ echo $imgd
/var/lib/maas/boot-resources/snapshot-20141210-025929/ubuntu/amd64/hwe-u/utopic/daily

## back some things up
$ for f in $img $kernel $initrd; do [ -f "$f.dist" ] || cp "$f" "$f.dist"; done

## run the 'fix' script attached inside the mounted root-image
$ mount-image-callback --system-resolvconf "$img" \
   chroot _MOUNTPOINT_ /bin/bash < fix > update-kernels.tar

## just for reference
$ tar tvf update-kernels.tar 
-rw-r--r-- root/root  26262410 2014-12-10 02:54 initrd.img-3.16.0-25-generic
-rw-r--r-- root/root   6402112 2014-12-10 02:54 vmlinuz-3.16.0-25-generic

$ d=$(mktemp -d)
$ tar -C "$d" -xf - < update-kernels.tar
cp $d/initrd* $initrd



** Attachment added: "script run inside mounted image to update it"
   https://bugs.launchpad.net/maas/+bug/1391354/+attachment/4277323/+files/fix-image

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

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to systemd in Ubuntu.
https://bugs.launchpad.net/bugs/1391354

Title:
  Failure to boot ephemeral image for Utopic Fast Installer deployment:
  no ID_PATH for iSCSI device any more

Status in MAAS:
  Incomplete
Status in systemd package in Ubuntu:
  Fix Released
Status in systemd source package in Utopic:
  Fix Committed

Bug description:
  I am running into issues with the latest Utopic daily ephemeral images
  for Utopic:

   	Release 	Architecture 	Size 	Nodes deployed 	Last update
  	14.10	i386	391.2 MB	0	Tue Nov 11 00:36:04 2014
  	14.10	amd64	395.6 MB	0	Tue Nov 11 00:36:04 2014
  	14.10	ppc64el	425.8 MB	1	Tue Nov 11 00:36:03 2014
  	14.04 LTS	i386	373.3 MB	0	Tue Nov 11 00:36:04 2014
  	14.04 LTS	ppc64el	408.5 MB	1	Tue Nov 11 00:36:04 2014
  	14.04 LTS	amd64	380.5 MB	52	Tue Nov 11 00:36:03 2014
  	12.04 LTS	amd64	517.5 MB	245	Tue Nov 11 00:36:05 2014
  	12.04 LTS	i386	487.3 MB	0	Tue Nov 11 00:36:05 2014

  I have tried installing 2 physical servers, moline and premier as well
  as a ppc64el VM, huffman-vm10, and I get the same failure for each.

  ============================================================================

  iscsistart: Logging into iqn.2004-05.com.ubuntu:maas:ephemeral-ubuntu-ppc64el-generic-utopic-daily 10.245.0.10:3260,1
  iscsistart: can not connect to iSCSI daemon (111)!
  iscsistart: version 2.0-873
  [   17.810223] sd 1:0:0:1: [sdb] Write Protect is on
  [   17.811504] sd 1:0:0:1: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
  [   17.828817]  sdb: unknown partition table
  [   17.839360] sd 1:0:0:1: [sdb] Attached SCSI disk
  iscsistart: initiator reported error (15 - session exists)
  done.
  [   35.868265] random: nonblocking pool is initialized
  Begin: Loading essential drivers ... done.
  Begin: Running /scripts/init-premount ... done.
  Begin: Mounting root file system ... Begin: Running /scripts/local-top ... IP-Config: eth0 hardware address 52:54:00:95:6b:54 mtu 1500 DHCP RARP
  IP-Config: no response after 2 secs - giving up
  IP-Config: eth0 hardware address 52:54:00:95:6b:54 mtu 1500 DHCP RARP
  hostname huffman-vm-10 hostname huffman-vm-10 IP-Config: eth0 complete (dhcp from 10.245.0.10):
   address: 10.245.0.173     broadcast: 10.245.63.255    netmask: 255.255.192.0   
   gateway: 10.245.0.1       dns0     : 10.245.0.10      dns1   : 0.0.0.0         
   domain : oil                                                             
   rootserver: 10.245.0.10 rootpath: 
   filename  : pxelinux.0
  iscsistart: Logging into iqn.2004-05.com.ubuntu:maas:ephemeral-ubuntu-ppc64el-generic-utopic-daily 10.245.0.10:3260,1
  iscsistart: version 2.0-873
  iscsistart: Connection1:0 to [target: iqn.2004-05.com.ubuntu:maas:ephemeral-ubuntu-ppc64el-generic-utopic-daily, portal: 10.245.0.10,3260] through [iface: default] is operational now
  iscsistart: Logging into iqn.2004-05.com.ubuntu:maas:ephemeral-ubuntu-ppc64el-generic-utopic-daily 10.245.0.10:3260,1
  iscsistart: can not connect to iSCSI daemon (111)!
  iscsistart: version 2.0-873
  iscsistart: initiator reported error (15 - session exists)
  done.
  Gave up waiting for root device.  Common problems:
   - Boot args (cat /proc/cmdline)
     - Check rootdelay= (did the system wait long enough?)
     - Check root= (did the system wait for the right device?)
   - Missing modules (cat /proc/modules; ls /dev)
  ALERT!  /dev/disk/by-path/ip-10.245.0.10:3260-iscsi-iqn.2004-05.com.ubuntu:maas:ephemeral-ubuntu-ppc64el-generic-utopic-daily-lun-1 does not exist.  Dropping to a shell!
  [   78.856173] hidraw: raw HID events driver (C) Jiri Kosina
  [   78.860069] usbcore: registered new interface driver usbhid
  [   78.860272] usbhid: USB HID core driver

  
  BusyBox v1.22.1 (Ubuntu 1:1.22.0-8ubuntu1) built-in shell (ash)
  Enter 'help' for a list of built-in commands.

  (initramfs)

  
  ============================================================================

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