[Bug 1455268] Re: update-grub does not complete for deployment of Precise with hwe-t kernel and Cisco UCS B260 servers

Larry Michel larry.michel at canonical.com
Sun May 17 20:43:18 UTC 2015


Using the same cisco system, I deployed trusty. I then installed a
package and installation of the package around the same location. I then
found that it was hanging in grub-probe. I kill that process a couple of
times and the installation proceeded and completed afterwards. The
Killed message showed that it was the right grub-probe process that I
killed.

================================================================================
ubuntu at pullman-01:~$ ps -ef|grep grub
root     48137 48120  0 20:09 pts/2    00:00:00 /bin/sh /usr/sbin/grub-mkconfig -o /boot/grub/grub.cfg
root     48436 48137  0 20:21 pts/2    00:00:00 /bin/sh /etc/grub.d/20_memtest86+
root     48447 48436  0 20:21 pts/2    00:00:00 /bin/sh /etc/grub.d/20_memtest86+
root     48448 48447  0 20:21 pts/2    00:00:00 /bin/sh /etc/grub.d/20_memtest86+
root     48455 48448 30 20:22 pts/2    00:00:13 /usr/sbin/grub-probe --device /dev/sda1 --target=partmap
ubuntu   48742 48643  0 20:23 pts/4    00:00:00 grep --color=auto grub
ubuntu at pullman-01:~$ sudo kill -9 48455
kill: No such process
ubuntu at pullman-01:~$ ps -ef|grep grub
root     48137 48120  0 20:09 pts/2    00:00:00 /bin/sh /usr/sbin/grub-mkconfig -o /boot/grub/grub.cfg
root     48436 48137  0 20:21 pts/2    00:00:00 /bin/sh /etc/grub.d/20_memtest86+
root     48447 48436  0 20:21 pts/2    00:00:00 /bin/sh /etc/grub.d/20_memtest86+
root     48448 48447  0 20:21 pts/2    00:00:00 /bin/sh /etc/grub.d/20_memtest86+
root     48747 48448 22 20:24 pts/2    00:00:04 /usr/sbin/grub-probe --device /dev/sda1 --target=drive
ubuntu   48751 48643  0 20:24 pts/4    00:00:00 grep --color=auto grub
ubuntu at pullman-01:~$ ps -ef|grep grub
root     48137 48120  0 20:09 pts/2    00:00:00 /bin/sh /usr/sbin/grub-mkconfig -o /boot/grub/grub.cfg
root     48436 48137  0 20:21 pts/2    00:00:00 /bin/sh /etc/grub.d/20_memtest86+
root     48447 48436  0 20:21 pts/2    00:00:00 /bin/sh /etc/grub.d/20_memtest86+
root     48448 48447  0 20:21 pts/2    00:00:00 /bin/sh /etc/grub.d/20_memtest86+
root     48747 48448 29 20:24 pts/2    00:00:06 /usr/sbin/grub-probe --device /dev/sda1 --target=drive
ubuntu   48753 48643  0 20:24 pts/4    00:00:00 grep --color=auto grub
ubuntu at pullman-01:~$ ps -ef|grep grub
root     48137 48120  0 20:09 pts/2    00:00:00 /bin/sh /usr/sbin/grub-mkconfig -o /boot/grub/grub.cfg
root     48436 48137  0 20:21 pts/2    00:00:00 /bin/sh /etc/grub.d/20_memtest86+
root     48447 48436  0 20:21 pts/2    00:00:00 /bin/sh /etc/grub.d/20_memtest86+
root     48448 48447  0 20:21 pts/2    00:00:00 /bin/sh /etc/grub.d/20_memtest86+
root     48747 48448 32 20:24 pts/2    00:00:10 /usr/sbin/grub-probe --device /dev/sda1 --target=drive
ubuntu   48756 48643  0 20:24 pts/4    00:00:00 grep --color=auto grub
ubuntu at pullman-01:~$ sudo kill -9 48747
ubuntu at pullman-01:~$ ps -ef|grep grub
root     48137 48120  0 20:09 pts/2    00:00:00 /bin/sh /usr/sbin/grub-mkconfig -o /boot/grub/grub.cfg
root     48436 48137  0 20:21 pts/2    00:00:00 /bin/sh /etc/grub.d/20_memtest86+
root     48447 48436  0 20:21 pts/2    00:00:00 /bin/sh /etc/grub.d/20_memtest86+
root     48448 48447  0 20:21 pts/2    00:00:00 /bin/sh /etc/grub.d/20_memtest86+
root     48759 48448 18 20:24 pts/2    00:00:00 /usr/sbin/grub-probe --device /dev/sda1 --target=fs_uuid
ubuntu   48761 48643  0 20:24 pts/4    00:00:00 grep --color=auto grub
ubuntu at pullman-01:~$ sudo kill -9 48759
================================================================================

