Bug 2107710

Summary: Add an option to rteval to download a source kernel which can be used as a load
Product: Red Hat Enterprise Linux 8 Reporter: John Kacur <jkacur>
Component: rtevalAssignee: John Kacur <jkacur>
Status: CLOSED ERRATA QA Contact: Waylon Cude <wcude>
Severity: low Docs Contact:
Priority: unspecified    
Version: 8.8CC: bhu, cyin, mstowell, qzhao, rt-maint
Target Milestone: rcKeywords: Triaged
Target Release: ---Flags: pm-rhel: mirror+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: rteval-3.4-3.el8 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 2107711 (view as bug list) Environment:
Last Closed: 2023-05-16 08:12:42 UTC Type: Bug
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: 2107711    

Description John Kacur 2022-07-15 17:28:26 UTC
Description of problem:

This option is a feature intended for rteval developers, to download a new source kernel which can be compiled by rteval as a load.

  -S KERNEL_VERSION, --source-download=KERNEL_VERSION
                        download a source kernel from kernel.org and exit

This feature is flexible on how the kernel is named, the following are all valid strings
linux-5.18.8.tar.xz
linux-5.18.8.tar.gz
linux-5.18.8
5.18.8

If the end is not specified, then xz is assumed.

The feature also works whether you run from git or from an installed rpm. (the location of the loadsource directory is different depending on where you run from.)

Finally, if the user specifies the default kernel and the default kernel exists, it refuses to overwrite it as that kernel is potentially owned by rteval-loads. (when running from the installed rpm)


Additional note:
The following should be added as a Requires: to the specfile
python3-requests

Comment 2 John Kacur 2022-08-19 17:34:51 UTC
*** Bug 2119869 has been marked as a duplicate of this bug. ***

Comment 3 John Kacur 2022-08-19 17:39:29 UTC
Should also include enhancement for using --kcompile-source=TARBALL
that makes the way the user can specify the TARBALL more flexible

Comment 9 errata-xmlrpc 2023-05-16 08:12:42 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (rteval bug fix and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2023:2737