Bug 2122967

Summary: Cluster does not installs because AgentServiceConfig missing entry
Product: Red Hat Advanced Cluster Management for Kubernetes Reporter: Jose Gato <jgato>
Component: Infrastructure OperatorAssignee: Daniel Erez <derez>
Status: CLOSED DUPLICATE QA Contact: Chad Crum <ccrum>
Severity: unspecified Docs Contact: Derek <dcadzow>
Priority: unspecified    
Version: rhacm-2.5CC: agogala, ccrum, derez, gekis, trwest, yfirst
Target Milestone: ---   
Target Release: ---   
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: 2022-09-13 07:41:06 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:

Description Jose Gato 2022-08-31 12:58:10 UTC
Description of the problem:

Triyng to install a cluster with OCP4.10:
 * OCP4.10 is available as a clusterimageset
 * AgentServiceConfig does not includes an entry for 4.10 installer iso.

The AgentClusterInstall gives the following error:
 
```

  - lastProbeTime: "2022-08-31T08:06:36Z"    lastTransitionTime: "2022-08-31T08:06:36Z"    message: 'The Spec could not be synced due to backend error: failed to add release image ''quay.io/openshift-release-dev/ocp-release:4.10.28-x86_64''. Please ensure the releaseImage field in ClusterImageSet ''openshift-v4.10.latest'' is valid (contact your admin with this info).'    reason: BackendError    status: "False"    type: SpecSynced

```
But the Openshift image, referenced from ClusterImageSet is correct. So the error is not there. The error is in the assisted-image-service that does not contain the proper version for 4.10

IIRC, in the past, I remember a more clear error saying something like "4.10 version" missing. 

We are using ZTP Gitops, so, we configure the image to install with:   clusterImageSetNameRef: "img4.10.5-x86-64-appsub"



Release version: RHACM2.5

Operator snapshot version:

OCP version: 4.10

Browser Info:

Steps to reproduce:
1. Create a SiteConfig with 'clusterImageSetNameRef: "img4.10.5-x86-64-appsub"'
2. Synch ArgoCD
3. All the different resources are created (infraenv,bmh, AgentClusterInstall)
4. AgentClusterInstall error: 
  - lastProbeTime: "2022-08-31T08:06:36Z"    lastTransitionTime: "2022-08-31T08:06:36Z"    message: 'The Spec could not be synced due to backend error: failed to add release image ''quay.io/openshift-release-dev/ocp-release:4.10.28-x86_64''. Please ensure the releaseImage field in ClusterImageSet ''openshift-v4.10.latest'' is valid (contact your admin with this info).'    reason: BackendError    status: "False"    type: SpecSynced
 
Actual results:

AgentClusterInstall error is not accurated.


Expected results:
AgentClusterInstall should point to the missing iso from the assissted-image-service. IIRC, I have seen that kind of error on previous version.

Additional info: