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

Unable to start the devfile v2 workspace with DW disabled

XMLWordPrintable

    • False
    • False
    • Hide

      1. Open the crw instance : https://codeready-crw-crwctl.apps.ocp49.crw-qe.com
      2. Login with admin credentials
      3. update the url as "https://codeready-crw-crwctl.apps.ocp49.crw-qe.com/dashboard/#/load-factory/?url=https://raw.githubusercontent.com/crw-samples/quarkus-quickstarts/devfilev2/devfile.yaml"

      Expected: CRW workspace is started
      Actual: Unable to start the crw workspace with below logs

      start workspace logs
      Add eth0 [10.130.3.54/23] from openshift-sdn
      Pulling image "registry.redhat.io/codeready-workspaces/pluginbroker-metadata-rhel8@sha256:457dd2db3d72cc1d823e1219d657ae32e3a9da26f7dd420e0185d1cbe872a792"
      Successfully pulled image "registry.redhat.io/codeready-workspaces/pluginbroker-metadata-rhel8@sha256:457dd2db3d72cc1d823e1219d657ae32e3a9da26f7dd420e0185d1cbe872a792" in 2.295046059s
      Created container pluginbroker-metadata-rhel8-457dd2db3d
      Started container pluginbroker-metadata-rhel8-457dd2db3d
      Starting plugin metadata broker
      All plugin metadata has been successfully processed
      List of plugins and editors to install
      - eclipse/che-theia/latest - Eclipse Theia, get the latest release each day.
      Add eth0 [10.130.3.56/23] from openshift-sdn
      Pulling image "registry.redhat.io/codeready-workspaces/theia-endpoint-rhel8@sha256:128e281bceaccfcb3f9c3aebdd218b6bb6381f9c41cff2259eba47dd49d95c4d"
      Successfully pulled image "registry.redhat.io/codeready-workspaces/theia-endpoint-rhel8@sha256:128e281bceaccfcb3f9c3aebdd218b6bb6381f9c41cff2259eba47dd49d95c4d" in 1.747906021s
      Created container remote-runtime-injectorwh3
      Started container remote-runtime-injectorwh3
      Pulling image "registry.redhat.io/codeready-workspaces/pluginbroker-artifacts-rhel8@sha256:bde2f4c7c21d7cd7d826d4f4bbd2ee9f31b2119e2d2aa10253592099598cf5ba"
      Successfully pulled image "registry.redhat.io/codeready-workspaces/pluginbroker-artifacts-rhel8@sha256:bde2f4c7c21d7cd7d826d4f4bbd2ee9f31b2119e2d2aa10253592099598cf5ba" in 1.808428122s
      Created container pluginbroker-artifacts-rhel8-bde2f4c7c2
      Started container pluginbroker-artifacts-rhel8-bde2f4c7c2
      Starting plugin artifacts broker
      Cleaning /plugins dir
      All plugin artifacts have been successfully downloaded
      Saving log of installed plugins
      Pulling image "registry.redhat.io/codeready-workspaces/jwtproxy-rhel8@sha256:0ecfe3a467683d0a28f7b0736e884a3710438798ded46470451de63ec209380f"
      Successfully pulled image "registry.redhat.io/codeready-workspaces/jwtproxy-rhel8@sha256:0ecfe3a467683d0a28f7b0736e884a3710438798ded46470451de63ec209380f" in 2.258219573s
      Created container che-jwtproxyhnh01bu0
      Started container che-jwtproxyhnh01bu0
      Pulling image "registry.access.redhat.com/ubi8/ubi-minimal"
      Successfully pulled image "registry.access.redhat.com/ubi8/ubi-minimal" in 4.73752808s
      Created container ubi-minimal
      Started container ubi-minimal
      Pulling image "registry.access.redhat.com/ubi8/openjdk-11"
      Successfully pulled image "registry.access.redhat.com/ubi8/openjdk-11" in 8.80047569s
      Created container tools
      Started container tools
      Pulling image "registry.redhat.io/codeready-workspaces/theia-rhel8@sha256:928f5792cc39e6b7785f4f92ec0d6a5b9cd36fb285c1f72d12239beb05d8696e"
      Successfully pulled image "registry.redhat.io/codeready-workspaces/theia-rhel8@sha256:928f5792cc39e6b7785f4f92ec0d6a5b9cd36fb285c1f72d12239beb05d8696e" in 1.661594013s
      Created container theia-ide8yu
      Started container theia-ide8yu
      Pulling image "registry.redhat.io/codeready-workspaces/machineexec-rhel8@sha256:1e25377fe0538ef380030a898fcfcff9493ff0bdbaa4db77d648cdcb0036816b"
      Failed to run the workspace: "The following containers have terminated: tools: reason = 'Error', exit code = 1, message = 'null'"
      

      codeready server logs
      2022-01-17 11:02:04,005[nio-8080-exec-8]  [INFO ] [o.e.c.a.w.s.WorkspaceRuntimes 488]   - Starting workspace 'admin/quarkus-quickstartasws' with id 'workspace3h8rq6bhnme22zsw' by user 'admin'
      2022-01-17 11:03:14,258[ceSharedPool-24]  [WARN ] [.i.k.KubernetesInternalRuntime 257]  - Failed to start Kubernetes runtime of workspace workspace3h8rq6bhnme22zsw.
      org.eclipse.che.api.workspace.server.spi.InfrastructureException: The following containers have terminated:
      tools: reason = 'Error', exit code = 1, message = 'null'
      	at org.eclipse.che.workspace.infrastructure.kubernetes.namespace.KubernetesDeployments.handleStartingPodStatus(KubernetesDeployments.java:463)
      	at org.eclipse.che.workspace.infrastructure.kubernetes.namespace.KubernetesDeployments$2.eventReceived(KubernetesDeployments.java:376)
      	at org.eclipse.che.workspace.infrastructure.kubernetes.namespace.KubernetesDeployments$2.eventReceived(KubernetesDeployments.java:373)
      	at io.fabric8.kubernetes.client.utils.WatcherToggle.eventReceived(WatcherToggle.java:49)
      	at io.fabric8.kubernetes.client.dsl.internal.AbstractWatchManager.eventReceived(AbstractWatchManager.java:178)
      	at io.fabric8.kubernetes.client.dsl.internal.AbstractWatchManager.onMessage(AbstractWatchManager.java:234)
      	at io.fabric8.kubernetes.client.dsl.internal.WatcherWebSocketListener.onMessage(WatcherWebSocketListener.java:93)
      	at okhttp3.internal.ws.RealWebSocket.onReadMessage(RealWebSocket.java:323)
      	at okhttp3.internal.ws.WebSocketReader.readMessageFrame(WebSocketReader.java:219)
      	at okhttp3.internal.ws.WebSocketReader.processNextFrame(WebSocketReader.java:105)
      	at okhttp3.internal.ws.RealWebSocket.loopReader(RealWebSocket.java:274)
      	at okhttp3.internal.ws.RealWebSocket$2.onResponse(RealWebSocket.java:214)
      	at okhttp3.RealCall$AsyncCall.execute(RealCall.java:203)
      	at okhttp3.internal.NamedRunnable.run(NamedRunnable.java:32)
      	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
      	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
      	at java.base/java.lang.Thread.run(Thread.java:829)
      
      devfile v2 after conversion
      apiVersion: 1.0.0
      metadata:
        name: quarkus-quickstartasws
      projects:
        - name: quarkus-quickstarts
          source:
            location: 'https://github.com/crw-samples/quarkus-quickstarts.git'
            startPoint: devfilev2
            type: git
      components:
        - mountSources: true
          endpoints:
            - name: debug
              port: 5005
            - name: hello-greeting-endpoint
              port: 8080
          memoryLimit: 4G
          type: dockerimage
          volumes:
            - name: m2
              containerPath: /home/jboss/.m2
          alias: tools
          image: registry.access.redhat.com/ubi8/openjdk-11
          env:
            - value: 0.0.0.0
              name: QUARKUS_HTTP_HOST
        - mountSources: true
          command:
            - tail
          args:
            - '-f'
            - /dev/null
          memoryLimit: 64M
          type: dockerimage
          alias: ubi-minimal
          image: registry.access.redhat.com/ubi8/ubi-minimal
        - id: redhat/java/latest
          type: chePlugin
      commands:
        - name: package
          actions:
            - workdir: '${CHE_PROJECTS_ROOT}/quarkus-quickstarts/getting-started'
              type: exec
              command: ./mvnw package
              component: tools
        - name: packagenative
          actions:
            - workdir: '${CHE_PROJECTS_ROOT}/quarkus-quickstarts/getting-started'
              type: exec
              command: ./mvnw package -Dnative -Dmaven.test.skip -Dquarkus.native.native-image-xmx=2G
              component: tools
        - name: startdev
          actions:
            - workdir: '${CHE_PROJECTS_ROOT}/quarkus-quickstarts/getting-started'
              type: exec
              command: './mvnw compile quarkus:dev'
              component: tools
        - name: startnative
          actions:
            - workdir: '${CHE_PROJECTS_ROOT}/quarkus-quickstarts/getting-started/target'
              type: exec
              command: ./getting-started-1.0.0-SNAPSHOT-runner
              component: ubi-minimal
      
      Show
      1. Open the crw instance : https://codeready-crw-crwctl.apps.ocp49.crw-qe.com 2. Login with admin credentials 3. update the url as "https://codeready-crw-crwctl.apps.ocp49.crw-qe.com/dashboard/#/load-factory/?url= https://raw.githubusercontent.com/crw-samples/quarkus-quickstarts/devfilev2/devfile.yaml " Expected: CRW workspace is started Actual: Unable to start the crw workspace with below logs start workspace logs Add eth0 [10.130.3.54/23] from openshift-sdn Pulling image "registry.redhat.io/codeready-workspaces/pluginbroker-metadata-rhel8@sha256:457dd2db3d72cc1d823e1219d657ae32e3a9da26f7dd420e0185d1cbe872a792" Successfully pulled image "registry.redhat.io/codeready-workspaces/pluginbroker-metadata-rhel8@sha256:457dd2db3d72cc1d823e1219d657ae32e3a9da26f7dd420e0185d1cbe872a792" in 2.295046059s Created container pluginbroker-metadata-rhel8-457dd2db3d Started container pluginbroker-metadata-rhel8-457dd2db3d Starting plugin metadata broker All plugin metadata has been successfully processed List of plugins and editors to install - eclipse/che-theia/latest - Eclipse Theia, get the latest release each day. Add eth0 [10.130.3.56/23] from openshift-sdn Pulling image "registry.redhat.io/codeready-workspaces/theia-endpoint-rhel8@sha256:128e281bceaccfcb3f9c3aebdd218b6bb6381f9c41cff2259eba47dd49d95c4d" Successfully pulled image "registry.redhat.io/codeready-workspaces/theia-endpoint-rhel8@sha256:128e281bceaccfcb3f9c3aebdd218b6bb6381f9c41cff2259eba47dd49d95c4d" in 1.747906021s Created container remote-runtime-injectorwh3 Started container remote-runtime-injectorwh3 Pulling image "registry.redhat.io/codeready-workspaces/pluginbroker-artifacts-rhel8@sha256:bde2f4c7c21d7cd7d826d4f4bbd2ee9f31b2119e2d2aa10253592099598cf5ba" Successfully pulled image "registry.redhat.io/codeready-workspaces/pluginbroker-artifacts-rhel8@sha256:bde2f4c7c21d7cd7d826d4f4bbd2ee9f31b2119e2d2aa10253592099598cf5ba" in 1.808428122s Created container pluginbroker-artifacts-rhel8-bde2f4c7c2 Started container pluginbroker-artifacts-rhel8-bde2f4c7c2 Starting plugin artifacts broker Cleaning /plugins dir All plugin artifacts have been successfully downloaded Saving log of installed plugins Pulling image "registry.redhat.io/codeready-workspaces/jwtproxy-rhel8@sha256:0ecfe3a467683d0a28f7b0736e884a3710438798ded46470451de63ec209380f" Successfully pulled image "registry.redhat.io/codeready-workspaces/jwtproxy-rhel8@sha256:0ecfe3a467683d0a28f7b0736e884a3710438798ded46470451de63ec209380f" in 2.258219573s Created container che-jwtproxyhnh01bu0 Started container che-jwtproxyhnh01bu0 Pulling image "registry.access.redhat.com/ubi8/ubi-minimal" Successfully pulled image "registry.access.redhat.com/ubi8/ubi-minimal" in 4.73752808s Created container ubi-minimal Started container ubi-minimal Pulling image "registry.access.redhat.com/ubi8/openjdk-11" Successfully pulled image "registry.access.redhat.com/ubi8/openjdk-11" in 8.80047569s Created container tools Started container tools Pulling image "registry.redhat.io/codeready-workspaces/theia-rhel8@sha256:928f5792cc39e6b7785f4f92ec0d6a5b9cd36fb285c1f72d12239beb05d8696e" Successfully pulled image "registry.redhat.io/codeready-workspaces/theia-rhel8@sha256:928f5792cc39e6b7785f4f92ec0d6a5b9cd36fb285c1f72d12239beb05d8696e" in 1.661594013s Created container theia-ide8yu Started container theia-ide8yu Pulling image "registry.redhat.io/codeready-workspaces/machineexec-rhel8@sha256:1e25377fe0538ef380030a898fcfcff9493ff0bdbaa4db77d648cdcb0036816b" Failed to run the workspace: "The following containers have terminated: tools: reason = 'Error' , exit code = 1, message = ' null ' " codeready server logs 2022-01-17 11:02:04,005[nio-8080-exec-8] [INFO ] [o.e.c.a.w.s.WorkspaceRuntimes 488] - Starting workspace 'admin/quarkus-quickstartasws' with id 'workspace3h8rq6bhnme22zsw' by user 'admin' 2022-01-17 11:03:14,258[ceSharedPool-24] [WARN ] [.i.k.KubernetesInternalRuntime 257] - Failed to start Kubernetes runtime of workspace workspace3h8rq6bhnme22zsw. org.eclipse.che.api.workspace.server.spi.InfrastructureException: The following containers have terminated: tools: reason = 'Error' , exit code = 1, message = ' null ' at org.eclipse.che.workspace.infrastructure.kubernetes.namespace.KubernetesDeployments.handleStartingPodStatus(KubernetesDeployments.java:463) at org.eclipse.che.workspace.infrastructure.kubernetes.namespace.KubernetesDeployments$2.eventReceived(KubernetesDeployments.java:376) at org.eclipse.che.workspace.infrastructure.kubernetes.namespace.KubernetesDeployments$2.eventReceived(KubernetesDeployments.java:373) at io.fabric8.kubernetes.client.utils.WatcherToggle.eventReceived(WatcherToggle.java:49) at io.fabric8.kubernetes.client.dsl.internal.AbstractWatchManager.eventReceived(AbstractWatchManager.java:178) at io.fabric8.kubernetes.client.dsl.internal.AbstractWatchManager.onMessage(AbstractWatchManager.java:234) at io.fabric8.kubernetes.client.dsl.internal.WatcherWebSocketListener.onMessage(WatcherWebSocketListener.java:93) at okhttp3.internal.ws.RealWebSocket.onReadMessage(RealWebSocket.java:323) at okhttp3.internal.ws.WebSocketReader.readMessageFrame(WebSocketReader.java:219) at okhttp3.internal.ws.WebSocketReader.processNextFrame(WebSocketReader.java:105) at okhttp3.internal.ws.RealWebSocket.loopReader(RealWebSocket.java:274) at okhttp3.internal.ws.RealWebSocket$2.onResponse(RealWebSocket.java:214) at okhttp3.RealCall$AsyncCall.execute(RealCall.java:203) at okhttp3.internal.NamedRunnable.run(NamedRunnable.java:32) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) at java.base/java.lang. Thread .run( Thread .java:829) devfile v2 after conversion apiVersion: 1.0.0 metadata: name: quarkus-quickstartasws projects: - name: quarkus-quickstarts source: location: 'https: //github.com/crw-samples/quarkus-quickstarts.git' startPoint: devfilev2 type: git components: - mountSources: true endpoints: - name: debug port: 5005 - name: hello-greeting-endpoint port: 8080 memoryLimit: 4G type: dockerimage volumes: - name: m2 containerPath: /home/jboss/.m2 alias: tools image: registry.access.redhat.com/ubi8/openjdk-11 env: - value: 0.0.0.0 name: QUARKUS_HTTP_HOST - mountSources: true command: - tail args: - '-f' - /dev/ null memoryLimit: 64M type: dockerimage alias: ubi-minimal image: registry.access.redhat.com/ubi8/ubi-minimal - id: redhat/java/latest type: chePlugin commands: - name: package actions: - workdir: '${CHE_PROJECTS_ROOT}/quarkus-quickstarts/getting-started' type: exec command: ./mvnw package component: tools - name: packagenative actions: - workdir: '${CHE_PROJECTS_ROOT}/quarkus-quickstarts/getting-started' type: exec command: ./mvnw package -Dnative -Dmaven.test.skip -Dquarkus. native . native -image-xmx=2G component: tools - name: startdev actions: - workdir: '${CHE_PROJECTS_ROOT}/quarkus-quickstarts/getting-started' type: exec command: './mvnw compile quarkus:dev' component: tools - name: startnative actions: - workdir: '${CHE_PROJECTS_ROOT}/quarkus-quickstarts/getting-started/target' type: exec command: ./getting-started-1.0.0-SNAPSHOT-runner component: ubi-minimal

      Unable to start the workspace with the devfile v2 with DW disabled on OCP 4.9 cluster

        1. OCP49.png
          104 kB
          Balaji Makam
        2. Screenshot from 2022-01-17 13-03-55.png
          196 kB
          Dmytro Nochevnov
        3. Screenshot from 2022-01-17 15-42-15.png
          185 kB
          Dmytro Nochevnov

            vsvydenk Valerii Svydenko
            bmakam@redhat.com Balaji Makam (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: