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

JBoss EAP 8.0 sample failed to start on arigap cluster because of error when creating DevWorkspace deployment: Container tools has state ImagePullBackOff in DS 3.17.0

XMLWordPrintable

    • False
    • None
    • False
    • Release Notes
    • Hide
      = JBoss EAP 8.0 sample fails to start on an air gap cluster

      Before this release, starting a workspace from a JBoss EAP 8.0 sample on an air gap cluster resulted in a failure. With this release, the issue has been fixed.
      Show
      = JBoss EAP 8.0 sample fails to start on an air gap cluster Before this release, starting a workspace from a JBoss EAP 8.0 sample on an air gap cluster resulted in a failure. With this release, the issue has been fixed.
    • Bug Fix
    • Rejected
    • Workaround Exists
    • Hide

      Mirror registry.redhat.io/devspaces/udi-rhel8@sha256:07710186c1638b48af11350ccba36e5f5fed9ad0888da8400c6e0eaab404f04f image.

      Show
      Mirror registry.redhat.io/devspaces/udi-rhel8@sha256:07710186c1638b48af11350ccba36e5f5fed9ad0888da8400c6e0eaab404f04f image.

      Description of problem:

      Workaround

      Prerequisites (if any, like setup, operators/versions):

      Steps to Reproduce

      1. Install Dev Spaces 3.17.0 on airgap cluster.
      2. Create workspace from JBoss EAP 8.0 sample

      Actual results:

      Workspace failed to start because of error: Back-off pulling image "registry.redhat.io/devspaces/udi-rhel8@sha256:07710186c1638b48af11350ccba36e5f5fed9ad0888da8400c6e0eaab404f04f"

      JBoss EAP 8.0 sample uses registry.redhat.io/devspaces/udi-rhel8:3.15 image

      devfile.yaml
      schemaVersion: 2.2.0
      metadata:
        name: java-jboss-eap
        version: 1.0.0
        displayName: JBoss EAP 8
        description: Java stack with EAP 8, OpenJDK 17 and Maven 3.9
        tags: ["RHEL8", "Java", "OpenJDK", "Maven", "EAP"]
        icon: https://raw.githubusercontent.com/redhat-developer/devfile-registry/main/icons/type-jboss.svg
        projectType: "JBoss EAP"
        language: "java"
        website: https://access.redhat.com/products/red-hat-jboss-enterprise-application-platform/
      variables:
        imageRegistry: 'image-registry.openshift-image-registry.svc:5000'
        imageName: 'getting-started'
        imageVersion: 'latest'
        applicationName: 'start'
        nodeName: 'getting-started'
        target-namespace: 'getting-started'
      starterProjects:
        - name: getting-started
          description: Red Hat JBoss EAP Getting Started
          git:
            checkoutFrom:
              remote: eap-devfile-examples
              revision: eap-8.0.x
            remotes:
              eap-devfile-examples: https://github.com/jbossas/eap-devfile-examples.git
      components:
        - name: tools
          container:
            image:  registry.redhat.io/devspaces/udi-rhel8:3.15
            memoryLimit: 1512Mi
            mountSources: true
            volumeMounts:
              - name: m2
                path: /home/user/.m2
            env:
              - name: JAVA_OPTS
                value: '-Djava.security.egd=file:/dev/urandom -Djboss.host.name=localhost'
              - name: DEBUG_PORT
                value: '5005'
              - name: NODE_NAME
                value: '{{nodeName}}'
              - name: IMAGE_REGISTRY
                value: '{{imageRegistry}}'
              - name: IMAGE
                value: '{{imageName}}'
              - name: TARGET_NAMESPACE
                value: '{{target-namespace}}'
              - name: VSCODE_DEFAULT_WORKSPACE
                value: /projects/wildfly-devfile-examples/.code-workspace
              - name: USE_JAVA17
                value: 'true'
            endpoints:
              - name: debug
                exposure: internal
                protocol: tcp
                targetPort: 5005
              - name: 'http'
                protocol: http
                targetPort: 8080
                exposure: public
              - name: 'management'
                targetPort: 9990
                protocol: http
                exposure: internal
              - name: 'transactions'
                targetPort: 4172
                protocol: tcp
                exposure: internal
        - name: m2
          volume:
            size: 3Gi
      commands:
        - id: package
          exec:
            label: "01 - Build the application."
            component: tools
            commandLine: mvn clean verify -Dmaven.wagon.http.ssl.insecure=true
            workingDir: ${PROJECT_SOURCE}
            group:
              kind: build
              isDefault: true
        - id: run
          exec:
            label: "02 - Run the application in dev mode."
            component: tools
            commandLine: ./target/server/bin/standalone.sh -Djboss.host.name=${NODE_NAME} 
            workingDir: ${PROJECT_SOURCE}
            group:
              kind: run
              isDefault: true
        - id: debug
          exec:
            label: "03 - Debug the application in dev mode."
            component: tools
            commandLine: ./target/server/bin/standalone.sh -Djboss.host.name=${NODE_NAME} --debug 
            workingDir: ${PROJECT_SOURCE}
            group:
              kind: debug
              isDefault: true
        - id: shutdown
          exec:
            label: "04 - Shutdown the server."
            component: tools
            commandLine: ./target/server/bin/jboss-cli.sh -c --command=shutdown
            workingDir: ${PROJECT_SOURCE}
            hotReloadCapable: false
            group:
              kind: run
              isDefault: false
      

      Expected results:

      Workspace started successfully.

      Reproducibility (Always/Intermittent/Only Once):

      Always on a clean airgap cluster

      Acceptance criteria: 

       

      Definition of Done:

      Build Details:

      Dev Spaces 3.17.0.RC-devspaces-operator-bundle-container-3.17-36

      Additional info (Such as Logs, Screenshots, etc):

       

       *

              ibuziuk@redhat.com Ilya Buziuk
              dnochevn Dmytro Nochevnov
              Dmytro Nochevnov Dmytro Nochevnov
              Jana Vrbkova Jana Vrbkova
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: