Bug 534400 (RHQ-11)
| Summary: | embedded agent's platform name should have a better default | ||
|---|---|---|---|
| Product: | [Other] RHQ Project | Reporter: | John Mazzitelli <mazz> | 
| Component: | Agent | Assignee: | John Mazzitelli <mazz> | 
| Status: | CLOSED NEXTRELEASE | QA Contact: | Pavel Kralik <pkralik> | 
| Severity: | medium | Docs Contact: | |
| Priority: | low | ||
| Version: | unspecified | CC: | mvecera | 
| Target Milestone: | --- | Keywords: | Improvement | 
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | All | ||
| URL: | http://jira.rhq-project.org/browse/RHQ-11 | ||
| Whiteboard: | |||
| Fixed In Version: | 1.2 | Doc Type: | Enhancement | 
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | Type: | --- | |
| Regression: | --- | Mount Type: | --- | 
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
| 
        
          Description
        
        
          John Mazzitelli
        
        
        
        
        
          2008-02-28 14:38:00 UTC
        
       rev80 The problem is that the agent name that the user types in is supposed to be the way we let the user name their platform. e.g. in dhcp setups the hostname is often useless or localhost.localhost or some such thing. We should just default the agent's name to always be hostname (default, but the user can override). The problem that is really happening now is the embedded agent doesn't default to the hostname (like standalone agent does).  Defaulting the platform resource name to agent name is fine in the standalone agent case because it defaults to the hostname, which is usually want you want.
In the embedded agent case, the installer's form field defines the default agent name and its always "embedded".  We need to somehow get this to default to the hostname. I thought using ${jboss.bind.address} would be the easiest way to do it. So when the user enters the bind address in the installer or sets the bind address in rhq-server.properties, they are also going to implicitly define the name of the embedded agent.  Of course, user can change the string "${jboss.bind.address}" to some other name if they want to call their embedded agent something else.
${jboss.bind.address} isn't optimal either - since it could conceivably be "0.0.0.0" or something equally useless as an agent name.  But it needs to be static because it has to ship in rhq-server.properties (that's how the installer works, I don't think it'll be trivial to change the way the installer pre-populates the form field in the browser to some runtime/dynamically-generated value).
embedded agent name now defaults to the machine name followed by "-embedded". Tested with the embedded and standalone agent. They had different names in the server log file. RHEL5.3, x86_64, PostgreSQL8.2.4, java 1.6.0_11, JON RHQ SVN rev# 2894 This bug was previously known as http://jira.rhq-project.org/browse/RHQ-11 This bug is incorporated by RHQ-1253 |