Failed to install grub-ieee1275 from Trusty release-pocket on a Power8 system

Bug #1792948 reported by Po-Hsu Lin
18
This bug affects 2 people
Affects Status Importance Assigned to Milestone
The Ubuntu-power-systems project
Invalid
Critical
Canonical Foundations Team
ubuntu-kernel-tests
Invalid
Critical
Unassigned
grub2 (Ubuntu)
Invalid
Critical
Unassigned

Bug Description

This issue happened before as described in bug 1641567, but it's gone for a while.

However, this Power8 node (modoc) haven't been tested for a couple months so I'm not sure when this issue came back.

Steps:
  1. Deploy a Power8 system with Trusty
  2. Run a dist-upgrade, which will pull-in the grub-ieee1275 package.

Result:
$ sudo apt-get dist-upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages will be upgraded:
  grub-common grub-ieee1275 grub-ieee1275-bin grub2-common
4 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 2606 kB of archives.
After this operation, 1024 B of additional disk space will be used.
Do you want to continue? [Y/n]
Get:1 http://ports.ubuntu.com/ubuntu-ports/ trusty-updates/main grub-ieee1275 ppc64el 2.02~beta2-9ubuntu1.15 [45.4 kB]
Get:2 http://ports.ubuntu.com/ubuntu-ports/ trusty-updates/main grub-ieee1275-bin ppc64el 2.02~beta2-9ubuntu1.15 [527 kB]
Get:3 http://ports.ubuntu.com/ubuntu-ports/ trusty-updates/main grub2-common ppc64el 2.02~beta2-9ubuntu1.15 [494 kB]
Get:4 http://ports.ubuntu.com/ubuntu-ports/ trusty-updates/main grub-common ppc64el 2.02~beta2-9ubuntu1.15 [1540 kB]
Fetched 2606 kB in 0s (2689 kB/s)
Preconfiguring packages ...
(Reading database ... 53407 files and directories currently installed.)
Preparing to unpack .../grub-ieee1275_2.02~beta2-9ubuntu1.15_ppc64el.deb ...
Unpacking grub-ieee1275 (2.02~beta2-9ubuntu1.15) over (2.02~beta2-9ubuntu1.14) ...
Preparing to unpack .../grub-ieee1275-bin_2.02~beta2-9ubuntu1.15_ppc64el.deb ...
Unpacking grub-ieee1275-bin (2.02~beta2-9ubuntu1.15) over (2.02~beta2-9ubuntu1.14) ...
Preparing to unpack .../grub2-common_2.02~beta2-9ubuntu1.15_ppc64el.deb ...
Unpacking grub2-common (2.02~beta2-9ubuntu1.15) over (2.02~beta2-9ubuntu1.14) ...
Preparing to unpack .../grub-common_2.02~beta2-9ubuntu1.15_ppc64el.deb ...
Unpacking grub-common (2.02~beta2-9ubuntu1.15) over (2.02~beta2-9ubuntu1.14) ...
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
Processing triggers for install-info (5.2.0.dfsg.1-2) ...
Processing triggers for ureadahead (0.100.0-16) ...
Setting up grub-common (2.02~beta2-9ubuntu1.15) ...
Setting up grub2-common (2.02~beta2-9ubuntu1.15) ...
Setting up grub-ieee1275-bin (2.02~beta2-9ubuntu1.15) ...
Setting up grub-ieee1275 (2.02~beta2-9ubuntu1.15) ...
locale: Cannot set LC_ALL to default locale: No such file or directory
device-mapper: deps ioctl on 1IBM\x20\x20\x20\x20\x20IPR-0\x20\x20\x205EC33900000000A0 failed: No such device or address
device-mapper: deps ioctl on 1IBM\x20\x20\x20\x20\x20IPR-0\x20\x20\x205EC33900000000C0 failed: No such device or address
device-mapper: deps ioctl on 1IBM\x20\x20\x20\x20\x20IPR-0\x20\x20\x205EC3390000000020 failed: No such device or address
device-mapper: deps ioctl on 1IBM\x20\x20\x20\x20\x20IPR-0\x20\x20\x205EC3390000000040 failed: No such device or address
device-mapper: deps ioctl on 1IBM\x20\x20\x20\x20\x20IPR-0\x20\x20\x205EC3390000000060 failed: No such device or address
Installing for powerpc-ieee1275 platform.
grub-install: error: cannot find a GRUB drive for /dev/sda1. Check your device.map.
dpkg: error processing package grub-ieee1275 (--configure):
 subprocess installed post-installation script returned error exit status 1
