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

Devfile Catalog and Import a Devfile on a fully disconnected cluster should fail directly instead of timeout after 30sec

XMLWordPrintable

    • Moderate
    • None
    • Rejected
    • False
    • Hide

      None

      Show
      None

      Description of problem:
      Users on a fully-disconnected cluster could not see Devfiles in the developer catalog or import a Devfiles. That's fine.

      But the API calls /api/devfile/samples/ and /api/devfile/ takes 30 seconds until they fail with a 504 Gateway timeout error.

      If possible they should fail immediately.

      Version-Release number of selected component (if applicable):
      This might happen since 4.8

      Tested this yet only on 4.12.0-0.nightly-2022-09-07-112008

      How reproducible:
      Always

      Steps to Reproduce:

      1. Start a disconnected cluster with a proxy
      2. Open the browser network inspector and filter for /api/devfile
      3. Switch to Developer perspective
        1. Navigate to Add > Developer Catalog (All Services) > Devfiles
        2. Or Add > Import from Git > and enter https://github.com/devfile-samples/devfile-sample-go-basic.git

      Actual results:

      • Network call fails after 30 seconds
      • Import doesn't work

      Expected results:

      • Network calls should fail immediately
      • We doesn't expect that the import will work

      Additional info:
      The console Pod log contains this error:

      E0909 10:28:18.448680 1 devfile-handler.go:74] Failed to parse devfile: failed to populateAndParseDevfile: Get "https://registry.devfile.io/devfiles/go": context deadline exceeded (Client.Timeout exceeded while awaiting headers)
      

              ktsao@redhat.com Kim Tsao
              cjerolim Christoph Jerolimov
              Sanket Pathak Sanket Pathak
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: