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

"Init Container remote-runtime-injector has start ImagePullBackOff" error when start workspace in airgap OCP

XMLWordPrintable

    • False
    • None
    • False
    • n/a
    • Not Required

      Test environment:

      • DS 3.1.0.ER-07-15 based on devspaces-operator-bundle-container-3.1-155
      • Plugin registry image: registry.redhat.io/devspaces/pluginregistry-rhel8@sha256:cff3aad2fa13250c11debaeab1cb574311422c1d90bca92b97e600cef17d1e7a

      There were "image: quay.io/devspaces/theia-rhel8:3.1" and "image: quay.io/devspaces/theia-endpoint-rhel8:3.1" in v3/plugins/eclipse/che-theia/latest/devfile.yaml file inside plugin registry container, while
      "registry.redhat.io/devspaces/theia-rhel8@sha256:095a0d4187692dd886580c74814e3a66e957901db0f189222e71874a2fe8b65e" and "registry.redhat.io/devspaces/theia-endpoint-rhel8@sha256:85e537155414d79485feaf43fb000d60955abd44782ae44fd00577b680e892c5" were expected:

      sh-4.4$ cat v3/plugins/eclipse/che-theia/latest/devfile.yaml 
      schemaVersion: 2.1.0
      metadata:
        name: theia-ide
      commands:
        - id: init-container-command
          apply:
            component: remote-runtime-injector
      events:
        preStart:
          - init-container-command
      components:
        - name: theia-ide
          container:
            image: quay.io/devspaces/theia-rhel8:3.1
            env:
              - name: THEIA_PLUGINS
                value: local-dir:///plugins
              - name: HOSTED_PLUGIN_HOSTNAME
                value: 0.0.0.0
              - name: HOSTED_PLUGIN_PORT
                value: '3130'
              - name: THEIA_HOST
                value: 127.0.0.1
            volumeMounts:
              - name: plugins
                path: /plugins
              - name: theia-local
                path: /home/theia/.theia
            mountSources: true
            memoryLimit: 512M
            cpuLimit: 1500m
            cpuRequest: 100m
            endpoints:
              - name: theia
                attributes:
                  type: main
                  cookiesAuthEnabled: true
                  discoverable: false
                  urlRewriteSupported: true
                targetPort: 3100
                exposure: public
                secure: false
                protocol: https
              - name: webviews
                attributes:
                  type: webview
                  cookiesAuthEnabled: true
                  discoverable: false
                  unique: true
                  urlRewriteSupported: true
                targetPort: 3100
                exposure: public
                secure: false
                protocol: https
              - name: mini-browser
                attributes:
                  type: mini-browser
                  cookiesAuthEnabled: true
                  discoverable: false
                  unique: true
                  urlRewriteSupported: true
                targetPort: 3100
                exposure: public
                secure: false
                protocol: https
              - name: theia-dev
                attributes:
                  type: ide-dev
                  discoverable: false
                  urlRewriteSupported: true
                targetPort: 3130
                exposure: public
                protocol: http
              - name: theia-redirect-1
                attributes:
                  discoverable: false
                  urlRewriteSupported: true
                targetPort: 13131
                exposure: public
                protocol: http
              - name: theia-redirect-2
                attributes:
                  discoverable: false
                  urlRewriteSupported: true
                targetPort: 13132
                exposure: public
                protocol: http
              - name: theia-redirect-3
                attributes:
                  discoverable: false
                  urlRewriteSupported: true
                targetPort: 13133
                exposure: public
                protocol: http
              - name: terminal
                attributes:
                  type: collocated-terminal
                  discoverable: false
                  cookiesAuthEnabled: true
                  urlRewriteSupported: true
                targetPort: 3333
                exposure: public
                secure: false
                protocol: wss
          attributes: {}
        - name: plugins
          volume: {}
        - name: theia-local
          volume: {}
        - name: che-machine-exec
          container:
            image: quay.io/devspaces/machineexec-rhel8:3.1
            command:
              - /go/bin/che-machine-exec
              - '--url'
              - 127.0.0.1:3333
              - '--idle-timeout'
              - 15m
            memoryLimit: 128Mi
            memoryRequest: 32Mi
            cpuLimit: 500m
            cpuRequest: 30m
          attributes: {}
        - name: remote-runtime-injector
          container:
            image: quay.io/devspaces/theia-endpoint-rhel8:3.1
            env:
              - name: PLUGIN_REMOTE_ENDPOINT_EXECUTABLE
                value: /remote-endpoint/plugin-remote-endpoint
              - name: REMOTE_ENDPOINT_VOLUME_NAME
                value: remote-endpoint
            volumeMounts:
              - name: plugins
                path: /plugins
              - name: remote-endpoint
                path: /remote-endpoint
            memoryLimit: 128Mi
            memoryRequest: 32Mi
            cpuLimit: 500m
            cpuRequest: 30m
        - name: remote-endpoint
          volume:
            ephemeral: true
       

      it currently make it impossible to start DS 3.1.0 workspace in airgap environment:

        1. DS_3_1_startup_workspace.png
          93 kB
          Sachin Itagi
        2. Screenshot from 2022-07-18 17-25-10.png
          83 kB
          Dmytro Nochevnov
        3. Screenshot from 2022-07-18 19-41-54.png
          139 kB
          Dmytro Nochevnov

              nickboldt Nick Boldt
              dnochevn Dmytro Nochevnov
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: