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

[airgap] Can't install Python vsix extension in VS Code Editor

XMLWordPrintable

    • False
    • None
    • False
    • Rejected

      DS 3.3.0 installed from "devspaces-operator-bundle-container-3.3-157" metadata (iib image: brew.registry.redhat.io/rh-osbs/iib:353820).

      OCP 4.11.10 airgap instance.

      Test workspace: empty workspace:

      devfile.yaml
      schemaVersion: 2.1.0
      metadata:
        name: empty-rqqb
        namespace: admin-devspaces
      attributes: {}
      components:
        - attributes:
            che-code.eclipse.org/contribute-cpuLimit: true
            che-code.eclipse.org/contribute-cpuRequest: true
            che-code.eclipse.org/contribute-endpoint/che-code: 3100
            che-code.eclipse.org/contribute-endpoint/code-redirect-1: 13131
            che-code.eclipse.org/contribute-endpoint/code-redirect-2: 13132
            che-code.eclipse.org/contribute-endpoint/code-redirect-3: 13133
            che-code.eclipse.org/contribute-entry-point: true
            che-code.eclipse.org/contribute-memoryLimit: true
            che-code.eclipse.org/contribute-memoryRequest: true
            che-code.eclipse.org/contribute-volume-mount/checode: /checode
            che-code.eclipse.org/contributed-container: universal-developer-image
          container:
            command:
              - /checode/entrypoint-volume.sh
            cpuLimit: 500m
            cpuRequest: 30m
            endpoints:
              - attributes:
                  contributed-by: che-code.eclipse.org
                  cookiesAuthEnabled: true
                  discoverable: false
                  type: main
                  urlRewriteSupported: true
                exposure: public
                name: che-code
                path: '?tkn=eclipse-che'
                protocol: https
                secure: false
                targetPort: 3100
              - attributes:
                  contributed-by: che-code.eclipse.org
                  discoverable: false
                  urlRewriteSupported: true
                exposure: public
                name: code-redirect-1
                protocol: http
                targetPort: 13131
              - attributes:
                  contributed-by: che-code.eclipse.org
                  discoverable: false
                  urlRewriteSupported: true
                exposure: public
                name: code-redirect-2
                protocol: http
                targetPort: 13132
              - attributes:
                  contributed-by: che-code.eclipse.org
                  discoverable: false
                  urlRewriteSupported: true
                exposure: public
                name: code-redirect-3
                protocol: http
                targetPort: 13133
            env:
              - name: CHE_DASHBOARD_URL
                value: 'https://devspaces.apps.ds-airgap-v11.crw-qe.com'
              - name: CHE_PLUGIN_REGISTRY_URL
                value: 'https://devspaces.apps.ds-airgap-v11.crw-qe.com/plugin-registry/v3'
              - name: CHE_PLUGIN_REGISTRY_INTERNAL_URL
                value: 'http://plugin-registry.openshift-devspaces.svc:8080/v3'
              - name: OPENVSX_REGISTRY_URL
                value: 'https://open-vsx.org'
            image: 'registry.redhat.io/devspaces/udi-rhel8@sha256:04435bb72d5906cc70435860641acfa6af3aac10eece8bffe9b1c488d55588b2'
            memoryLimit: 1024Mi
            memoryRequest: 256Mi
            sourceMapping: /projects
            volumeMounts:
              - name: checode
                path: /checode
          name: universal-developer-image
      

      It wasn't possible to install Python vsix extension expressed in "Popular" list in VS Code Editor:

      2022-11-01 13:25:34.095 [warning] Via 'product.json#extensionEnabledApiProposals' extension 'genuitecllc.codetogether' wants API proposal 'terminalNameChangeEvent' but that proposal DOES NOT EXIST. Likely, the proposal has been finalized (check 'vscode.d.ts') or was abandoned.
      2022-11-01 13:25:36.465 [info] Updating additional builtin extensions cache
      2022-11-01 13:25:44.412 [warning] [eclipse-che.port]: View container 'endpoints' does not exist and all views registered to it will be added to 'Explorer'.
      2022-11-01 13:25:44.482 [error] Error while registering log channel vscode-log:/20221101T132533/remoteTunnel.log Timed out while waiting for file to be created
      2022-11-01 13:25:44.494 [error] Error while registering log channel file:///20221101T132533/ptyhost.log Timed out while waiting for file to be created
      2022-11-01 13:25:50.187 [error] Server returned 403: Error: Server returned 403
          at T (/checode/checode-linux-libc/out/vs/server/node/server.main.js:90:12642)
          at te.getManifest (/checode/checode-linux-libc/out/vs/server/node/server.main.js:136:96913)
          at processTicksAndRejections (node:internal/process/task_queues:96:5)
          at async W.checkAndGetCompatibleVersion (/checode/checode-linux-libc/out/vs/server/node/server.main.js:136:60752)
          at async W.installFromGallery (/checode/checode-linux-libc/out/vs/server/node/server.main.js:136:50777)
      2022-11-01 13:25:52.000 [error] [Extension Host] Unable to create telemetry client: "DEVWORKSPACE_TELEMETRY_BACKEND_PORT" is not set.
      2022-11-01 13:26:10.268 [error] Server returned 403: Error: Server returned 403
          at T (/checode/checode-linux-libc/out/vs/server/node/server.main.js:90:12642)
          at te.getManifest (/checode/checode-linux-libc/out/vs/server/node/server.main.js:136:96913)
          at processTicksAndRejections (node:internal/process/task_queues:96:5)
          at async W.checkAndGetCompatibleVersion (/checode/checode-linux-libc/out/vs/server/node/server.main.js:136:60752)
          at async W.installFromGallery (/checode/checode-linux-libc/out/vs/server/node/server.main.js:136:50777)
      2022-11-01 13:31:42.228 [error] Error: Server returned 403
          at T (/checode/checode-linux-libc/out/vs/server/node/server.main.js:90:12642)
          at te.getManifest (/checode/checode-linux-libc/out/vs/server/node/server.main.js:136:96913)
          at runMicrotasks (<anonymous>)
          at processTicksAndRejections (node:internal/process/task_queues:96:5)
          at async W.checkAndGetCompatibleVersion (/checode/checode-linux-libc/out/vs/server/node/server.main.js:136:60752)
          at async W.installFromGallery (/checode/checode-linux-libc/out/vs/server/node/server.main.js:136:50777)
      2022-11-01 13:31:42.235 [error] Server returned 403: Error: Server returned 403
          at T (/checode/checode-linux-libc/out/vs/server/node/server.main.js:90:12642)
          at te.getManifest (/checode/checode-linux-libc/out/vs/server/node/server.main.js:136:96913)
          at runMicrotasks (<anonymous>)
          at processTicksAndRejections (node:internal/process/task_queues:96:5)
          at async W.checkAndGetCompatibleVersion (/checode/checode-linux-libc/out/vs/server/node/server.main.js:136:60752)
          at async W.installFromGallery (/checode/checode-linux-libc/out/vs/server/node/server.main.js:136:50777)
      

      Manual installation of plugin from https://open-vsx.org/vscode/gallery/publishers/ms-python/vsextensions/python/2022.16.1/vspackage is not possible in airgap env.

      The root cause of issue: empty "containerRegistry" property of CheCluster.

      It was possible to install Python extension in airgap Dev Spaces 3.3.0 when CheCluster had defined:

      containerRegistry:
          hostname: 'ec2-3-142-194-185.us-east-2.compute.amazonaws.com:5000'
      

              vsvydenk Valerii Svydenko
              dnochevn Dmytro Nochevnov
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: