Details
-
Bug
-
Resolution: Done
-
Major
-
None
-
AMQ 7.9.4.CON.1
-
None
-
False
-
None
-
False
-
Description
We have customizations we would like to deploy with our broker to OpenShift to integrate with Red Hat SSO; however, when we deploy our broker with an init-container workflow, the deployment fails and the broker goes into a crash-backoff loop with the following event showing in the namespace:
10m Normal SuccessfulCreate statefulset/amq-broker-ss create Pod amq-broker-ss-0 in StatefulSet amq-broker-ss successful 10m Warning FailedToUpdateEndpoint endpoints/amq-broker Failed to update endpoint amq/amq-broker: Operation cannot be fulfilled on endpoints "amq-broker": the object has been modified; please apply your changes to the latest version and try again
Our configuration script is relatively simple. It just copies files into the target directory:
#!/bin/bash echo "################## Custom Script #######################" echo "#### ####" echo "## Configuration of Console Security for Red Hat SSO ##" echo "#### ####" echo "########################################################" echo "# The config dir locates at ${CONFIG_INSTANCE_DIR} #" ls ${CONFIG_INSTANCE_DIR} echo copying artemis.profile cp /amq/custom/artemis.profile ${CONFIG_INSTANCE_DIR}/etc/ echo copying jolokia-access.xml cp /amq/custom/jolokia-access.xml ${CONFIG_INSTANCE_DIR}/etc/ echo copying keycloak-bearer-token.json cp /amq/custom/keycloak-bearer-token.json ${CONFIG_INSTANCE_DIR}/etc/ echo copying keycloak-js-token.json cp /amq/custom/keycloak-js-token.json ${CONFIG_INSTANCE_DIR}/etc/ echo copying login.config cp /amq/custom/login.config ${CONFIG_INSTANCE_DIR}/etc/