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

    • 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:

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

            Thanks for the report, sachinitagi

            The issue can be closed as resolved then.
            Good job, nickboldt!

            Dmytro Nochevnov added a comment - Thanks for the report, sachinitagi The issue can be closed as resolved then. Good job, nickboldt !

            No errors were observed on startup of workspace for 4.10 disconnected cluster on Power.

            Tested on DS 3.1.0.ER-07-18
            iib :  brew.registry.redhat.io/rh-osbs/iib:275715

             

            Sachin Itagi added a comment - No errors were observed on startup of workspace for 4.10 disconnected cluster on Power. Tested on DS 3.1.0.ER-07-18 iib :  brew.registry.redhat.io/rh-osbs/iib:275715  

            Nick Boldt added a comment -

            If you need a separate issue for this, sure. I've created CRW-3157 for 3.2

            Nick Boldt added a comment - If you need a separate issue for this, sure. I've created CRW-3157 for 3.2

            Dmytro Nochevnov added a comment - - edited

            Thanks for the quick response, nickboldt!

            Can we keep this issue specific for DS 3.1.0, and open another one kind of task for DS 3.2.0 branch?
            It's needed for DS bug fix reports which QE team is sharing.

            Dmytro Nochevnov added a comment - - edited Thanks for the quick response, nickboldt ! Can we keep this issue specific for DS 3.1.0, and open another one kind of task for DS 3.2.0 branch? It's needed for DS bug fix reports which QE team is sharing.

            Nick Boldt added a comment - - edited Fix to clean before merging changes: https://gitlab.cee.redhat.com/codeready-workspaces/crw-jenkins/-/merge_requests/1242 Working here, for updates to existing branches (created 3 weeks ago): https://main-jenkins-csb-crwqe.apps.ocp-c1.prod.psi.redhat.com/job/CRW_CI/job/Releng/job/create-branches/26/console Commits pushed include: https://github.com/redhat-developer/devspaces/commits/devspaces-3.1-rhel-8 https://github.com/devspaces-samples/fuse-rest-http-booster/commits/devspaces-3.1-rhel-8 https://github.com/devspaces-samples/nodejs-mongodb-sample/commits/devspaces-3.1-rhel-8 etc. Rebuilding registries in: https://main-jenkins-csb-crwqe.apps.ocp-c1.prod.psi.redhat.com/job/DS_CI/job/pluginregistry_3.1/7/ https://main-jenkins-csb-crwqe.apps.ocp-c1.prod.psi.redhat.com/job/DS_CI/job/devfileregistry_3.1/8/ NOTE : To make sure things work for a NEW branch when we prep for 3.2 in a few weeks, see CRW-3157

            Nick Boldt added a comment -

            Nick Boldt added a comment - Appears to be a bug in the "start a new branch" script in that we didn't PUSH the commits/changes to the 3.1 branches, and they were instead orphaned and never pushed. https://main-jenkins-csb-crwqe.apps.ocp-c1.prod.psi.redhat.com/job/CRW_CI/job/Releng/job/create-branches/22/ Possible fix: https://github.com/redhat-developer/devspaces/commit/9ef1d478bd06b358a1258693cc36613be7ed1e17 Testing... https://main-jenkins-csb-crwqe.apps.ocp-c1.prod.psi.redhat.com/job/CRW_CI/job/Releng/job/create-branches/24/console

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

                Created:
                Updated:
                Resolved: