Bug 1330568 - AMQP port is ignored for OpenStack AMQP endpoint
Summary: AMQP port is ignored for OpenStack AMQP endpoint
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: Providers
Version: 5.6.0
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: GA
: 5.6.0
Assignee: Ladislav Smola
QA Contact: Ola Pavlenko
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-04-26 13:28 UTC by Pete Savage
Modified: 2017-08-30 03:48 UTC (History)
6 users (show)

Fixed In Version: 5.6.0.6
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-06-29 15:54:50 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 Pete Savage 2016-04-26 13:28:21 UTC
Description of problem: AMQP port is ignored for OpenStack AMQP endpoint


Version-Release number of selected component (if applicable): 5.6.0.4-beta2.3.20160421172650_719e256 


How reproducible: 100%


Steps to Reproduce:
1. Try to add a RHOS environment and change the AMQP port on the Endpoint tab to something other than 5672 and hit validate
2.
3.

Actual results: CFME uses port 5672 regardless of what is in the port box


Expected results: CFME should use the port supplied


Additional info:
In the database, the port is set to 5000 in the 'endpoints' table, but this value is seemingly ignored elsewhere in the product

Comment 2 Greg Blomquist 2016-04-26 18:42:17 UTC
Dan, can someone in UI look at this and make sure that the port is not getting lost in the Angular form?

Comment 3 Aparna Karve 2016-04-26 20:37:02 UTC
Pete,

I have a couple questions.

1. Did you say you set the AMQP port to 5000 and the DB also shows that?
If yes, then this is not a UI issue

2. How did you infer that your AMQP port is not being used?

In the production.log I see this when I hit validate

[----] I, [2016-04-26T16:24:32.399868 #3179:15b871c]  INFO -- :   Parameters: {"utf8"=>"✓", "authenticity_token"=>"i4E8U0htqaRCHxfjGchLNcsKvT07BWsLWAO00IfVxeZOm6tbynOlXGsCc4XXFCyjNaBaOkrWrwd9aAVVQ/eqeg==", "button"=>"validate", "cred_type"=>"amqp", "name"=>"test", "emstype"=>"openstack_infra", "api_version"=>"v2", "zone"=>"default", "default_userid"=>"", "default_password"=>"[FILTERED]", "default_verify"=>"[FILTERED]", "default_hostname"=>"aaa", "default_api_port"=>"5000", "default_security_protocol"=>"ssl-with-validation", "amqp_hostname"=>"bbb", "amqp_api_port"=>"1111", "amqp_security_protocol"=>"ssl", "amqp_userid"=>"a", "amqp_password"=>"[FILTERED]", "amqp_verify"=>"[FILTERED]", "ssh_keypair_userid"=>"", "ssh_keypair_password"=>"[FILTERED]", "ssh_keypair_verify"=>"[FILTERED]"}

Notice that amqp_api_port (AMQP Port) is passed correctly to the backend (I set it to 1111 in my test)

Comment 4 Pete Savage 2016-04-27 08:21:05 UTC
Yes, in my additional info, I have seen that the database is storing the right port number in the endpoints table. The issue seems to be the provider subsystem using that value. If I do a netstat on the appliance I see a constant connection to 5672, which is obviously the "right" port, but not the one I requested. So I do not believe this is a UI issue.

Comment 5 Greg Blomquist 2016-04-28 14:03:46 UTC
Ladas, can you take a look at this?  I believe you're actually already looking at it.

Comment 7 CFME Bot 2016-05-05 21:40:49 UTC
New commit detected on ManageIQ/manageiq/master:
https://github.com/ManageIQ/manageiq/commit/8c84e6af4b2a999b3cdfe197e95c7fa9b3b81264

commit 8c84e6af4b2a999b3cdfe197e95c7fa9b3b81264
Author:     Ladislav Smola <lsmola>
AuthorDate: Wed Apr 27 19:58:39 2016 +0200
Commit:     Ladislav Smola <lsmola>
CommitDate: Thu May 5 11:43:12 2016 +0200

    OpenStack AMQP doesn't use endpoint data
    
    OpenStack AMQP doesn't use endpoint data, whcih is being fixed.
    
    Fixes BZ:
    https://bugzilla.redhat.com/show_bug.cgi?id=1330568
    
    Fixes Issue:
    https://github.com/ManageIQ/manageiq/issues/8158

 .../manageiq/providers/openstack/manager_mixin.rb    | 20 ++++++++++++--------
 gems/pending/openstack/openstack_event_monitor.rb    |  2 +-
 2 files changed, 13 insertions(+), 9 deletions(-)

Comment 9 Ronnie Rasouli 2016-05-31 09:39:53 UTC
In case the port is correct the validation passed, changing the port throws:
Credential validation was not successful: Socket error: Could not establish TCP connection to any of the configured hosts

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