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

build fails with "-Dorg.slf4j.simpleLogger.defaultLogLevel=trace" option

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • fuse-7.13-GA
    • fuse-7.10-GA
    • Fuse on Openshift
    • None
    • Very Likely

      openshift-maven-plugin fails build by enabling trace level logging.

      [instructions] ocp 4.10 is used for this test.

      • oc login
      • By following the official document, create a maven project and do mvn oc:deploy -Popenshift
        https://access.redhat.com/documentation/en-us/red_hat_fuse/7.11/html/fuse_on_openshift_guide/get-started-developers#create-project-s2i-binary-workflow
        It works as expected.
      • Try with trace level logging
        mvn oc:deploy -Popenshift -Dorg.slf4j.simpleLogger.defaultLogLevel=trace
        

        It fails with following errors.

        [ERROR] Failed to execute goal org.jboss.redhat-fuse:openshift-maven-plugin:7.10.0.fuse-sb2-7_10_0-00014-redhat-00001:build (default) on project demo: Failed to execute the build: Unable to build the image using the OpenShift build service: text -> [Help 1]
        

        event logs

        LAST SEEN   TYPE     REASON           OBJECT                  MESSAGE
        48s         Normal   Scheduled        pod/demo-s2i-20-build   Successfully assigned openshift/demo-s2i-20-build to worker-0.xxx.xxx.xxx.xxx
        46s         Normal   AddedInterface   pod/demo-s2i-20-build   Add eth0 [xx.xxx.xxx.xxx/23] from openshift-sdn
        46s         Normal   Pulled           pod/demo-s2i-20-build   Container image "quay.io/xxx.xxx@sha256:30d99b09c2f7f43c2a0393fc9b7dd1391f59ce041c599a8d50cd15251c892a78" already present on machine
        46s         Normal   Created          pod/demo-s2i-20-build   Created container git-clone
        46s         Normal   Started          pod/demo-s2i-20-build   Started container git-clone
        45s         Normal   Pulled           pod/demo-s2i-20-build   Container image "quay.io/xxx.xxx@sha256:30d99b09c2f7f43c2a0393fc9b7dd1391f59ce041c599a8d50cd15251c892a78" already present on machine
        44s         Normal   Created          pod/demo-s2i-20-build   Created container manage-dockerfile
        44s         Normal   Started          pod/demo-s2i-20-build   Started container manage-dockerfile
        44s         Normal   Pulled           pod/demo-s2i-20-build   Container image "quay.io/xxx.xxx@sha256:30d99b09c2f7f43c2a0393fc9b7dd1391f59ce041c599a8d50cd15251c892a78" already present on machine
        43s         Normal   Created          pod/demo-s2i-20-build   Created container sti-build
        43s         Normal   Started          pod/demo-s2i-20-build   Started container sti-build
        45s         Normal   BuildStarted     build/demo-s2i-20       Build openshift/demo-s2i-20 is now running
        30s         Normal   BuildFailed      build/demo-s2i-20       Build openshift/demo-s2i-20 failed
        

        build pod's log

        time="2022-11-24T03:53:43Z" level=info msg="Not using native diff for overlay, this may cause degraded performance for building images: kernel has CONFIG_OVERLAY_FS_REDIRECT_DIR enabled"
        I1124 03:53:43.178742       1 defaults.go:102] Defaulting to storage driver "overlay" with options [mountopt=metacopy=on].
        Caching blobs under "/var/cache/blobs".
        Trying to pull registry.redhat.io/fuse7/fuse-java-openshift-rhel8:1.10...
        Getting image source signatures
        Copying blob sha256:59f7a530b4030b4e0863fd682a8037648ffae5246a8b56b236c01e25f9526ec0
        Copying blob sha256:bd3de4798eadff692d5419649a6ba8eca9914d6fdb51d150d669643645898104
        Copying blob sha256:63f28e9cbf4e4f467de5e09f5230baac60604301b4c85c45f67ceca80b7acb8a
        Copying blob sha256:8c19addc28dd2002288fa9a90333e5048784868aeb080286355c2d6731715d4a
        Copying config sha256:8245537b67f8092bc57dc6cd9d563b8f43213fcaec511a21c2c9c663c0b820bd
        Writing manifest to image destination
        Storing signatures
        Generating dockerfile with builder image registry.redhat.io/fuse7/fuse-java-openshift-rhel8:1.10
        STEP 1/9: FROM registry.redhat.io/fuse7/fuse-java-openshift-rhel8:1.10
        Adding transient rw bind mount for /run/secrets/rhsm
        STEP 2/9: LABEL "io.openshift.build.image"="registry.redhat.io/fuse7/fuse-java-openshift-rhel8:1.10"       "io.openshift.build.source-location"="/tmp/build/inputs"       "io.openshift.s2i.destination"="/tmp"
        STEP 3/9: ENV OPENSHIFT_BUILD_NAME="demo-s2i-20"     OPENSHIFT_BUILD_NAMESPACE="openshift"
        STEP 4/9: USER root
        STEP 5/9: COPY upload/src /tmp/src
        STEP 6/9: RUN chown -R 185:0 /tmp/src
        STEP 7/9: USER 185
        STEP 8/9: RUN /usr/local/s2i/assemble
        ==================================================================
        Starting S2I Java Build .....
        S2I source build with plain binaries detected
        Copying binaries from /tmp/src to /deployments ...
        cp: cannot stat '/tmp/src/*': No such file or directory
        Aborting due to error code 1 for copying /tmp/src to /deployments
        error: build error: error building at STEP "RUN /usr/local/s2i/assemble": error while running runtime: exit status 1
        

         

            ldemasi Luigi De Masi
            rhn-support-hfuruich Hisao Furuichi
            Jakub Vrubel Jakub Vrubel
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: