Created attachment 926778 [details]
Description of problem:
Seems java SSH connection does not include ssh user's local environment variables in their path, hence if we extract java some where and include the path in ssh user's local path doesn't not work. Remote agent installation gets failed.
Version-Release number of selected component (if applicable):
JBoss Operations Network
Version : 3.3.0.DR01
Build Number : 6468454:dda0a47
GWT Version : 2.5.0
SmartGWT Version : 3.0p
Steps to Reproduce:
1. On remote machine, do not install java with yum
2. extract java bin file
3. Set environment path in ~/.bash_profile
4. Install remote agent on remote machine(in step #1)
Additional info: server.log is attached
This is expected behaviour as we use remote commands through ChannelExec (meaning we execute all the ssh commands using bash -c). bash -c on the other hand skips .bashrc from executing. This is pretty normal way of executing commands on the remote machine, so I'm wondering if we really do want to change the behaviour?
Moving into ER05 as didn't make the ER04 cut.
Moving into CR01 target milestone as missed ER01 cutoff.
As this feature was pushed out prematurely and the product has left its full support phase, there are no plans to address this issue.
If you have run across this issue and can not address it in the user's profile or as a system wide configuration setting, a script server solution may be used which will allow you to invoke ssh and scp type commands from another platform to push the agent binary out to platforms that are not yet managed.