oracle / weblogic-kubernetes-operator

WebLogic Kubernetes Operator
https://oracle.github.io/weblogic-kubernetes-operator/
Universal Permissive License v1.0
253 stars 212 forks source link

4.2.9 introspector pod failing with Jq not installed #5115

Open manvindar-telus opened 2 hours ago

manvindar-telus commented 2 hours ago

The latest Helm chart installation is failing due to a 'jq not installed' error.

 ls: cannot access /u01/domains/sample-domain1: No such file or directory
  ls -ld /u01/domains:
    ls: cannot access /u01/domains: No such file or directory
  ls -ld /u01:
    drwxr-xr-x 1 oracle oracle 4096 Mar 31  2020 /u01
  ls -ld /:
    drwxr-xr-x 1 root root 4096 Oct 16 21:11 /
@[2024-10-16T21:11:44.257525927Z][utils_base.sh:211][FINE] WDT_MODEL_HOME='/aux/models'
@[2024-10-16T21:11:44.299422593Z][utils_base.sh:211][FINE] WDT_INSTALL_HOME='/aux/weblogic-deploy'
@[2024-10-16T21:11:44.340666843Z][introspectDomain.sh:175][FINE] Beginning Model In Image
The latest helm chart is failing installation, giving a jq not install error.

ls: cannot access /u01/domains/sample-domain1: No such file or directory
ls -ld /u01/domains:
ls: cannot access /u01/domains: No such file or directory
ls -ld /u01:
drwxr-xr-x 1 oracle oracle 4096 Mar 31  2020 /u01
ls -ld /:
drwxr-xr-x 1 root root 4096 Oct 16 21:11 /
@[2024-10-16T21:11:44.257525927Z][utils_base.sh:211][FINE] WDT_MODEL_HOME='/aux/models'
@[2024-10-16T21:11:44.299422593Z][utils_base.sh:211][FINE] WDT_INSTALL_HOME='/aux/weblogic-deploy'
@[2024-10-16T21:11:44.340666843Z][introspectDomain.sh:175][FINE] Beginning Model In Image
/usr/bin/gzip
/usr/bin/tar
/usr/bin/unzip
@[2024-10-16T21:11:44.393146427Z][introspectDomain.sh:190][SEVERE] DomainSourceType is 'FromModel' and 'onlineUpdate' is enabled; 'jq' is missing in the image. Please use an image with 'jq' installed./usr/bin/gzip
/usr/bin/tar
/usr/bin/unzip
@[2024-10-16T21:11:44.393146427Z][introspectDomain.sh:190][SEVERE] DomainSourceType is 'FromModel' and 'onlineUpdate' is enabled, 'jq' is missing in the image. Please use an image with 'jq' installed
rjeberhard commented 2 hours ago

Looping in @jshum2479.

@manvindar-telus, how are you creating your auxiliary image? The image tool has been adding jq for a long time. The validation that you are hitting was added in operator version 4.2.5 during the summer as part of another fix.

jshum2479 commented 47 minutes ago

We have added requirement for jq in the introspector since 4.2.5. You will need to make sure your main/base image (not auxiliary image) of the domain resource YAML referenced has jq install. If you are trying to use the arm64 version of the image provided in container-registry.oracle.com, those image is based on OL7 arm64 which does not have jq installed by default. You can update the image to install it. The jq package can be found in oracle-epel-release-el7 repo. amd64 images shouldn't have any problem. If you use imagetool to build your image that, shouldn't be any problem, by default it install jq.