Red Hat Bugzilla – Bug 1025050
EAP 6 plug-in should not require start script environment variables to be set
Last modified: 2014-05-08 13:43:44 EDT
Description of problem:
When invoking the start operation on an EAP 6 server, the operation fails when the connection setting Start Script Environment Variables is not set. This prevents the target start script from building the environment as normally expected (JAVA_HOME, PATH, etc) and requires the JBoss ON administrator to dynamically edit these values depending on the target script.
Furthermore, this results in RPM installed JBoss packages from being started without setting some dummy value for this setting.
Bottom line, there should be no requirement that any environment variables be defined. Environment variables are just that -- environment -- and can be set by the execution environment invoked by the target start script.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
#. Start EAP 6 standalone server.
#. Start JBoss ON 3.1.2 system.
#. Import EAP 6 resources into inventory.
#. Configure EAP 6 connection settings.
#. Verify EAP server is reported as available.
#. Unset _Start Script Environment Variables_ for EAP 6 server resource.
#. Invoke the _Shutdown_ operation for the EAP 6 server resource.
#. Invoke the _Start_ operation for the EAP 6 server resource.
Operation fails with the error message:
java.lang.Exception: This Resource's connection properties contain errors: [No start script environment variables are set. At a minimum, PATH should be set (on UNIX, it should contain at least /bin and /usr/bin). It is recommended that JAVA_HOME also be set, otherwise the PATH will be used to find java.]
Operation should succeed.
This appears to be due to some strange check on whether there is a value assigned to this connection property. I am not sure why it seemed necessary to perform such a check:
1. the property value is optional
2. the environment should only be used in default cases or when overrides are being sent to the script
Fixed in master
Author: Thomas Segismont <firstname.lastname@example.org>
Date: Thu Jan 30 12:30:48 2014 +0100
release/jon3.2.x commit e3e8c936433ae9406bff0a6beb9735c476fce818
Cherry-pick master 6785f80b99a4def0128939113fd5af7d3b4ebee5
Signed-off-by: Jay Shaughnessy <email@example.com>
Moving to ON_QA as available for testing in the following brew build:
Note: the installed version is still JON 3.2.0.GA by design and this represents part of the payload for JON 3.2.1 also known as cumulative patch 1 for 3.2.0.GA. How this will be delivered to customers is still being discussed.
Verified on JON 3.2.1 DR01 build (Build Number :c758688:4c03150)
Followed the steps and verified that start operation is successful.
JON 3.2.1 released week of 5/5/2014