Bug 1635554

Summary: pyanaconda.bootloader.BootLoaderError: failed to write boot loader configuration
Product: [Fedora] Fedora Reporter: Alessio <alciregi>
Component: grub2Assignee: Peter Jones <pjones>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 29CC: anaconda-maint-list, aruizrui, jhlavac, jkonecny, jonathan, kellin, lkundrak, mfabian, pjones, vanmeeuwen+fedora, vponcova, wwoods
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:cd124e80dd2a6995f69f16578dd5f7ea7c7872b0a10f32a13c544fb7c8a29805;
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-10-08 08:07:47 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
File: anaconda-tb
none
File: anaconda.log
none
File: dbus.log
none
File: environ
none
File: hawkey.log
none
File: lorax-packages.log
none
File: lsblk_output
none
File: nmcli_dev_list
none
File: os_info
none
File: program.log
none
File: storage.log
none
File: syslog
none
File: ifcfg.log
none
File: packaging.log none

Description Alessio 2018-10-03 08:46:30 UTC
Description of problem:


Version-Release number of selected component:
anaconda-29.24.3

The following was filed automatically by anaconda:
anaconda 29.24.3 exception report
Traceback (most recent call first):
  File "/usr/lib64/python3.7/site-packages/pyanaconda/bootloader.py", line 1629, in write_config
    raise BootLoaderError("failed to write boot loader configuration")
  File "/usr/lib64/python3.7/site-packages/pyanaconda/bootloader.py", line 1676, in write
    self.write_config()
  File "/usr/lib64/python3.7/site-packages/pyanaconda/bootloader.py", line 2527, in writeBootLoaderFinal
    storage.bootloader.write()
  File "/usr/lib64/python3.7/site-packages/pyanaconda/bootloader.py", line 2608, in writeBootLoader
    writeBootLoaderFinal(storage, payload, instClass, ksdata)
  File "/usr/lib64/python3.7/site-packages/pyanaconda/installation_tasks.py", line 438, in run_task
    self._task(*self._task_args, **self._task_kwargs)
  File "/usr/lib64/python3.7/site-packages/pyanaconda/installation_tasks.py", line 472, in start
    self.run_task()
  File "/usr/lib64/python3.7/site-packages/pyanaconda/installation_tasks.py", line 304, in start
    item.start()
  File "/usr/lib64/python3.7/site-packages/pyanaconda/installation_tasks.py", line 304, in start
    item.start()
  File "/usr/lib64/python3.7/site-packages/pyanaconda/installation.py", line 375, in doInstall
    installation_queue.start()
  File "/usr/lib64/python3.7/threading.py", line 865, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/lib64/python3.7/site-packages/pyanaconda/threading.py", line 286, in run
    threading.Thread.run(self)
pyanaconda.bootloader.BootLoaderError: failed to write boot loader configuration

Additional info:
addons:         com_redhat_kdump, com_redhat_docker
cmdline:        /usr/bin/python3  /sbin/anaconda
cmdline_file:   BOOT_IMAGE=vmlinuz initrd=initrd.img inst.stage2=hd:LABEL=Fedora-S-dvd-x86_64-29 inst.text console=ttyS0
executable:     /sbin/anaconda
hashmarkername: anaconda
kernel:         4.18.10-300.fc29.x86_64
product:        Fedora
release:        Cannot get release name.
release_type:   pre-release
type:           anaconda
version:        29

Potential duplicate: bug 1632980

Comment 1 Alessio 2018-10-03 08:46:40 UTC
Created attachment 1489876 [details]
File: anaconda-tb

Comment 2 Alessio 2018-10-03 08:46:43 UTC
Created attachment 1489877 [details]
File: anaconda.log

Comment 3 Alessio 2018-10-03 08:46:45 UTC
Created attachment 1489878 [details]
File: dbus.log

Comment 4 Alessio 2018-10-03 08:46:46 UTC
Created attachment 1489879 [details]
File: environ

