Red Hat Bugzilla – Bug 1022968
Agent installed via RPM cannot discover storage
Last modified: 2015-09-02 20:02:15 EDT
Description of problem:
Agent installed via RPM cannot discover storage - leading to red error message on Administration -> Storage Nodes -> Cluster Alerts
Version-Release number of selected component (if applicable):
jon 3.2 er4
Steps to Reproduce:
1. install and start server and storage on IP1
2. install agent via rpm
3. start agent service
4. navigate to Administration -> Storage Nodes -> Cluster Alerts
After step 3. agent service started as jbosson-agent user (being created during agent rpm install) and cannot discover storage (started by any other user - cannot be installed/started by jbosson-agent)
After step4. Exception on ui -> http://d.pr/i/R4zn
After step 3. storage is discovered by agent??
After step4. cluster alerts page displayed without errors?
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.
The actual results section of the initial report correctly points to the cause. The RPM agent is started with a different user than storage node user. The agent cannot discover the storage node because it does not have permission to view or access processes from other users. The agent RPM execution is downgraded on purpose to a non-root user to prevent these kind of scenarios where the agent has broad access to the system.
While the scenario described above is NOT supported here is a potential set of steps:
1) Install storage node via rhqctl
2) rhqctl will automatically install an agent
3) Remove the agent installed by rhqctl
4) Install the agent RPM
5) Modify the agent RPM to run under the same user/group as the storage node (please see instructions above).
Again, the steps above are NOT supported because rhqctl is designed to install JON server and server related components while the agent RPM is designed to run on systems with no JON server components.
Here is the documentation on how run the agent RPM under a different user:
QE Deliverable is to update this testcase with information from this BZ ... and re-execute.
As mentioned in comment #2 , this issue is not valid. Closing per discussion with Mike Foley.