Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
For bugs related to Red Hat Enterprise Linux 5 product line. The current stable release is 5.10. For Red Hat Enterprise Linux 6 and above, please visit Red Hat JIRA https://issues.redhat.com/secure/CreateIssue!default.jspa?pid=12332745 to report new issues.

Bug 231144

Summary: pygrub can leave stale vmlinuz and initrd data around on error
Product: Red Hat Enterprise Linux 5 Reporter: Chris Lalancette <clalance>
Component: xenAssignee: Markus Armbruster <armbru>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 5.0CC: clalance, steved, xen-maint
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: RHBA-2008-0305 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-05-21 15:19:33 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: 246258    
Attachments:
Description Flags
Proposed fix derived from xen-unstable cset 12494 none

Description Chris Lalancette 2007-03-06 14:51:25 UTC
Description of problem:
If xen encounters an error after extracting the kernel and initrd from the /boot
partition, it leaves the vmlinuz.xxxx and initrd.xxxx around in the /var/lib/xen
directory.  As a simple example, attempting to boot a paravirt Xen guest with a
bare-metal kernel will reproduce this behavior.  pygrub (and/or xm) should
really clean up after itself on error, so as not to fill up the /var/lib/xen
directory with useless vmlinuz and initrd files.

Comment 4 RHEL Program Management 2007-10-16 04:03:44 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 Markus Armbruster 2007-10-29 17:52:37 UTC
Created attachment 242191 [details]
Proposed fix derived from xen-unstable cset 12494

Comment 9 Daniel Berrangé 2008-01-03 21:11:55 UTC
Fix built for QA

$ brew latest-pkg dist-5E-qu-candidate xen
Build                                     Tag                   Built by
----------------------------------------  --------------------  ----------------
xen-3.0.3-43.el5                          dist-5E-qu-candidate  berrange

* Thu Jan  3 2008 Daniel P. Berrange <berrange> - 3.0.3-43.el5
- Cleanup kernel/initrd after pygrub errors (rhbz #231144)


Comment 12 errata-xmlrpc 2008-05-21 15:19:33 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 the 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-2008-0305.html