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

Can not start devworkspace due invalid runtime injector image reference

XMLWordPrintable

    • False
    • False
    • -
    • Undefined
    • Hide

      1. Deploy CRW 2.9.0  with `devworkspace` support enabled:

      [ashmaraiev@localhost tmp]$ ./crwctl/bin/crwctl -v
      crwctl/2.9.0-CI-quay.b5f8ebd linux-x64 node-v12.21.0
      [ashmaraiev@localhost tmp]$ ./crwctl/bin/crwctl server:deploy --installer=operator --che-operator-image=quay.io/crw/crw-2-rhel8-operator:2.9-25 -n crw29-dev-ws --che-operator-cr-patch-yaml=/home/ashmaraiev/CRW2/crw29-dev-ws-patch.yaml
      
      [ashmaraiev@localhost CRW2]$ cat crw29-dev-ws-patch.yaml
      spec:
        devWorkspace:
          enable: true
      auth:
          updateAdminPassword: false
      storage:
          pvcClaimSize: 2Gi
          pvcStrategy: per-workspace
      
      

      2. Wait for command server:deploy has completed successfully
      3. Be sure that components 'devworkspace-che' and 'devworkspace-controller' work
      4. Use factory URL to start workspace:
      --> https://codeready-crw29-dev-ws.apps.ocp48-aws.crw-qe.com#https://gist.githubusercontent.com/l0rd/71a04dd0d8c8e921b16ba2690f7d5a47/raw/d520086e148c359b18c229328824dfefcf85e5ef/spring-petclinic-devfile-v2.0.0.yaml
      5. There is error in Dashboard logs:

      Init Container remote-runtime-injector has state ImagePullBackOff

      6. If you check events, there is

      Failed to pull image "registry.redhat.io/codeready-workspaces/theia-endpoint-rhel8:2.9": rpc error: code = Unknown desc = Error reading manifest 2.9 in registry.redhat.io/codeready-workspaces/theia-endpoint-rhel8: StatusCode: 404, Not found 

      So, plugin registry has theia's meta.yaml with a digest to remote-runtime-injector 

      https://codeready-crw29-dev-ws.apps.ocp48-aws.crw-qe.com/plugin-registry/v3/plugins/eclipse/che-theia/latest/meta.yaml which is correct, but devfile has a reference to non-existing 2.9 tag

      'registry.redhat.io/codeready-workspaces/theia-endpoint-rhel8:2.9'

      https://codeready-crw29-dev-ws.apps.ocp48-aws.crw-qe.com/plugin-registry/v3/plugins/eclipse/che-theia/latest/devfile.yaml 

      when digest is expected

      Show
      1. Deploy CRW 2.9.0  with `devworkspace` support enabled: [ashmaraiev@localhost tmp]$ ./crwctl/bin/crwctl -v crwctl/2.9.0-CI-quay.b5f8ebd linux-x64 node-v12.21.0 [ashmaraiev@localhost tmp]$ ./crwctl/bin/crwctl server:deploy --installer=operator --che-operator-image=quay.io/crw/crw-2-rhel8-operator:2.9-25 -n crw29-dev-ws --che-operator-cr-patch-yaml=/home/ashmaraiev/CRW2/crw29-dev-ws-patch.yaml [ashmaraiev@localhost CRW2]$ cat crw29-dev-ws-patch.yaml spec: devWorkspace: enable: true auth: updateAdminPassword: false storage: pvcClaimSize: 2Gi pvcStrategy: per-workspace 2. Wait for command server:deploy has completed successfully 3. Be sure that components 'devworkspace-che' and 'devworkspace-controller' work 4. Use factory URL to start workspace: --> https://codeready-crw29-dev-ws.apps.ocp48-aws.crw-qe.com#https://gist.githubusercontent.com/l0rd/71a04dd0d8c8e921b16ba2690f7d5a47/raw/d520086e148c359b18c229328824dfefcf85e5ef/spring-petclinic-devfile-v2.0.0.yaml 5. There is error in Dashboard logs: Init Container remote-runtime-injector has state ImagePullBackOff 6. If you check events, there is Failed to pull image "registry.redhat.io/codeready-workspaces/theia-endpoint-rhel8:2.9" : rpc error: code = Unknown desc = Error reading manifest 2.9 in registry.redhat.io/codeready-workspaces/theia-endpoint-rhel8: StatusCode: 404, Not found So, plugin registry has theia's meta.yaml with a digest to remote-runtime-injector  https://codeready-crw29-dev-ws.apps.ocp48-aws.crw-qe.com/plugin-registry/v3/plugins/eclipse/che-theia/latest/meta.yaml  which is correct, but devfile has a reference to non-existing 2.9 tag 'registry.redhat.io/codeready-workspaces/theia-endpoint-rhel8:2.9' https://codeready-crw29-dev-ws.apps.ocp48-aws.crw-qe.com/plugin-registry/v3/plugins/eclipse/che-theia/latest/devfile.yaml   when digest is expected

            ericwill@redhat.com Eric Williams
            oshmarai Shmaraiev Oleksandr
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: