install failed crashed with CalledProcessError
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
The Ubuntu-power-systems project |
Fix Released
|
High
|
Canonical Foundations Team | ||
subiquity |
Fix Released
|
Undecided
|
Unassigned | ||
curtin (Ubuntu) |
Invalid
|
Critical
|
Unassigned |
Bug Description
This failed during a power9 install. Of the 29 *.crash files generated during this installation, I filed two other bug reports: bug 1861367 and bug 1861368 . Either of those other bugs may be the 'real' bug.
I selected these three to file due to the filenames:
One of the various *.*.block_
One of the various *.*.disk_
The only *.*.install_
I could file all the bugs if it would be helpful but it seemed unlikely to be useful to me.
This machine has a single nvme drive; the grub install failed because it was trying to write to a non-existant drive:
grub-install: error: cannot find a GRUB drive for /dev/nvme0n11. Check your device.map.
A related error (but not necessarily this exact run of the installer) is in the error tracker:
https:/
Thanks
ProblemType: Bug
DistroRelease: Ubuntu 20.04
Package: subiquity (not installed)
ProcVersionSign
Uname: Linux 5.4.0-9-generic ppc64le
NonfreeKernelMo
ApportVersion: 2.20.11-0ubuntu16
Architecture: ppc64el
CasperVersion: 1.438
CrashDB: {'impl': 'launchpad', 'project': 'subiquity'}
Date: Wed Jan 29 07:55:12 2020
ExecutablePath: /snap/subiquity
InterpreterPath: /snap/subiquity
LiveMediaBuild: Ubuntu-Server 20.04 LTS "Focal Fossa" - Alpha ppc64el (20200123)
ProcAttrCurrent: snap.subiquity.
ProcCmdline: /snap/subiquity
ProcEnviron:
TERM=linux
PATH=(custom, no user)
XDG_RUNTIME_
LANG=C.UTF-8
ProcKernelCmdLine: quiet ---
Python3Details: /usr/bin/python3.7, Python 3.7.6, python3-minimal, 3.7.5-1ubuntu1
PythonDetails: N/A
SnapChannel: stable/ubuntu-20.04
SnapRevision: 1435
SnapUpdated: True
SnapVersion: 19.12.2+
SourcePackage: subiquity
Title: install failed crashed with CalledProcessError
UpgradeStatus: Upgraded to focal on 2020-01-24 (5 days ago)
UsingAnswers: False
tags: | added: installer |
Changed in ubuntu-power-systems: | |
status: | New → Incomplete |
Changed in subiquity: | |
status: | New → Incomplete |
tags: | removed: need-duplicate-check |
Changed in ubuntu-power-systems: | |
status: | Fix Released → Triaged |
Changed in ubuntu-power-systems: | |
status: | Triaged → Fix Committed |
Changed in subiquity: | |
status: | Fix Committed → Fix Released |
Changed in ubuntu-power-systems: | |
status: | Fix Committed → Fix Released |
These lines stand out to me:
https:/ /github. com/CanonicalLt d/subiquity/ blob/436ee1d76d dad5362c25843f4 29b4346324c0b8f /subiquity/ models/ filesystem. py#L1368
def render(self):
'storage' : {
'version' : 1,
'config' : self._render_ actions( ), add_swapfile( ):
config[ 'swap'] = {'size': 0} install_ device: install_ device
devpath = "{}{}". format( dev.device. path, dev._number)
devpath = dev.path
config[ 'grub'] = {
'install_ devices' : [devpath],
config = {
},
}
if not self._should_
if self.grub_
dev = self.grub_
if dev.type == "partition":
else:
}
return config
https:/ /github. com/CanonicalLt d/subiquity/ blob/436ee1d76d dad5362c25843f4 29b4346324c0b8f /subiquity/ controllers/ filesystem. py#L390
def _create_ boot_partition( self, disk): bootloader
part_ size = UEFI_GRUB_ SIZE_BYTES SIZE_BYTES* 2 >= disk.size:
part_ size = disk.size // 2
log. debug(' _create_ boot_partition - adding EFI partition') partition(
disk,
dict( size=part_ size, fstype='fat32', mount='/boot/efi'),
flag= "boot")
log. debug(' _create_ boot_partition - adding PReP partition') partition(
disk,
dict( size=PREP_ GRUB_SIZE_ BYTES, fstype=None, mount=None),
wipe= 'zero',
flag= 'prep')
self. model.grub_ install_ device = part
log. debug(' _create_ boot_partition - adding bios_grub partition') partition(
disk,
dict( size=BIOS_ GRUB_SIZE_ BYTES, fstype=None, mount=None),
flag= 'bios_grub' )
self. model.grub_ install_ device = disk
bootloader = self.model.
if bootloader == Bootloader.UEFI:
if UEFI_GRUB_
part = self.create_
elif bootloader == Bootloader.PREP:
part = self.create_
# must be wiped or grub-install will fail
elif bootloader == Bootloader.BIOS:
part = self.create_
return part
https:/ /github. com/CanonicalLt d/subiquity/ blob/436ee1d76d dad5362c25843f4 29b4346324c0b8f /subiquity/ controllers/ filesystem. py#L613
def make_boot_ disk(self, new_boot_disk):
boot_partition = None bootloader == Bootloader.BIOS:
install_ dev = self.model. grub_install_ device
boot_ partition = install_ dev._potential_ boot_partition( ) bootloader == Bootloader.UEFI: _mount_ for_path( "/boot/ efi")
boot_ partition = mount.device.volume bootloader == Bootloader.PREP:
boot_ partition = self.model. grub_install_ device preserve: bootloader == Bootloader.PREP:
boot_ partition. wipe = None
elif self.model. bootloader == Bootloader.UEFI:
if self.model.
if install_dev:
elif self.model.
mount = self.model.
if mount is not None:
elif self.model.
if boot_partition is not None:
if boot_partition.
if self.model.
...