Bug 2047258 - [aws-usgov] fatal error occurred if AMI is not provided for AWS GovCloud regions
Summary: [aws-usgov] fatal error occurred if AMI is not provided for AWS GovCloud regions
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Installer
Version: 4.10
Hardware: Unspecified
OS: Unspecified
urgent
urgent
Target Milestone: ---
: 4.10.0
Assignee: aos-install
QA Contact: Yunfei Jiang
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-01-27 13:25 UTC by Yunfei Jiang
Modified: 2022-03-10 16:43 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-03-10 16:42:52 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift installer pull 5585 0 None open Bug 2047258: Read GovCloud from RHCOS stream 2022-01-27 17:07:44 UTC
Red Hat Product Errata RHSA-2022:0056 0 None None None 2022-03-10 16:43:04 UTC

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


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