Bug 1340247 - Replication subscription update fails
Summary: Replication subscription update fails
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: Replication
Version: 5.6.0
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: GA
: 5.6.0
Assignee: Nick Carboni
QA Contact: Alex Newman
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-05-26 20:21 UTC by Nick Carboni
Modified: 2018-01-19 21:28 UTC (History)
6 users (show)

Fixed In Version: 5.6.0.10
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-06-29 16:06:32 UTC
Category: ---
Cloudforms Team: ---
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2016:1348 0 normal SHIPPED_LIVE CFME 5.6.0 bug fixes and enhancement update 2016-06-29 18:50:04 UTC

Description Nick Carboni 2016-05-26 20:21:22 UTC
Description of problem:

Updating a subscription fails with the message:
Error during replication configuration save: Failed to save subscription to <hostname>: fe_sendauth: no password supplied

This is being raised by the process that validates the remote schema against the schema.yml file.

The model doesn't have to password field set until we actually attempt the update, which is too late for the schema validity check.

Version-Release number of selected component (if applicable):
5.6.0.8-rc1-nightly

How reproducible:
Always

Steps to Reproduce:
1. Deploy two regions
2. Set up replication (remote region + subscription)
3. Edit the subscription
  - For this I set the hostname by setting an alias in /etc/hosts to the original IP of the regional appliance and using that hostname in the update.

Actual results:
Error is raised and save fails

Expected results:
Subscription info is updated.

Additional info:

Comment 3 CFME Bot 2016-05-31 19:20:53 UTC
New commit detected on ManageIQ/manageiq/master:
https://github.com/ManageIQ/manageiq/commit/e6ea49cb43f165b0c74b29e6a874a78a0ec5a86d

commit e6ea49cb43f165b0c74b29e6a874a78a0ec5a86d
Author:     Nick Carboni <ncarboni>
AuthorDate: Thu May 26 16:46:27 2016 -0400
Commit:     Nick Carboni <ncarboni>
CommitDate: Thu May 26 16:46:27 2016 -0400

    Get subscription password before attempting to verify remote schema
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1340247

 app/models/pglogical_subscription.rb       |  1 +
 spec/models/pglogical_subscription_spec.rb | 16 ++++++++--------
 2 files changed, 9 insertions(+), 8 deletions(-)

Comment 7 errata-xmlrpc 2016-06-29 16:06:32 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2016:1348


Note You need to log in before you can comment on or make changes to this bug.