Bug 2098243 - Add error check to Platform create for Power VS
Summary: Add error check to Platform create for Power VS
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Installer
Version: 4.11
Hardware: Unspecified
OS: Unspecified
Target Milestone: ---
: 4.11.0
Assignee: Sudha Ponnaganti
QA Contact: Julie
Depends On:
TreeView+ depends on / blocked
Reported: 2022-06-17 17:05 UTC by cklokman
Modified: 2022-08-10 11:18 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Last Closed: 2022-08-10 11:18:42 UTC
Target Upstream Version:

Attachments (Terms of Use)

System ID Private Priority Status Summary Last Updated
Github openshift installer pull 5958 0 None open Adding error handling to powervs platform. 2022-06-21 15:33:30 UTC
Red Hat Product Errata RHSA-2022:5069 0 None None None 2022-08-10 11:18:56 UTC

Description cklokman 2022-06-17 17:05:08 UTC
Description of problem:
If platform errors out, the survey continues without a platform and will error out later in the process.

How reproducible:

Steps to Reproduce:
1. Use incorrect credentials and error out of platform
2. Continue filling out survey until base domain prompts
3. Enter anything and ipi will error out will a null platform

Actual results:
? SSH Public Key /root/.ssh/id_rsa.pub
? Platform powervs
? IBM Cloud User ID mjulie.com
? Region osa
? Zone osa21
? Base Domain 

FATAL failed to fetch Install Config: failed to generate asset "Install Config": 
invalid install config: platform: Invalid value: "": must specify one of the platforms 
(alibabacloud, aws, azure, baremetal, gcp, ibmcloud, none, nutanix, openstack, ovirt, powervs, vsphere)

Expected results:
Proper error message when platform errors out.

Additional info:
Here's the fix https://github.com/openshift/installer/pull/5958/files

Comment 4 Julie 2022-07-21 12:06:07 UTC
Verified with OpenShift Installer 4.11.0-rc.4 build.
Tried a few scenarios. Not able to reproduce the invalid error message that was reported in the problem description.

On trying with incorrect credentials, it is showing a proper error message.

# ./openshift-install  create install-config --dir  err-check
? SSH Public Key /root/.ssh/id_rsa.pub
? Platform powervs
? IBM Cloud User ID mjulie.com
? IBM Cloud API Key [? for help] ****
? Region lon
? Zone lon06
FATAL failed to fetch Install Config: failed to fetch dependency of "Install Config": failed to fetch dependency of "Base Domain": failed to generate asset "Platform": Request failed with status code: 400, bad_request: Parameter role is required, specify either space_guid or org_guid

Comment 5 errata-xmlrpc 2022-08-10 11:18:42 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: OpenShift Container Platform 4.11.0 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.


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