Bug 536378 (RHQ-733)
| Summary: | Upgrade from 2.0.0 to 2.1.0 fails with postgres | ||
|---|---|---|---|
| Product: | [Other] RHQ Project | Reporter: | Jeff Weiss <jweiss> |
| Component: | Installer | Assignee: | Jason Dobies <__jdobies> |
| Status: | CLOSED NEXTRELEASE | QA Contact: | Jeff Weiss <jweiss> |
| Severity: | medium | Docs Contact: | |
| Priority: | high | ||
| Version: | 1.1pre | CC: | dajohnso |
| Target Milestone: | --- | Flags: | jweiss:
archived+
|
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | All | ||
| URL: | http://jira.rhq-project.org/browse/RHQ-733 | ||
| Whiteboard: | |||
| Fixed In Version: | 1.1 | Doc Type: | Bug Fix |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: |
linux, postgres
|
|
| 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: | 536301 | ||
|
Description
Jeff Weiss
2008-08-13 20:53:00 UTC
Here is what I believe to be the issue. - During 2.0.0 startup, package type metadata loaded. It does *not* contain the supports architecture attribute at this point. - In the upgrade to 2.0.1, the DB column is added for supports architecture. For existing package types, this is just left at null. - Also in the upgrade, the second statement runs to set supports architecture to not null. This blows up when there are existing package types. - In theory, once the package type metadata is read again, we'll have values for supports architecture on all package types (either explicitly set or defaulted). The new metadata should be merged with the existing package types and correctly set this flag on all existing package types. There are two options: - Remove the "not null" clause on this column, which will let the upgrade proceed. This column will still be populated on server start when the package types are read. - Set the supports architecture flag on all existing package types in the upgrade to the default value. The correct values should still be populated when the package types are read at server startup. The latter would be better as it maintains the DB integrity. I just need to make sure our metadata parsing will correctly merge the package type metadata and update this flag. r1241 - db-upgrade.xml - Default the supports architecture flag for existing package types in an upgrade so the not null directive isn't violated by existing data. This is fixed on my rev1250 build. This bug was previously known as http://jira.rhq-project.org/browse/RHQ-733 |