Bug 2017874

Summary: The installer is incorrectly checking the quota for X instances instead of G and VT instances
Product: OpenShift Container Platform Reporter: Beth White <beth.white>
Component: InstallerAssignee: Aditya Narayanaswamy <anarayan>
Installer sub component: openshift-installer QA Contact: Yunfei Jiang <yunjiang>
Status: CLOSED ERRATA Docs Contact:
Severity: medium    
Priority: medium CC: anarayan, knoha, mstaeble, yunjiang
Version: 4.9   
Target Milestone: ---   
Target Release: 4.10.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
The installer defaults all unknown instances to type X. This caused even the G and VT instances that were not previously considered to be defaulted to X. Adding a case statement to provide a separate quota values for G and VT instances.
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-03-10 16:22:12 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 Beth White 2021-10-27 15:43:05 UTC
The Installer is checking the wrong quota when the user selected G or VT instance types. The installer only knows about "Standard (A, C, D, H, I, M, R, T, Z) instances" and assumes that everything else falls under "X instances". The installer should instead be checking the quotas for "G and VT instances". This is a deficiency in the validation around available quota in the user's account.

There is a current workaround for the customer to either (1) have the user increase their quota for X instances or (2) have the user use an IAM user that does not have permission to check quota.

Comment 4 Yunfei Jiang 2022-01-27 03:15:44 UTC
verified. PASS.


aws service-quotas list-service-quotas --service-code=ec2 --query 'Quotas[?QuotaCode==`L-DB2E81BA`]' | jq .[].Value
920

aws ec2 describe-instance-types --instance-types g3.16xlarge | jq '.InstanceTypes[].VCpuInfo.DefaultVCpus'
64

install-config.yaml:
compute:
- architecture: amd64
  hyperthreading: Enabled
  name: worker
  platform:
    aws:
      type: g3.16xlarge
  replicas: 12
controlPlane:
  architecture: amd64
  hyperthreading: Enabled
  name: master
  platform:
    aws:
      type: g3.16xlarge
  replicas: 3

error message:
FATAL failed to fetch Cluster: failed to fetch dependency of "Cluster": failed to generate asset "Platform Quota Check": error(MissingQuota): ec2/L-DB2E81BA is not available in us-east-2 because the required number of resources (960) is more than the limit of 920

Comment 5 Yunfei Jiang 2022-01-27 03:16:17 UTC
OCP version: 4.10.0-0.nightly-2022-01-24-070025

Comment 8 errata-xmlrpc 2022-03-10 16:22:12 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