E: Sub-process /usr/bin/dpkg returned an error code (1)

/boot/grub/grub.cfg: https://pastebin.ubuntu.com/p/xg5r94qpzt/
fdisk -l output: https://pastebin.ubuntu.com/p/VkJdymwsgB/

ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: grub-ieee1275 2.02~beta2-9ubuntu1.15
ProcVersionSignature: User Name 3.13.0-158.208-generic 3.13.11-ckt39
Uname: Linux 3.13.0-158-generic ppc64le
ApportVersion: 2.14.1-0ubuntu3.29
Architecture: ppc64el
Date: Mon Sep 17 13:45:49 2018
ProcLoadAvg: 0.35 0.41 0.21 1/1089 5202
ProcLocks:
 1: FLOCK ADVISORY WRITE 3242 00:11:63609 0 EOF
 2: POSIX ADVISORY WRITE 3327 00:11:55446 0 EOF
 3: POSIX ADVISORY WRITE 3176 00:11:61549 0 EOF
 4: POSIX ADVISORY WRITE 3286 00:11:83972 0 EOF
ProcSwaps:
 Filename Type Size Used Priority
 /swap.img file 8388544 0 -1
ProcVersion: Linux version 3.13.0-158-generic (buildd@bos02-ppc64el-005) (gcc version 4.8.4 (User Name 4.8.4-2ubuntu1~14.04.4) ) #208-User Name SMP Fri Aug 24 17:05:25 UTC 2018
SourcePackage: grub2
UpgradeStatus: No upgrade log present (probably fresh install)
cpu_cores: Number of cores present = 20
cpu_coreson: Number of cores online = 20
cpu_smt: SMT=8

Revision history for this message
Po-Hsu Lin (cypressyew) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in grub2 (Ubuntu):
status: New → Confirmed
Revision history for this message
Satheesh Rajendran (sathnaga) wrote :

Fresh installation failing on IBM Power8 system.

Sep 21 17:42:11 in-target: Setting up grub-ieee1275 (2.02~beta2-9ubuntu1.15) ...
Sep 21 17:42:11 in-target: Installing for powerpc-ieee1275 platform.
Sep 21 17:42:12 in-target: grub-install: error: cannot find a GRUB drive for /dev/sda1. Check your device.map.
Sep 21 17:42:12 in-target: dpkg: error processing package grub-ieee1275 (--configure):
Sep 21 17:42:12 in-target: subprocess installed post-installation script returned error exit status 1
Sep 21 17:42:12 in-target: Errors were encountered while processing:
Sep 21 17:42:12 in-target: grub-ieee1275
Sep 21 17:42:12 in-target: E: Sub-process /usr/bin/dpkg returned an error code (1)
Sep 21 17:42:12 in-target:
Sep 21 17:42:12 in-target: tasksel: aptitude failed (100)
Sep 21 17:42:12 in-target: Setting up grub-ieee1275 (2.02~beta2-9ubuntu1.15) ...
Sep 21 17:42:12 in-target: Installing for powerpc-ieee1275 platform.
Sep 21 17:42:12 in-target: grub-install: error: cannot find a GRUB drive for /dev/sda1. Check your device.map.
Sep 21 17:42:13 in-target: dpkg: error processing package grub-ieee1275 (--configure):
Sep 21 17:42:13 in-target: subprocess installed post-installation script returned error exit status 1
Sep 21 17:42:13 in-target: Errors were encountered while processing:
Sep 21 17:42:13 in-target: grub-ieee1275
Sep 21 17:42:13 main-menu[1127]: WARNING **: Configuring 'pkgsel' failed with error code 1
Sep 21 17:42:13 main-menu[1127]: WARNING **: Menu item 'pkgsel' failed.
Sep 21 17:42:24 main-menu[1127]: INFO: Modifying debconf priority limit from 'medium' to 'low'
Sep 21 17:42:24 debconf: Setting debconf/priority to low
Sep 21 17:42:50 main-menu[1127]: INFO: Menu item 'save-logs' selected

