update-grub (grub-probe) during package installation on Cisco UCS B260 servers - Precise deployment fails with hwe-t kernel
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
grub2 (Ubuntu) |
Won't Fix
|
High
|
Mathieu Trudel-Lapierre | ||
linux (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
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-
Setting up linux-image-
Running depmod.
update-initramfs: deferring update (hook will be called later)
Examining /etc/kernel/
run-parts: executing /etc/kernel/
run-parts: executing /etc/kernel/
update-initramfs: Generating /boot/initrd.
df: Warning: cannot read table of mounted file systems: No such file or directory
run-parts: executing /etc/kernel/
run-parts: executing /etc/kernel/
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-
Found kernel: /boot/vmlinuz-
Found kernel: /boot/memtest86
Updating /boot/grub/menu.lst ... done
run-parts: executing /etc/kernel/
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
Found memtest86+ image: /boot/memtest86
done
Setting up linux-image-
Setting up linux-headers-
Setting up linux-headers-
Setting up linux-headers-
Setting up linux-generic-
Leaving 'diversion of /etc/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-
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
Found memtest86+ image: /boot/memtest86
done
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
=======
Diff output:
=======
ubuntu@
219,221d218
< Generating grub.cfg ...
< Found linux image: /boot/vmlinuz-
< Found initrd image: /boot/initrd.
ubuntu@
=======
I am attaching some logs I collected including content of /var/log
affects: | curtin → grub2 (Ubuntu) |
Changed in grub2 (Ubuntu): | |
assignee: | nobody → Mathieu Trudel-Lapierre (mathieu-tl) |
importance: | Undecided → High |
Changed in grub2 (Ubuntu): | |
status: | New → Invalid |
status: | Invalid → New |
Changed in grub2 (Ubuntu): | |
status: | New → Triaged |
Changed in linux (Ubuntu): | |
status: | Incomplete → Invalid |
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.
======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= === pullman- 01:~$ ps -ef|grep grub grub-mkconfig -o /boot/grub/grub.cfg d/20_memtest86+ d/20_memtest86+ d/20_memtest86+ grub-probe --device /dev/sda1 --target=partmap pullman- 01:~$ sudo kill -9 48455 pullman- 01:~$ ps -ef|grep grub grub-mkconfig -o /boot/grub/grub.cfg d/20_memtest86+ d/20_memtest86+ d/20_memtest86+ grub-probe --device /dev/sda1 --target=drive pullman- 01:~$ ps -ef|grep grub grub-mkconfig -o /boot/grub/grub.cfg d/20_memtest86+ d/20_memtest86+ d/20_memtest86+ grub-probe --device /dev/sda1 --target=drive pullman- 01:~$ ps -ef|grep grub grub-mkconfig -o /boot/grub/grub.cfg d/20_memtest86+ d/20_memtest86+ d/20_memtest86+ grub-probe --device /dev/sda1 --target=drive pullman- 01:~$ sudo kill -9 48747 pullman- 01:~$ ps -ef|grep grub grub-mkconfig -o /boot/grub/grub.cfg d/20_memtest86+ d/20_memtest86+ d/20_memtest86+
ubuntu@
root 48137 48120 0 20:09 pts/2 00:00:00 /bin/sh /usr/sbin/
root 48436 48137 0 20:21 pts/2 00:00:00 /bin/sh /etc/grub.
root 48447 48436 0 20:21 pts/2 00:00:00 /bin/sh /etc/grub.
root 48448 48447 0 20:21 pts/2 00:00:00 /bin/sh /etc/grub.
root 48455 48448 30 20:22 pts/2 00:00:13 /usr/sbin/
ubuntu 48742 48643 0 20:23 pts/4 00:00:00 grep --color=auto grub
ubuntu@
kill: No such process
ubuntu@
root 48137 48120 0 20:09 pts/2 00:00:00 /bin/sh /usr/sbin/
root 48436 48137 0 20:21 pts/2 00:00:00 /bin/sh /etc/grub.
root 48447 48436 0 20:21 pts/2 00:00:00 /bin/sh /etc/grub.
root 48448 48447 0 20:21 pts/2 00:00:00 /bin/sh /etc/grub.
root 48747 48448 22 20:24 pts/2 00:00:04 /usr/sbin/
ubuntu 48751 48643 0 20:24 pts/4 00:00:00 grep --color=auto grub
ubuntu@
root 48137 48120 0 20:09 pts/2 00:00:00 /bin/sh /usr/sbin/
root 48436 48137 0 20:21 pts/2 00:00:00 /bin/sh /etc/grub.
root 48447 48436 0 20:21 pts/2 00:00:00 /bin/sh /etc/grub.
root 48448 48447 0 20:21 pts/2 00:00:00 /bin/sh /etc/grub.
root 48747 48448 29 20:24 pts/2 00:00:06 /usr/sbin/
ubuntu 48753 48643 0 20:24 pts/4 00:00:00 grep --color=auto grub
ubuntu@
root 48137 48120 0 20:09 pts/2 00:00:00 /bin/sh /usr/sbin/
root 48436 48137 0 20:21 pts/2 00:00:00 /bin/sh /etc/grub.
root 48447 48436 0 20:21 pts/2 00:00:00 /bin/sh /etc/grub.
root 48448 48447 0 20:21 pts/2 00:00:00 /bin/sh /etc/grub.
root 48747 48448 32 20:24 pts/2 00:00:10 /usr/sbin/
ubuntu 48756 48643 0 20:24 pts/4 00:00:00 grep --color=auto grub
ubuntu@
ubuntu@
root 48137 48120 0 20:09 pts/2 00:00:00 /bin/sh /usr/sbin/
root 48436 48137 0 20:21 pts/2 00:00:00 /bin/sh /etc/grub.
root 48447 48436 0 20:21 pts/2 00:00:00 /bin/sh /etc/grub.
root 48448 48447 0 20:21 pts/2 00:00:00 /bin/sh /etc/grub.
root 48759 48448 18 2...