{"action":"created","issue":{"url":"https://api.github.com/repos/ManageIQ/manageiq/issues/10192","repository_url":"https://api.github.com/repos/ManageIQ/manageiq","labels_url":"https://api.github.com/repos/ManageIQ/manageiq/issues/10192/labels{/name}","comments_url":"https://api.github.com/repos/ManageIQ/manageiq/issues/10192/comments","events_url":"https://api.github.com/repos/ManageIQ/manageiq/issues/10192/events","html_url":"https://github.com/ManageIQ/manageiq/pull/10192","id":168878260,"number":10192,"title":"[WIP]  Add event monitoring for VMware Cloud","user":{"login":"miha-plesko","id":8102426,"avatar_url":"https://avatars.githubusercontent.com/u/8102426?v=3","gravatar_id":"","url":"https://api.github.com/users/miha-plesko","html_url":"https://github.com/miha-plesko","followers_url":"https://api.github.com/users/miha-plesko/followers","following_url":"https://api.github.com/users/miha-plesko/following{/other_user}","gists_url":"https://api.github.com/users/miha-plesko/gists{/gist_id}","starred_url":"https://api.github.com/users/miha-plesko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/miha-plesko/subscriptions","organizations_url":"https://api.github.com/users/miha-plesko/orgs","repos_url":"https://api.github.com/users/miha-plesko/repos","events_url":"https://api.github.com/users/miha-plesko/events{/privacy}","received_events_url":"https://api.github.com/users/miha-plesko/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ManageIQ/manageiq/labels/enhancement","name":"enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/ManageIQ/manageiq/labels/providers/vmware/cloud","name":"providers/vmware/cloud","color":"5319e7"},{"url":"https://api.github.com/repos/ManageIQ/manageiq/labels/wip","name":"wip","color":"eeeeee"}],"state":"open","locked":false,"assignee":{"login":"agrare","id":12851112,"avatar_url":"https://avatars.githubusercontent.com/u/12851112?v=3","gravatar_id":"","url":"https://api.github.com/users/agrare","html_url":"https://github.com/agrare","followers_url":"https://api.github.com/users/agrare/followers","following_url":"https://api.github.com/users/agrare/following{/other_user}","gists_url":"https://api.github.com/users/agrare/gists{/gist_id}","starred_url":"https://api.github.com/users/agrare/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/agrare/subscriptions","organizations_url":"https://api.github.com/users/agrare/orgs","repos_url":"https://api.github.com/users/agrare/repos","events_url":"https://api.github.com/users/agrare/events{/privacy}","received_events_url":"https://api.github.com/users/agrare/received_events","type":"User","site_admin":false},"assignees":[{"login":"agrare","id":12851112,"avatar_url":"https://avatars.githubusercontent.com/u/12851112?v=3","gravatar_id":"","url":"https://api.github.com/users/agrare","html_url":"https://github.com/agrare","followers_url":"https://api.github.com/users/agrare/followers","following_url":"https://api.github.com/users/agrare/following{/other_user}","gists_url":"https://api.github.com/users/agrare/gists{/gist_id}","starred_url":"https://api.github.com/users/agrare/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/agrare/subscriptions","organizations_url":"https://api.github.com/users/agrare/orgs","repos_url":"https://api.github.com/users/agrare/repos","events_url":"https://api.github.com/users/agrare/events{/privacy}","received_events_url":"https://api.github.com/users/agrare/received_events","type":"User","site_admin":false}],"milestone":null,"comments":5,"created_at":"2016-08-02T12:56:30Z","updated_at":"2016-08-12T14:50:51Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/ManageIQ/manageiq/pulls/10192","html_url":"https://github.com/ManageIQ/manageiq/pull/10192","diff_url":"https://github.com/ManageIQ/manageiq/pull/10192.diff","patch_url":"https://github.com/ManageIQ/manageiq/pull/10192.patch"},"body":"Purpose or Intent\r\n-----------------\r\nThis patch implements EventMonitor that connects to RabbitMQ\r\nwhere VMware Cloud Director drops notifications. Furthermore,\r\nthis patch implements EventCatcher that makes use of EventMonitor.\r\n\r\nCurrently, any event triggers full refresh of provider as rel4\r\npolicies are not implemented yet.\r\n\r\nCurrently, adding event monitoring credentials is not possible\r\nfrom GUI, since this relies on this  [PR](https://github.com/ManageIQ/manageiq/pull/10018).\r\n\r\nLinks\r\n-----\r\n[event message format](https://pubs.vmware.com/vca/index.jsp?topic=%2Fcom.vmware.vcloud.api.doc_56%2FGUID-D313E4EE-C404-41EF-B223-5723B7B4B29F.html)\r\n\r\nSteps for Testing/QA\r\n--------------------\r\nSince it is difficult to write automated unit tests with\r\nRabbitMQ broker, I've tested like this:\r\n- setup RabbitMQ somewhere\r\n- add rabbit credentials to Vmware::CloudManager using rails console\r\n- run manageiq server and automation workers\r\n- use Rabbitmq Web GUI and manually enqueue event message\r\n- see that VMware provider performs refresh"},"comment":{"url":"https://api.github.com/repos/ManageIQ/manageiq/issues/comments/239467358","html_url":"https://github.com/ManageIQ/manageiq/pull/10192#issuecomment-239467358","issue_url":"https://api.github.com/repos/ManageIQ/manageiq/issues/10192","id":239467358,"user":{"login":"miq-bot","id":7806257,"avatar_url":"https://avatars.githubusercontent.com/u/7806257?v=3","gravatar_id":"","url":"https://api.github.com/users/miq-bot","html_url":"https://github.com/miq-bot","followers_url":"https://api.github.com/users/miq-bot/followers","following_url":"https://api.github.com/users/miq-bot/following{/other_user}","gists_url":"https://api.github.com/users/miq-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/miq-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/miq-bot/subscriptions","organizations_url":"https://api.github.com/users/miq-bot/orgs","repos_url":"https://api.github.com/users/miq-bot/repos","events_url":"https://api.github.com/users/miq-bot/events{/privacy}","received_events_url":"https://api.github.com/users/miq-bot/received_events","type":"User","site_admin":false},"created_at":"2016-08-12T14:50:51Z","updated_at":"2016-08-12T14:50:51Z","body":"<pr_mergeability_checker />This pull request is not mergeable.  Please rebase and repush."}}
{"actor":{"display_login":"miq-bot"}}