Bug 852561
| Summary: | AlertCondition.name is null in database after JON 2.4 to 3.1 upgrade | ||
|---|---|---|---|
| Product: | [Other] RHQ Project | Reporter: | Larry O'Leary <loleary> |
| Component: | Alerts, Database | Assignee: | Jay Shaughnessy <jshaughn> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Mike Foley <mfoley> |
| Severity: | high | Docs Contact: | |
| Priority: | urgent | ||
| Version: | 4.4 | CC: | hrupp, jlivings, jshaughn, loleary |
| Target Milestone: | --- | ||
| Target Release: | RHQ 4.5.0 | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | 852554 | Environment: | |
| Last Closed: | 2013-09-01 10:04:19 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: | 852554 | ||
|
Description
Larry O'Leary
2012-08-28 23:40:38 UTC
Master commit 35c152e87e280d8a5cd93353892da39067883819 From an RHQ perspective this should have affected upgrades to RHQ 4.4. Add a db upgrade step to convert relevant alert condition rows to the new format. Test Notes: This is a db upgrade fix, so ideally this would be tested on postgres and oracle. The dev work was done on postgres. I did validate the upgrade SQL on Oracle. To test: See the steps in https://bugzilla.redhat.com/show_bug.cgi?id=852554#c2. Test Notes: - you could also use JON3.0.x as the base version. - i would suggest generating both 'goes down' and 'comes up' alerts for more complete test coverage. - an easy way to generate these alerts is on a webapp, use the stop/start operations. Use the agent prompt command '> avail -c' to speed up the avail change and alert generation. - you can upgrade to 3.1 or any version of 3.1.1 prior to the fix to see the issue. The recent alerts portlet should be enough to generate the uncaught exception. - upgrade to a fixed version to see it work. - for RHQ, start with 4.3, upgrade to 4.4 for the problem. Upgrade to 4.5 for the fix. master commit 26941dd6fb00043842ad5d4e6786b1f5ed391382 fix merge issue Bulk closing of items that are on_qa and in old RHQ releases, which are out for a long time and where the issue has not been re-opened since. |