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

Bug 1968435

Summary: [4.8.0] Unclear message in case of missing clusterImageSet
Product: OpenShift Container Platform Reporter: Ronnie Lazar <alazar>
Component: assisted-installerAssignee: Nir Magnezi <nmagnezi>
assisted-installer sub component: Deployment Operator QA Contact: bjacot
Status: CLOSED ERRATA Docs Contact:
Severity: medium    
Priority: medium CC: aos-bugs, ercohen, mfilanov, nshidlin
Version: 4.8Keywords: Triaged
Target Milestone: ---Flags: nshidlin: needinfo-
Target Release: 4.8.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: AI-Team-Hive KNI-EDGE-4.8 KNI-EDGE-JUKE-4.8
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1968324 Environment:
Last Closed: 2021-07-27 23:11:49 UTC Type: ---
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: 1968324    
Bug Blocks:    

Description Ronnie Lazar 2021-06-07 12:14:56 UTC
+++ This bug was initially created as a clone of Bug #1968324 +++

Description of problem:


The BMH status is empty and there is no way of knowing why.
On the "infra-env" there is a record not found error in the ImageCreated condition.

│   Conditions:                                                                                                                                              │
│     Last Transition Time:  2021-06-06T13:25:47Z                                                                                                            │
│     Message:               Failed to create image: record not found                                                                                        │
│     Reason:                ImageCreationError                                                                                                              │
│     Status:                Unknown                                                                                                                         │
│     Type:                  ImageCreated   

In the agentClusterInstall and service logs, there is a record not found error for the cluster image. 

│     Message:               The Spec could not be synced due to backend error: failed to get cluster image set /openshift-v4.8.0: ClusterImageSet.hive.open │
│ shift.io "openshift-v4.8.0" not found 


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


How reproducible:
100%

Steps to Reproduce:

1. Create the following:
BMH
pull-secret
infra-env
agent-cluster-install
cluster-deployment
2. Check the BMH status
3.

Actual results:

BMH status is empty and there is no information why.

Expected results:

Condition or event saying that clusterImageSet is missing

Additional info:

Comment 4 nshidlin 2021-07-06 09:45:15 UTC
@alazar @mfila

Comment 5 Michael Filanov 2021-07-06 11:31:16 UTC
BMH is not our resource so we can't update the status there.

Comment 6 nshidlin 2021-07-06 12:56:52 UTC
Verified with ACM 2.3.0-DOWNSTREAM-2021-07-02-22-02-33

oc get infraenvs.agent-install.openshift.io sno-0 -o json | jq '.status.conditions'
[
  {
    "lastTransitionTime": "2021-07-06T08:19:21Z",
    "message": "Failed to create image: cluster does not exist: sno-0, check AgentClusterInstall conditions: name sno-0 in namespace sno-0",
    "reason": "ImageCreationError",
    "status": "Unknown",
    "type": "ImageCreated"
  }
]

oc get agentclusterinstalls.extensions.hive.openshift.io sno-0 -o json | jq '.status.conditions[0]'
{
  "lastProbeTime": "2021-07-06T08:18:48Z",
  "lastTransitionTime": "2021-07-06T08:18:48Z",
  "message": "The Spec could not be synced due to backend error: failed to get cluster image set /4.8.6: ClusterImageSet.hive.openshift.io \"4.8.6\" not found",
  "reason": "BackendError",
  "status": "False",
  "type": "SpecSynced"
}

Comment 8 errata-xmlrpc 2021-07-27 23:11:49 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.8.2 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:2438