Bug 1090829
Summary: | Able to install agent more than one time on different location for the same user on same machine | ||||||
---|---|---|---|---|---|---|---|
Product: | [Other] RHQ Project | Reporter: | Jeeva Kandasamy <jkandasa> | ||||
Component: | Core UI | Assignee: | John Mazzitelli <mazz> | ||||
Status: | CLOSED CURRENTRELEASE | QA Contact: | Mike Foley <mfoley> | ||||
Severity: | high | Docs Contact: | |||||
Priority: | unspecified | ||||||
Version: | 4.11 | CC: | hrupp | ||||
Target Milestone: | GA | ||||||
Target Release: | RHQ 4.11 | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | |||||||
: | 1129290 (view as bug list) | Environment: | |||||
Last Closed: | 2014-07-21 10:14:05 UTC | Type: | Bug | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Bug Depends On: | |||||||
Bug Blocks: | 1070242, 1129290 | ||||||
Attachments: |
|
Description
Jeeva Kandasamy
2014-04-24 09:20:08 UTC
Created attachment 889323 [details]
Multiple entries in "rhq_agent_install" table
in the above case, If we install multiple times, we can see more than one entry in "rhq_agent_install" table,
rhq=# select * from rhq_agent_install;
id | mtime | agent_name | install_location | ssh_host | ssh_port | ssh_username | ssh_password
-------+---------------+--------------------------------+--------------------------------------------------+--------------+----------+--------------+------------------
10001 | 1398210095484 | rhqbox1.lab.eng.pnq.redhat.com | /home/hudson/rhq-server-location-fresh/rhq-agent | 10.65.206.42 | | |
10011 | 1398229679011 | | | 10.70.35.78 | 22 | |
10013 | 1398308668469 | | | 10.70.35.78 | 22 | jenkins | 606f83b302d3426d
10012 | 1398309707006 | rhel-6-gui | /tmp/tmp/tmp/rhq-agent | 10.70.35.78 | 22 | jenkins | 606f83b302d3426d
10031 | 1398235247519 | | | 10.70.35.78 | 22 | |
(5 rows)
rhq=#
Screen shot is attached.
Its possible multiple rows in rhq_agent_install table will show up under a few scenarios. We clean it up later when other things happen. In other words, rhq_agent_install table is an internal implementation detail that shouldn't concern end users. As for the issue of installing multiple agents on the same machine, I am going to look into doing something like looking in the rhq_agent table to see if one is already registered. I might be able to use rhq_agent_install table as well, but I'll figure this out once I start working on it. I think the best thing to do here is to see if the port is already in use. If the port is in use, not only will this abort if another agent was installed, but it will abort if anything has taken the port the agent wants to use. This is helpful for other use-cases as well (as in the case of installing an agent on a machine where some other application is using the port the agent wants to use). This has been implemented, git commit to master: c911e9a 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. |