Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 245821 Details for
Bug 345721
virt-manager cannot install from kickstartable tree provided by Satellite server.
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Patch for python-virtinst against rhel5 cvs
virtinst-rhel5-rhnsat-patch (text/plain), 3.62 KB, created by
Cole Robinson
on 2007-11-01 16:20:52 UTC
(
hide
)
Description:
Patch for python-virtinst against rhel5 cvs
Filename:
MIME Type:
Creator:
Cole Robinson
Created:
2007-11-01 16:20:52 UTC
Size:
3.62 KB
patch
obsolete
>--- virtinst-0.103.0.orig/virtinst/DistroManager.py 2007-10-30 10:01:02.000000000 -0400 >+++ virtinst-0.103.0/virtinst/DistroManager.py 2007-10-30 10:07:38.000000000 -0400 >@@ -533,6 +533,27 @@ def _fetcherForURI(uri, scratchdir=None) > else: > return MountedImageFetcher(uri, scratchdir) > >+# Used as a workaround for Satellite issue >+def _checkRHDistro(fetcher, baseuri, type, progresscb, distro=None, scratchdir=None): >+ # Check for fedora distro >+ store = FedoraImageStore(baseuri, type, scratchdir) >+ if store.isValidStore(fetcher, progresscb): >+ return store >+ # Check for CentOS? >+ if fetcher.hasFile("centosdocs-man.css", progresscb): >+ logging.debug("Detected a CentOS distro") >+ return CentOSImageStore(baseuri, type, scratchdir) >+ return RHELImageStore(baseuri, type, scratchdir) >+ # Check for RHEL-5 >+ if fetcher.hasFile("RPM-GPG-KEY-redhat-release", progresscb): >+ logging.debug("Detected a RHEL-5 distro") >+ return RHELImageStore(baseuri, type, scratchdir) >+ # Check for RHEL-4 >+ if fetcher.hasFile("autorun", progresscb) and \ >+ fetcher.hasFile("RPM-GPG-KEY", progresscb): >+ logging.debug("Detected a RHEL-4 distro") >+ return False >+ > def _storeForDistro(fetcher, baseuri, type, progresscb, distro=None, scratchdir=None): > stores = [] > if distro == "fedora" or distro is None: >@@ -562,11 +583,18 @@ def _storeForDistro(fetcher, baseuri, ty > # Method to fetch a krenel & initrd pair for a particular distro / HV type > def acquireKernel(baseuri, progresscb, scratchdir="/var/tmp", type=None, distro=None): > fetcher = _fetcherForURI(baseuri, scratchdir) >+ store = None > if not fetcher.prepareLocation(progresscb): >- raise RuntimeError, "Invalid install location" >+ logging.debug("Tree URL could not be opened. Checking ahead for valid RH distro.") >+ store = _checkRHDistro(fetcher=fetcher, baseuri=baseuri, type=type, >+ progresscb=progresscb, distro=distro, >+ scratchdir=scratchdir) >+ if not store: >+ raise RuntimeError, "Invalid install location" > > try: >- store = _storeForDistro(fetcher=fetcher, baseuri=baseuri, type=type, \ >+ if store is None: >+ store = _storeForDistro(fetcher=fetcher, baseuri=baseuri, type=type, \ > progresscb=progresscb, distro=distro, scratchdir=scratchdir) > return store.acquireKernel(fetcher, progresscb) > finally: >@@ -575,11 +603,18 @@ def acquireKernel(baseuri, progresscb, s > # Method to fetch a bootable ISO image for a particular distro / HV type > def acquireBootDisk(baseuri, progresscb, scratchdir="/var/tmp", type=None, distro=None): > fetcher = _fetcherForURI(baseuri, scratchdir) >+ store = None > if not fetcher.prepareLocation(progresscb): >- raise RuntimeError, "Invalid install location" >+ logging.debug("Tree URL could not be opened. Checking ahead for valid RH distro.") >+ store = _checkRHDistro(fetcher=fetcher, baseuri=baseuri, type=type, >+ progresscb=progresscb, distro=distro, >+ scratchdir=scratchdir) >+ if not store: >+ raise RuntimeError, "Invalid install location" > > try: >- store = _storeForDistro(fetcher=fetcher, baseuri=baseuri, type=type, \ >+ if store is None: >+ store = _storeForDistro(fetcher=fetcher, baseuri=baseuri, type=type, \ > progresscb=progresscb, distro=distro, scratchdir=scratchdir) > return store.acquireBootDisk(fetcher, progresscb) > finally:
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 345721
:
234611
|
234621
|
234631
|
234641
|
245821
|
289501
|
291668