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

Webhook OpenShift timeout set to 13s

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Undefined Undefined
    • None
    • 4.10.z
    • None
    • Moderate
    • No
    • 1
    • False
    • Hide

      None

      Show
      None

      Description of problem:

      
      There is a hardcoded limit set in the admission code in the OpenShift API and Kubernetes, that causes the webhook to timeout after 13s.
      The webhook has configuration (.webhooks[].timeoutSeconds) of a timeout in the webhook api object, however, if the value is higher than 13s, the apiserver will ignore it, and will timeout after 13 seconds. Basically the apiserver disregards the configuration and sets hardcoded 13s limit.
      
      This is nowhere documented in the openshift docs and it creates a misunderstanding that if admin sets 30s as timeout, it will timeout after 13s -> without any explanation why.
      
      https://github.com/openshift/kubernetes/blob/master/openshift-kube-apiserver/admission/admissionenablement/admission_config.go#L48
      
      

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

      OpenShift Container Platform 4.10, 4.11, 4.12
      

      How reproducible:

      
      

      Steps to Reproduce:

      1.
      2.
      3.
      

      Actual results:

      
      

      Expected results:

      
      

      Additional info:

      
      

              sdudhgao@redhat.com Servesha Dudhgaonkar
              rhn-support-vwalek Vladislav Walek
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: