Bug 1130171 - Remote agent installation failed if we set java environment path only in ssh user's local env
Summary: Remote agent installation failed if we set java environment path only in ssh ...
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: JBoss Operations Network
Classification: JBoss
Component: UI
Version: JON 3.3.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
: JON 3.3.5
Assignee: Michael Burman
QA Contact: Mike Foley
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-08-14 13:27 UTC by Jeeva Kandasamy
Modified: 2016-01-07 19:42 UTC (History)
7 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2016-01-07 19:42:06 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
server.log (32.04 KB, text/x-log)
2014-08-14 13:27 UTC, Jeeva Kandasamy
no flags Details

Description Jeeva Kandasamy 2014-08-14 13:27:29 UTC
Created attachment 926778 [details]
server.log

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

How reproducible:
always

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

Comment 2 Michael Burman 2014-08-18 11:16:31 UTC
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?

Comment 5 Simeon Pinder 2014-09-29 08:12:44 UTC
Moving into ER05 as didn't make the ER04 cut.

Comment 12 Simeon Pinder 2015-01-19 20:52:54 UTC
Moving into CR01 target milestone as missed ER01 cutoff.

Comment 18 Larry O'Leary 2016-01-07 19:42:06 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.