Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Implement VMware Cloud EventCatcher backend #11362
This patch implements whole EventCatcher backend that connects to RabbitMQ where VMware Cloud Director drops notifications. Any registered event (i.e. if a fixture in 'System/Event/EmsEvent/VMWARE-VCLOUD.class' exists) triggers a full refresh of the ems.
This PR is a result of discussion from PR#10274.
Steps for Testing/QA [Optional]
Since GUI form to input Rabbit credentials is not yet implemented, one must create ems from Rails CLI as shown in this file.
Note that vCD installation must be configured to support event capturing thru RabbitMQ as described in this document.
This patch implements EventCatcher backend that connects to RabbitMQ where VMware Cloud Director drops notifications. Any registered event (i.e. if a fixture in 'System/Event/EmsEvent/VMWARE-VCLOUD.class' exists) triggers a full refresh of the ems. Signed-off-by: Miha Pleško <firstname.lastname@example.org>
The `::Stream` class is now using the more commonly used `_log` instead of `$log`. Explicit log prefixes were also removed in this patch. This patch also moves the two mixins (`EventCatcherMixin` and `MangerEventsMixin`) into VMware cloud manager namespace as they are only used by the cloud provider. Signed-off-by: Gregor Berginc <email@example.com>
Checked commits xlab-si/manageiq@8be1054~...a21e01e with ruby 2.2.5, rubocop 0.37.2, and haml-lint 0.16.1
Euwe Backport details:
$ git log commit 4cbc9f4735a3e8d838572e1041ff217122d76375 Author: Greg Blomquist <firstname.lastname@example.org> Date: Wed Sep 28 10:44:56 2016 -0400 Merge pull request #11362 from xlab-si/add_vmware_vcloud_event_catcher_full_refresh Implement VMware Cloud EventCatcher backend (cherry picked from commit 066008e96218948c8028a7d67a8b6e71b6fc526b)