[jboss-jira] [JBoss JIRA] (WFWIP-208) openshift-common.sh executes CLI command against non-existing standalone.xml
Brian Stansberry (Jira)
issues at jboss.org
Fri Sep 27 16:54:00 EDT 2019
[ https://issues.jboss.org/browse/WFWIP-208?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Brian Stansberry reassigned WFWIP-208:
--------------------------------------
Assignee: Jean Francois Denise (was: Brian Stansberry)
> openshift-common.sh executes CLI command against non-existing standalone.xml
> ----------------------------------------------------------------------------
>
> Key: WFWIP-208
> URL: https://issues.jboss.org/browse/WFWIP-208
> Project: WildFly WIP
> Issue Type: Bug
> Components: OpenShift
> Reporter: Jan Blizňák
> Assignee: Jean Francois Denise
> Priority: Blocker
>
> Using image {{docker-registry.upshift.redhat.com/kwills/eap-cd-openshift-rhel8:18.0-EAP7-1216}} we are unable to build an application deployment that will need to setup a datasource, eg. executed with properties:
> {code:java}
> CUSTOM_INSTALL_DIRECTORIES=mypg_module,mypg_driver
> DRIVERS=MYPG
> MYPG_DRIVER_NAME=mypg
> MYPG_DRIVER_MODULE=org.mypg
> MYPG_XA_DATASOURCE_CLASS=org.postgresql.xa.PGXADataSource
> {code}
> The error in build log is (when executed with SCRIPT_DEBUG=true):
> {code:java}
> ...
> + CLI_SCRIPT_FILE_FOR_EMBEDDED=/tmp/cli-configuration-script-1569488395.cli
> + echo 'embed-server --timeout=30 --server-config=standalone.xml --std-out=echo'
> + cat /opt/eap/bin/launch/drivers.cli
> + echo ''
> + echo stop-embedded-server
> + echo 'Configuring the server using embedded server'
> Configuring the server using embedded server
> ++ date +%s%3N
> + start=1569488395421
> + eval /opt/eap/bin/jboss-cli.sh --file=/tmp/cli-configuration-script-1569488395.cli --properties=/tmp/cli-script-property.cli '&>/tmp/cli-script-output.cli'
> ++ /opt/eap/bin/jboss-cli.sh --file=/tmp/cli-configuration-script-1569488395.cli --properties=/tmp/cli-script-property.cli
> error: build error: non-zero (13) exit code from docker-registry.upshift.redhat.com/kwills/eap-cd-openshift-rhel8:18.0-EAP7-1216
> {code}
> The problematic script is /opt/eap/bin/launch/openshift-common.sh.
> The problem here is that the script is trying to modify standalone.xml but there is no such file at the time of the execution, only standalone.openshift.xml exists.
> I can also see that the config name is looked up in openshift-common.sh by:
> {code:java}
> SERVER_CONFIG=${WILDFLY_SERVER_CONFIGURATION:-standalone.xml}
> {code}
> and this variable is set in launch/launch-config.sh:
> {code:java}
> WILDFLY_SERVER_CONFIGURATION=standalone-openshift.xml
> {code}
> but according to build log launch/launch-config.sh is never executed or sourced so the wrong default value is used.
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
More information about the jboss-jira
mailing list