Bug 2047258

Summary: [aws-usgov] fatal error occurred if AMI is not provided for AWS GovCloud regions
Product: OpenShift Container Platform Reporter: Yunfei Jiang <yunjiang>
Component: InstallerAssignee: aos-install
Installer sub component: openshift-installer QA Contact: Yunfei Jiang <yunjiang>
Status: CLOSED ERRATA Docs Contact:
Severity: urgent    
Priority: urgent CC: beth.white, jstuever, padillon
Version: 4.10   
Target Milestone: ---   
Target Release: 4.10.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-03-10 16:42:52 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Yunfei Jiang 2022-01-27 13:25:16 UTC
Description of problem:

Public rhcos is available on AWS GovCloud now, https://issues.redhat.com/browse/COS-822

But AMI ID is still required by openshift-installer:
openshift-install create cluster --dir gov1
? SSH Public Key /home/cloud-user/.ssh/openshift-qe.pub
? Platform aws
INFO Credentials loaded from the "default" profile in file "/home/cloud-user/.aws/credentials"
? Region us-gov-east-1
? Base Domain qe.devcluster.openshift.com
? Cluster Name yunjiang-gova
? Pull Secret [? for help] 

FATAL failed to fetch Metadata: failed to fetch dependency of "Metadata": failed to fetch dependency of "Cluster ID": failed to generate asset "Install Config": invalid install config: [controlPlane.platform.aws: Required value: AMI ID must be provided for regions cn-north-1, cn-northwest-1, us-gov-east-1, us-gov-west-1, us-iso-east-1, compute[0].platform.aws: Required value: AMI ID must be provided for regions cn-north-1, cn-northwest-1, us-gov-east-1, us-gov-west-1, us-iso-east-1]


Version-Release number of selected component (if applicable):
4.10.0-0.nightly-2022-01-24-070025

How reproducible:
Always

Steps to Reproduce:
1.create cluster on AWS GovCloud but do not provide AMI ID

Actual results:
Fatal error, Required value: AMI ID must be provided for regions cn-north-1, cn-northwest-1, us-gov-east-1, us-gov-west-1, us-iso-east-1]  

Expected results:
No fatal error, Install cluster successfully.

Additional info:

Comment 5 Yunfei Jiang 2022-01-30 09:43:32 UTC
verified. PASS. 4.10.0-0.nightly-2022-01-29-215708

install-config:
apiVersion: v1
controlPlane:
  architecture: amd64
  hyperthreading: Enabled
  name: master
  platform: {}
  replicas: 3
compute:
- architecture: amd64
  hyperthreading: Enabled
  name: worker
  platform: {}
  replicas: 3
metadata:
  name: yunjiang-gov2
platform:
  aws:
    region: us-gov-west-1
    subnets:
    - subnet-04d128f2fa9dacb8c
    - subnet-0ac9be74aa603ec87
networking:
  clusterNetwork:
  - cidr: 10.128.0.0/14
    hostPrefix: 23
  serviceNetwork:
  - 172.30.0.0/16
  machineNetwork:
  - cidr: 10.0.0.0/16
  networkType: OpenShiftSDN
publish: Internal
baseDomain: qe.devcluster.openshift.com
sshKey: <HIDDEN>
pullSecret: <HIDDEN>


additional note: 
We still can not create cluster on AWS GovCloud regions via terminal interactive UI, see Bug 2048222 - [AWS GovCloud] Cluster can not be installed on AWS GovCloud regions via terminal interactive UI.

Comment 8 errata-xmlrpc 2022-03-10 16:42:52 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.10.3 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-2022:0056