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

Catalogd can't response the compress request

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Normal Normal
    • None
    • 4.17
    • OLM / Registry
    • None
    • Moderate
    • None
    • Rejected
    • False
    • Hide

      None

      Show
      None

      Description of problem:

      The catalogd can't response the gzip compress request. Even the content-length is larger than 1400 bytes.

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

      4.17.0-0.nightly-2024-08-15-153405

      How reproducible:

      always    

      Steps to Reproduce:

      1.create one catalog in cluster
      $cat redhat-operator.yaml
      apiVersion: catalogd.operatorframework.io/v1alpha1
      kind: ClusterCatalog
      metadata:
        name: redhat-operators-74978
      spec:
        source:
          image:
            ref: quay.io/openshifttest/nginxolm-operator-index:nginxolm74978
          type: image      
      2.check the catalog status
      $oc get clustercatalog
      NAME                     PHASE      AGE
      redhat-operators-74978   Unpacked   5h28m     
      3. curl the catalog content 
      $curl -kI -H 'Accept-Encoding: gzip' https://catalogd-catalogserver-openshift-catalogd.apps.qe-daily-417-0816.qe.devcluster.openshift.com/catalogs/redhat-operators-74978/all.json     

      Actual results:

      $curl -kI -H 'Accept-Encoding: gzip' https://catalogd-catalogserver-openshift-catalogd.apps.qe-daily-417-0816.qe.devcluster.openshift.com/catalogs/redhat-operators-74978/all.json
      HTTP/1.1 200 Connection establishedHTTP/1.1 200 OK
      accept-ranges: bytes
      content-length: 8545
      content-type: application/jsonl
      last-modified: Fri, 16 Aug 2024 01:53:24 GMT
      vary: Accept-Encoding
      date: Fri, 16 Aug 2024 07:22:21 GMT
      set-cookie: a3708af5b12ab56e0f6e4538619f178a=cbe995860a8d445cacfea703b1cbde70; path=/; HttpOnly; Secure; SameSite=None
      cache-control: private

      Expected results:

      $curl -kI -H 'Accept-Encoding: gzip' https://catalogd-catalogserver-openshift-catalogd.apps.qe-daily-417-0816.qe.devcluster.openshift.com/catalogs/redhat-operators-74978/all.json
      HTTP/1.1 200 Connection establishedHTTP/1.1 200 OK
      accept-ranges: bytes
      content-length: 8545
      content-type: application/jsonl
      content-encoding: gzip
      last-modified: Fri, 16 Aug 2024 01:53:24 GMT
      vary: Accept-Encoding
      date: Fri, 16 Aug 2024 07:22:21 GMT
      set-cookie: a3708af5b12ab56e0f6e4538619f178a=cbe995860a8d445cacfea703b1cbde70; path=/; HttpOnly; Secure; SameSite=None
      cache-control: private

      Additional info:

          

              rh-ee-cchantse Catherine Chan-Tse
              rhn-support-jfan Jia Fan
              Jia Fan Jia Fan
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: