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

unit test race conditon in cluster operator status controller

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • 4.14.z, 4.15, 4.16, 4.17, 4.18.z, 4.19.0
    • None
    • None
    • False
    • Hide

      None

      Show
      None
    • Release Note Not Required
    • In Progress

      Description of problem:

          The status controller creates a ClusterOperator when one does not exist. In the test case verifying behavior with an already present ClusterOperator, it is requried to wait until the ClusterOperator created by the test is ready. Failing to do so can result in the controller attempting to create a duplicate ClusterOperator, causing the test to fail with an "already exists" error.

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

          

      How reproducible:

          Sometimes, race condition

      Steps to Reproduce:

          1. Run ci/prow/unit presubmit job
          

      Actual results:

          Test fails with:
      clusteroperators.config.openshift.io \"machine-approver\" already exists",

      Expected results:

          Test passes

      Additional info:

      Unit test only issue. No custommer impact.
      

              rmanak@redhat.com Radek Manak
              rmanak@redhat.com Radek Manak
              Zhaohua Sun Zhaohua Sun
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: