Bug 2009204 - InfraEnv condition does not reflect the actual error message
Summary: InfraEnv condition does not reflect the actual error message
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Advanced Cluster Management for Kubernetes
Classification: Red Hat
Component: Infrastructure Operator
Version: rhacm-2.4
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: rhacm-2.5
Assignee: Fred Rolland
QA Contact: bjacot
Christopher Dawson
URL:
Whiteboard: AI-Team-Hive
Depends On:
Blocks: 2010030
TreeView+ depends on / blocked
 
Reported: 2021-09-30 07:35 UTC by Fred Rolland
Modified: 2022-04-19 06:16 UTC (History)
5 users (show)

Fixed In Version: OCP-Metal-v1.0.26.0
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 2010030 (view as bug list)
Environment:
Last Closed: 2021-11-11 18:33:32 UTC
Target Upstream Version:
Embargoed:
ming: rhacm-2.4+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github open-cluster-management backlog issues 16800 0 None None None 2021-10-04 13:19:35 UTC
Github openshift assisted-service pull 2675 0 None open Bug 2009204: Add error msg to InfraEnv condition 2021-09-30 09:05:56 UTC
Red Hat Issue Tracker MGMTBUGSM-45 0 None None None 2022-04-19 06:16:23 UTC
Red Hat Product Errata RHSA-2021:4618 0 None None None 2021-11-11 18:33:58 UTC

Internal Links: 2010030

Description Fred Rolland 2021-09-30 07:35:49 UTC
Description of problem:

When an error happens in the InfraEnv controller loop, for example a non existing pull secret, the error in the conditions shows :
'Failed to create image: internal error'
without the error message from the underlying error.

Version-Release number of selected component (if applicable):


How reproducible:
100%

Steps to Reproduce:
1. Create an InfraEnv CR with a wrong pull secret name
2. Check InfraEnv conditions.

Actual results:

  conditions:
  - lastTransitionTime: "2021-09-30T07:20:31Z"
    message: 'Failed to create image: internal error'
    reason: ImageCreationError
    status: "False"
    type: ImageCreated

Expected results:
  conditions:
  - lastTransitionTime: "2021-09-30T07:20:31Z"
    message: 'Failed to create image: internal error: failed to get secret assisted-installer/pull-secret-nope from API: secrets "pull-secret-nope" not found"'
    reason: ImageCreationError
    status: "False"
    type: ImageCreated


Additional info:

Comment 5 errata-xmlrpc 2021-11-11 18:33:32 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 (Important: Red Hat Advanced Cluster Management 2.4 images and security updates), 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:4618


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