Bug 1022979 - rhqctl status would never get/show (valid) information about agent installed via RPM (yum)
Summary: rhqctl status would never get/show (valid) information about agent installed ...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: JBoss Operations Network
Classification: JBoss
Component: Documentation
Version: JON 3.2
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: ER06
: JON 3.2.0
Assignee: Deon Ballard
QA Contact: Mike Foley
URL:
Whiteboard:
Depends On:
Blocks: 1012435
TreeView+ depends on / blocked
 
Reported: 2013-10-24 11:53 UTC by Armine Hovsepyan
Modified: 2015-09-03 00:02 UTC (History)
5 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2014-01-24 17:57:46 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Armine Hovsepyan 2013-10-24 11:53:17 UTC
Description of problem:
rhqctl status would never get/show information about agent installed via RPM (yum)

Version-Release number of selected component (if applicable):
jon 3.2 er4

How reproducible:
always

Steps to Reproduce:
1. install storage and server via rhqctl
2. install agent via rpm
3. run rhqctl status
4. start agent service
5. run rhqctl status
6. run rhqctl status --agent

Actual results:
After step3 and step5 rhqctl doesn't have information about agnet
After step6 rhqctl shows agent is not installed and ignoring --agent option

Expected results:
rhqctl should be showing information about agent installed via rpm

Additional info:

Comment 1 Stefan Negrea 2013-10-29 13:36:31 UTC
The scenario described above is not supported because the agent RPM is designed to be installed only on systems that have no JON server components. At the same time, rhqctl is designed to install JON server and server related components. 

rhqctl cannot discover agents that are not installed by itself because of serveral reasons:
1) the agents can be anywhere on disk
2) the agents can installed and run under any other user


rhqctl is designed to only managed the agent that installs because it runs under the same username and knows the exact location of the installation. RPM installations or manual jar/zip installations using binaries downloaded from the server cannot be detected and will not be managed by rhqctl.


The scenario presented above is NOT supported.

Comment 2 Thomas Heute 2013-11-06 07:45:02 UTC
Should we close it then ?

Comment 3 Deon Ballard 2013-11-08 06:39:53 UTC
Stefan pointed out that this should be noted in the RPM install docs. I am stealing the bug.

Comment 4 Deon Ballard 2014-01-24 17:57:46 UTC
So, there is a big note in the RPM install chapter that it is only for managed resources:
https://access.redhat.com/site/documentation/en-US/Red_Hat_JBoss_Operations_Network/3.2/html/Installation_Guide/agent-rpms.html

And I added Simeon's procedure for migrating an agent RPM to rhqctl for any installed on a server machine:
https://access.redhat.com/site/documentation/en-US/Red_Hat_JBoss_Operations_Network/3.2/html/Installation_Guide/rpm-upgrade.html#rpm-migrate-rhqctl

There's also a note in the agent JAR install chapter that it is for managed resources, not JON server platforms:
https://access.redhat.com/site/documentation/en-US/Red_Hat_JBoss_Operations_Network/3.2/html/Installation_Guide/Agent_Installation.html


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