Bug 251225 - pygrub leaves initrd and vmlinuz images on dom0 after dryrun xm create
Summary: pygrub leaves initrd and vmlinuz images on dom0 after dryrun xm create
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: xen   
(Show other bugs)
Version: 5.0
Hardware: All
OS: Linux
Target Milestone: ---
: ---
Assignee: Markus Armbruster
QA Contact: Virtualization Bugs
Depends On:
TreeView+ depends on / blocked
Reported: 2007-08-07 20:31 UTC by daniel miles
Modified: 2009-12-14 21:14 UTC (History)
1 user (show)

Fixed In Version: RHBA-2008-0305
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2008-05-21 15:19:46 UTC
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
fixes to pygrub (2.18 KB, patch)
2007-08-07 20:41 UTC, daniel miles
no flags Details | Diff
changes to xm create (483 bytes, patch)
2007-08-07 20:42 UTC, daniel miles
no flags Details | Diff
fixes to XendBootloader.py (821 bytes, text/plain)
2007-08-07 20:44 UTC, daniel miles
no flags Details
Unlink kernel/initrd after running bootloader in dryrun mode (1.01 KB, patch)
2008-01-03 19:42 UTC, Daniel Berrange
no flags Details | Diff

External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2008:0305 normal SHIPPED_LIVE xen bug fix and enhancement update 2008-05-20 18:04:30 UTC

Description daniel miles 2007-08-07 20:31:24 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv: Gecko/20061201 Firefox/ (Ubuntu-feisty)

Description of problem:
When starting a machine that uses pygrub in dryrun mode (xm create -n /etc/xen/machine_name), pygrub pulls the kernel and initrd images out of the virtual disk and puts them on dom0's disk. Usually they are removed when the machine is shut down but as dryrun mode doesn't actually start the machine, it never gets shut down and the images never get removed.

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

How reproducible:

Steps to Reproduce:
1) Use virt-manager to create a virtual machine, this will cause your virtual machine descriptor file to use the bootloader.
2) Run xm create -n -q /full/path/to/virtual/machine/descriptor

Actual Results:
vmlinuz and initrd files have appeared in /var/lib/xen

Expected Results:
that they would not be there

Additional info:

Comment 1 daniel miles 2007-08-07 20:41:48 UTC
Created attachment 160855 [details]
fixes to pygrub

patch formatted to be applied during rpmbuild

Comment 2 daniel miles 2007-08-07 20:42:57 UTC
Created attachment 160856 [details]
changes to xm create

patch formatted to be applied during rpmbuild

Comment 3 daniel miles 2007-08-07 20:44:55 UTC
Created attachment 160857 [details]
fixes to XendBootloader.py

patch formatted to be applied during rpmbuild

Comment 4 daniel miles 2007-08-07 20:45:46 UTC
all three patches together should fix the problem

Comment 5 RHEL Product and Program Management 2007-10-16 03:50:17 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

Comment 6 Markus Armbruster 2007-10-31 15:10:14 UTC
The patches fix the bug by adding a --dryrun option to pygrub.  That's a
feature, not just a fix.  It's not upstream, and therefore not appropriate for
RHEL, in my opinion.

Comment 8 Daniel Berrange 2008-01-03 19:42:35 UTC
Created attachment 290768 [details]
Unlink kernel/initrd after running bootloader in dryrun mode

As markus noted the previous patches are over-engineering the solution for
RHEL5. Attaching the minimal patch which addresses the issue.

Comment 9 Daniel Berrange 2008-01-03 21:11:09 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@redhat.com> - 3.0.3-43.el5
- Delete kernel/initrd after dryrun xm create (rhbz #251225)

Comment 12 errata-xmlrpc 2008-05-21 15:19:46 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.


Note You need to log in before you can comment on or make changes to this bug.