Red Hat Bugzilla – Bug 1022979
rhqctl status would never get/show (valid) information about agent installed via RPM (yum)
Last modified: 2015-09-02 20:02:15 EDT
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
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
After step3 and step5 rhqctl doesn't have information about agnet
After step6 rhqctl shows agent is not installed and ignoring --agent option
rhqctl should be showing information about agent installed via rpm
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.
Should we close it then ?
Stefan pointed out that this should be noted in the RPM install docs. I am stealing the bug.
So, there is a big note in the RPM install chapter that it is only for managed resources:
And I added Simeon's procedure for migrating an agent RPM to rhqctl for any installed on a server machine:
There's also a note in the agent JAR install chapter that it is for managed resources, not JON server platforms: