Bug 1968427 - [master] ImageCreationError when ClusterDeployment does not match AgentClusterInstall
Summary: [master] ImageCreationError when ClusterDeployment does not match AgentCluste...
Keywords:
Status: CLOSED DUPLICATE of bug 1968570
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: assisted-installer
Version: 4.8
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: ---
: ---
Assignee: Michael Filanov
QA Contact: Yuri Obshansky
URL:
Whiteboard: KNI-EDGE-JUKE-4.8 AI-Team-Hive
Depends On:
Blocks: 1972533
TreeView+ depends on / blocked
 
Reported: 2021-06-07 11:43 UTC by Mat Kowalski
Modified: 2021-06-22 08:26 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1972533 (view as bug list)
Environment:
Last Closed: 2021-06-22 08:26:11 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Mat Kowalski 2021-06-07 11:43:27 UTC
+++ 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 Fred Rolland 2021-06-22 06:49:17 UTC
Seems that it will be solved in https://github.com/openshift/assisted-service/pull/2027

We duplicate this one to:
https://bugzilla.redhat.com/show_bug.cgi?id=1968570

Comment 2 Michael Filanov 2021-06-22 08:26:11 UTC

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


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