Bug 1964979 - Add mapping from ACI to infraenv to handle creation order issues
Summary: Add mapping from ACI to infraenv to handle creation order issues
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: assisted-installer
Version: 4.8
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: ---
: 4.8.0
Assignee: Daniel Erez
QA Contact: Chad Crum
URL:
Whiteboard: AI-Team-Hive KNI-EDGE-4.8
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-05-26 13:23 UTC by Michael Filanov
Modified: 2021-07-27 23:10 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-07-27 23:10:12 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift assisted-service pull 1840 0 None closed OCPBUGSM-29619 map clusterdeployment to infraenv from all namespaces 2021-06-17 18:34:59 UTC
Red Hat Product Errata RHSA-2021:2438 0 None None None 2021-07-27 23:10:40 UTC

Description Michael Filanov 2021-05-26 13:23:15 UTC
Add ACI mapping method, like we have for CD:

https://github.com/openshift/assisted-service/blob/master/internal/controller/controllers/infraenv_controller.go#L383

Comment 1 Michael Filanov 2021-05-26 13:23:58 UTC
duplication of https://issues.redhat.com/browse/MGMT-6474

Comment 3 Chad Crum 2021-06-19 13:29:14 UTC
Validated fix in:
- 2.3.0-DOWNSTREAM-2021-06-17-01-26-58
- 4.8.0-fc.7 (hub cluster)

Steps:
- Created separate namespace for SNO cluster
- Created infraenv CR first
- Infraenv condition showed:
    Message:               Failed to create image: failed to get clusterDeployment with name sno-test-vm in namespace sno-test-vm: ClusterDeployment.hive.openshift.io "sno-test-vm" not found         
    Reason:                ImageCreationError 
- Created ACI + CD
- After a moment, infraenv showed:
Status:
  Conditions:
    Last Transition Time:  2021-06-19T13:26:45Z
    Message:               Image has been created
    Reason:                ImageCreated
    Status:                True
    Type:                  ImageCreated
  Iso Download URL:        https://assisted-service-rhacm.apps.ocp-edge-cluster-assisted-0.qe.lab.redhat.com/api/assisted-install/v1/clusters/e3382682-35b6-4290-96a0-83b5e0ecff82/downloads/image?api_key=eyJhbGciOiJFUzI1NiIsInR5cCI6IkpXVCJ9.eyJjbHVzdGVyX2lkIjoiZTMzODI2ODItMzViNi00MjkwLTk2YTAtODNiNWUwZWNmZjgyIn0.bMOWfCrsTVW_qe4SGVfdZRogyHG88k2DoruKkEDmpO_P3RMDOk-Codmn8VFMX6W11-

Comment 5 errata-xmlrpc 2021-07-27 23:10:12 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


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