On the installation window, the installation proceeds to completion:
================================================================================
update-alternatives: using /usr/share/images/desktop-base/spacefun-wallpaper.svg to provide /usr/share/images/desktop-base/desktop-background (desktop-background) in auto mode.
update-alternatives: using /usr/share/images/desktop-base/spacefun-splash.svg to provide /usr/share/images/desktop-base/desktop-splash (desktop-splash) in auto mode.
update-alternatives: using /usr/share/images/desktop-base/spacefun-grub.png to provide /usr/share/images/desktop-base/desktop-grub.png (desktop-grub) in auto mode.
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





Killed
Killed
Found memtest86+ image: /boot/memtest86+.bin
done
update-initramfs: deferring update (trigger activated)
Setting up libxfce4util-common (4.8.2-1) ...
Setting up libxfce4util4 (4.8.2-1) ...
Setting up libexo-common (0.6.2-4) ...
Setting up libexo-helpers (0.6.2-4) ...
...
Setting up miscfiles (1.4.2.dfsg.1-9) ...
Ignoring install-info called from maintainer script
The package miscfiles should be rebuilt with new debhelper to get trigger support
Ignoring install-info called from maintainer script
The package miscfiles should be rebuilt with new debhelper to get trigger support
Setting up orage (4.8.3-1) ...
Setting up tango-icon-theme (0.8.90-5) ...
Setting up thunar (1.2.3-3ubuntu2) ...
Setting up thunar-volman (0.6.1-0ubuntu1) ...
Setting up tumbler-common (0.1.24-0ubuntu1) ...
Setting up tumbler (0.1.24-0ubuntu1) ...
Setting up xfwm4 (4.8.3-1ubuntu1.1) ...
Setting up xfdesktop4-data (4.8.3-2ubuntu7) ...
Setting up xfdesktop4 (4.8.3-2ubuntu7) ...
Setting up xfce4-appfinder (4.8.0-3) ...
Setting up xfce4-mixer (1:4.8.0-2ubuntu1) ...
Setting up xfce4 (4.8.0.3) ...
Setting up xfce4-notifyd (0.2.2-1) ...
Setting up xfce4-volumed (0.1.13-2ubuntu1) ...
Setting up xscreensaver-data (5.15-2ubuntu1) ...
Setting up xscreensaver (5.15-2ubuntu1) ...
Processing triggers for initramfs-tools ...
update-initramfs: Generating /boot/initrd.img-3.13.0-52-generic
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
Processing triggers for dictionaries-common ...
ubuntu at pullman-01:~$ 
================================================================================

going back to the ps -ef output from the log that I included earlier, I can see that it's the same exact issue that prevented the deployment from completing:
================================================================================
root     13218 12856  0 22:35 ?        00:00:00 /bin/sh /usr/sbin/grub-mkconfig -o /boot/grub/grub.cfg
root     13251     2  0 22:38 ?        00:00:00 [kworker/u121:3]
root     13497     2  0 22:45 ?        00:00:00 [kworker/u122:0]
root     13551 13218  0 22:46 ?        00:00:00 /bin/sh /etc/grub.d/20_memtest86+
root     13562 13551  0 22:46 ?        00:00:00 /bin/sh /etc/grub.d/20_memtest86+
root     13563 13562  0 22:46 ?        00:00:00 /bin/sh /etc/grub.d/20_memtest86+
root     13564 13562  0 22:46 ?        00:00:00 sed -e s/^/\t/
root     13600 13563 28 22:47 ?        00:00:10 /usr/sbin/grub-probe --device /dev/sda1 --target=partmap
================================================================================

-- 
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:
  New

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