Bug 1390405

Summary: Check central admin configuration before connecting to remote region with API client
Product: Red Hat CloudForms Management Engine Reporter: Satoe Imaishi <simaishi>
Component: ApplianceAssignee: Nick Carboni <ncarboni>
Status: CLOSED ERRATA QA Contact: Alex Newman <anewman>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 5.7.0CC: abellott, cpelland, jhardy, obarenbo
Target Milestone: GA   
Target Release: 5.7.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 5.7.0.9 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1389536 Environment:
Last Closed: 2017-01-04 13:06:45 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On: 1389536    
Bug Blocks:    

Comment 2 CFME Bot 2016-11-01 16:26:10 UTC
New commit detected on ManageIQ/manageiq/euwe:
https://github.com/ManageIQ/manageiq/commit/047b557007cadf9b4333ab8568562824d62ebeb0

commit 047b557007cadf9b4333ab8568562824d62ebeb0
Author:     Chris Arcand <chrisarcand.github.com>
AuthorDate: Fri Oct 28 10:01:22 2016 -0400
Commit:     Oleg Barenboim <chessbyte>
CommitDate: Tue Nov 1 12:24:00 2016 -0400

    Merge pull request #12264 from carbonin/raise_for_api_calls_to_non_configured_regions
    
    Raise an error if a region is not configured for central admin
    (cherry picked from commit 650c968e99579d8ba3da04b8e3dc68645ac91368)
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1390405

 .../application_controller/miq_request_methods.rb  | 10 ++++-
 app/models/mixins/inter_region_api_method_relay.rb | 17 +++++---
 .../mixins/inter_region_api_method_relay_spec.rb   | 50 ++++++++++++++--------
 3 files changed, 53 insertions(+), 24 deletions(-)

Comment 3 Alex Newman 2016-11-11 20:43:23 UTC
"Region 0 is not configured for central administration"

Comment 5 errata-xmlrpc 2017-01-04 13:06:45 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://rhn.redhat.com/errata/RHBA-2017-0012.html