Bug 1315974
Summary: | 5.6@Oracle to 5.7@PostgreSQL: ERROR: column "old_password" of relation "web_contact" does not exist | ||
---|---|---|---|
Product: | Red Hat Satellite 5 | Reporter: | Jan Hutař <jhutar> |
Component: | Upgrades | Assignee: | Tomáš Kašpárek <tkasparek> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Ales Dujicek <adujicek> |
Severity: | high | Docs Contact: | |
Priority: | unspecified | ||
Version: | 570 | CC: | adujicek, tlestach |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | rhn-upgrade-5.8.0.3-1-sat | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2017-06-21 12:11:56 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: | 1393921 |
Description
Jan Hutař
2016-03-09 07:45:26 UTC
Sat 5.6 schema contains web_contact with old_password column But 5.7 schema, which is created during upgrade, contains web_contact without that column. And ./install.pl --upgrade loads 5.6 dump directly to 5.7 schema >install/lib/Spacewalk/Setup.pm: > system_or_exit(["/bin/bash", "-c", > "(set -o pipefail; /usr/bin/spacewalk-dump-schema" . > " --db=" . $oracle_creds->{'db-name'} . > " --user=" . $oracle_creds->{'db-user'} . > " --password=" . $oracle_creds->{'db-password'} . > " --from=" . $db_details->{'migrate_from'} . > " --to=" . $db_details->{'migrate_to'} . > " | spacewalk-sql" . > " --verbose" . > " --select-mode-direct" . > " - ) > " . DB_MIGRATION_LOG_FILE . ' 2>&1'], > 1, > "*** Data migration failed."); which cannot work. Schema upgrade from 5.6 to 5.7 includes >satellite-schema-5.6-to-satellite-schema-5.7/004-web_contact-old_password.sql: > alter table web_contact drop column old_password; We would probably need to run spacewalk-schema-upgrade to get Oracle to 5.7 schema, first. Also happens during 5.6 -> 5.8 migrations. |