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

Internal endpoints look the same as external ones in Workspace panel of Che Theia editor, which is confusing

XMLWordPrintable

    • False
    • None
    • False
    • Hide

      1. Install DS 3.1.0.RC-07-25.
      2. Go to Dashboard GUI and start JBoss EAP XP 3.0 Bootable Jar sample workspace.
      3. Go to workspace page an open Workspace view in right panel.
      4. Execute "build-and-run-in-debug" command.
      5. Open "View > Debug"
      6. Click on "Debug (Attach) - Remote" button and wait on threads appeared.
      7. Go to "Workspace" panel and click on "debug" endpoint.

      Actual result:

      Show
      1. Install DS 3.1.0.RC-07-25. 2. Go to Dashboard GUI and start JBoss EAP XP 3.0 Bootable Jar sample workspace. 3. Go to workspace page an open Workspace view in right panel. 4. Execute "build-and-run-in-debug" command. 5. Open "View > Debug" 6. Click on "Debug (Attach) - Remote" button and wait on threads appeared. 7. Go to "Workspace" panel and click on "debug" endpoint. Actual result :

      There was "This site can’t be reached" error when open "debug" endpoint inside jboss-eap-bootable workspace at the page with URL "http://workspaced19094acd16642c8-service.admin-devspaces.svc:8000/" page:

      java eap bootable devfile
      schemaVersion: 2.1.0
      metadata:
        name: jboss-eap-bootable
        namespace: admin-devspaces
      projects:
        - name: microprofile-quickstart-bootable
          zip:
            location: 'http://devfile-registry.openshift-devspaces.svc:8080/resources/v2/microprofile-quickstart-bootable.zip'
      components:
        - attributes:
            app.kubernetes.io/name: tools
            che-theia.eclipse.org/vscode-extensions:
              - 'relative:extension/resources/github_com/redhat-developer/devspaces-vscode-extensions/releases/download/7_44-che-assets/java-0.82.0-369.vsix'
              - 'relative:extension/resources/github_com/fabric8-analytics/fabric8-analytics-vscode-extension/releases/download/0_2_1/fabric8-analytics-0.2.1.vsix'
              - 'relative:extension/resources/github_com/redhat-developer/devspaces-vscode-extensions/releases/download/7_44-che-assets/vscode-java-debug-0.26.0.vsix'
              - 'relative:extension/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: eap-http
                protocol: http
                targetPort: 8080
              - exposure: internal
                name: eap-management
                protocol: http
                targetPort: 9990
              - exposure: internal
                name: debug
                protocol: http
                targetPort: 8000
            env:
              - name: PLUGIN_REMOTE_ENDPOINT_EXECUTABLE
                value: /remote-endpoint/plugin-remote-endpoint
              - name: THEIA_PLUGINS
                value: 'local-dir:///plugins/sidecars/tools'
              - name: CHE_DASHBOARD_URL
                value: 'https://devspaces.apps.ocp410-ltst-ds.crw-qe.com'
              - name: CHE_PLUGIN_REGISTRY_URL
                value: 'https://devspaces.apps.ocp410-ltst-ds.crw-qe.com/plugin-registry/v3'
              - name: CHE_PLUGIN_REGISTRY_INTERNAL_URL
                value: 'http://plugin-registry.openshift-devspaces.svc:8080/v3'
            image: 'registry.redhat.io/devspaces/udi-rhel8@sha256:21a4e21e4a8e3a8ae721dfdbb80f74360a003a4aa57a729b4046839a28520a3b'
            memoryLimit: 3Gi
            sourceMapping: /projects
            volumeMounts:
              - name: m2
                path: /home/user/.m2
              - name: gradle
                path: /home/user/.gradle
              - name: remote-endpoint
                path: /remote-endpoint
              - name: plugins
                path: /plugins
          name: tools
        - name: m2
          volume:
            size: 1G
        - name: gradle
          volume:
            size: 1G
      commands:
        - exec:
            commandLine: mvn -Pbootable-jar  clean package
            component: tools
            group:
              kind: build
            workingDir: '${PROJECT_SOURCE}/microprofile-fault-tolerance'
          id: build
        - exec:
            commandLine: 'mvn -Pbootable-jar -Dwildfly.bootable.arguments="-b=0.0.0.0"  org.wildfly.plugins:wildfly-jar-maven-plugin:run'
            component: tools
            group:
              kind: run
            workingDir: '${PROJECT_SOURCE}/microprofile-fault-tolerance'
          id: run
        - exec:
            commandLine: 'mvn -Pbootable-jar  -Dwildfly.bootable.arguments="-b=0.0.0.0" -Dwildfly.bootable.jvmArguments="-agentlib:jdwp=transport=dt_socket,address=0.0.0.0:8000,server=y,suspend=n" clean org.wildfly.plugins:wildfly-jar-maven-plugin:dev && mvn package -Ddev -Pbootable-jar && BOOTABLE_XP_PID=$(jps | grep microprofile-fault-tolerance-bootable.jar | awk ''{print $1}'') && while [[ ( -d /proc/$BOOTABLE_XP_PID ) && ( -z `grep zombie /proc/$BOOTABLE_XP_PID/status` ) ]]; do sleep 1; done'
            component: tools
            group:
              kind: build
            workingDir: '${PROJECT_SOURCE}/microprofile-fault-tolerance'
          id: build-and-run-in-debug
        - exec:
            commandLine: mvn package -Ddev -Pbootable-jar
            component: tools
            group:
              kind: run
            workingDir: '${PROJECT_SOURCE}/microprofile-fault-tolerance'
          id: hot-update
        - exec:
            commandLine: 'mvn -Pbootable-jar  org.wildfly.plugins:wildfly-jar-maven-plugin:shutdown'
            component: tools
            group:
              kind: run
            workingDir: '${PROJECT_SOURCE}/microprofile-fault-tolerance'
          id: stop-server
      

            azatsary Artem Zatsarynnyi
            dnochevn Dmytro Nochevnov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: