{"action":"created","issue":{"url":"https://api.github.com/repos/ManageIQ/manageiq/issues/4474","labels_url":"https://api.github.com/repos/ManageIQ/manageiq/issues/4474/labels{/name}","comments_url":"https://api.github.com/repos/ManageIQ/manageiq/issues/4474/comments","events_url":"https://api.github.com/repos/ManageIQ/manageiq/issues/4474/events","html_url":"https://github.com/ManageIQ/manageiq/pull/4474","id":107767856,"number":4474,"title":"Delete legacy rabbit queues","user":{"login":"blomquisg","id":14183,"avatar_url":"https://avatars.githubusercontent.com/u/14183?v=3","gravatar_id":"","url":"https://api.github.com/users/blomquisg","html_url":"https://github.com/blomquisg","followers_url":"https://api.github.com/users/blomquisg/followers","following_url":"https://api.github.com/users/blomquisg/following{/other_user}","gists_url":"https://api.github.com/users/blomquisg/gists{/gist_id}","starred_url":"https://api.github.com/users/blomquisg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blomquisg/subscriptions","organizations_url":"https://api.github.com/users/blomquisg/orgs","repos_url":"https://api.github.com/users/blomquisg/repos","events_url":"https://api.github.com/users/blomquisg/events{/privacy}","received_events_url":"https://api.github.com/users/blomquisg/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-09-22T18:02:49Z","updated_at":"2015-09-22T18:10:21Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/ManageIQ/manageiq/pulls/4474","html_url":"https://github.com/ManageIQ/manageiq/pull/4474","diff_url":"https://github.com/ManageIQ/manageiq/pull/4474.diff","patch_url":"https://github.com/ManageIQ/manageiq/pull/4474.patch"},"body":"When ManageIQ disconnects from the RabbitMQ service in OpenStack, it leaves behind the queue(s) used to bind to the messaging exchange for events from Nova, Glance, Cinder, etc...  The problem with leaving these queues behind is that without a client to drain the queues, they keep filling up with messages from the notifications topics of the Nova, Glance, and Cinder exchanges.\r\n\r\nThis patch will remove any legacy queues before attempting to create any new queues when ManageIQ connects to a RabbitMQ service in OpenStack.\r\n\r\nThe alternative to deleting these queues in the Event Monitor is to document how to delete the queues manually in RabbitMQ.  However, I believe that having the code clean up after itself where it's easy is a better approach than documenting the changes.\r\n\r\nhttps://bugzilla.redhat.com/show_bug.cgi?id=1265289"},"comment":{"url":"https://api.github.com/repos/ManageIQ/manageiq/issues/comments/142368376","html_url":"https://github.com/ManageIQ/manageiq/pull/4474#issuecomment-142368376","issue_url":"https://api.github.com/repos/ManageIQ/manageiq/issues/4474","id":142368376,"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":"2015-09-22T18:10:21Z","updated_at":"2015-09-22T18:10:21Z","body":"<rubocop />Checked commit https://github.com/blomquisg/manageiq/commit/57a4bd3de48a63a150e1e7aa15524326c66e7e76 with ruby 1.9.3, rubocop 0.33.0, and haml-lint 0.13.0\n1 file checked, 1 offense detected\n\n**gems/pending/openstack/amqp/openstack_rabbit_event_monitor.rb**\n- [ ] :red_circle: **Warn** - [Line 114](https://github.com/blomquisg/manageiq/blob/57a4bd3de48a63a150e1e7aa15524326c66e7e76/gems/pending/openstack/amqp/openstack_rabbit_event_monitor.rb#L114), Col 42 - [Lint/UnusedBlockArgument](http://rubydoc.info/gems/rubocop/0.33.0/RuboCop/Cop/Lint/UnusedBlockArgument) - Unused block argument - `topic`. If it's necessary, use `_` or `_topic` as an argument name to indicate that it won't be used.\n"}}