Comment 2 for bug 1455268

Revision history for this message
Larry Michel (lmic) wrote : Re: update-grub does not complete for deployment of Precise with hwe-t kernel and Cisco UCS B260 servers

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@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@pullman-01:~$ sudo kill -9 48455
kill: No such process
ubuntu@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@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@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@pullman-01:~$ sudo kill -9 48747
ubuntu@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@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@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
================================================================================