Bug 1591494

Summary: [RFE] Add configuratble vhost to AMQP monitor
Product: Red Hat CloudForms Management Engine Reporter: Satoe Imaishi <simaishi>
Component: ApplianceAssignee: Marek Aufart <maufart>
Status: CLOSED ERRATA QA Contact: Danylo Kholodov <dkholodo>
Severity: medium Docs Contact:
Priority: medium    
Version: 5.9.0CC: abellott, cpelland, lavenel, maufart, obarenbo, vaclav.miller
Target Milestone: GAKeywords: FutureFeature, ZStream
Target Release: 5.9.4   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 5.9.4.0 Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: 1576457 Environment:
Last Closed: 2018-09-04 18:00:27 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: Openstack Target Upstream Version:
Embargoed:
Bug Depends On: 1576457    
Bug Blocks:    

Comment 2 CFME Bot 2018-07-11 14:33:15 UTC
New commit detected on ManageIQ/manageiq-providers-openstack/gaprindashvili:

https://github.com/ManageIQ/manageiq-providers-openstack/commit/002de1a20157dba9a1fe3f77d441e40a2ec48045
commit 002de1a20157dba9a1fe3f77d441e40a2ec48045
Author:     Marek Aufart <aufi.cz>
AuthorDate: Fri Feb  2 07:13:20 2018 -0500
Commit:     Marek Aufart <aufi.cz>
CommitDate: Fri Feb  2 07:13:20 2018 -0500

    Merge pull request #221 from paulslaby/master

    Add configurable vhost to AMQP monitor
    (cherry picked from commit 5f1c01e25b8d64b8c8c3f167ffd64f0242d7bfe2)

    Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1591494

 config/settings.yml | 3 +
 lib/manageiq/providers/openstack/legacy/events/openstack_rabbit_event_monitor.rb | 2 +
 2 files changed, 5 insertions(+)

Comment 3 Danylo Kholodov 2018-07-23 13:42:12 UTC
Need more information.

First of all during the configuring AMQP at CMFE Events of a infra/cloud provider  an error appears: "Credential validation was not successful:Socket error: Could not establish TCP connection to any of the configured tests"

I found that there is no connection between CFME and RabbitMQ.
Was trying to ping from CFME machine the IP address of RabbitMQ. 
Finally after adding at a hypervisor new ip route for a connection between CFME and RabbitMQ was established.
Is such a workaround is ok? Because by default it is impossible to start using AMQP at CFME.

So after previous step I've successfully added AMQP Events at CFME.
And if I understand correct to verify this bug I should make an AMQP call and than check that a vhost header is really part of AMQP calls. 
But in a what way I can do it? To make some action on a cloud and then logs at CFME, e.g. "tail -f /var/www/miq/vmdb/log/evm.log | grep amqp"?
All I can see is something like this:
:amqp_port: 5672
:amqp_heartbeat: 30
:amqp_recovery_attempts: 4
:amqp_vhost: "/"
Or it is necessary to do something else?

Comment 5 Danylo Kholodov 2018-07-27 11:12:29 UTC
Verified at the CFME 5.9.4.0

Comment 7 errata-xmlrpc 2018-09-04 18:00:27 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/RHSA-2018:2561