Bug 1962957 - [master] Assisted service reports a malformed iso when we fail to download the base iso
Summary: [master] Assisted service reports a malformed iso when we fail to download th...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: assisted-installer
Version: 4.8
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: 4.9.0
Assignee: Nick Carboni
QA Contact: bjacot
URL:
Whiteboard: AI-Team-Core KNI-EDGE-4.8
Depends On:
Blocks: mint 1969712
TreeView+ depends on / blocked
 
Reported: 2021-05-20 20:49 UTC by Nick Carboni
Modified: 2021-10-18 17:32 UTC (History)
3 users (show)

Fixed In Version: OCP-Metal-v1.0.22.1
Doc Type: No Doc Update
Doc Text:
Clone Of:
: 1969712 (view as bug list)
Environment:
Last Closed: 2021-10-18 17:31:44 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift assisted-service pull 1787 0 None open Bug 1962957 - Check the response status code when downloading files 2021-05-20 21:02:15 UTC
Github openshift assisted-service pull 1958 0 None open OCPBUGSM-29458: Check the response status code from http.Get 2021-06-08 21:05:47 UTC
Red Hat Product Errata RHSA-2021:3759 0 None None None 2021-10-18 17:32:03 UTC

Internal Links: 1969712

Description Nick Carboni 2021-05-20 20:49:46 UTC
Description of problem:
If we fail to download a base rhcos iso, we report the error when we try to extract the boot files rather than directly after the call.

Steps to Reproduce:
1. Deploy assisted service with the rhcos iso pointing to a faulty http server
2. Observe the logs

Actual results:
msg="Got leader, stop waiting" func="github.com/openshift/assisted-service/pkg/leader.(*Elector).waitForLeader" file="/go/src/github.com/openshift/origin/pkg/leader/leaderelector.go:94" configMap=assisted-service-baseiso-helper pkg=baseISOUploadLeader
time="2021-05-19T20:13:47Z" level=warning msg="ISO template version metadata not found, uploading latest" func=github.com/openshift/assisted-service/pkg/s3wrapper.HaveLatestMinimalTemplate file="/go/src/github.com/openshift/origin/pkg/s3wrapper/util.go:173" error="object minimal_templates_version.json was not found"
time="2021-05-19T20:13:47Z" level=info msg="Starting to upload initrd.img from Base ISO rhcos-48.84.202105182219-0.iso" func=github.com/openshift/assisted-service/pkg/s3wrapper.ExtractBootFilesFromISOAndUpload file="/go/src/github.com/openshift/origin/pkg/s3wrapper/util.go:65" go-id=892 request_id=
time="2021-05-19T20:13:47Z" level=fatal msg="Failed to extract and upload file initrd.img from ISO" func=github.com/openshift/assisted-service/pkg/s3wrapper.ExtractBootFilesFromISOAndUpload file="/go/src/github.com/openshift/origin/pkg/s3wrapper/util.go:68" error="Failed to read file /images/pxeboot/initrd.img from ISO: Unknown filesystem on partition 0" go-id=892 request_id=

Expected results:
A better error message

Comment 2 Nick Carboni 2021-06-08 20:14:16 UTC
Tried this out with the operator and it turns out the filesystem client goes through a different path that also has the original bug.
Missed that in the first pass so pushing this back to ASSIGNED.

Comment 3 bjacot 2021-06-14 19:09:01 UTC
Able to verify in the assisted-service latest that i am able to recieve this log message.

$ oc logs assisted-service-688595498f-skjj7 -c assisted-service | grep fetching
time="2021-06-14T19:05:30Z" level=fatal msg="Failed to upload boot files" func=main.main.func1 file="/go/src/github.com/openshift/origin/cmd/main.go:176" error="Failed uploading boot files for OCP version 4.7: Failed fetching from URL http://registry.ocp-edge-cluster-bjacot2-0.qe.lab.redhat.com:8080/images/pub/openshift-v4/dependencies/rhcos/pre-release/badlink/4.8.0-fc.8/rhcos-4.8.0-fc.8-x86_64-live.x86_64.iso: Received 404 Not Found"

Comment 7 errata-xmlrpc 2021-10-18 17:31:44 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 (Moderate: OpenShift Container Platform 4.9.0 bug fix and security 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/RHSA-2021:3759


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