)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"356d35e2b803b6aa75786513329d218d1f213782","unresolved":false,"context_lines":[{"line_number":7,"context_line":"Fixed issues with notifications for DHCPagent"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"dhcp-agent-network-add and dhcp-agent-network-remove did not"},{"line_number":10,"context_line":"generate notifications. These notifications eventually do not"},{"line_number":11,"context_line":"show in audit logs. It is fixed in add_network_to_dhcp_agent"},{"line_number":12,"context_line":"and remove_network_from_dhcp_agent by introducing notify()"},{"line_number":13,"context_line":"method calls."}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"1ae5cdf2_855ad3ef","line":10,"updated":"2014-06-06 10:34:09.000000000","message":"do you mean, \"These notification eventually should...\"?\n\nJust for my education, who is being notified?","commit_id":"581540b0cc20cda554c8983e2bcb33bb5d84e4ba"},{"author":{"_account_id":10780,"name":"Maruti Kamat","email":"maruti.kamat@hp.com","username":"marutik"},"change_message_id":"5e978cabe618e6934e9a495926311ba3dc6bea89","unresolved":false,"context_lines":[{"line_number":7,"context_line":"Fixed issues with notifications for DHCPagent"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"dhcp-agent-network-add and dhcp-agent-network-remove did not"},{"line_number":10,"context_line":"generate notifications. These notifications eventually do not"},{"line_number":11,"context_line":"show in audit logs. It is fixed in add_network_to_dhcp_agent"},{"line_number":12,"context_line":"and remove_network_from_dhcp_agent by introducing notify()"},{"line_number":13,"context_line":"method calls."}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"1ae5cdf2_f6b7cb1e","line":10,"in_reply_to":"1ae5cdf2_7b59e433","updated":"2014-06-06 12:14:04.000000000","message":"Adding on top of the above response:\n\nThese notifications which are sent over the RabbitMQ bus can be consumed by a RabbitMQ consumer, and can be used for audit logging purpose.","commit_id":"581540b0cc20cda554c8983e2bcb33bb5d84e4ba"},{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"daba62da8188af2bf193f1340bf374f95bb29ed2","unresolved":false,"context_lines":[{"line_number":7,"context_line":"Fixed issues with notifications for DHCPagent"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"dhcp-agent-network-add and dhcp-agent-network-remove did not"},{"line_number":10,"context_line":"generate notifications. These notifications eventually do not"},{"line_number":11,"context_line":"show in audit logs. It is fixed in add_network_to_dhcp_agent"},{"line_number":12,"context_line":"and remove_network_from_dhcp_agent by introducing notify()"},{"line_number":13,"context_line":"method calls."}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"1ae5cdf2_9bfb10c0","line":10,"in_reply_to":"1ae5cdf2_7b59e433","updated":"2014-06-06 11:32:52.000000000","message":"Yeah, I\u0027m trying to understand this too. What the second notification is for.","commit_id":"581540b0cc20cda554c8983e2bcb33bb5d84e4ba"},{"author":{"_account_id":333,"name":"Isaku Yamahata","email":"isaku.yamahata@gmail.com","username":"yamahata"},"change_message_id":"28c92676cd3d4b7ba9c0d1e50ef896d009d1f267","unresolved":false,"context_lines":[{"line_number":7,"context_line":"Fixed issues with notifications for DHCPagent"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"dhcp-agent-network-add and dhcp-agent-network-remove did not"},{"line_number":10,"context_line":"generate notifications. These notifications eventually do not"},{"line_number":11,"context_line":"show in audit logs. It is fixed in add_network_to_dhcp_agent"},{"line_number":12,"context_line":"and remove_network_from_dhcp_agent by introducing notify()"},{"line_number":13,"context_line":"method calls."}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"1ae5cdf2_7b59e433","line":10,"in_reply_to":"1ae5cdf2_855ad3ef","updated":"2014-06-06 11:26:06.000000000","message":"I\u0027m a bit confused.\nCould you please clarify what is ideal behavior and why?\n\nI mean what you want to audit eventually in high level.\nI\u0027m not sure if it just two notification is sufficient or not.","commit_id":"581540b0cc20cda554c8983e2bcb33bb5d84e4ba"},{"author":{"_account_id":10780,"name":"Maruti Kamat","email":"maruti.kamat@hp.com","username":"marutik"},"change_message_id":"5e978cabe618e6934e9a495926311ba3dc6bea89","unresolved":false,"context_lines":[{"line_number":7,"context_line":"Fixed issues with notifications for DHCPagent"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"dhcp-agent-network-add and dhcp-agent-network-remove did not"},{"line_number":10,"context_line":"generate notifications. These notifications eventually do not"},{"line_number":11,"context_line":"show in audit logs. It is fixed in add_network_to_dhcp_agent"},{"line_number":12,"context_line":"and remove_network_from_dhcp_agent by introducing notify()"},{"line_number":13,"context_line":"method calls."}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"1ae5cdf2_db04b819","line":10,"in_reply_to":"1ae5cdf2_855ad3ef","updated":"2014-06-06 12:14:04.000000000","message":"If the following attributes (drivers) are set in neutron.conf, any neutron operation performed should send notification on the driver(s) configured. \n# notification_driver \u003d\nneutron.openstack.common.notifier.log_notifier\n\n# RPC driver.\nnotification_driver \u003d neutron.openstack.common.notifier.rpc_notifier\n\nCurrently, the specified operations (add and remove network to a given dhcp agent) do not send these notifications on the configured driver (s).","commit_id":"581540b0cc20cda554c8983e2bcb33bb5d84e4ba"},{"author":{"_account_id":10780,"name":"Maruti Kamat","email":"maruti.kamat@hp.com","username":"marutik"},"change_message_id":"5e978cabe618e6934e9a495926311ba3dc6bea89","unresolved":false,"context_lines":[{"line_number":7,"context_line":"Fixed issues with notifications for DHCPagent"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"dhcp-agent-network-add and dhcp-agent-network-remove did not"},{"line_number":10,"context_line":"generate notifications. These notifications eventually do not"},{"line_number":11,"context_line":"show in audit logs. It is fixed in add_network_to_dhcp_agent"},{"line_number":12,"context_line":"and remove_network_from_dhcp_agent by introducing notify()"},{"line_number":13,"context_line":"method calls."}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"1ae5cdf2_f670ab09","line":10,"in_reply_to":"1ae5cdf2_9bfb10c0","updated":"2014-06-06 12:14:04.000000000","message":"These notifications are not from the controller to the dhcp agent. These notifications are made for capturing audit logs for neutron operations performed by a user. The \"notification_driver\" in neutron.conf is used to configure/load the driver(s) on which these notifications are sent. One can implement his/her own notification_driver and specify it in the neutron.conf file. \n\nThe drivers are present inside ~/neutron/openstack/common/notifier\n\n~/neutron/openstack/common/notifier/api.py defines a method called notify() \ndef notify(context, publisher_id, event_type, priority, payload):\n\nwhich loads the configured drivers to send notifications.\n\n    for driver in _get_drivers():\n        try:\n            driver.notify(context, msg)\n        except Exception as e:\n            LOG.exception(_(\"Problem \u0027%(e)s\u0027 attempting to \"\n                            \"send to notification system. \"\n                            \"Payload\u003d%(payload)s\")\n                          % dict(e\u003de, payload\u003dpayload))\n\nPlease see ~neutron/api/v2/base.py  which is used to generate these notifications.\n\n    def create(self, request, body\u003dNone, **kwargs):\n        \"\"\"Creates a new instance of the requested entity.\"\"\"\n        parent_id \u003d kwargs.get(self._parent_id_name)\n        notifier_api.notify(request.context,\n                            self._publisher_id,\n                            self._resource + \u0027.create.start\u0027,\n                            notifier_api.CONF.default_notification_level,\n                            body)","commit_id":"581540b0cc20cda554c8983e2bcb33bb5d84e4ba"}],"neutron/db/agentschedulers_db.py":[{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"356d35e2b803b6aa75786513329d218d1f213782","unresolved":false,"context_lines":[{"line_number":145,"context_line":"        if dhcp_notifier:"},{"line_number":146,"context_line":"            dhcp_notifier.network_added_to_agent("},{"line_number":147,"context_line":"                context, network_id, agent_db.host)"},{"line_number":148,"context_line":"        info \u003d {\u0027id\u0027: id,"},{"line_number":149,"context_line":"                \u0027network_id\u0027: network_id}"},{"line_number":150,"context_line":"        notifier_api.notify(context,"},{"line_number":151,"context_line":"                            notifier_api.publisher_id(\u0027network\u0027),"}],"source_content_type":"text/x-python","patch_set":1,"id":"1ae5cdf2_c593fba0","line":148,"updated":"2014-06-06 10:34:09.000000000","message":"Code blocks are identical, consider helper function and call here and in L182.","commit_id":"581540b0cc20cda554c8983e2bcb33bb5d84e4ba"},{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"ad2064d66bb3d33826ec98fc1f24ad93c67f9ff7","unresolved":false,"context_lines":[{"line_number":147,"context_line":"                context, network_id, agent_db.host)"},{"line_number":148,"context_line":"        info \u003d {\u0027id\u0027: id,"},{"line_number":149,"context_line":"                \u0027network_id\u0027: network_id}"},{"line_number":150,"context_line":"        notifier_api.notify(context,"},{"line_number":151,"context_line":"                            notifier_api.publisher_id(\u0027network\u0027),"},{"line_number":152,"context_line":"                            \u0027agent.update\u0027,"},{"line_number":153,"context_line":"                            notifier_api.CONF.default_notification_level,"}],"source_content_type":"text/x-python","patch_set":1,"id":"1ae5cdf2_78e9eab5","line":150,"updated":"2014-06-06 11:09:01.000000000","message":"shouldn\u0027t this go under \n\nif dhcp_notifier?","commit_id":"581540b0cc20cda554c8983e2bcb33bb5d84e4ba"},{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"ad2064d66bb3d33826ec98fc1f24ad93c67f9ff7","unresolved":false,"context_lines":[{"line_number":181,"context_line":"                context, network_id, agent.host)"},{"line_number":182,"context_line":"        info \u003d {\u0027id\u0027: id,"},{"line_number":183,"context_line":"                \u0027network_id\u0027: network_id}"},{"line_number":184,"context_line":"        notifier_api.notify(context,"},{"line_number":185,"context_line":"                            notifier_api.publisher_id(\u0027network\u0027),"},{"line_number":186,"context_line":"                            \u0027agent.update\u0027,"},{"line_number":187,"context_line":"                            notifier_api.CONF.default_notification_level,"}],"source_content_type":"text/x-python","patch_set":1,"id":"1ae5cdf2_d874be37","line":184,"updated":"2014-06-06 11:09:01.000000000","message":"as per my comment above.","commit_id":"581540b0cc20cda554c8983e2bcb33bb5d84e4ba"}],"neutron/tests/unit/openvswitch/test_agent_scheduler.py":[{"author":{"_account_id":8279,"name":"Fawad Khaliq","email":"fawadkq@gmail.com","username":"fawadkhaliq"},"change_message_id":"442086dffb36d80e8eb238430944def288437b38","unresolved":false,"context_lines":[{"line_number":1052,"context_line":"                with mock.patch.object(notifier_api, \u0027notify\u0027) as mynotifier:"},{"line_number":1053,"context_line":"                    self._add_network_to_dhcp_agent(hosta_id,"},{"line_number":1054,"context_line":"                                                    network_id)"},{"line_number":1055,"context_line":"                    expected \u003d [mock.call(mock.ANY,"},{"line_number":1056,"context_line":"                                          \u0027network.\u0027 + cfg.CONF.host,"},{"line_number":1057,"context_line":"                                          \"agent.update\","},{"line_number":1058,"context_line":"                                          \u0027INFO\u0027,"}],"source_content_type":"text/x-python","patch_set":1,"id":"1ae5cdf2_2ce38806","line":1055,"updated":"2014-06-08 04:13:18.000000000","message":"Please use helpers to avoid repetition.","commit_id":"581540b0cc20cda554c8983e2bcb33bb5d84e4ba"}]}
