Bug 534208 (RHQ-1026)

Summary: create a servlet that is deployed in the server to server agent update binaries
Product: [Other] RHQ Project Reporter: John Mazzitelli <mazz>
Component: Core ServerAssignee: John Mazzitelli <mazz>
Status: CLOSED NEXTRELEASE QA Contact:
Severity: medium Docs Contact:
Priority: high    
Version: unspecifiedKeywords: SubTask
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: All   
URL: http://jira.rhq-project.org/browse/RHQ-1026
Whiteboard:
Fixed In Version: 1.2 Doc Type: Bug Fix
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:
Bug Depends On:    
Bug Blocks: 534300    

Description John Mazzitelli 2008-10-25 17:35:00 UTC
there needs to be a new servlet deployed in the server that will provide HTTP GET access allow clients to know what version the most up-to-date agent is on and to actually download the agent binary.

For more info, see http://support.rhq-project.org/display/RHQ/Design-AgentAutoUpdate

Comment 1 John Mazzitelli 2008-10-26 07:09:23 UTC
svn rev 1846

most of the servlet is done -just need to extract the agent version info and store it so we can serve it back to agents.  either that, or get our build scripts to extract the info for us

Comment 2 John Mazzitelli 2008-10-27 23:57:22 UTC
svn rev 1853

the servlet will look for a file in rhq-downloads/rhq-agent called rhq-agent*.jar. If it finds it, it will use that as the agent update binary that gets streamed to the client when HTTP GET /agenetupdate/download

in that .jar file, servlet will assume it will find a rhq-agent-update-version.properties file - if it finds it, it will use its content (along with the server's version and build number) to create an internal file that we stream to HTTP clients when they HTTP GET /agentupdate/version.



Comment 3 John Mazzitelli 2008-10-27 23:58:33 UTC
for the most part, this servlet is done.  might be able to add more configurability to it later, specifically for the abilty to turn off agent updates.  for now, rhq-server.properties has a setting that, if you set to 0, disables agent updates for that server (i.e. HTTP clients cannot access the agentupdate/[version,download] URLs.

Comment 4 Red Hat Bugzilla 2009-11-10 20:22:08 UTC
This bug was previously known as http://jira.rhq-project.org/browse/RHQ-1026