Bug 1972533

Summary: [4.8.0] ImageCreationError when ClusterDeployment does not match AgentClusterInstall
Product: OpenShift Container Platform Reporter: Michael Filanov <mfilanov>
Component: assisted-installerAssignee: Raz Regev <rregev>
assisted-installer sub component: assisted-service QA Contact: Yuri Obshansky <yobshans>
Status: CLOSED DUPLICATE Docs Contact:
Severity: low    
Priority: low CC: alazar, aos-bugs, mko, rregev
Version: 4.8Keywords: Triaged
Target Milestone: ---   
Target Release: 4.8.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: KNI-EDGE-JUKE-4.8 AI-Team-Hive
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1968427 Environment:
Last Closed: 2021-06-22 08:26:30 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: 1968427, 1968570    
Bug Blocks:    

Description Michael Filanov 2021-06-16 06:59:13 UTC
+++ This bug was initially created as a clone of Bug #1968427 +++

+++ Description of problem:

"ImageCreationError" with "Failed to create image: record not found" does not provide enough informations to trace the origin of the error

+++ Steps to Reproduce:

1. Create AgentClusterInstall and ClusterDeployment with mismatching references, e.g.

```
---
apiVersion: hive.openshift.io/v1
kind: ClusterImageSet
metadata:
  name: openshift-v4.8.0-fc7
spec:
  releaseImage: quay.io/openshift-release-dev/ocp-release:4.8.0-fc.7-x86_64

---
apiVersion: extensions.hive.openshift.io/v1beta1
kind: AgentClusterInstall
metadata:
  name: bmac-test-bughunter-2
  namespace: assisted-installer-bughunter-3
spec:
  clusterDeploymentRef:
    name: single-node-bughunter-3
  imageSetRef:
    name: openshift-v4.8.0-fc7
[...]

---
apiVersion: hive.openshift.io/v1
kind: ClusterDeployment
metadata:
  name: single-node-bughunter-3
  namespace: assisted-installer-bughunter-3
spec:
  clusterInstallRef:
    group: extensions.hive.openshift.io
    kind: AgentClusterInstall
    name: bmac-test-bughunter-3
    version: v1beta1
[...]

---
apiVersion: agent-install.openshift.io/v1beta1
kind: InfraEnv
metadata:
  name: myinfraenv-bughunter-3
  namespace: assisted-installer-bughunter-3
spec:
  clusterRef:
    name: single-node-bughunter-3
    namespace: assisted-installer-bughunter-3
[...]
```

Please note "bughunter-2" vs "bughunter-3"

+++ Expected results:

As an operator I would expect InfraEnv status to be more descriptive

Comment 1 Michael Filanov 2021-06-22 08:26:30 UTC

*** This bug has been marked as a duplicate of bug 1968570 ***