Revision history for this message
Andrew Cloke (andrew-cloke) wrote :

Currently blocked testing of LP#1765364.

Changed in ubuntu-power-systems:
assignee: nobody → Canonical Foundations Team (canonical-foundations)
importance: Undecided → Critical
tags: added: triage-g
tags: added: id-5baa3868d28e1d4ff6542a75
Manoj Iyer (manjo)
Changed in ubuntu-power-systems:
importance: Critical → Medium
status: New → Triaged
Changed in grub2 (Ubuntu):
importance: Undecided → Medium
Changed in ubuntu-kernel-tests:
importance: Undecided → Medium
Revision history for this message
Andrew Cloke (andrew-cloke) wrote :

No longer blocking testing of LP#1765364, so down-prioritising to medium.

Revision history for this message
Mathieu Trudel-Lapierre (cyphermox) wrote :

Are you able to reproduce this bug easily? How would I go about seeing this?

If I build a new VM with multipath enabled, I do not see this issue, on trusty or otherwise.

Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

Hi Mathieu,

I didn't see this issue in the last cycle,
it seems that this issue will just happen about once per year (2016 Nov, 2017 Aug, 2018 Sep), when the grub-ieee1275 got updated.

Maybe the update between these two versions can give some clues?

I will check it again when we have the proposed Trusty kernel.

Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

Unable to reproduce this with the proposed Trusty kernel in this cycle, I think this is because there is no grub-ieee1275 related update in the proposed pocket now.

Revision history for this message
Andrew Cloke (andrew-cloke) wrote :

Marking as "Invalid" as no longer able to reproduce. Please reopen if this issue happens again.

Changed in ubuntu-power-systems:
status: Triaged → Invalid
Changed in ubuntu-kernel-tests:
status: New → Invalid
Changed in grub2 (Ubuntu):
status: Confirmed → Invalid
Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

This issue is hitting us again, with package 2.02~beta2-9ubuntu1.16 from proposed.

Bug 1812629

Manoj Iyer (manjo)
Changed in ubuntu-power-systems:
importance: Medium → Critical
Changed in ubuntu-kernel-tests:
importance: Medium → Critical
Changed in grub2 (Ubuntu):
importance: Medium → Critical
Changed in ubuntu-power-systems:
status: Invalid → Incomplete
status: Incomplete → Confirmed
Changed in ubuntu-kernel-tests:
status: Invalid → Triaged
Changed in grub2 (Ubuntu):
status: Invalid → Confirmed
Revision history for this message
Manoj Iyer (manjo) wrote :

I was not able to recreate this issue on P8 with proposed enabled..

ubuntu@P8lpar2:~$ uname -a
Linux P8lpar2 3.13.0-164-generic #214-Ubuntu SMP Wed Dec 5 10:40:29 UTC 2018 ppc64le ppc64le ppc64le GNU/Linux

ubuntu@P8lpar2:~$ sudo apt dist-upgrade -y --assume-yes

.....