Comment 5 Alessio 2018-10-03 08:46:53 UTC
Created attachment 1489880 [details]
File: hawkey.log

Comment 6 Alessio 2018-10-03 08:46:56 UTC
Created attachment 1489881 [details]
File: lorax-packages.log

Comment 7 Alessio 2018-10-03 08:46:58 UTC
Created attachment 1489882 [details]
File: lsblk_output

Comment 8 Alessio 2018-10-03 08:46:59 UTC
Created attachment 1489883 [details]
File: nmcli_dev_list

Comment 9 Alessio 2018-10-03 08:47:01 UTC
Created attachment 1489884 [details]
File: os_info

Comment 10 Alessio 2018-10-03 08:47:03 UTC
Created attachment 1489885 [details]
File: program.log

Comment 11 Alessio 2018-10-03 08:47:05 UTC
Created attachment 1489886 [details]
File: storage.log

Comment 12 Alessio 2018-10-03 08:47:08 UTC
Created attachment 1489887 [details]
File: syslog

Comment 13 Alessio 2018-10-03 08:47:09 UTC
Created attachment 1489888 [details]
File: ifcfg.log

Comment 14 Alessio 2018-10-03 08:47:13 UTC
Created attachment 1489889 [details]
File: packaging.log

Comment 15 Jiri Konecny 2018-10-03 09:34:20 UTC
I found this error in the program.log:

/etc/grub.d/01_fallback_counting: line 4: ${boot_counter}-1: syntax error: operand expected (error token is "${boot_counter}-1")

It looks like grub2 issue. Switching component.

Comment 16 Alessio 2018-10-03 21:03:24 UTC
It happened again.
Installing F29 server in a VM (KVM) using text console (FWIW).

Partitioning Options
2) [x] Use All Space

Partition Scheme Options
1) [x] Standard Partition


Progress

.
Setting up the installation environment
.
Configuring storage
..
Creating disklabel on /dev/sda
Creating swap on /dev/sda2
Creating xfs on /dev/sda3
Creating ext4 on /dev/sda1
..
Running pre-installation scripts

[...]

Verifying zip.x86_64 (596/596)
.
Configuring storage
.
Installing boot loader
================================================================================
================================================================================
Question

 The following error occurred while installing the boot loader. The system will
 not be bootable. Would you like to ignore this and continue with installation?
 
 failed to write boot loader configuration

Please respond 'yes' or 'no': no

An unknown error has occured, look at the /tmp/anaconda-tb* file(s) for more details

Comment 17 Alessio 2018-10-03 21:05:52 UTC
Using this iso: Fedora-Server-netinst-x86_64-29-20181001.n.0.iso

Comment 18 Alberto Ruiz 2018-10-04 11:30:06 UTC
What version of grub2 is this? Seems related to this commit: https://src.fedoraproject.org/rpms/grub2/c/f0ceaa75979540c04975611b0d7219faf39c2538

Comment 19 Jiri Konecny 2018-10-05 07:47:52 UTC
Alberto based on the packaging.log these grub2 packages were installed:

grub2-common-1:2.02-60.fc29.noarch
grub2-pc-modules-1:2.02-60.fc29.noarch
grub2-tools-minimal-1:2.02-60.fc29.x86_64
grub2-tools-1:2.02-60.fc29.x86_64
grub2-tools-extra-1:2.02-60.fc29.x86_64
grub2-pc-1:2.02-60.fc29.x86_64

Comment 20 Alessio 2018-10-06 20:47:25 UTC
FYI, Fedora-Server-netinst-x86_64-29-20181005.n.0.iso can be installed successfully.

Comment 21 Jiri Konecny 2018-10-08 08:07:47 UTC
Thanks Alessio for the info. In that case I'm closing this issue. I guess this was fixed by something else already.

If the issue will show up again, please feel free to open this issue.