Bug 1728179

Summary: Server (API) error on order page when ordering the catalog item(orchestration) from global region
Product: Red Hat CloudForms Management Engine Reporter: Niyaz Akhtar Ansari <nansari>
Component: ApplianceAssignee: Yuri Rudman <yrudman>
Status: CLOSED NOTABUG QA Contact: Niyaz Akhtar Ansari <nansari>
Severity: high Docs Contact: Red Hat CloudForms Documentation <cloudforms-docs>
Priority: medium    
Version: 5.11.0CC: abellott, bmidwood, gtanzill, hkataria, lavenel, mpovolny, obarenbo, yrudman
Target Milestone: GAKeywords: Reopened
Target Release: 5.11.0   
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-07-18 14:29:00 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: Bug
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: CFME Core Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1656351    
Attachments:
Description Flags
error
none
url on remote server none

Description Niyaz Akhtar Ansari 2019-07-09 09:00:59 UTC
Created attachment 1588657 [details]
error

Description of problem:


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

How reproducible:
100%

Steps to Reproduce:
1. Create a service catalog item with type orchestration template (Aws cloudformation) in remote region and catalog is provisioned successfully from remote region.
2. Order above catalog item from global region
 
Actual results:
Unable to order the catalog item from global region. Throws Server error in order page

Expected results:


Additional info:

Comment 2 Gregg Tanzillo 2019-07-10 15:15:55 UTC
Please suppy the error with the corresponding backtrace from the log.

Comment 5 Yuri Rudman 2019-07-15 14:22:53 UTC
In reproducer environment internal IP detected during installation and shown in appliance console is different than IP used for replication; internal ip is not accessible from global region.

There is settings which dictates what URL to use for the purpose of Centralized Administration - webservices.url. By default is it empty, which means appliance IP detected during installation will be used. To fix reported issue this settings (webservices.url) need to be updated on remote region to the same url which is used for replication.


There is RFE to use IP used for replication for Centralized Administration: https://bugzilla.redhat.com/show_bug.cgi?id=1710037

Comment 7 Niyaz Akhtar Ansari 2019-07-17 08:53:33 UTC
Hi Yuri, the issue is still reproducible. seeing the same error while clicking on submit button on service order

Comment 8 Yuri Rudman 2019-07-17 13:28:19 UTC
It is different error, original error was : "Failed to send request to <internal IP of appliance>" and now error is "Failed to send request to /10.16.5.106 - both URI are relative".

Comment 9 Yuri Rudman 2019-07-17 15:30:14 UTC
Niyaz, Reproducer environment updated.
 webservices.url should be full URL (with protocol prefix) - https://<ip>
Could you check again

Comment 10 Niyaz Akhtar Ansari 2019-07-17 16:20:19 UTC
Now I am able to provision the service. looks good to me. 

but I don't see the full URL (with protocol prefix) - https://<ip> in the appliance settings
Could you please tell me what exactly you have updated in the appliance to solve this issue?

Comment 11 Yuri Rudman 2019-07-17 17:01:00 UTC
webservices.url updated on remote server - it is informing global region how to access itself.

Comment 12 Yuri Rudman 2019-07-17 17:02:25 UTC
Created attachment 1591510 [details]
url on remote server