-
Enhancement
-
Resolution: Unresolved
-
Minor
-
None
-
None
-
None
-
None
If multiple datasources are setup using ENV_FILES (via datasources.env) in Openshift following "https://access.redhat.com/documentation/en-us/red_hat_jboss_enterprise_application_platform/7.2/html-single/getting_started_with_jboss_eap_for_openshift_container_platform/index#Runtime-Artifacts", then it runs the script multiple times based on number of datasource entries.
~~~~~~~~~~
The datasources environment files are added to the OpenShift Secret for the project. These environment files are then called within the template using the ENV_FILES environment property, the value of which is a comma-separated list of fully qualified environment files as shown below.
~~~~~~~~~~
If we have several files in /etc/extensions/, we have the same logs as shown below several times when the pod starts. This logging is written while execution of "jgroups.sh" & "elytron.sh" scripts in the launch folder.
~~~~~~~
INFO Configuring JGroups cluster traffic encryption protocol to SYM_ENCRYPT.
WARN Detected missing JGroups encryption configuration, the communication within the cluster WILL NOT be encrypted.
Using PicketBox SSL configuration.
INFO Configuring JGroups cluster traffic encryption protocol to SYM_ENCRYPT.
WARN Detected missing JGroups encryption configuration, the communication within the cluster WILL NOT be encrypted.
Using PicketBox SSL configuration.
INFO Configuring JGroups cluster traffic encryption protocol to SYM_ENCRYPT.
WARN Detected missing JGroups encryption configuration, the communication within the cluster WILL NOT be encrypted.
Using PicketBox SSL configuration.
~~~~~~~
Script that contains above logging :
~~~~~~
sh-4.2$ grep "Configuring JGroups cluster traffic encryption protocol " jgroups.sh
log_info "Configuring JGroups cluster traffic encryption protocol to SYM_ENCRYPT."
sh-4.2$ grep "Using PicketBox SSL configuration." elytron.sh
log_info "Using PicketBox SSL configuration."
sh-4.2$ pwd
/opt/eap/bin/launch
~~~~~~
Customers ask is, instead of getting this script executed thrice based of number of datasources defined in datasources.env as shown in above scenario, can it be made to execute only once for "jgroups.sh" & "elytron.sh" scripts while startup of container maybe, by using a control to add in the script (if else exists) ?
There is no issue with the application behavior but only concern is, it is being executed multiple times which seemed abnormal. Can this be considered as an RFE ?
If there are still any queries regarding this, please let me know.