Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1787023

Summary: [RFE] RHCOS should provide .treeinfo file, so tools can programmatically find kernel+initrd
Product: OpenShift Container Platform Reporter: Olimp Bockowski <obockows>
Component: RHCOSAssignee: Benjamin Gilbert <bgilbert>
Status: CLOSED WONTFIX QA Contact: Michael Nguyen <mnguyen>
Severity: low Docs Contact:
Priority: low    
Version: 4.2.0CC: bbreard, crobinso, dornelas, dustymabe, imcleod, jligon, juzhou, miabbott, mzhan, nstielau, rheinzma, scuppett, smilner, tzheng, walters, xiaodwan, xtian
Target Milestone: ---Keywords: FutureFeature, UpcomingSprint
Target Release: 4.6.0   
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: 2020-09-14 20:01:17 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: 1186913    

Description Olimp Bockowski 2019-12-30 12:32:42 UTC
Description of problem:

RHCOS is not taken into consideration for (older versions) urlfetcher.py / urldetect.py (newer versions)

for urlfetcher.py (versions RHEL still uses) the enhancement would be easy as:

--- urlfetcher.py       2019-12-27 13:53:04.540313804 +0100
+++ /usr/share/virt-manager/virtinst/urlfetcher.py      2019-12-27 13:45:58.064900044 +0100
@@ -708,6 +708,8 @@
                   ]
     _hvm_paths = [("images/pxeboot/vmlinuz",
                     "images/pxeboot/initrd.img"),       # Fedora
+                  ("images/vmlinuz",
+                    "images/initramfs.img"),            # RHCOS
                   ("ppc/ppc64/vmlinuz",
                     "ppc/ppc64/initrd.img"),            # CenOS 7 ppc64le

for urldetect.py maybe a new class: _RHCOSDistro(_DistroTree)
 
Use case:
virt-install with --boot kernel=/tmp/rhcos-4.2.0-x86_64-installer-kernel,initrd=/tmp/rhcos-4.2.0-x86_64-installer-initramfs.img
...
kernel_args=coreos.inst.image_url=http://${IP}/rhcos-4.2.0-x86_64-metal-bios.raw.gz

Comment 5 Cole Robinson 2020-01-15 18:45:45 UTC
Moving to RHCOS component. If the intention is for this ISO content to be installable, RHCOS can provide a .treeinfo file, which RH distros use to tell tools where in the tree the kernel+initrd are stored. 

Example: https://dl.fedoraproject.org/pub/archive/fedora/linux/releases/30/Workstation/x86_64/os/.treeinfo
But RHEL/Centos have provided similar for a decade.

For virt-install most of that doesn't need to be provided. Really just [general] OS ID stuff, and images-$arch sections.

Comment 6 Colin Walters 2020-01-15 20:27:33 UTC
See https://github.com/coreos/fedora-coreos-tracker/issues/235 which tracks at least patching virt-install to handle CoreOS systems, as well as https://github.com/coreos/coreos-assembler/pull/1046

Comment 7 Micah Abbott 2020-03-04 03:25:35 UTC
This should be something that could be generated by `coreos-assembler` during the build of FCOS/RHCOS

Comment 17 Micah Abbott 2020-09-14 20:01:17 UTC
We've moved this BZ along as a low priority, "nice to have" feature for almost four OCP releases (nearly 9 months).  It has never received the priority to be worked on and I don't anticipate it's priority changing in the short to medium term.  As such, this will be closed as WONTFIX.

If this is a high priority business need or customer problem, please reopen with the necessary justification.  Alternatively, it would be acceptable for a motivated engineer to submit patches to https://github.com/coreos/coreos-assembler that would generate the .treeinfo during the build process.