Progress: [ 86%] [###################################################.......] Setting up grub-common (2.02~beta2-9ubuntu1.16) ...
Progress: [ 87%] [###################################################.......] Setting up grub2-common (2.02~beta2-9ubuntu1.16) ...
Progress: [ 88%] [####################################################......] Setting up grub-ieee1275-bin (2.02~beta2-9ubuntu1.16) ...
Progress: [ 89%] [####################################################......] Setting up grub-ieee1275 (2.02~beta2-9ubuntu1.16) ...
Progress: [ 90%] [#####################################################.....] Installing for powerpc-ieee1275 platform.
Installation finished. No error reported.
Generating grub configuration file ...
Warning: Setting GRUB_TIMEOUT to a non-zero value when GRUB_HIDDEN_TIMEOUT is set is no longer supported.
Found linux image: /boot/vmlinux-3.13.0-165-generic
Found initrd image: /boot/initrd.img-3.13.0-165-generic
Found linux image: /boot/vmlinux-3.13.0-164-generic
Found initrd image: /boot/initrd.img-3.13.0-164-generic
Found linux image: /boot/vmlinux-3.13.0-163-generic
Found initrd image: /boot/initrd.img-3.13.0-163-generic
done
Setting up landscape-common (14.12-0ubuntu6.14.04.4) ...
Progress: [ 91%] [#####################################################.....] Setting up landscape-client (14.12-0ubuntu6.14.04.4) ...
ubuntu@P8lpar2:~$

ubuntu@P8lpar2:~$ sudo apt-cache policy grub-ieee1275
grub-ieee1275:
  Installed: 2.02~beta2-9ubuntu1.16
  Candidate: 2.02~beta2-9ubuntu1.16
  Version table:
 *** 2.02~beta2-9ubuntu1.16 0
        500 http://ports.ubuntu.com/ubuntu-ports/ trusty-proposed/main ppc64el Packages
        100 /var/lib/dpkg/status
     2.02~beta2-9ubuntu1.15 0
        500 http://ports.ubuntu.com/ubuntu-ports/ trusty-updates/main ppc64el Packages
     2.02~beta2-9ubuntu1.6 0
        500 http://ports.ubuntu.com/ubuntu-ports/ trusty-security/main ppc64el Packages
     2.02~beta2-9 0
        500 http://ports.ubuntu.com/ubuntu-ports/ trusty/main ppc64el Packages
ubuntu@P8lpar2:~$

Manoj Iyer (manjo)
Changed in grub2 (Ubuntu):
status: Confirmed → Incomplete
Changed in ubuntu-power-systems:
status: Confirmed → Incomplete
Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

Hello Manoj,

thanks for looking into this,
it looks like this is hardware related. I can reproduce this on node "modoc" but not "entei"

ubuntu@modoc:~$ uname -a
Linux modoc 3.13.0-164-generic #214-Ubuntu SMP Wed Dec 5 10:40:29 UTC 2018 ppc64le ppc64le ppc64le GNU/Linux

ubuntu@modoc:~$ sudo apt-get dist-upgrade
.....
Setting up grub-common (2.02~beta2-9ubuntu1.16) ...
Setting up grub2-common (2.02~beta2-9ubuntu1.16) ...
Setting up grub-ieee1275-bin (2.02~beta2-9ubuntu1.16) ...
Setting up grub-ieee1275 (2.02~beta2-9ubuntu1.16) ...
locale: Cannot set LC_ALL to default locale: No such file or directory
device-mapper: deps ioctl on 1IBM\x20\x20\x20\x20\x20IPR-0\x20\x20\x205EC33900000000A0 failed: No such device or address
device-mapper: deps ioctl on 1IBM\x20\x20\x20\x20\x20IPR-0\x20\x20\x205EC33900000000C0 failed: No such device or address
device-mapper: deps ioctl on 1IBM\x20\x20\x20\x20\x20IPR-0\x20\x20\x205EC3390000000020 failed: No such device or address
device-mapper: deps ioctl on 1IBM\x20\x20\x20\x20\x20IPR-0\x20\x20\x205EC3390000000060 failed: No such device or address
device-mapper: deps ioctl on 1IBM\x20\x20\x20\x20\x20IPR-0\x20\x20\x205EC3390000000040 failed: No such device or address
Installing for powerpc-ieee1275 platform.
grub-install: error: cannot find a GRUB drive for /dev/sda1. Check your device.map.
dpkg: error processing package grub-ieee1275 (--configure):
 subprocess installed post-installation script returned error exit status 1
Setting up landscape-common (14.12-0ubuntu6.14.04.4) ...
.....

ubuntu@modoc:~$ sudo apt-cache policy grub-ieee1275
grub-ieee1275:
  Installed: 2.02~beta2-9ubuntu1.16
  Candidate: 2.02~beta2-9ubuntu1.16
  Version table:
 *** 2.02~beta2-9ubuntu1.16 0
        500 http://ports.ubuntu.com/ubuntu-ports/ trusty-proposed/main ppc64el Packages
        100 /var/lib/dpkg/status
     2.02~beta2-9ubuntu1.15 0
        500 http://ports.ubuntu.com/ubuntu-ports/ trusty-updates/main ppc64el Packages
     2.02~beta2-9ubuntu1.6 0
        500 http://ports.ubuntu.com/ubuntu-ports/ trusty-security/main ppc64el Packages
     2.02~beta2-9 0
        500 http://ports.ubuntu.com/ubuntu-ports/ trusty/main ppc64el Packages

For node entei:
ubuntu@entei:~$ sudo apt-get dist-upgrade
.....
locale: Cannot set LC_ALL to default locale: No such file or directory
Setting up krb5-locales (1.12+dfsg-2ubuntu5.4) ...
Setting up grub-common (2.02~beta2-9ubuntu1.16) ...
Setting up grub2-common (2.02~beta2-9ubuntu1.16) ...
Setting up grub-ieee1275-bin (2.02~beta2-9ubuntu1.16) ...
Setting up grub-ieee1275 (2.02~beta2-9ubuntu1.16) ...
locale: Cannot set LC_ALL to default locale: No such file or directory
Installing for powerpc-ieee1275 platform.
Installation finished. No error reported.
Generating grub configuration file ...

Revision history for this message
Manoj Iyer (manjo) wrote :

@Po-Hsu Lin, could you please open an RT ticket to may be power cycle modoc? I am just speculating that this reset might help?

Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

Sure,
but note that this is only affecting Trusty, at least from what I can see here.

Will file a RT and CC you.

Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

Hello Manoj,

it looks like the power-cycle works for it, I can install the grub package on the very same node now:

buntu@modoc:~$ sudo apt-get install grub-common
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  grub-ieee1275 grub-ieee1275-bin grub2-common
Suggested packages:
  multiboot-doc grub-emu xorriso desktop-base genisoimage
The following packages will be upgraded:
  grub-common grub-ieee1275 grub-ieee1275-bin grub2-common
4 upgraded, 0 newly installed, 0 to remove and 33 not upgraded.
Need to get 2617 kB of archives.
After this operation, 2048 B of additional disk space will be used.
....
Preparing to unpack .../grub2-common_2.02~beta2-9ubuntu1.16_ppc64el.deb ...
Unpacking grub2-common (2.02~beta2-9ubuntu1.16) over (2.02~beta2-9ubuntu1.15) ...
Preparing to unpack .../grub-common_2.02~beta2-9ubuntu1.16_ppc64el.deb ...
Unpacking grub-common (2.02~beta2-9ubuntu1.16) over (2.02~beta2-9ubuntu1.15) ...
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
Processing triggers for install-info (5.2.0.dfsg.1-2) ...
Processing triggers for ureadahead (0.100.0-16) ...
Setting up grub-common (2.02~beta2-9ubuntu1.16) ...
Setting up grub2-common (2.02~beta2-9ubuntu1.16) ...
Setting up grub-ieee1275-bin (2.02~beta2-9ubuntu1.16) ...
Setting up grub-ieee1275 (2.02~beta2-9ubuntu1.16) ...
locale: Cannot set LC_ALL to default locale: No such file or directory
Installing for powerpc-ieee1275 platform.
Installation finished. No error reported.
Generating grub configuration file ...
Warning: Setting GRUB_TIMEOUT to a non-zero value when GRUB_HIDDEN_TIMEOUT is set is no longer supported.
Found linux image: /boot/vmlinux-3.13.0-164-generic

Revision history for this message
Andrew Cloke (andrew-cloke) wrote :

Thanks Po-Hsu Lin. Marking as "invalid". Please change back to "confirmed" if you see this again.

Changed in ubuntu-power-systems:
status: Incomplete → Invalid
Changed in ubuntu-kernel-tests:
status: Triaged → Invalid
Changed in grub2 (Ubuntu):
status: Incomplete → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.