Bug 1091172 - Unable to install remote agent via CLI
Summary: Unable to install remote agent via CLI
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: RHQ Project
Classification: Other
Component: CLI
Version: 4.11
Hardware: Unspecified
OS: Unspecified
unspecified
urgent
Target Milestone: GA
: RHQ 4.11
Assignee: John Mazzitelli
QA Contact: Mike Foley
URL:
Whiteboard:
Depends On:
Blocks: JON3-30, PRODMGT-542
TreeView+ depends on / blocked
 
Reported: 2014-04-25 05:46 UTC by Jeeva Kandasamy
Modified: 2014-07-21 10:13 UTC (History)
1 user (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2014-07-21 10:13:46 UTC
Embargoed:


Attachments (Terms of Use)
steps used (1.73 KB, text/x-log)
2014-04-25 05:46 UTC, Jeeva Kandasamy
no flags Details
error server side (7.29 KB, text/x-log)
2014-04-25 05:47 UTC, Jeeva Kandasamy
no flags Details
remote-api-issue (2.32 KB, application/gzip)
2014-04-25 09:43 UTC, Jeeva Kandasamy
no flags Details

Description Jeeva Kandasamy 2014-04-25 05:46:58 UTC
Created attachment 889527 [details]
steps used

Description of problem:
Unable to do any actions for Remote Agent via CLI, RemoteInstallManager throws exception.

--------------------snap------------------
rhqadmin.eng.pnq.redhat.com:7080$ RemoteInstallManager.agentStatus(rbi,agentPath);
javax.naming.NameNotFoundException: [Warning] rhq/rhq-server/BeanInstallManagerBean!org.rhq.enterprise.server.install.remote.RemoteInstallManagerRemote -- service jboss.naming.context.java.global.rhq.rhq-server."BeanInstallManagerBean!org.rhq.enterprise.server.install.remote.RemoteInstallManagerRemote"
RemoteInstallManager.agentStatus(rbi,agentPath); 
^
------------------------------------------

Version-Release number of selected component (if applicable):
Version : 4.11.0-SNAPSHOT
Build Number : 1bc9904
GWT Version : 2.5.0
SmartGWT Version : 3.0

How reproducible:
always

Steps to Reproduce:
1. Steps followed is attached as rhq-remote-agent-steps-used.log file

Additional info: steps used is attached.

Comment 1 Jeeva Kandasamy 2014-04-25 05:47:57 UTC
Created attachment 889528 [details]
error server side

server side error log (server.log)

Comment 2 Jeeva Kandasamy 2014-04-25 09:43:54 UTC
Created attachment 889614 [details]
remote-api-issue

remote agent installation via Remote API also failed, CLI client is using Remote API internally adding it in this issue.

Attached Java code which I used and error log (remote-api-issue.tar.gz)

Comment 3 John Mazzitelli 2014-04-29 03:21:52 UTC
look at the name of the JNDI being used by the CLI "BeanInstallManagerBean". HA! I bet we are blindly replacing "Remote" with the phrase "Bean" - we weren't expecting a SLSB to have the word "Remote" in its name. I'll have to find the place in the code that does this - that's clearly wrong.

Comment 4 John Mazzitelli 2014-04-29 17:36:33 UTC
git commit to master: bc47bf3

the attachment "steps used" should work now. I tested installing, getting agent status, starting and uninstalling via the CLI and it all works now.

Comment 5 Jeeva Kandasamy 2014-05-21 11:15:36 UTC
Downloaded CLI from this server and executed install, agentStatus, uninstall status. Works well. Hence moving this BZ to verified state.


Version Information:

OS: Linux 64 Bit


RHQ Server:
-------------------------
Version : 4.11.0-SNAPSHOT
Build Number : b041f77
GWT Version : 2.5.0
SmartGWT Version : 3.0

Comment 6 Heiko W. Rupp 2014-07-21 10:13:46 UTC
Bulk closing of RHQ 4.11 issues, now that RHQ 4.12 is out.

If you find an issue with those, please open a new BZ, linking to the old one.


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