Uploaded image for project: 'OpenShift Bugs'
  1. OpenShift Bugs
  2. OCPBUGS-47502

[aws] using default instance type for edge pools often fails

XMLWordPrintable

    • None
    • Installer (PB) Sprint 263, Installer (PB) Sprint 265
    • 2
    • False
    • Hide

      None

      Show
      None
    • Hide
      If an edge machine pool is specified without an instance type, the installer needs the ec2:DescribeInstanceTypeOfferings permission to derive the correct instance type available according to the local/wavelength zones being used.

      Show
      If an edge machine pool is specified without an instance type, the installer needs the ec2:DescribeInstanceTypeOfferings permission to derive the correct instance type available according to the local/wavelength zones being used.
    • Bug Fix
    • In Progress

      This is a clone of issue OCPBUGS-45218. The following is the description of the original issue:

      Description of problem:

          If the install is performed with an AWS user missing the `ec2:DescribeInstanceTypeOfferings`, the installer will use a hardcoded instance type from the set of non-edge machine pools. This can potentially cause the edge node to fail during provisioning, since the instance type doesn't take into account edge/wavelength zones support.
      
      Because edge nodes are not needed for the installation to complete, the issue is not noticed by the installer, only by inspecting the status of the edge nodes.

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

          4.16+ (since edge nodes support was added)

      How reproducible:

          always

      Steps to Reproduce:

          1. Specify an edge machine pool in the install-config without an instance type
          2. Run the install with an user without `ec2:DescribeInstanceTypeOfferings`
          3.
          

      Actual results:

          In CI the `node-readiness` test step will fail and the edge nodes will show
      
                          errorMessage: 'error launching instance: The requested configuration is currently not supported. Please check the documentation for supported configurations.'         
                          errorReason: InvalidConfiguration
                    

      Expected results:

          Either
      1. the permission is always required when instance type is not set for an edge pool; or
      2.  a better instance type default is used

      Additional info:

          Example CI job: https://prow.ci.openshift.org/view/gs/test-platform-results/pr-logs/pull/openshift_installer/9230/pull-ci-openshift-installer-master-e2e-aws-ovn-edge-zones/1862140149505200128

              rh-ee-bbarbach Brent Barbachem
              openshift-crt-jira-prow OpenShift Prow Bot
              Yunfei Jiang Yunfei Jiang
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated: