Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't run a rake task from the host_storages migration #9178

Merged
merged 1 commit into from Jun 10, 2016

Conversation

carbonin
Copy link
Member

This migration was created to fix some issues associated with adding and assigning a primary key to the host_storages table when replication is enabled.

prepare_replication_without_sync attempts to retrieve the replication worker settings; which as of #7432, requires the settings_changes table be present. This command will now fail because that table is added in a later migration.

Removing this command will not cause an issue as rubyrep accounts for all unconfigured tables at first startup. We could also require running rake evm:dbsync:prepare_replication_without_sync after migration during upgrades.

https://bugzilla.redhat.com/show_bug.cgi?id=1344112

@carbonin
Copy link
Member Author

@gtanzillo @Fryguy please review

@Fryguy
Copy link
Member

Fryguy commented Jun 10, 2016

LGTM 👍

@carbonin This prevents upgrades as well, right? (and thus should be marked a blocker?)

@carbonin
Copy link
Member Author

Correct @Fryguy

This migration was created to fix some issues associated with adding
and assigning a primary key when replication is enabled.

`prepare_replication_without_sync` attempts to retrieve the replication
worker settings; which as of ManageIQ#7432, requires the `settings_changes` table
be present. This command will now fail because that table is added
in a later migration.

Removing this command will not cause an issue as rubyrep accounts for
all unconfigured tables at first startup. We could also require running
`rake evm:dbsync:prepare_replication_without_sync` after migration during
upgrades.

https://bugzilla.redhat.com/show_bug.cgi?id=1344112
@carbonin carbonin force-pushed the dont_run_rake_from_migrations branch from 78a2813 to 9debfda Compare June 10, 2016 20:11
@Fryguy Fryguy merged commit fc421ed into ManageIQ:master Jun 10, 2016
@Fryguy Fryguy added this to the Sprint 42 Ending June 20, 2016 milestone Jun 10, 2016
@Fryguy Fryguy self-assigned this Jun 10, 2016
@carbonin carbonin deleted the dont_run_rake_from_migrations branch June 10, 2016 21:43
chessbyte pushed a commit that referenced this pull request Jun 11, 2016
Don't run a rake task from the host_storages migration
(cherry picked from commit fc421ed)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants