Uploaded image for project: 'Red Hat Process Automation Manager'
  1. Red Hat Process Automation Manager
  2. RHPAM-4849

Kie Server image missing java symlink in /usr/bin

XMLWordPrintable

    • False
    • None
    • False
    • +
    • +
    • Workaround Exists
    • Hide

      Current proposal for workaround:
      Add check for the symlink in kieserver-verify.sh script. If the symlink does not exists, java command to verify the build from $JAVA_HOME

      Show
      Current proposal for workaround: Add check for the symlink in kieserver-verify.sh script. If the symlink does not exists, java command to verify the build from $JAVA_HOME
    • Hide

      Run S2I build. Failure was caught by KieServerS2iDroolsIntegrationTest in kie-cloud-tests smoke run.

      Show
      Run S2I build. Failure was caught by KieServerS2iDroolsIntegrationTest in kie-cloud-tests smoke run.
    • ---
    • ---

      Kie Server S2I build on the verification of the project build in the image, because there is no java command available in the image. Failing script is here https://github.com/jboss-container-images/jboss-kie-modules/blob/7.13.x/jboss-kie-kieserver/added/launch/kieserver-verify.sh#L23
      Failing verification in S2I cause a loop for the build and Kie Server S2I image is not able to deploy image.
      The failure is cause by missing java command in /usr/bin.
      Installation of java-11 is done during image build (via cekit) using microdnf install command, the installation script is part of the cct_modules https://github.com/jboss-openshift/cct_module/tree/0.39.8/jboss/container/openjdk/jdk/11 and for the image build it is defined here https://github.com/jboss-container-images/rhpam-7-openshift-image/blob/7.13.x/kieserver/image.yaml#L301

      Step with installation of java in build passed and there are no error or warning, JAVA_HOME is set and also the whole image can be start and Kie Server on EAP works fine. Also java is set to the alternatives. Only the symlink in the /usr/bin is missing. Same issue we spot in Dashbuiler image, but for the rest of the images the java command works and symlink is available in /usr/bin.

      This issue was not spotted before, and current 7.13.4 GA image (rhpam-kieserver-rhel8:7.13.4-3) does have the java symlink available. This problem was spot in cve image rebuilds during testing.

            jakubschwan Jakub Schwan
            jakubschwan Jakub Schwan
            Jakub Schwan Jakub Schwan
            Jakub Schwan Jakub Schwan
            Roberto Oliveira
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: