Bug 751268

Summary: Upgrading or reinstalling kernel throw error message "grubby fatal error: unable to find a suitable template"
Product: [Fedora] Fedora Reporter: Jaroslav Pulchart <jaroslav.pulchart>
Component: grubbyAssignee: Peter Jones <pjones>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 16CC: bcl, belegdol, dkovalsk, mads, moneta.mace, pjones, stefan.hoelldampf
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-11-25 15:24:44 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
reinstall log
none
grub2 menu.lst post-transaction
none
proper file
none
Newer grub.cfg none

Description Jaroslav Pulchart 2011-11-04 06:29:08 UTC
Description of problem:
Upgrading or reinstalling kernel throw this error message "grubby fatal error: unable to find a suitable template"

Version-Release number of selected component (if applicable):
F16

How reproducible:
easy

Steps to Reproduce:
1. boot to older kernel (for example 3.1.0-5)
2. reinstall the new kernel (for example 3.1.0-7) by this command
   $ yum reinstall kernel -y 2>&1 | tee reinstall.log
  
Actual results:
reinstall.log include this error message: "grubby fatal error: unable to find a suitable template"

Expected results:
kernel upgrade/reinstall without error

Additional info:
tested on 2x nodes i686 and x86_64, booth of them were upgraded from F15 to F16

Comment 1 Jaroslav Pulchart 2011-11-04 06:29:48 UTC
Created attachment 531700 [details]
reinstall log

Comment 2 Julian Sikorski 2011-11-05 00:08:02 UTC
Created attachment 531862 [details]
grub2 menu.lst post-transaction

I just hit the same problem. Yet, the new grub config seems fine, saving for the lack of failsafe entry for the new kernel.

Comment 3 Julian Sikorski 2011-11-05 00:09:51 UTC
Created attachment 531863 [details]
proper file

Comment 4 Jaroslav Pulchart 2011-11-05 08:04:32 UTC
Yes, "failsafe" entry is missing. 

I'm also "confused" from 
printing 'Loading Fedora (3.1.0-1.fc16.x86_64)' in each boot even if the kernel version is different:

menuentry 'Fedora (3.1.0-7.fc16.x86_64)' --class fedora --class gnu-linux --class gnu --class os {
  ...
  echo 'Loading Fedora (3.1.0-1.fc16.x86_64)'
  ...
}

Comment 5 Jaroslav Pulchart 2011-11-06 08:15:48 UTC
I created 2x new bugs about grub.cfg: 751604, 751603

I don't know is they are relative to this issue or not.

Comment 6 Julian Sikorski 2011-11-14 08:10:51 UTC
Created attachment 533453 [details]
Newer grub.cfg

Even with no failsafe entries in grub.cfg at the start of the transaction this issue still happens.
And same as in comment 4, the "Loading Fedora" line announces an incorrect kernel.

Comment 7 Mads Kiilerich 2011-11-25 15:24:44 UTC

*** This bug has been marked as a duplicate of bug 730357 ***