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 584961 Details for
Bug 817154
Kernel- Check OS kernel build fails with MRG-RT kernel
[?]
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]
info test patch to check for RT kernel and MRG release file
info.patch (text/plain), 3.83 KB, created by
Greg Nichols
on 2012-05-16 13:35:55 UTC
(
hide
)
Description:
info test patch to check for RT kernel and MRG release file
Filename:
MIME Type:
Creator:
Greg Nichols
Created:
2012-05-16 13:35:55 UTC
Size:
3.83 KB
patch
obsolete
>Index: info.py >=================================================================== >--- info.py (revision 1288) >+++ info.py (working copy) >@@ -135,12 +135,27 @@ > modules.append(match.group("mod_name")) > procModules.close() > return modules >+ >+ def checkKernelIsGA(self): >+ release = self.redHatRelease >+ # if kernel is RT >+ if self.redHatRelease.getKernelFlavor() == Constants.rt: >+ # if etc realtime release file is found, use it as the release name >+ print "Kernel is real-time" >+ if self.redHatRelease.getRealTimeRelease(): >+ release = self.redHatRelease.getRealTimeRelease() >+ # else, warn - disable check >+ else: >+ print "Warning: the running kernel is a realtime kernel %s, but product release information could not be found" >+ return True >+ >+ return self.__checkKernelIsGA(release) > > >- def checkKernelIsGA(self): >+ def __checkKernelIsGA(self, release): > >- if "Red Hat"not in self.redHatRelease.getProduct() or self.redHatRelease.getVersion() < 5: >- print "Warning: could not check kernel GA status for %s version %s" % (self.redHatRelease.getProduct(), self.redHatRelease.getVersion()) >+ if "Red Hat"not in release.getProduct() or (release.getProduct() == "Red Hat Enterprise Linux" and self.redHatRelease.getVersion() < 5): >+ print "Warning: could not check kernel GA status for %s version %s" % (release.getProduct(), release.getVersion()) > # return True > > kernelInfo = None >@@ -179,22 +194,22 @@ > if self.debug is not Constants.off: > print "reading kernel info file " + kernelInfoFile > kernelInfo = KernelInfo(kernelInfoFile) >- RHELGAKernel = kernelInfo.getGAKernel(self.redHatRelease.getVersion(), self.redHatRelease.getUpdate()) >+ RHELGAKernel = kernelInfo.getGAKernel(release.getVersion(), release.getUpdate()) > > if RHELGAKernel: >- if self.redHatRelease.getKernelVersionRelease() == RHELGAKernel: >- print "Kernel is RHEL %s.%s GA: %s" % (self.redHatRelease.getVersion(), self.redHatRelease.getUpdate(), RHELGAKernel) >+ if release.getKernelVersionRelease() == RHELGAKernel: >+ print "Kernel is RHEL %s.%s GA: %s" % (release.getVersion(), release.getUpdate(), RHELGAKernel) > return True > # allow partial matches from the left-end of the V-R string > try: >- if self.redHatRelease.getKernelVersionRelease().index(RHELGAKernel) is 0: >- print "Warning: Kernel %s is a partial match RHEL %s.%s GA (%s)." % (self.redHatRelease.getKernelVersionRelease(), self.redHatRelease.getVersion(), self.redHatRelease.getUpdate(), RHELGAKernel) >+ if release.getKernelVersionRelease().index(RHELGAKernel) is 0: >+ print "Warning: Kernel %s is a partial match RHEL %s.%s GA (%s)." % (release.getKernelVersionRelease(), release.getVersion(), release.getUpdate(), RHELGAKernel) > return True > except ValueError: > # no match, fall through to error > pass > # otherwise >- print "Error: Kernel is %s and not RHEL %s.%s GA (%s)" % (self.redHatRelease.getKernelVersionRelease(), self.redHatRelease.getVersion(), self.redHatRelease.getUpdate(), RHELGAKernel) >+ print "Error: Kernel is %s and not RHEL %s.%s GA (%s)" % (release.getKernelVersionRelease(), release.getVersion(), release.getUpdate(), RHELGAKernel) > return False > except IOError: > print "Error: could not open kernel info file " + kernelInfoFile
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 817154
:
584960
| 584961 |
585400
|
585411
|
585428
|
585429
|
587401