Bug 437595 - Cannot create xen rawhide instance
Summary: Cannot create xen rawhide instance
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: python-virtinst
Version: 5.2
Hardware: All
OS: Linux
low
low
Target Milestone: ---
: ---
Assignee: Cole Robinson
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-03-15 02:45 UTC by John Poelstra
Modified: 2008-05-21 16:45 UTC (History)
4 users (show)

Fixed In Version: RHEA-2008-0371
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2008-05-21 16:45:45 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Correctly detect rawhide/f9 distro trees (673 bytes, patch)
2008-03-17 13:54 UTC, Cole Robinson
no flags Details | Diff


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2008:0371 0 normal SHIPPED_LIVE python-virtinst enhancement and bug fix update 2008-05-20 13:36:35 UTC

Description John Poelstra 2008-03-15 02:45:23 UTC
Description of problem:

Cannot create and install install xen rawhide instance.  Installing Fedora 8
works fine.


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


How reproducible:
100%

Steps to Reproduce:
1. use virt-manager gui
2. setup http install pointing at rawhide tree
3. doesn't work


Additional info:


snake-tree info
http://download.fedora.redhat.com/pub/fedora/linux/development/i386/os
Name         : Fedora development i386 (20080314)
Arch         : i386
Id           : 1205481897.08
Version      : development
Family       : Fedora
Variant      : 
Time         : 2008-03-14 01:04 PDT
URI's        : 
Images       : i386 (kernel, family, timestamp, variant, boot.iso, initrd,
version, arch), xen (kernel, family, timestamp, variant, initrd, version, arch)


Unable to complete install 'exceptions.ValueError Could not find an installable
distribution at
'http://download.fedora.redhat.com/pub/fedora/linux/development/i386/os'
Traceback (most recent call last):
  File "/usr/share/virt-manager/virtManager/create.py", line 611, in do_install
    dom = guest.start_install(False, meter = meter)
  File "/usr/lib/python2.4/site-packages/virtinst/Guest.py", line 811, in
start_install
    self._prepare_install(meter)
  File "/usr/lib/python2.4/site-packages/virtinst/ParaVirtGuest.py", line 56, in
_prepare_install
    self._installer.prepare(guest = self, meter = meter)
  File "/usr/lib/python2.4/site-packages/virtinst/DistroManager.py", line 239,
in prepare
    self._prepare_kernel_and_initrd(guest, distro, meter)
  File "/usr/lib/python2.4/site-packages/virtinst/DistroManager.py", line 209,
in _prepare_kernel_and_initrd
    distro = distro)
  File "/usr/lib/python2.4/site-packages/virtinst/DistroManager.py", line 122,
in acquireKernel
    progresscb=progresscb, distro=distro, scratchdir=scratchdir)
  File "/usr/lib/python2.4/site-packages/virtinst/DistroManager.py", line 101,
in _storeForDistro
    raise ValueError, _("Could not find an installable distribution at '%s'" %
baseuri)
ValueError: Could not find an installable distribution at
'http://download.fedora.redhat.com/pub/fedora/linux/development/i386/os'
'

Comment 1 Jon Stanley 2008-03-15 02:53:41 UTC
reassigning to virt-manager for now...

Comment 2 John Poelstra 2008-03-15 05:49:22 UTC
Could it be that the rawhide tree itself is malformed or necessary files are
missing?  I believe there have been other problems like this.

More info: I'm running RHEL5.2 beta Dom0 and trying to install a xen rawhide
instance (failure described above).  Attempting an F8 (gold) xen install works fine.

Here is a listing of the RHEL5.2 packages for Dom0 (if that is applicable):

$ rpm -qa | egrep 'virt|xen' | sort
kernel-xen-2.6.18-83.el5
kernel-xen-2.6.18-85.el5
libvirt-0.3.3-5.el5
libvirt-python-0.3.3-5.el5
python-virtinst-0.300.2-5.el5
virt-manager-0.5.3-4.el5
virt-viewer-0.0.2-1.el5
xen-3.0.3-56.el5
xen-libs-3.0.3-56.el5

Comment 3 Eduardo Habkost 2008-03-15 13:35:35 UTC
Probably virt-manager is looking for a "Fedora" directory, but it was renamed 
to "Packages", like on bug #273781.

Comment 4 Daniel Berrangé 2008-03-15 14:35:52 UTC
This is the same as F8 bug 437217

Comment 5 Daniel Berrangé 2008-03-15 14:36:31 UTC
Removing F9 blocker bug, since this is a RHEL 5.2 bug, not a Fedora bug.

Comment 6 Cole Robinson 2008-03-17 13:54:55 UTC
Created attachment 298266 [details]
Correctly detect rawhide/f9 distro trees

Fixes distro detection for f9. Verified this doesn't affect installing f7 or f8
guests from a tree.

Comment 8 Cole Robinson 2008-03-17 14:09:38 UTC
This is a simple fix to enable installing rawhide and f9 guests, which if we
don't fix now we will definitely see a flood of bzs about later. I'm requesting
this as an exception for inclusion in 5.2.

Comment 9 Bill Burns 2008-03-17 14:14:11 UTC
Set dev ack for Cole.


Comment 10 Cole Robinson 2008-03-17 14:26:55 UTC
For further clarification, our package probes an install tree to try and verify
what distro it is, so we know where to look for virt install media. We do this
detection by looking for certain files (for fedora, we would use fedora.css).
Rawhide and eventually f9 no longer carry this fedora.css file, so detection and
installs were failing.

This patch just changes this check to also pass if we find a file .treeinfo,
which is intended to be present in all fedora trees for detections of this type
(so i've been told). The check will fall back to fedora.css if it can't find
treeinfo, so there should be no backwards compatibility issues (I verified this
for f7 and f8). 

For these reasons it is low risk, and any remaining risk would be offset by the
amount of time this would save us in future support. Not to mention it would
look bad if this went out the door without being able to create a rawhide guest :)

Comment 11 Bill Burns 2008-03-18 11:39:11 UTC
Restore flags cleared by mistake.


Comment 13 Cole Robinson 2008-03-18 19:50:34 UTC
Fix built in python-virtinst-0.300.2-7.el5:

Build                                     Tag                   Built by
----------------------------------------  --------------------  ----------------
python-virtinst-0.300.2-7.el5             dist-5E-qu-candidate  crobinso


Comment 16 errata-xmlrpc 2008-05-21 16:45:45 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/RHEA-2008-0371.html



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