Bug 1303959 - When the Openstack cloud provider AMQP server isn't reachable an Unknown reason is shown for credentials validation
Summary: When the Openstack cloud provider AMQP server isn't reachable an Unknown reas...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: Providers
Version: 5.5.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: GA
: 5.6.0
Assignee: Ladislav Smola
QA Contact: Omri Hochman
URL:
Whiteboard: openstack
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-02-02 14:25 UTC by Marius Cornea
Modified: 2018-07-25 16:48 UTC (History)
6 users (show)

Fixed In Version: 5.6.0.8
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-06-29 15:35:29 UTC
Category: ---
Cloudforms Team: Openstack
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 Marius Cornea 2016-02-02 14:25:49 UTC
Description of problem:
When the Openstack cloud provider AMQP server isn't reachable an Unknown reason is shown for credentials validation.

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

How reproducible:
100%

Steps to Reproduce:
1. Add an Openstack OSP 7 Cloud provider
2. Input the public API VIP 
3. Input the AMQP credentials
4. Validate credentials

Actual results:
Credential validation was not successful: Unknown reason

Expected results:
The error message actually shows the connection failure reason. 

If we manually check the AMQP connection from CLI we can see:
[root@cloudforms ~]# curl -g http://[2001:db8:fd00:1000::10]:5672
curl: (7) Failed connect to 2001:db8:fd00:1000::10:5672; Connection refused

So I believe a proper message would be:
Credential validation was not successful: Connection refused

Comment 2 Shveta 2016-02-03 00:13:13 UTC
Assigning to add test case

Comment 4 CFME Bot 2016-05-20 14:40:47 UTC
New commit detected on ManageIQ/manageiq/master:
https://github.com/ManageIQ/manageiq/commit/5ad1662e596e7a598acfd93f7b0ae4734fe1f2cc

commit 5ad1662e596e7a598acfd93f7b0ae4734fe1f2cc
Author:     Ladislav Smola <lsmola>
AuthorDate: Thu May 12 15:51:17 2016 +0200
Commit:     Ladislav Smola <lsmola>
CommitDate: Mon May 16 17:26:14 2016 +0200

    Do not hide AMQP exception for validation
    
    Do not hide AMQP exception for validation
    
    Fixes BZ:
    https://bugzilla.redhat.com/show_bug.cgi?id=1303959

 .../manageiq/providers/openstack/manager_mixin.rb  |  7 +++++--
 .../events/openstack_ceilometer_event_monitor.rb   |  2 +-
 .../events/openstack_rabbit_event_monitor.rb       |  2 +-
 gems/pending/openstack/openstack_event_monitor.rb  | 24 +++++++++++++---------
 4 files changed, 21 insertions(+), 14 deletions(-)

Comment 5 Ronnie Rasouli 2016-06-08 10:59:51 UTC
Validated on cfme 5.6.0.9 rc2 credentials for rabbitmq validation successful

Comment 7 errata-xmlrpc 2016-06-29 15:35:29 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.