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

Fix replication validation for not saved subscriptions #16997

Conversation

yrudman
Copy link
Contributor

@yrudman yrudman commented Feb 13, 2018

Issue:
While setting-up replication nodes on global region, validation throws errors if 'pglogical' schema not created first:
/usr/local/lib/ruby/gems/2.3.0/gems/pg-pglogical-2.1.2/lib/pg/pglogical/client.rb:344:in `async_exec' /usr/local/lib/ruby/gems/2.3.0/gems/pg-pglogical-2.1.2/lib/pg/pglogical/client.rb:344:in `typed_exec' /usr/local/lib/ruby/gems/2.3.0/gems/pg-pglogical-2.1.2/lib/pg/pglogical/client.rb:228:in `subscription_show_status' /var/www/miq/vmdb/app/models/pglogical_subscription.rb:211:in `find_password' /var/www/miq/vmdb/app/models/pglogical_subscription.rb:94:in `validate' /usr/local/lib/ruby/gems/2.3.0/bundler/gems/manageiq-ui-classic-02e1a7098b58/app/controllers/ops_controller/settings/common.rb:239:in `pglogical_validate_subscription'

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

AFTER:
after

@miq-bot add-label bug, replication, gaprindashvili/yes

@yrudman yrudman force-pushed the fix-replication-validation-before-pglogical-schema-created branch from 9e47e18 to b8e87e1 Compare February 13, 2018 19:47
@miq-bot
Copy link
Member

miq-bot commented Feb 13, 2018

Checked commits yrudman/manageiq@31b4764~...b8e87e1 with ruby 2.3.3, rubocop 0.52.0, haml-lint 0.20.0, and yamllint 1.10.0
2 files checked, 0 offenses detected
Everything looks fine. 👍

@yrudman
Copy link
Contributor Author

yrudman commented Feb 13, 2018

\cc @carbonin

@carbonin carbonin self-assigned this Feb 13, 2018
Copy link
Member

@carbonin carbonin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@carbonin carbonin merged commit e7b6dce into ManageIQ:master Feb 13, 2018
@carbonin carbonin added this to the Sprint 80 Ending Feb 26, 2018 milestone Feb 13, 2018
@yrudman yrudman deleted the fix-replication-validation-before-pglogical-schema-created branch February 14, 2018 12:01
simaishi pushed a commit that referenced this pull request Mar 7, 2018
…ore-pglogical-schema-created

Fix replication validation for not saved subscriptions
(cherry picked from commit e7b6dce)

Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1552790
@simaishi
Copy link
Contributor

simaishi commented Mar 7, 2018

Gaprindashvili backport details:

$ git log -1
commit 0c1006b771630ff7d8cf9f8d8cc1c295cfd07d2c
Author: Nick Carboni <ncarboni@redhat.com>
Date:   Tue Feb 13 17:34:58 2018 -0500

    Merge pull request #16997 from yrudman/fix-replication-validation-before-pglogical-schema-created
    
    Fix replication validation for not saved subscriptions
    (cherry picked from commit e7b6dcec1f24075f9d60955daf13596471a218df)
    
    Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1552790

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.

4 participants