Uploaded image for project: 'Red Hat OpenShift Dev Spaces (formerly CodeReady Workspaces) '
  1. Red Hat OpenShift Dev Spaces (formerly CodeReady Workspaces)
  2. CRW-8247

Fix defile API tests which are failing when run on airgap cluster on workspace creation step because of proxy-server error

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Done
    • Icon: Critical Critical
    • 3.19.0.GA
    • 3.19.0.GA
    • testing
    • False
    • None
    • False

      defile API tests are failing when run on airgap cluster on workspace creation step because of proxy-server error:

      https://jenkins-csb-crwqe-main.dno.corp.redhat.com/job/Testing/job/e2e/job/basic/job/api-tests/11528/

                 ▼ ShellExecutor.executeCommand - oc whoami && oc whoami --show-server=true
       admin
       https://api.ds-airgap-v15.crw-qe.com:6443
                 ▼ KubernetesCommandLineToolsExecutor.getServerUrl - oc - get server api url.
                 ▼ KubernetesCommandLineToolsExecutor.loginToOcp - oc - user already logged
       command: oc get pods -n openshift-devspaces
                 ▼ ShellExecutor.executeArbitraryShellScript - oc get pods -n openshift-devspaces | grep dashboard | awk '{print $1}'
                 ▼ ShellExecutor.executeCommand - oc get pods -n openshift-devspaces | grep dashboard | awk '{print $1}'
       devspaces-dashboard-795bc88446-mbsg5
                 ▼ ShellExecutor.executeArbitraryShellScript - oc get pod -n openshift-devspaces devspaces-dashboard-795bc88446-mbsg5 -o jsonpath='{.spec.containers[*].name}'
                 ▼ ShellExecutor.executeCommand - oc get pod -n openshift-devspaces devspaces-dashboard-795bc88446-mbsg5 -o jsonpath='{.spec.containers[*].name}'
       devspaces-dashboard          ▼ ShellExecutor.executeArbitraryShellScript - oc get svc devspaces-dashboard -n  openshift-devspaces -o=jsonpath='{.spec.clusterIP}'
                 ▼ ShellExecutor.executeCommand - oc get svc devspaces-dashboard -n  openshift-devspaces -o=jsonpath='{.spec.clusterIP}'
       172.30.246.142          ▼ ShellExecutor.executeArbitraryShellScript - oc get svc devspaces-dashboard -n  openshift-devspaces -o=jsonpath='{.spec.ports[*].port}'
                 ▼ ShellExecutor.executeCommand - oc get svc devspaces-dashboard -n  openshift-devspaces -o=jsonpath='{.spec.ports[*].port}'
       8080          ▼ ShellExecutor.executeCommand - oc exec -i devspaces-dashboard-795bc88446-mbsg5 -n  openshift-devspaces -c devspaces-dashboard -- sh -c 'curl -o /tmp/go-devfile.yaml http://172.30.246.142:8080/dashboard/api/airgap-sample/devfile/download?id=go'
         % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                        Dload  Upload   Total   Spent    Left  Speed
       
        0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
      100  1875  100  1875    0     0   140k      0 --:--:-- --:--:-- --:--:--  152k
                 ▼ ShellExecutor.executeArbitraryShellScript - oc exec -i devspaces-dashboard-795bc88446-mbsg5 -n  openshift-devspaces -c devspaces-dashboard -- cat /tmp/go-devfile.yaml
                 ▼ ShellExecutor.executeCommand - oc exec -i devspaces-dashboard-795bc88446-mbsg5 -n  openshift-devspaces -c devspaces-dashboard -- cat /tmp/go-devfile.yaml
       <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
       <html><head>
       <meta type="copyright" content="Copyright (C) 1996-2020 The Squid Software Foundation and contributors">
       <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
       <title>ERROR: The requested URL could not be retrieved</title>
       <style type="text/css"><!--
        
       
       body
       :lang(fa) { direction: rtl; font-size: 100%; font-family: Tahoma, Roya, sans-serif; float: right; }
       :lang(he) { direction: rtl; }
        --></style>
       </head><body id=ERR_ACCESS_DENIED>
       <div id="titles">
       <h1>ERROR</h1>
       <h2>The requested URL could not be retrieved</h2>
       </div>
       <hr>
       
       <div id="content">
       <p>The following error was encountered while trying to retrieve the URL: <a href="http://172.30.246.142:8080/dashboard/api/airgap-sample/devfile/download?">http://172.30.246.142:8080/dashboard/api/airgap-sample/devfile/download?</a></p>
       
       <blockquote id="error">
       <p><b>Access Denied.</b></p>
       </blockquote>
       
       <p>Access control configuration prevents your request from being allowed at this time. Please contact your service provider if you feel this is incorrect.</p>
       
       <p>Your cache administrator is <a href="mailto:root?subject=CacheErrorInfo%20-%20ERR_ACCESS_DENIED&amp;body=CacheHost%3A%20ip-10-0-0-17%0D%0AErrPage%3A%20ERR_ACCESS_DENIED%0D%0AErr%3A%20%5Bnone%5D%0D%0ATimeStamp%3A%20Mon,%2024%20Feb%202025%2009%3A09%3A38%20GMT%0D%0A%0D%0AClientIP%3A%2010.0.76.53%0D%0A%0D%0AHTTP%20Request%3A%0D%0AGET%20%2Fdashboard%2Fapi%2Fairgap-sample%2Fdevfile%2Fdownload%3Fid%3Dgo%20HTTP%2F1.1%0AUser-Agent%3A%20curl%2F7.76.1%0D%0AAccept%3A%20*%2F*%0D%0AProxy-Connection%3A%20Keep-Alive%0D%0AHost%3A%20172.30.246.142%3A8080%0D%0A%0D%0A%0D%0A">root</a>.</p>
       <br>
       </div>
       
       <hr>
       <div id="footer">
       <p>Generated Mon, 24 Feb 2025 09:09:38 GMT by ip-10-0-0-17 (squid/4.13)</p>
       <!-- ERR_ACCESS_DENIED -->
       </div>
       </body></html>
      

      Solution

      Use internal http URL of dashboard: http://devspaces-dashboard.openshift-devspaces.svc:8080

              dnochevn Dmytro Nochevnov
              dnochevn Dmytro Nochevnov
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: