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

"Java-gradle" workspace migrated from CRW 2.15 to DS 3.0 had failed to start because of duplicate volume found in devfile

XMLWordPrintable

    • False
    • None
    • False
    • Not Required
    • Workaround Exists
    • Hide

      Workaround is described in https://devfile.io/docs/devfile/2.2.0/user-guide/troubleshooting/

      Conversion fails with Error processing devfile: failed to merge DevWorkspace volumes: duplicate volume found in devfile: volume_name

      This means there are multiple volumes defined in the original devfile with the same name.

      Remove the duplicate volumes and proceed with the conversion.

      Show
      Workaround is described in https://devfile.io/docs/devfile/2.2.0/user-guide/troubleshooting/ Conversion fails with Error processing devfile: failed to merge DevWorkspace volumes: duplicate volume found in devfile: volume_name This means there are multiple volumes defined in the original devfile with the same name. Remove the duplicate volumes and proceed with the conversion.
    • Hide
      Show
      x86_64 OCP 4.10 cluster deploy CRW 2.15.4 run 'java-gradle' workspace migrate CRW 2.15.4 to DS 3.0.0 used doc --> https://docs.google.com/document/d/1ULhYihATldFQxznf7deSKBsHHmhtajdwG_E-MeRv3es/edit#heading=h.kzsjguxjvmh login to DS 3.0.0 convert 'java-gradle' from v1 to v2 on Dashboard run exist ws

      • Exist 'java-gradle workspace does not run after migrate to DS 3.0.0 RC-06-03 with error message:
      Error processing devfile: failed to merge DevWorkspace volumes: duplicate volume found in devfile: m2
      
      • converted devfile.yaml :
      schemaVersion: 2.1.0
      metadata:
        name: java-gradle-mugn
        namespace: admin-codeready
      projects:
        - name: validating-form-input
          zip:
            location: 'http://devfile-registry.openshift-workspaces.svc:8080/resources/java-gradle-validating-form-input-master.zip'
      components:
        - attributes:
            app.kubernetes.io/name: gradle
            che-theia.eclipse.org/vscode-extensions:
              - 'http://plugin-registry.openshift-workspaces.svc:8080/resources/github_com/redhat-developer/devspaces-vscode-extensions/releases/download/7_44-che-assets/java-0.82.0-369.vsix'
              - 'http://plugin-registry.openshift-workspaces.svc:8080/resources/github_com/redhat-developer/devspaces-vscode-extensions/releases/download/7_44-che-assets/vscode-java-debug-0.26.0.vsix'
              - 'http://plugin-registry.openshift-workspaces.svc:8080/resources/open-vsx_org/api/vscjava/vscode-java-test/0_28_1/file/vscjava.vscode-java-test-0.28.1.vsix'
            che-theia.eclipse.org/vscode-preferences:
              java.server.launchMode: Standard
          container:
            args:
              - sh
              - '-c'
              - '${PLUGIN_REMOTE_ENDPOINT_EXECUTABLE}'
            endpoints:
              - exposure: public
                name: input-form-endpoint
                protocol: http
                targetPort: 8080
            env:
              - name: GRADLE_USER_HOME
                value: /home/jboss/.gradle
              - name: JAVA_OPTS
                value: '-XX:MaxRAMPercentage=50 -XX:+UseParallelGC -XX:MinHeapFreeRatio=10 -XX:MaxHeapFreeRatio=20 -XX:GCTimeRatio=4 -XX:AdaptiveSizePolicyWeight=90 -Dsun.zip.disableMemoryMapping=true -Xms20m -Djava.security.egd=file:/dev/./urandom'
              - name: JAVA_TOOL_OPTIONS
                value: $(JAVA_OPTS)
              - name: HOME
                value: /home/jboss
              - name: PLUGIN_REMOTE_ENDPOINT_EXECUTABLE
                value: /remote-endpoint/plugin-remote-endpoint
              - name: THEIA_PLUGINS
                value: 'local-dir:///plugins/sidecars/gradle'
              - name: CHE_DASHBOARD_URL
                value: 'https://devspaces-openshift-workspaces.apps.ocp410-oshmara.crw-qe.com'
              - name: CHE_PLUGIN_REGISTRY_URL
                value: 'https://devspaces-openshift-workspaces.apps.ocp410-oshmara.crw-qe.com/plugin-registry/v3'
              - name: CHE_PLUGIN_REGISTRY_INTERNAL_URL
                value: 'http://plugin-registry.openshift-workspaces.svc:8080/v3'
            image: 'registry.redhat.io/codeready-workspaces/plugin-java11-rhel8@sha256:79b59596870382e968850bc241ac41a3345a9079f28251808e35479f92bd3b86'
            memoryLimit: 640Mi
            mountSources: true
            sourceMapping: /projects
            volumeMounts:
              - name: gradle-volume
                path: /home/jboss/.gradle
              - name: m2
                path: /home/user/.m2
              - name: m2
                path: /home/user/.m2
              - name: remote-endpoint
                path: /remote-endpoint
              - name: plugins
                path: /plugins
          name: gradle
        - name: gradle-volume
          volume: {}
        - name: m2
          volume: {}
        - name: m2
          volume: {}
      commands:
        - exec:
            commandLine: gradle build
            component: gradle
            label: 1. Build
            workingDir: '${PROJECTS_ROOT}/validating-form-input/complete'
          id: build
        - exec:
            commandLine: gradle bootRun
            component: gradle
            label: 2. Run application
            workingDir: '${PROJECTS_ROOT}/validating-form-input/complete'
          id: run-application
        - exec:
            commandLine: gradle bootRun --debug-jvm
            component: gradle
            label: 3. Run in debug mode
            workingDir: '${PROJECTS_ROOT}/validating-form-input/complete'
          id: run-in-debug-mode
        - exec:
            commandLine: gradle test
            component: gradle
            label: 4. Run tests
            workingDir: '${PROJECTS_ROOT}/validating-form-input/complete'
          id: run-tests
      

              ibuziuk@redhat.com Ilya Buziuk
              oshmarai Shmaraiev Oleksandr
              Max Leonov Max Leonov
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: