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

CPMS doesn't always generate configurations for AWS

XMLWordPrintable

    • No
    • CLOUD Sprint 234
    • 1
    • Rejected
    • False
    • Hide

      None

      Show
      None
    • Hide
      * Previously, the Control Plane Machine Set Operator used the `Infrastructure` object specification to determine the platform type for the cluster. For clusters upgraded from {product-title} version 4.5 and earlier, this meant that the Operator could not correctly determine that a cluster was running on AWS, and therefore did not generate the `ControlPlaneMachineSet` custom resource (CR) as expected. With this release, the Operator uses the status platform type, which is populated on all clusters independent of when they were created, and is now able to generate the `ControlPlaneMachineSet` CR for all clusters. (link:https://issues.redhat.com/browse/OCPBUGS-11389[*OCPBUGS-11389*])
      Show
      * Previously, the Control Plane Machine Set Operator used the `Infrastructure` object specification to determine the platform type for the cluster. For clusters upgraded from {product-title} version 4.5 and earlier, this meant that the Operator could not correctly determine that a cluster was running on AWS, and therefore did not generate the `ControlPlaneMachineSet` custom resource (CR) as expected. With this release, the Operator uses the status platform type, which is populated on all clusters independent of when they were created, and is now able to generate the `ControlPlaneMachineSet` CR for all clusters. (link: https://issues.redhat.com/browse/OCPBUGS-11389 [* OCPBUGS-11389 *])
    • Bug Fix
    • Done

      Description of problem:

      In certain cases, an AWS cluster running 4.12 doesn't automatically generate a controlplanemachineset when it's expected to.
      
      It looks like CPMS is looking for `infrastructure.Spec.PlatformSpec.Type` (https://github.com/openshift/cluster-control-plane-machine-set-operator/blob/2aeaaf9ec714ee75f933051c21a44f648d6ed42b/pkg/controllers/controlplanemachinesetgenerator/controller.go#L180) and as result, clusters born earlier than 4.5 when this field was introduced (https://github.com/openshift/installer/pull/3277) will not be able to generate a CPMS.
      
      I believe we should be looking at `infrastructure.Status.PlatformStatus.Type` instead
      

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

      4.12.9
      

      How reproducible:

      Consistent
      

      Steps to Reproduce:

      1. Install a cluster on a version earlier than 4.5
      2. Upgrade cluster through to 4.12
      3. Observe "Unable to generate control plane machine set, unsupported platform" error message from the control-plane-machine-set-operator, as well as the missing CPMS object in the openshift-machine-api namespace
      

      Actual results:

      No generated CPMS is created, despite the platform being AWS
      

      Expected results:

      A generated CPMS existing in the openshift-machine-api namespace
      

      Additional info:

      
      

            joelspeed Joel Speed
            cblecker.openshift Christoph Blecker
            Huali Liu Huali Liu
            Jeana Routh Jeana Routh
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: