Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-17272

default openshift-maven-plugin configuration references wrong Fuse image.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Critical
    • fuse-7.10-GA
    • fuse-7.9-GA
    • Fuse on Openshift
    • None

    Description

      If a user follows the official Fuse 7.9 on Openshift guide to create a Fuse 7.9 Karaf on OCP example, the build will fail with this error:

      [INFO] --- openshift-maven-plugin:7.9.0.fuse-sb2-790065-redhat-00001:build (build-image) @ fuse79-karaf-camel-log ---
      [INFO] oc: Using OpenShift build with strategy S2I
      [INFO] oc: Running in OpenShift mode
      [INFO] oc: Running generator karaf
      [INFO] oc: karaf: Using Docker image registry.redhat.io/fuse7/fuse-karaf-openshift:1.9 as base / builder
      [INFO] oc: [fuse79-karaf-camel-log:latest] "karaf": Created docker source tar /Users/tmielke/SupportCases/RedHat/03024861/fuse79-karaf-camel-log/target/docker/fuse79-karaf-camel-log/latest/tmp/docker-build.tar
      [INFO] oc: Updating BuildServiceConfig fuse79-karaf-camel-log-s2i for Source strategy
      [INFO] oc: Adding to ImageStream fuse79-karaf-camel-log
      [INFO] oc: Starting Build fuse79-karaf-camel-log-s2i
      [INFO] oc: Waiting for build fuse79-karaf-camel-log-s2i-2 to complete...
      [INFO] oc: Caching blobs under "/var/cache/blobs".
      [INFO] oc: Warning: Pull failed, retrying in 5s ...
      [INFO] oc: Warning: Pull failed, retrying in 5s ...
      [INFO] oc: Warning: Pull failed, retrying in 5s ...
      [INFO] oc: error: build error: After retrying 2 times, Pull image still failed due to error: while pulling "docker://registry.redhat.io/fuse7/fuse-karaf-openshift:1.9" as "registry.redhat.io/fuse7/fuse-karaf-openshift:1.9": Error initializing source docker://registry.redhat.io/fuse7/fuse-karaf-openshift:1.9: Error reading manifest 1.9 in registry.redhat.io/fuse7/fuse-karaf-openshift: StatusCode: 404, Not found
      [ERROR] oc: Failed to execute the build [Unable to build the image using the OpenShift build service]
      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD FAILURE
      [INFO] ------------------------------------------------------------------------
      

      The reason is that the openshift-maven-plugin by default is configured to use image fuse7/fuse-karaf-openshift:1.9 but we have renamed that image to fuse7/fuse-karaf-openshift-rhel8:1.9
      Hence the image is not found and the build fails.

      Attachments

        Issue Links

          Activity

            People

              ldemasi Luigi De Masi
              rhn-support-tmielke Torsten Mielke
              Marco Carletti Marco Carletti
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: