[Bug 1455268] Re: update-grub (grub-probe) during package installation on Cisco UCS B260 servers - Precise deployment fails with hwe-t kernel

Larry Michel larry.michel at canonical.com
Mon Jun 22 19:26:36 UTC 2015


After perhaps 20 minutes or so, it's able to go on and the memtest
completes, but some processes still remains:

+ fs_uuid=d729740f-7516-4530-80fc-a7d77bfe2bde
+ echo search --no-floppy --fs-uuid --set=root d729740f-7516-4530-80fc-a7d77bfe2bde
+ [ x != x ]
+ prepare_boot_cache=	insmod part_msdos
	insmod ext2
	set root='(hd0,msdos1)'
	search --no-floppy --fs-uuid --set=root d729740f-7516-4530-80fc-a7d77bfe2bde
+ test -e /boot/memtest86+.bin
+ make_system_path_relative_to_its_root /boot/memtest86+.bin
+ /usr/bin/grub-mkrelpath /boot/memtest86+.bin
+ MEMTESTPATH=/boot/memtest86+.bin
+ echo Found memtest86+ image: /boot/memtest86+.bin
Found memtest86+ image: /boot/memtest86+.bin
+ cat
+ printf %s\n 	insmod part_msdos
	insmod ext2
	set root='(hd0,msdos1)'
	search --no-floppy --fs-uuid --set=root d729740f-7516-4530-80fc-a7d77bfe2bde
+ cat
+ printf %s\n 	insmod part_msdos
	insmod ext2
	set root='(hd0,msdos1)'
	search --no-floppy --fs-uuid --set=root d729740f-7516-4530-80fc-a7d77bfe2bde
+ cat
done
Setting up linux-image-generic-lts-trusty (3.13.0.55.48) ...
Setting up linux-headers-3.13.0-55 (3.13.0-55.94~precise1) ...
Setting up linux-headers-3.13.0-55-generic (3.13.0-55.94~precise1) ...
Setting up linux-headers-generic-lts-trusty (3.13.0.55.48) ...
Setting up linux-generic-lts-trusty (3.13.0.55.48) ...
Leaving 'diversion of /etc/init/ureadahead.conf to /etc/init/ureadahead.conf.disabled by cloud-init'
8192+0 records in
8192+0 records out
8589934592 bytes (8.6 GB) copied, 6.31303 s, 1.4 GB/s

Before /usr/sbin/grub-probe --device /dev/sda1 --target=fs_uuid
completes:

root at pullman-01:/tmp/tmpO24sZq/target/etc/grub.d# ps -ef|grep grub
root     12328  2588  0 19:01 ?        00:00:00 /bin/sh /usr/sbin/grub-mkconfig -o /boot/grub/grub.cfg
root     12703 12328  0 19:13 ?        00:00:00 /bin/sh /etc/grub.d/20_memtest86+
root     12714 12703  0 19:13 ?        00:00:00 /bin/sh /etc/grub.d/20_memtest86+
root     12715 12714  0 19:13 ?        00:00:00 /bin/sh /etc/grub.d/20_memtest86+
root     12748 12715 30 19:16 ?        00:00:09 /usr/sbin/grub-probe --device /dev/sda1 --target=fs_uuid
root     12759 12361  0 19:17 pts/0    00:00:00 grep --color=auto grub


After:

root at pullman-01:~# ps -ef|grep grub
root     12931  2425  0 19:18 ?        00:00:00 /bin/bash /curtin/helpers/install-grub /tmp/tmpO24sZq/target /dev/sda
root     12938 12931  0 19:18 ?        00:00:00 sh -ec ?            pkg=$1; shift;?            dpkg-reconfigure "$pkg"?            update-grub?            for d in "$@"; do grub-install "$d" || exit; done -- grub-pc /dev/sda
root     12939 12938  0 19:18 ?        00:00:00 /usr/bin/perl -w /usr/sbin/dpkg-reconfigure grub-pc
root     12950 12939  0 19:18 ?        00:00:00 /bin/bash /var/lib/dpkg/info/grub-pc.postinst configure 1.99-21ubuntu3.17
root     13312 12950  0 19:20 ?        00:00:00 /bin/sh /usr/sbin/grub-mkconfig -o /boot/grub/grub.cfg
root     13356 13312 27 19:23 ?        00:00:13 /usr/sbin/grub-probe --device /dev/sda1 --target=fs_uuid
root     13363 12361  0 19:24 pts/0    00:00:00 grep --color=auto grub

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

Title:
  update-grub (grub-probe) during package installation on Cisco UCS B260
  servers - Precise deployment fails with hwe-t kernel

