Bug 1038256
| Summary: | Windows 2008 - Invalid agent service after upgrade (on remote agent machine) | ||
|---|---|---|---|
| Product: | [JBoss] JBoss Operations Network | Reporter: | Filip Brychta <fbrychta> |
| Component: | Upgrade | Assignee: | Jay Shaughnessy <jshaughn> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Mike Foley <mfoley> |
| Severity: | urgent | Docs Contact: | |
| Priority: | urgent | ||
| Version: | JON 3.2 | CC: | jshaughn, loleary, spinder |
| Target Milestone: | CR02 | ||
| Target Release: | JON 3.2.0 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2014-01-02 20:37:55 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: | 1010354, 1012435 | ||
|
Description
Filip Brychta
2013-12-04 17:52:02 UTC
The problem seems to be that "%RHQ_JAVA_EXE_FILE_PATH%" is not getting resolved. I'm not sure, still looking... release/jon3.2.x commit d19fd2306f60991e839566934c7fbbcf4f692226 Author: Jay Shaughnessy <jshaughn> Date: Thu Dec 5 09:39:49 2013 -0500 This problem resulted from the work in Bug 1016609, when we introduced the use of RHQ_JAVA_EXE_FILE_PATH and deprecated the use of RHQ_AGENT_JAVA_EXE_FILE_PATH (among several simplifications of our env properties). The issue with that change was the fact that existing windows agent services (remote agents, not handled by rhqctl) included set.RHQ_AGENT_JAVA_EXE_FILE_PATH in the service "path to executable", for use by the service wrapper. But the new rhq-agent-wrapper.conf expected RHQ_JAVA_EXE_FILE_PATH to be set when formulating its command string. This was only an issue for existing agents that would be auto-upgraded. Agent auto-upgrade does not update the existing service, it only restarts it after the agent update. So, the "path to executable" remains unchanged and therefore passes only the legacy property. Note that auto-upgrade does the right thing, it should *not* replace the service in order to update its definition. Doing this could lose the RUN_AS password, which may have been set interactively when the agent was initially installed. The solution should be good, the rhq-agent-wrapper.conf has been reverted to use RHQ_AGENT_JAVA_EXE_FILE_PATH. We still completely support the new RHQ env properties, like RHQ_JAVA_EXE_FILE_PATH, but will supply the legacy property at service install time. That gives up backward compatibility while keeping the use of RHQ_AGENT_JAVA_EXE_FILE_PATH internal. Cherry-Pick Master: 719e2c127f24f7467ecc3a371d9797f6598880c0 the fix has been pre-qualified by both dev and qe (Jay and filip). QE just needs to requalify in the final GA bits. hopefully a formality. Flipping this to ON_QA for testing with latest brew build. Verified on: Version : 3.2.0.GA Build Number : 7b00246:6d13523 |