Bug 1972532 - [4.8.0] Misleading error when ClusterImageSet specifies OpenShift version lower than 4.8
Summary: [4.8.0] Misleading error when ClusterImageSet specifies OpenShift version low...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Advanced Cluster Management for Kubernetes
Classification: Red Hat
Component: unspecified
Version: rhacm-2.3
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: ---
: rhacm-2.3.1
Assignee: Rom Freiman
QA Contact: bjacot
URL:
Whiteboard: KNI-EDGE-JUKE-4.8 AI-Team-Hive
Depends On: 1968570
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-06-16 06:56 UTC by Michael Filanov
Modified: 2021-09-20 21:15 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 1968570
Environment:
Last Closed: 2021-09-20 21:15:36 UTC
Target Upstream Version:
Embargoed:
ming: rhacm-2.3.z+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github open-cluster-management backlog issues 15678 0 None None None 2021-08-27 16:09:33 UTC
Red Hat Bugzilla 1968570 1 low CLOSED [master] Misleading error when ClusterImageSet specifies OpenShift version lower than 4.8 2021-10-18 17:33:23 UTC

Description Michael Filanov 2021-06-16 06:56:54 UTC
+++ This bug was initially created as a clone of Bug #1968570 +++

+++ Description of problem:

The error message returned to the operator when trying to create installation with OpenShift version lower than 4.8 is slightly misleading

+++ Steps to Reproduce:

1. Create ClusterImageSet "openshift-v4.7.14" pointing to "quay.io/openshift-release-dev/ocp-release:4.7.14-x86_64"
2. Create AgentClusterInstall with imageSetRef "openshift-v4.7.14"
3. Create ClusterDeployment
4. Create InfraEnv

+++ Actual results:

ACI shows error "BackendError" with reason "The Spec could not be synced due to backend error: OCP version is not specified in OPENSHIFT_VERSIONS: 4.7"

IE shows error "ImageCreationError" with reason "Failed to create image: record not found"

+++ Expected results:

As an operator it's not completely clear to me that "OCP version is not specified [...]" is equivalent to the check being performed here (i.e. whether it's at least version 4.8

--- Additional comment from mhrivnak on 20210607T15:17:32

A k8s API message should not mention specific environment variables. Here, a more clear message would be something like "RHCOS image is not configured for version 4.7". A hint about where to go to configure it would be a bonus.

Comment 1 Raz Regev 2021-06-29 12:37:50 UTC
merged to ocm-2.3
14f492489e48145db63c11e68db621ec9e11950a

Comment 12 ximhan 2021-08-20 07:26:57 UTC
OpenShift engineering has decided to NOT ship 4.8.6 on 8/23 due to the following issue.
https://bugzilla.redhat.com/show_bug.cgi?id=1995785
All the fixes part will be now included in 4.8.7 on 8/30.

Comment 16 Mike Ng 2021-09-03 14:02:53 UTC
G2Bsync 912086419 comment 
 CrystalChun Thu, 02 Sep 2021 21:56:09 UTC 
 G2Bsync Fix was merged as part of ACM 2.3 GA
Picked up in https://github.com/open-cluster-management/backlog/issues/13873


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