Bug 1764856

Summary: OCP RHCOS v4.2.0 QCOW2 image for OSP is invalid
Product: OpenShift Container Platform Reporter: Øystein Bedin <obedin>
Component: RHCOSAssignee: Micah Abbott <miabbott>
Status: CLOSED CURRENTRELEASE QA Contact: Michael Nguyen <mnguyen>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 4.2.0CC: amasolov, bbreard, dustymabe, imcleod, jligon, mkrutov, mtoth, nstielau, walters
Target Milestone: ---   
Target Release: 4.2.z   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1765738 (view as bug list) Environment:
Last Closed: 2020-01-30 21:09:56 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: 1765738    
Bug Blocks:    

Description Øystein Bedin 2019-10-23 21:53:18 UTC
Description of problem:
Downloaded the RHCOS QCOW2 image from access.redhat.com (verified correct SHA-256 checksum) and it won't boot on OSP. Failing at POST with "Boot failed: not a bootable disk". 

Version-Release number of selected component (if applicable):
rhcos-4.2.0-x86_64-openstack.qcow2
SHA-256: b9225f67ae16ef38625c9669d556324d6422b29b5f6bfbd87e960062bfb37f70


How reproducible:
Download above mentioned image from access.redhat.com, then upload to OSP and attempt boot from image. 


Steps to Reproduce:
1. Download above mentioned image from access.redhat.com
2. Upload to OSP
3. Attempt Boot from image

Actual results:
Fails to boot

Expected results:
Boot should work as with earlier versions of the RHCOS QCOW2 image. 


Additional info:
An interesting observation is that the earlier RHCOS QCOW2 images have been much larger in size - 1.7-1.8G. This 4.2.0 image is 667MB. I suspect this image was maybe incorrectly built(?) resulting in a smaller size?

Comment 1 Micah Abbott 2019-10-24 13:03:32 UTC
I think this is just a case of a missing file suffix.  The OpenStack image coming out of the build pipeline is ultimately compressed via `gzip`, but during the upload process the file suffix is dropped.

To confirm, I went to:

https://access.redhat.com/downloads/content/290/ver=4.2/rhel---8/4.2.0/x86_64/product-software

And downloaded:

rhcos-4.2.0-x86_64-openstack.qcow2

Checked the sa256sum:

$ sha256sum rhcos-4.2.0-x86_64-openstack.qcow2
b9225f67ae16ef38625c9669d556324d6422b29b5f6bfbd87e960062bfb37f70  rhcos-4.2.0-x86_64-openstack.qcow2

Last modified:
    2019-10-16
SHA-256 Checksum:
    b9225f67ae16ef38625c9669d556324d6422b29b5f6bfbd87e960062bfb37f70 

When I check the filetype, it shows as gzip compressed data:

$ file rhcos-4.2.0-x86_64-openstack.qcow2
rhcos-4.2.0-x86_64-openstack.qcow2: gzip compressed data, was "rhcos-42.80.20191002.0-openstack.qcow2", last modified: Wed Oct  2 13:48:08 2019, from Unix, original size 1911160832


The workaround here is to rename the file with the `.gz` suffix and uncompress the file before using it.

$ mv rhcos-4.2.0-x86_64-openstack.qcow2 rhcos-4.2.0-x86_64-openstack.qcow2.gz
$ gunzip rhcos-4.2.0-x86_64-openstack.qcow2.gz
$ file rhcos-4.2.0-x86_64-openstack.qcow2
rhcos-4.2.0-x86_64-openstack.qcow2: QEMU QCOW2 Image (v3), 17179869184 bytes


I'll investigate getting the file renamed appropriately on access.redhat.com

Comment 2 Øystein Bedin 2019-10-24 15:59:20 UTC
Ahh, yes, you are correct. Forgot about that piece and missed the note in the official docs. Your suggestion to rename the file would be much better to avoid this confusion. Thank you.

Comment 6 Colin Walters 2020-01-30 21:09:56 UTC
This is fixed in 4.3 at least; doesn't seem worth trying to fix 4.2.