Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-22439

Wrong environment variable S2I_FP_VERSION in 7.4.1.GA-CR1 OpenShift image

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Blocker Blocker
    • 7.4.1.GA
    • 7.4.1.CR1
    • OpenShift
    • None

      During 7.4.1.GA-CR1 OpenShift image testing we found out there is an evironment variable S2I_FP_VERSION showing a wrong version 3.0.0.Final:

      # jboss-eap-7-eap74-openjdk8-openshift-rhel7:7.4.1
      $ echo $S2I_FP_VERSION
      3.0.0.Final
      

      In 7.4.0 there is version 23.0.0.Final, but it should be the same in both as long as they both contain the same version of artifact /opt/jboss/container/wildfly/s2i/galleon/galleon-m2-repository/org/jboss/eap/galleon/s2i/eap-s2i-galleon-pack/23.0.0.Final/eap-s2i-galleon-pack-23.0.0.Final.zip.
      Because of the wrong environment variable value a wrong artifact is requested during provisioning:

      podman run -it registry-proxy.engineering.redhat.com/rh-osbs/jboss-eap-7-eap74-openjdk8-openshift-rhel7:7.4.1 grep -r S2I_FP_VERSION /opt
      /opt/jboss/container/wildfly/s2i/galleon/provisioning/pom.xml:        <version.s2i.fp>${env.S2I_FP_VERSION}</version.s2i.fp>
      

      This causes OpenShift tests such as GalleonMavenRepoTest to fail:

      ... could not find:
       <["org/jboss/eap/galleon/s2i/eap-s2i-galleon-pack/23.0.0.Final/eap-s2i-galleon-pack-23.0.0.Final.pom"]>
      

      The same issue is also in the rhel8 and jdk11 image:

      $ podman run -it registry-proxy.engineering.redhat.com/rh-osbs/jboss-eap-7-eap74-openjdk11-openshift-rhel8:7.4.1 bash -c "find /opt | grep eap-s2i-galleon-pack.*zip"
      /opt/jboss/container/wildfly/s2i/galleon/galleon-m2-repository/org/jboss/eap/galleon/s2i/eap-s2i-galleon-pack/23.0.0.Final/eap-s2i-galleon-pack-23.0.0.Final.zip
      
      $ podman run -it registry-proxy.engineering.redhat.com/rh-osbs/jboss-eap-7-eap74-openjdk11-openshift-rhel8:7.4.1 env | grep S2I_FP_VERSION
      S2I_FP_VERSION=3.0.0.Final
      

              dkreling Daniel Kreling
              dcihak@redhat.com Daniel Cihak
              Votes:
              0 Vote for this issue
              Watchers:
              10 Start watching this issue

                Created:
                Updated:
                Resolved: