Bug 534210 (RHQ-1028)
| Summary: | add agent version checking code to the main agent | ||
|---|---|---|---|
| Product: | [Other] RHQ Project | Reporter: | John Mazzitelli <mazz> |
| Component: | Agent | Assignee: | John Mazzitelli <mazz> |
| Status: | CLOSED NEXTRELEASE | QA Contact: | |
| Severity: | medium | Docs Contact: | |
| Priority: | high | ||
| Version: | unspecified | Keywords: | SubTask |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | All | ||
| URL: | http://jira.rhq-project.org/browse/RHQ-1028 | ||
| 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:42:00 UTC
agent needs to check the integrity of the downloaded jar by doing md5 comparisions. the agentupdate/version URL will provide a rhq-agent.latest.md5 property. this obviously isn't for security - its just to validate that the download wasn't corrupted somehow coming down over the wire. svn rev2010 starts this work. there is now AgentUpdateCheck that asks the server for the version info of the update and it compares the current version. "update" prompt command has been added so you can ask at the command prompt for the "--version" info as well as being able to "--enable" and "--disable" the agent-update-enable flag. Nices to have include: being able to say "update --download=[<output-dir>]" and have it download the agent update binary AND check its MD5, placing the .jar in the given output-dir, or in some other place (/data/tmp ?, /update ?)) as a default. being able to say "update --apply" to have it download and apply the update. this is the hard part and involves doing the actual update, and restarting the agent. svn rev 2012 - agent now has code that downloads the update binary from the server. update prompt command lets you download it. no auto-update or auto-version checks yet. currently only stores the download file to java.io.tmpdir - need to investigate if we should allow putting it under rhq-agent - since to apply the update that rhq-agent directory gets backed up and moved - don't think we can run the update which would at the same time move the update .jar. code that launches the update threads after the version is detected to be out of date is now in...svn rev 2326 This bug was previously known as http://jira.rhq-project.org/browse/RHQ-1028 This bug is related to RHQ-1158 |