Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1330568 - AMQP port is ignored for OpenStack AMQP endpoint
AMQP port is ignored for OpenStack AMQP endpoint
Status: CLOSED ERRATA
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: Providers (Show other bugs)
5.6.0
Unspecified Unspecified
high Severity high
: GA
: 5.6.0
Assigned To: Ladislav Smola
Ola Pavlenko
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2016-04-26 09:28 EDT by Pete Savage
Modified: 2017-08-29 23:48 EDT (History)
6 users (show)

See Also:
Fixed In Version: 5.6.0.6
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2016-06-29 11:54:50 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2016:1348 normal SHIPPED_LIVE CFME 5.6.0 bug fixes and enhancement update 2016-06-29 14:50:04 EDT

  None (edit)
Description Pete Savage 2016-04-26 09:28:21 EDT
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 14:42:17 EDT
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 16:37:02 EDT
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 04:21:05 EDT
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 10:03:46 EDT
Ladas, can you take a look at this?  I believe you're actually already looking at it.
Comment 7 CFME Bot 2016-05-05 17:40:49 EDT
New commit detected on ManageIQ/manageiq/master:
https://github.com/ManageIQ/manageiq/commit/8c84e6af4b2a999b3cdfe197e95c7fa9b3b81264

commit 8c84e6af4b2a999b3cdfe197e95c7fa9b3b81264
Author:     Ladislav Smola <lsmola@redhat.com>
AuthorDate: Wed Apr 27 19:58:39 2016 +0200
Commit:     Ladislav Smola <lsmola@redhat.com>
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 05:39:53 EDT
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 11:54:50 EDT
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.