Bug 234486

Summary: pygrub tries to read menu.lst before grub.conf, tries to start non-existent kernel
Product: Red Hat Enterprise Linux 5 Reporter: Nils Philippsen <nphilipp>
Component: xenAssignee: Daniel Berrangé <berrange>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 5.0CC: gozen, hannes.kuehnemund, sputhenp, xen-maint
Target Milestone: ---Keywords: EasyFix, Patch, Reopened
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-01-20 21:13:21 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:
Bug Depends On:    
Bug Blocks: 449772    
Attachments:
Description Flags
patch to let pygrub check for grub.conf before checking for menu.lst
none
Actual patch posted for inclusion none

Description Nils Philippsen 2007-03-29 16:23:32 UTC
Description of problem:

After updating a virtual machine I couldn't restart it with "xm create", it
searched for a (now non-existent) old version of the kernel and initrd. I found
that something or someone wrote a menu.lst that wasn't a symlink to grub.conf,
i.e. its contents didn't change when the kernel was updated. pygrub read that
menu.lst instead of the (correct) grub.conf and failed to start the guest.

I've attached a patch to pygrub that lets it check grub.conf before menu.lst
which should fix this problem.

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

xen-3.0.3-25.0.3.el5

Comment 1 Nils Philippsen 2007-03-29 16:23:32 UTC
Created attachment 151210 [details]
patch to let pygrub check for grub.conf before checking for menu.lst

Comment 2 Jeremy Katz 2007-03-29 17:45:25 UTC
And then you could have the problem the other way.  This is the unfortunate
problem with the difference in grub config naming between distros.

Comment 3 Nils Philippsen 2007-03-30 08:00:55 UTC
If we use grub.conf in one place and prefer menu.lst in another, we're not
consistent with ourselves. Don't you think pygrub should (if in doubt) use what
we use elsewhere? The way it is, we support other distros better than we support
RHEL as a guest, which is more than unfortunate. AFAIK other distros don't have
both a grub.conf and a menu.lst, so the patch aboive shouldn't cause problems
with them.

The least we should do (if we are going out of our way to support other distros
better than our own) is warn people about the circumstance that there are both a
grub.conf and a menu.lst file and which one we used.

Comment 4 Daniel Berrangé 2008-07-09 11:21:52 UTC
The real 'grub' package in RHEL-5 has a patch grub-0.93-configfile.patch which
removes its use of menu.lst in favour of grub.conf. 

pygrub needs to behave in the same way, and not look at menu.lst so we are at
least consistent within RHEL-5.



Comment 5 RHEL Program Management 2008-07-09 11:39:15 UTC
This request was evaluated by Red Hat Product Management for inclusion in a Red
Hat Enterprise Linux maintenance release.  Product Management has requested
further review of this request by Red Hat Engineering, for potential
inclusion in a Red Hat Enterprise Linux Update release for currently deployed
products.  This request is not yet committed for inclusion in an Update
release.

Comment 7 Daniel Berrangé 2008-07-10 11:20:57 UTC
Created attachment 311468 [details]
Actual patch posted for inclusion

Comment 9 Daniel Berrangé 2008-07-21 10:48:09 UTC
Built into xen-3.0.3-67.el5

Comment 12 errata-xmlrpc 2009-01-20 21:13:21 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2009-0118.html