Bug 1190666

Summary: RFE: virt-builder should get RHEL images from RHN
Product: Red Hat Enterprise Linux 9 Reporter: Richard W.M. Jones <rjones>
Component: libguestfsAssignee: Virtualization Maintenance <virt-maint>
Status: CLOSED WONTFIX QA Contact: YongkuiGuo <yoguo>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: fdeutsch, jsuchane, kchamart, kfiresmith, leiwang, lersek, linl, mtessun, ptoscano, rjones, tbowling, virt-maint, yoguo
Target Milestone: rcKeywords: FutureFeature, Reopened, Triaged
Target Release: ---Flags: pm-rhel: mirror+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-02-10 12:45:57 UTC Type: Feature Request
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: 1288337, 1301891    

Description Richard W.M. Jones 2015-02-09 11:37:41 UTC
Description of problem:

Currently in RHEL 7.1:

$ virt-builder -l
centos-6                 x86_64     CentOS 6.6
centos-7.0               x86_64     CentOS 7.0
cirros-0.3.1             x86_64     CirrOS 0.3.1
debian-6                 x86_64     Debian 6 (Squeeze)
debian-7                 x86_64     Debian 7 (Wheezy)
fedora-18                x86_64     Fedora® 18
fedora-19                x86_64     Fedora® 19
fedora-20                x86_64     Fedora® 20
fedora-21                x86_64     Fedora® 21 Server
scientificlinux-6        x86_64     Scientific Linux 6.5
ubuntu-10.04             x86_64     Ubuntu 10.04 (Lucid)
ubuntu-12.04             x86_64     Ubuntu 12.04 (Precise)
ubuntu-14.04             x86_64     Ubuntu 14.04 (Trusty)

You can add the internal-only virt-builder RHEL repo
(http://file.rdu.redhat.com/~rjones/builder/index.asc) in
order to get RHEL images too, but customers cannot do that.

What is needed is a way to get images from RHN, which will
involve authenticating to the CDN using subscription-manager --
I'm unclear of the precise details of how this works.

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

libguestfs-tools-c-1.28.1-1.18.el7.x86_64

Comment 2 Kodiak Firesmith 2016-05-22 20:52:54 UTC
Ummm +1 I guess.  Not sure why Red Hat isn't keen to do this...

Comment 3 Richard W.M. Jones 2017-02-16 13:35:18 UTC
Moving to 7.5 because we don't have the infrastructure in place
to make this happen.  Mainly it will require RHN to publish some
kind of automated information about available cloud images.
There are also likely to be issues with passing authentication
credentials from the host to RHN.

Comment 4 Adam Young 2018-07-25 23:48:37 UTC
What would it take to make this happen?  Assuming that the host machine is enrolled with subscription-manager, and has an appropriate pool attached, it seems like the disconnect is the Enabled Repos.  virt-builder could call subscription-manager to enable the appropriate repos just during the build call.

Comment 5 Pino Toscano 2018-07-26 06:31:19 UTC
(In reply to Adam Young from comment #4)
> What would it take to make this happen?  Assuming that the host machine is
> enrolled with subscription-manager, and has an appropriate pool attached, it
> seems like the disconnect is the Enabled Repos.  virt-builder could call
> subscription-manager to enable the appropriate repos just during the build
> call.

The idea was the index files (for virt-builder repositories) are distributed via CDN, so you need to authenticate with it to fetch them, and also to fetch the actual disk images. This is because the files are not RPMs, so `subscription-manager` + `yum download` will not work.
So subscription-manager will not help in this case, since virt-builder would need to interact with the CDN (with certs, etc) on its own, or using some existing library.

Comment 6 Richard W.M. Jones 2018-07-26 08:21:04 UTC
Basically it needs someone to publish metadata in a format which
virt-builder can read.  Here's an example:

http://builder.libguestfs.org/index.asc

Here's the documentation:

http://libguestfs.org/virt-builder.1.html#create-the-templates

Comment 14 RHEL Program Management 2020-12-15 07:33:10 UTC
After evaluating this issue, there are no plans to address it further or fix it in an upcoming release.  Therefore, it is being closed.  If plans change such that this issue will be fixed in an upcoming release, then the bug can be reopened.

Comment 17 RHEL Program Management 2021-07-31 07:27:14 UTC
After evaluating this issue, there are no plans to address it further or fix it in an upcoming release.  Therefore, it is being closed.  If plans change such that this issue will be fixed in an upcoming release, then the bug can be reopened.

Comment 18 Richard W.M. Jones 2021-07-31 07:45:55 UTC
My apologies, this bug was closed by a broken process that we
do not have any control over.  Reopening.

Comment 19 John Ferlan 2021-09-09 18:46:33 UTC
Bulk update: Move RHEL-AV bugs to RHEL9. If necessary to resolve in RHEL8, then clone to the current RHEL8 release.

Comment 22 Laszlo Ersek 2022-02-10 12:45:57 UTC
Not enough capacity / interest; closing as WONTFIX.