-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Artemis command to create broker instance uses correct JAVA_HOME #125
Artemis command to create broker instance uses correct JAVA_HOME #125
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch!
environment
here is a dictionary, not a list (and while you are here, can you please also set the PATH, like in here: https://github.com/ansible-middleware/keycloak/pull/211/files#diff-9c8ae367389a73fbea8f6569f448840c4ef96621d629804053473acf5ccf7547R6 )
Full interpolation of the JAVA_HOME also is here: https://github.com/ansible-middleware/amq/blob/main/roles/activemq/templates/amq_broker.sysconfig.j2#L3C1-L3C76
Ah, that would explain why VSCode was highlighting it in red after I copied it over from my client laptop. Strange that it didn't complain there. |
added PATH
|
Thanks; sorry but |
fixed, and tested on a local VM. (Should have put together a local testing flow before opening the PR.) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Merging; I'll have to reword the title and first comment a little (they are used/linked from the changelog) |
see https://issues.redhat.com/browse/AMWSUP-21
Given a VM where Java 8 is still the installed version of Java
When the
amq_broker
role is executed, the deployment fails. The task to run theartemis create
command to create the broker instance fails becauseartemis
was compiled with a more recent version of Java than Java8 can execute.Solution: set the
JAVA_HOME
envvar to matchamq_broker_jvm_package
.