Bug 1764856 - OCP RHCOS v4.2.0 QCOW2 image for OSP is invalid
Summary: OCP RHCOS v4.2.0 QCOW2 image for OSP is invalid
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: RHCOS
Version: 4.2.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: 4.2.z
Assignee: Micah Abbott
QA Contact: Michael Nguyen
URL:
Whiteboard:
Depends On: 1765738
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-10-23 21:53 UTC by Øystein Bedin
Modified: 2020-01-30 21:09 UTC (History)
9 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1765738 (view as bug list)
Environment:
Last Closed: 2020-01-30 21:09:56 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.