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

Control Plane Machine Set Operator OnDelete update should cause an error when more than one machine is ready in an index

XMLWordPrintable

    • Low
    • None
    • False
    • Hide

      None

      Show
      None

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

      Description of problem:

      when using the OnDelete update method of the ControlPlaneMachineSet, it should not be possible to have multiple machines in the Running phase in the same machine index. eg, if machine-1 is in Running phase, we should not have a machine-replacement-1 also in the Running phase.
      

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

      4.12 / main branch
      

      How reproducible:

      unsure, this is currently not tested in the code and is difficult to produce
      

      Steps to Reproduce:

      1. setup a cluster with CPMS in OnDelete update mode
      2. rename one of the master machines to have the same index as another, or manually create a machine to match. this step might be difficult to reproduce.
      3. observe logs from CPMS operator
      

      Actual results:

      no errors are emitted about the extra machine, although perhaps others are. operator does not degrade.
      

      Expected results:

      an error should be produced and the operator should go degraded
      

      Additional info:

      this bug is slightly predictive, we have not observed this condition but have detected a gap in the code that might make it possible.
      

            ddonati@redhat.com Damiano Donati
            openshift-crt-jira-prow OpenShift Prow Bot
            Zhaohua Sun Zhaohua Sun
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: