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

avoid race conditions during render cert creation

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Undefined
    • 4.16.0
    • 4.16.0
    • Etcd
    • None
    • No
    • False
    • Hide

      None

      Show
      None

    Description

      Description of problem:

      This bug is to get the fixes from another PR in:
      https://github.com/openshift/cluster-etcd-operator/pull/1235
      
      Namely that we were relying on a race condition in the fake library to sync the informer and client lister to generate the certificates.
      This fix entails a lister that directly goes via the client to avoid using the informer.

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

      4.16.0    

      How reproducible:

      always, when reordering the statements in the code    

      Steps to Reproduce:

      Reodering the code blocks as in https://github.com/openshift/cluster-etcd-operator/pull/1235/files#diff-273071b77ba329777b70cb3c4d3fb2e33bc8abf45cb3da28cbee512d591ab9ee 
      
      will immediately expose the race condition in unit tests.     

      Actual results:

          

      Expected results:

          

      Additional info:

          

      Attachments

        Activity

          People

            tjungblu@redhat.com Thomas Jungblut
            tjungblu@redhat.com Thomas Jungblut
            ge liu ge liu
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated: