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

OLMv1: Proxy CA mount does not wait until service-ca.crt is ready

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • 4.18.0, 4.19.0
    • OLM
    • Important
    • None
    • Approved
    • False
    • Hide

      None

      Show
      None

      Description of problem:

      When the catalogd and operator-controller pods start, it sometimes happens that the "service-ca" ConfigMap has not yet had its "service-ca.crt" data item populated yet. When this happens, a directory is mounted at /var/trusted-cas/service-ca.crt instead of the expected CA file.
      
      The only way to resolve the problem is to manually delete the pod and let it be re-created AFTER the service-ca.crt data item is populated in the ConfigMap, at which point the file will mount correctly.

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

          

      How reproducible:

      Not trivially reproducible because it is a race condition between the controller populating the ConfigMap and the OLMv1 controllers    

      Steps to Reproduce:

          1. 
          2.
          3.
          

      Actual results:

      When a Proxy CA is configured, catalogd and operator controller may be unable to communicate because they may fail to parse /var/trusted-cas/service-ca.crt (which is sometimes a directory)  

      Expected results:

      Operator controller and catalogd pods always wait to start until the "service-ca" is populated with "service-ca.crt", thus ensuring the correct mount type for the CA certs.

      Additional info:

          

              tshort@redhat.com Todd Short
              jlanford@redhat.com Joe Lanford
              Xia Zhao Xia Zhao
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated: