Bug 1710037

Summary: [RFE] replication and Central Administration are broken when remote appliance's internal ip isn't reachable ouside
Product: Red Hat CloudForms Management Engine Reporter: Ievgen Zapolskyi <izapolsk>
Component: ReplicationAssignee: Gregg Tanzillo <gtanzill>
Status: CLOSED WONTFIX QA Contact: Ievgen Zapolskyi <izapolsk>
Severity: high Docs Contact: Red Hat CloudForms Documentation <cloudforms-docs>
Priority: unspecified    
Version: 5.10.4CC: dmetzger, mshriver, obarenbo, yrudman
Target Milestone: GAKeywords: RFE
Target Release: cfme-futureFlags: izapolsk: automate_bug+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-12-18 14:32:55 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: Feature
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: CFME Core Target Upstream Version:
Embargoed:

Description Ievgen Zapolskyi 2019-05-14 19:24:19 UTC
Description of problem:
RHOS appliance with floating IP or appliance behind firewall and etc cannot be used from global region.

If remote region's appliance is deployed in RHOS with floating IP or appliance is behind firewall, it has internal IP and this IP isn't available outside.
If replication of such remote appliance is set up in global region's appliance,
replication code will ignore passed external IP and use internal IP pulled from remote appliance.

This issue causes many different inobvious errors related to Central Administration.

Version-Release number of selected component (if applicable):
5.10.4.3

How reproducible:
100%

Steps to Reproduce:
1. Set up first appliance to have replication type - Remote and have region 1
2. Set up second appliance to have replication type - Global and have region 99
3. Add subscription to first appliance in second appliance
4. wait until replication is done
5. add any cloud or infra provider to first appliance
6. try provisioning vm/instance in second appliance in appeared infra/cloud provider

Actual results:
can't create provisioning request due to error that global appliance cannot contact to internal ip of remote appliance

or

can't create provisioning request due to "undefined method `remote_ws_url for nil:NilClass"

Expected results:
replication should use passed external IP instead of that pulled internal IP
and
correctly working Central Administration

Comment 2 Yuri Rudman 2019-05-28 11:41:17 UTC
NOTE: there is workaround - update settings webservices.url (using Advanced Settings) on remote server to be the same as ip of remote server in replication set-up