Status in grub2 package in Ubuntu:
  Incomplete

Bug description:
  In bug 1437475, deploying Precise with maas was failing with curtin
  error with generic ephemeral image.

  With hwe-t kernel it gets passed the curtin error.. However, grub
  looks to be stuck. Looking at the diff for install log minutes apart
  right before deployment gets marked as failed by maas, it looks to be
  retrying the last step:

  Last lines of curtin install log:
  ===========================================================================
  Unpacking linux-generic-lts-trusty (from .../linux-generic-lts-trusty_3.13.0.52.45_amd64.deb) ...
  Setting up linux-image-3.13.0-52-generic (3.13.0-52.86~precise1) ...
  Running depmod.
  update-initramfs: deferring update (hook will be called later)
  Examining /etc/kernel/postinst.d.
  run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 3.13.0-52-generic /boot/vmlinuz-3.13.0-52-generic
  run-parts: executing /etc/kernel/postinst.d/initramfs-tools 3.13.0-52-generic /boot/vmlinuz-3.13.0-52-generic
  update-initramfs: Generating /boot/initrd.img-3.13.0-52-generic
  df: Warning: cannot read table of mounted file systems: No such file or directory
  run-parts: executing /etc/kernel/postinst.d/update-notifier 3.13.0-52-generic /boot/vmlinuz-3.13.0-52-generic
  run-parts: executing /etc/kernel/postinst.d/x-grub-legacy-ec2 3.13.0-52-generic /boot/vmlinuz-3.13.0-52-generic
  Searching for GRUB installation directory ... found: /boot/grub
  Searching for default file ... found: /boot/grub/default
  Testing for an existing GRUB menu.lst file ... found: /boot/grub/menu.lst
  Searching for splash image ... none found, skipping ...
  Ignoring non-Xen Kernel on Xen domU host: vmlinuz-3.2.0-80-generic
  Found kernel: /boot/vmlinuz-3.13.0-52-generic
  Found kernel: /boot/memtest86+.bin
  Updating /boot/grub/menu.lst ... done

  run-parts: executing /etc/kernel/postinst.d/zz-update-grub 3.13.0-52-generic /boot/vmlinuz-3.13.0-52-generic
  Generating grub.cfg ...
  Found linux image: /boot/vmlinuz-3.13.0-52-generic
  Found initrd image: /boot/initrd.img-3.13.0-52-generic
  Found linux image: /boot/vmlinuz-3.2.0-80-generic
  Found initrd image: /boot/initrd.img-3.2.0-80-generic
  Found memtest86+ image: /boot/memtest86+.bin
  done
  Setting up linux-image-generic-lts-trusty (3.13.0.52.45) ...
  Setting up linux-headers-3.13.0-52 (3.13.0-52.86~precise1) ...
  Setting up linux-headers-3.13.0-52-generic (3.13.0-52.86~precise1) ...
  Setting up linux-headers-generic-lts-trusty (3.13.0.52.45) ...
  Setting up linux-generic-lts-trusty (3.13.0.52.45) ...
  Leaving 'diversion of /etc/init/ureadahead.conf to /etc/init/ureadahead.conf.disabled by cloud-init'
  8192+0 records in
  8192+0 records out
  8589934592 bytes (8.6 GB) copied, 6.10194 s, 1.4 GB/s
  Setting up swapspace version 1, size = 8388604 KiB
  no label, UUID=56f58ad7-bd54-4c17-be2f-893d3c70cd7e
  Generating grub.cfg ...
  Found linux image: /boot/vmlinuz-3.13.0-52-generic
  Found initrd image: /boot/initrd.img-3.13.0-52-generic
  Found linux image: /boot/vmlinuz-3.2.0-80-generic
  Found initrd image: /boot/initrd.img-3.2.0-80-generic
  Found memtest86+ image: /boot/memtest86+.bin
  done
  Generating grub.cfg ...
  Found linux image: /boot/vmlinuz-3.13.0-52-generic
  Found initrd image: /boot/initrd.img-3.13.0-52-generic
  ===========================================================================

  Diff output:
  ===========================================================================
  ubuntu at pullman-01:~$ diff install.log var/log/curtin/install.log 
  219,221d218
  < Generating grub.cfg ...
  < Found linux image: /boot/vmlinuz-3.13.0-52-generic
  < Found initrd image: /boot/initrd.img-3.13.0-52-generic
  ubuntu at pullman-01:~$ 
  ===========================================================================

  I am attaching some logs I collected including content of /var/log

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



More information about the foundations-bugs mailing list