)]}'
{"neutron/agent/rpc.py":[{"author":{"_account_id":4395,"name":"Aaron Rosen","email":"aaronorosen@gmail.com","username":"arosen"},"change_message_id":"616755687bd32b4af100784bfe4a28fab55fe6fc","unresolved":false,"context_lines":[{"line_number":77,"context_line":""},{"line_number":78,"context_line":"    API version history:"},{"line_number":79,"context_line":"        1.0 - Initial version."},{"line_number":80,"context_line":"        1.3 - get_device_details rpc signature upgrade to obtain \u0027host\u0027 and"},{"line_number":81,"context_line":"              return value to include fixed_ips and device_owner for"},{"line_number":82,"context_line":"              the device port"},{"line_number":83,"context_line":"    \u0027\u0027\u0027"}],"source_content_type":"text/x-python","patch_set":25,"id":"baada198_5b731a15","line":80,"updated":"2014-07-09 01:11:20.000000000","message":"nit: might be nice to include the 1.1/1.2 change details here but w/e","commit_id":"74fd416fa74c06611e76f514fdeddfa000c621f0"},{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"b43c843b2b4134eb2ed395a6bd70d6e5b7179c52","unresolved":false,"context_lines":[{"line_number":77,"context_line":""},{"line_number":78,"context_line":"    API version history:"},{"line_number":79,"context_line":"        1.0 - Initial version."},{"line_number":80,"context_line":"        1.3 - get_device_details rpc signature upgrade to obtain \u0027host\u0027 and"},{"line_number":81,"context_line":"              return value to include fixed_ips and device_owner for"},{"line_number":82,"context_line":"              the device port"},{"line_number":83,"context_line":"    \u0027\u0027\u0027"}],"source_content_type":"text/x-python","patch_set":25,"id":"baada198_fa0b057b","line":80,"in_reply_to":"baada198_5b731a15","updated":"2014-07-09 05:52:07.000000000","message":"agreed...but I would need to rummage through the git log to find what these were...maybe the usual one-liner for the one-liner hoarder?","commit_id":"74fd416fa74c06611e76f514fdeddfa000c621f0"},{"author":{"_account_id":261,"name":"Salvatore Orlando","email":"salv.orlando@gmail.com","username":"salvatore-orlando"},"change_message_id":"62fa31fd309ba4de5cf4967c5f281b4473282631","unresolved":false,"context_lines":[{"line_number":82,"context_line":"              the device port"},{"line_number":83,"context_line":"    \u0027\u0027\u0027"},{"line_number":84,"context_line":""},{"line_number":85,"context_line":"    BASE_RPC_API_VERSION \u003d \u00271.3\u0027"},{"line_number":86,"context_line":""},{"line_number":87,"context_line":"    def __init__(self, topic):"},{"line_number":88,"context_line":"        super(PluginApi, self).__init__("}],"source_content_type":"text/x-python","patch_set":36,"id":"baada198_f15a1ff1","line":85,"updated":"2014-07-17 08:17:53.000000000","message":"I always struggle when it comes with RPC versioning.\n\nIs it really necessary to bump the base version?\nThe way I read it this means that one should first upgrade all the agents and then upgrade the server at last.\nThat would be doable, but the fact that rolling agent upgrades won\u0027t be possible should probably be documented somewhere.","commit_id":"97a2c5287892e67a0df4a1a1db21bfd9766fb3b9"},{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"315a62d3813d96ddbfff58489f12226c08db61b4","unresolved":false,"context_lines":[{"line_number":82,"context_line":"              the device port"},{"line_number":83,"context_line":"    \u0027\u0027\u0027"},{"line_number":84,"context_line":""},{"line_number":85,"context_line":"    BASE_RPC_API_VERSION \u003d \u00271.3\u0027"},{"line_number":86,"context_line":""},{"line_number":87,"context_line":"    def __init__(self, topic):"},{"line_number":88,"context_line":"        super(PluginApi, self).__init__("}],"source_content_type":"text/x-python","patch_set":36,"id":"baada198_16e9301a","line":85,"in_reply_to":"baada198_f15a1ff1","updated":"2014-07-17 16:56:38.000000000","message":"I think I can make this work so that we don\u0027t have to force a specific order in the rolling upgrade.","commit_id":"97a2c5287892e67a0df4a1a1db21bfd9766fb3b9"},{"author":{"_account_id":261,"name":"Salvatore Orlando","email":"salv.orlando@gmail.com","username":"salvatore-orlando"},"change_message_id":"62fa31fd309ba4de5cf4967c5f281b4473282631","unresolved":false,"context_lines":[{"line_number":92,"context_line":"        return self.call(context,"},{"line_number":93,"context_line":"                         self.make_msg(\u0027get_device_details\u0027, device\u003ddevice,"},{"line_number":94,"context_line":"                                       agent_id\u003dagent_id,"},{"line_number":95,"context_line":"                                       host\u003dhost),"},{"line_number":96,"context_line":"                         topic\u003dself.topic)"},{"line_number":97,"context_line":""},{"line_number":98,"context_line":"    def get_devices_details_list(self, context, devices, agent_id, host\u003dNone):"}],"source_content_type":"text/x-python","patch_set":36,"id":"baada198_31cbb74b","line":95,"updated":"2014-07-17 08:17:53.000000000","message":"why this method is not passing the 1.3 as version to make_msg? Its signature has changed.","commit_id":"97a2c5287892e67a0df4a1a1db21bfd9766fb3b9"},{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"315a62d3813d96ddbfff58489f12226c08db61b4","unresolved":false,"context_lines":[{"line_number":92,"context_line":"        return self.call(context,"},{"line_number":93,"context_line":"                         self.make_msg(\u0027get_device_details\u0027, device\u003ddevice,"},{"line_number":94,"context_line":"                                       agent_id\u003dagent_id,"},{"line_number":95,"context_line":"                                       host\u003dhost),"},{"line_number":96,"context_line":"                         topic\u003dself.topic)"},{"line_number":97,"context_line":""},{"line_number":98,"context_line":"    def get_devices_details_list(self, context, devices, agent_id, host\u003dNone):"}],"source_content_type":"text/x-python","patch_set":36,"id":"baada198_76f6ecfa","line":95,"in_reply_to":"baada198_31cbb74b","updated":"2014-07-17 16:56:38.000000000","message":"I need to tweak the way these methods are called in light of the comments posted above.","commit_id":"97a2c5287892e67a0df4a1a1db21bfd9766fb3b9"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"6442cfee378c0cdbc79c9b1ed7e994c37c2258d3","unresolved":false,"context_lines":[{"line_number":112,"context_line":"            res \u003d ["},{"line_number":113,"context_line":"                self.call(context,"},{"line_number":114,"context_line":"                          self.make_msg(\u0027get_device_details\u0027, device\u003ddevice,"},{"line_number":115,"context_line":"                                        agent_id\u003dagent_id, host\u003dhost),"},{"line_number":116,"context_line":"                          topic\u003dself.topic)"},{"line_number":117,"context_line":"                for device in devices"},{"line_number":118,"context_line":"            ]"}],"source_content_type":"text/x-python","patch_set":38,"id":"baada198_6d7616da","line":115,"updated":"2014-07-17 20:05:11.000000000","message":"nit:  We know host is going to be ignored.  Why add the parameter here.","commit_id":"01bdb47199468805b714ce4c00c7492951267585"}],"neutron/api/rpc/dvr_rpc.py":[{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"b1caaba26cba5420a2ecdde9d7e978740e9e9e2b","unresolved":false,"context_lines":[{"line_number":108,"context_line":"class DVRAgentRpcCallbackMixin(object):"},{"line_number":109,"context_line":"    \"\"\"Agent-side RPC (implementation) for plugin-to-agent interaction.\"\"\""},{"line_number":110,"context_line":""},{"line_number":111,"context_line":"    # mix-in object should have dvr_agent"},{"line_number":112,"context_line":"    dvr_agent \u003d None"},{"line_number":113,"context_line":""},{"line_number":114,"context_line":"    def _dvr_agent_not_set(self):"}],"source_content_type":"text/x-python","patch_set":3,"id":"1ae5cdf2_31a3a144","line":111,"updated":"2014-06-25 04:26:50.000000000","message":"I\u0027m not sure what this comment is trying to tell me.","commit_id":"52ebae027bbc64612ed91f74c384540e8ccca8d2"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"b1caaba26cba5420a2ecdde9d7e978740e9e9e2b","unresolved":false,"context_lines":[{"line_number":111,"context_line":"    # mix-in object should have dvr_agent"},{"line_number":112,"context_line":"    dvr_agent \u003d None"},{"line_number":113,"context_line":""},{"line_number":114,"context_line":"    def _dvr_agent_not_set(self):"},{"line_number":115,"context_line":"        LOG.warning(_(\"DVR agent binding currently not set. \""},{"line_number":116,"context_line":"                      \"This should be set by the end of the init \""},{"line_number":117,"context_line":"                      \"process.\"))"}],"source_content_type":"text/x-python","patch_set":3,"id":"1ae5cdf2_b16ed1fe","line":114,"updated":"2014-06-25 04:26:50.000000000","message":"It seems odd to define a method just to wrap a LOG warning.  Each level of indirection must be balanced with some benefit.  What is the benefit here?","commit_id":"52ebae027bbc64612ed91f74c384540e8ccca8d2"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"b1caaba26cba5420a2ecdde9d7e978740e9e9e2b","unresolved":false,"context_lines":[{"line_number":123,"context_line":"        \"\"\""},{"line_number":124,"context_line":"        dvr_macs \u003d kwargs.get(\u0027dvr_macs\u0027, [])"},{"line_number":125,"context_line":"        LOG.debug("},{"line_number":126,"context_line":"            _(\"dvr_macs updated on remote: %s\"), dvr_macs)"},{"line_number":127,"context_line":"        if not self.dvr_agent:"},{"line_number":128,"context_line":"            return self._dvr_agent_not_set()"},{"line_number":129,"context_line":"        self.dvr_agent.dvr_mac_address_update(dvr_macs)"}],"source_content_type":"text/x-python","patch_set":3,"id":"1ae5cdf2_a40a111e","line":126,"updated":"2014-06-25 04:26:50.000000000","message":"nit:  no need to wrap here.\n\nFriendly reminder that debug messages should no longer be translated.","commit_id":"52ebae027bbc64612ed91f74c384540e8ccca8d2"},{"author":{"_account_id":6876,"name":"stephen-ma","email":"stephenbma43@gmail.com","username":"stephen-ma"},"change_message_id":"fc19bf1b04cbf6a14aa029e4700b23e7fceb5c51","unresolved":false,"context_lines":[{"line_number":20,"context_line":"from neutron.openstack.common import log as logging"},{"line_number":21,"context_line":""},{"line_number":22,"context_line":"LOG \u003d logging.getLogger(__name__)"},{"line_number":23,"context_line":""},{"line_number":24,"context_line":""},{"line_number":25,"context_line":"class DVRServerRpcApiMixin(object):"},{"line_number":26,"context_line":"    \"\"\"Agent-side RPC (stub) for agent-to-plugin interaction.\"\"\""}],"source_content_type":"text/x-python","patch_set":12,"id":"baada198_7f20e09b","line":23,"updated":"2014-06-30 17:47:05.000000000","message":"In all the new classes defined here, are we sure that the parent class is \"object\"?  Or should it be RpcProxy?  Lot of the methods called in the classes here I am sure is not defined in object.","commit_id":"aa4d3cfbcc7616f30a274b9e47df4c5978198be5"},{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"2f550b90ebe8ab5304393b844efb16cdb909e106","unresolved":false,"context_lines":[{"line_number":20,"context_line":"from neutron.openstack.common import log as logging"},{"line_number":21,"context_line":""},{"line_number":22,"context_line":"LOG \u003d logging.getLogger(__name__)"},{"line_number":23,"context_line":""},{"line_number":24,"context_line":""},{"line_number":25,"context_line":"class DVRServerRpcApiMixin(object):"},{"line_number":26,"context_line":"    \"\"\"Agent-side RPC (stub) for agent-to-plugin interaction.\"\"\""}],"source_content_type":"text/x-python","patch_set":12,"id":"baada198_c95db64a","line":23,"in_reply_to":"baada198_7f20e09b","updated":"2014-06-30 21:01:11.000000000","message":"You are right...however these are Mixin classes...so long as the object resulting by the instantiation of all the Mixin\u0027s has the right method and attribute definitions then there\u0027s no problem. \n\nHaving said that I\u0027ll look closer as what\u0027s going on here.","commit_id":"aa4d3cfbcc7616f30a274b9e47df4c5978198be5"},{"author":{"_account_id":6876,"name":"stephen-ma","email":"stephenbma43@gmail.com","username":"stephen-ma"},"change_message_id":"fc19bf1b04cbf6a14aa029e4700b23e7fceb5c51","unresolved":false,"context_lines":[{"line_number":29,"context_line":""},{"line_number":30,"context_line":"    @log.log"},{"line_number":31,"context_line":"    def get_dvr_mac_address_by_host(self, context, host):"},{"line_number":32,"context_line":"        return self.call(context,"},{"line_number":33,"context_line":"                         self.make_msg(\u0027get_dvr_mac_address_by_host\u0027,"},{"line_number":34,"context_line":"                                       host\u003dhost),"},{"line_number":35,"context_line":"                         version\u003dDVRServerRpcApiMixin.DVR_RPC_VERSION,"}],"source_content_type":"text/x-python","patch_set":12,"id":"baada198_9f5cd427","line":32,"updated":"2014-06-30 17:47:05.000000000","message":"I don\u0027t see a \"call\" method defined for this class.","commit_id":"aa4d3cfbcc7616f30a274b9e47df4c5978198be5"},{"author":{"_account_id":6876,"name":"stephen-ma","email":"stephenbma43@gmail.com","username":"stephen-ma"},"change_message_id":"fc19bf1b04cbf6a14aa029e4700b23e7fceb5c51","unresolved":false,"context_lines":[{"line_number":30,"context_line":"    @log.log"},{"line_number":31,"context_line":"    def get_dvr_mac_address_by_host(self, context, host):"},{"line_number":32,"context_line":"        return self.call(context,"},{"line_number":33,"context_line":"                         self.make_msg(\u0027get_dvr_mac_address_by_host\u0027,"},{"line_number":34,"context_line":"                                       host\u003dhost),"},{"line_number":35,"context_line":"                         version\u003dDVRServerRpcApiMixin.DVR_RPC_VERSION,"},{"line_number":36,"context_line":"                         topic\u003dself.topic)"}],"source_content_type":"text/x-python","patch_set":12,"id":"baada198_ad6c1538","line":33,"updated":"2014-06-30 17:47:05.000000000","message":"I don\u0027t see a make_msg method for this class.","commit_id":"aa4d3cfbcc7616f30a274b9e47df4c5978198be5"},{"author":{"_account_id":6876,"name":"stephen-ma","email":"stephenbma43@gmail.com","username":"stephen-ma"},"change_message_id":"fc19bf1b04cbf6a14aa029e4700b23e7fceb5c51","unresolved":false,"context_lines":[{"line_number":33,"context_line":"                         self.make_msg(\u0027get_dvr_mac_address_by_host\u0027,"},{"line_number":34,"context_line":"                                       host\u003dhost),"},{"line_number":35,"context_line":"                         version\u003dDVRServerRpcApiMixin.DVR_RPC_VERSION,"},{"line_number":36,"context_line":"                         topic\u003dself.topic)"},{"line_number":37,"context_line":""},{"line_number":38,"context_line":"    @log.log"},{"line_number":39,"context_line":"    def get_dvr_mac_address_list(self, context):"}],"source_content_type":"text/x-python","patch_set":12,"id":"baada198_ad53356b","line":36,"updated":"2014-06-30 17:47:05.000000000","message":"I don\u0027t see a topic instance variable.","commit_id":"aa4d3cfbcc7616f30a274b9e47df4c5978198be5"},{"author":{"_account_id":6876,"name":"stephen-ma","email":"stephenbma43@gmail.com","username":"stephen-ma"},"change_message_id":"fc19bf1b04cbf6a14aa029e4700b23e7fceb5c51","unresolved":false,"context_lines":[{"line_number":37,"context_line":""},{"line_number":38,"context_line":"    @log.log"},{"line_number":39,"context_line":"    def get_dvr_mac_address_list(self, context):"},{"line_number":40,"context_line":"        return self.call(context,"},{"line_number":41,"context_line":"                         self.make_msg(\u0027get_dvr_mac_address_list\u0027),"},{"line_number":42,"context_line":"                         version\u003dDVRServerRpcApiMixin.DVR_RPC_VERSION,"},{"line_number":43,"context_line":"                         topic\u003dself.topic)"}],"source_content_type":"text/x-python","patch_set":12,"id":"baada198_0de2619f","line":40,"updated":"2014-06-30 17:47:05.000000000","message":"same as line 32.","commit_id":"aa4d3cfbcc7616f30a274b9e47df4c5978198be5"},{"author":{"_account_id":6876,"name":"stephen-ma","email":"stephenbma43@gmail.com","username":"stephen-ma"},"change_message_id":"fc19bf1b04cbf6a14aa029e4700b23e7fceb5c51","unresolved":false,"context_lines":[{"line_number":38,"context_line":"    @log.log"},{"line_number":39,"context_line":"    def get_dvr_mac_address_list(self, context):"},{"line_number":40,"context_line":"        return self.call(context,"},{"line_number":41,"context_line":"                         self.make_msg(\u0027get_dvr_mac_address_list\u0027),"},{"line_number":42,"context_line":"                         version\u003dDVRServerRpcApiMixin.DVR_RPC_VERSION,"},{"line_number":43,"context_line":"                         topic\u003dself.topic)"},{"line_number":44,"context_line":""}],"source_content_type":"text/x-python","patch_set":12,"id":"baada198_0d90a1eb","line":41,"updated":"2014-06-30 17:47:05.000000000","message":"Same as line 33.","commit_id":"aa4d3cfbcc7616f30a274b9e47df4c5978198be5"},{"author":{"_account_id":6876,"name":"stephen-ma","email":"stephenbma43@gmail.com","username":"stephen-ma"},"change_message_id":"fc19bf1b04cbf6a14aa029e4700b23e7fceb5c51","unresolved":false,"context_lines":[{"line_number":40,"context_line":"        return self.call(context,"},{"line_number":41,"context_line":"                         self.make_msg(\u0027get_dvr_mac_address_list\u0027),"},{"line_number":42,"context_line":"                         version\u003dDVRServerRpcApiMixin.DVR_RPC_VERSION,"},{"line_number":43,"context_line":"                         topic\u003dself.topic)"},{"line_number":44,"context_line":""},{"line_number":45,"context_line":"    @log.log"},{"line_number":46,"context_line":"    def get_compute_ports_on_host_by_subnet(self, context, host, subnet):"}],"source_content_type":"text/x-python","patch_set":12,"id":"baada198_0df9814d","line":43,"updated":"2014-06-30 17:47:05.000000000","message":"Same as line 36.","commit_id":"aa4d3cfbcc7616f30a274b9e47df4c5978198be5"},{"author":{"_account_id":6876,"name":"stephen-ma","email":"stephenbma43@gmail.com","username":"stephen-ma"},"change_message_id":"fc19bf1b04cbf6a14aa029e4700b23e7fceb5c51","unresolved":false,"context_lines":[{"line_number":45,"context_line":"    @log.log"},{"line_number":46,"context_line":"    def get_compute_ports_on_host_by_subnet(self, context, host, subnet):"},{"line_number":47,"context_line":"        return self.call(context,"},{"line_number":48,"context_line":"                         self.make_msg(\u0027get_compute_ports_on_host_by_subnet\u0027,"},{"line_number":49,"context_line":"                                       host\u003dhost,"},{"line_number":50,"context_line":"                                       subnet\u003dsubnet),"},{"line_number":51,"context_line":"                         version\u003dDVRServerRpcApiMixin.DVR_RPC_VERSION,"}],"source_content_type":"text/x-python","patch_set":12,"id":"baada198_7fb0e0dd","line":48,"updated":"2014-06-30 17:47:05.000000000","message":"Same as line 33.","commit_id":"aa4d3cfbcc7616f30a274b9e47df4c5978198be5"},{"author":{"_account_id":6876,"name":"stephen-ma","email":"stephenbma43@gmail.com","username":"stephen-ma"},"change_message_id":"fc19bf1b04cbf6a14aa029e4700b23e7fceb5c51","unresolved":false,"context_lines":[{"line_number":54,"context_line":"    @log.log"},{"line_number":55,"context_line":"    def get_subnet_for_dvr(self, context, subnet):"},{"line_number":56,"context_line":"        return self.call(context,"},{"line_number":57,"context_line":"                         self.make_msg(\u0027get_subnet_for_dvr\u0027,"},{"line_number":58,"context_line":"                                       subnet\u003dsubnet),"},{"line_number":59,"context_line":"                         version\u003dDVRServerRpcApiMixin.DVR_RPC_VERSION,"},{"line_number":60,"context_line":"                         topic\u003dself.topic)"}],"source_content_type":"text/x-python","patch_set":12,"id":"baada198_ffc31036","line":57,"updated":"2014-06-30 17:47:05.000000000","message":"Same as line 33.","commit_id":"aa4d3cfbcc7616f30a274b9e47df4c5978198be5"},{"author":{"_account_id":6876,"name":"stephen-ma","email":"stephenbma43@gmail.com","username":"stephen-ma"},"change_message_id":"fc19bf1b04cbf6a14aa029e4700b23e7fceb5c51","unresolved":false,"context_lines":[{"line_number":57,"context_line":"                         self.make_msg(\u0027get_subnet_for_dvr\u0027,"},{"line_number":58,"context_line":"                                       subnet\u003dsubnet),"},{"line_number":59,"context_line":"                         version\u003dDVRServerRpcApiMixin.DVR_RPC_VERSION,"},{"line_number":60,"context_line":"                         topic\u003dself.topic)"},{"line_number":61,"context_line":""},{"line_number":62,"context_line":""},{"line_number":63,"context_line":"class DVRServerRpcCallbackMixin(object):"}],"source_content_type":"text/x-python","patch_set":12,"id":"baada198_dfcd6c5f","line":60,"updated":"2014-06-30 17:47:05.000000000","message":"Same as line 36.","commit_id":"aa4d3cfbcc7616f30a274b9e47df4c5978198be5"},{"author":{"_account_id":6876,"name":"stephen-ma","email":"stephenbma43@gmail.com","username":"stephen-ma"},"change_message_id":"fc19bf1b04cbf6a14aa029e4700b23e7fceb5c51","unresolved":false,"context_lines":[{"line_number":65,"context_line":""},{"line_number":66,"context_line":"    @property"},{"line_number":67,"context_line":"    def plugin(self):"},{"line_number":68,"context_line":"        if not self._plugin:"},{"line_number":69,"context_line":"            self._plugin \u003d manager.NeutronManager.get_plugin()"},{"line_number":70,"context_line":"        return self._plugin"},{"line_number":71,"context_line":""}],"source_content_type":"text/x-python","patch_set":12,"id":"baada198_cd914954","line":68,"updated":"2014-06-30 17:47:05.000000000","message":"_plugin needs to be defined before use.","commit_id":"aa4d3cfbcc7616f30a274b9e47df4c5978198be5"},{"author":{"_account_id":6876,"name":"stephen-ma","email":"stephenbma43@gmail.com","username":"stephen-ma"},"change_message_id":"fc19bf1b04cbf6a14aa029e4700b23e7fceb5c51","unresolved":false,"context_lines":[{"line_number":90,"context_line":"    DVR_RPC_VERSION \u003d \"1.0\""},{"line_number":91,"context_line":""},{"line_number":92,"context_line":"    def _get_dvr_update_topic(self):"},{"line_number":93,"context_line":"        return topics.get_topic_name(self.topic,"},{"line_number":94,"context_line":"                                     topics.DVR,"},{"line_number":95,"context_line":"                                     topics.UPDATE)"},{"line_number":96,"context_line":""}],"source_content_type":"text/x-python","patch_set":12,"id":"baada198_0defc1b1","line":93,"updated":"2014-06-30 17:47:05.000000000","message":"topic needs to be defined before use.","commit_id":"aa4d3cfbcc7616f30a274b9e47df4c5978198be5"},{"author":{"_account_id":6876,"name":"stephen-ma","email":"stephenbma43@gmail.com","username":"stephen-ma"},"change_message_id":"fc19bf1b04cbf6a14aa029e4700b23e7fceb5c51","unresolved":false,"context_lines":[{"line_number":99,"context_line":"        if not dvr_macs:"},{"line_number":100,"context_line":"            return"},{"line_number":101,"context_line":"        self.fanout_cast(context,"},{"line_number":102,"context_line":"                         self.make_msg(\u0027dvr_mac_address_update\u0027,"},{"line_number":103,"context_line":"                                       dvr_macs\u003ddvr_macs),"},{"line_number":104,"context_line":"                         version\u003dDVRAgentRpcApiMixin.DVR_RPC_VERSION,"},{"line_number":105,"context_line":"                         topic\u003dself._get_dvr_update_topic())"}],"source_content_type":"text/x-python","patch_set":12,"id":"baada198_7f354045","line":102,"updated":"2014-06-30 17:47:05.000000000","message":"Same as line 33.","commit_id":"aa4d3cfbcc7616f30a274b9e47df4c5978198be5"},{"author":{"_account_id":261,"name":"Salvatore Orlando","email":"salv.orlando@gmail.com","username":"salvatore-orlando"},"change_message_id":"62fa31fd309ba4de5cf4967c5f281b4473282631","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":36,"id":"baada198_116cf335","updated":"2014-07-17 08:17:53.000000000","message":"My problem with this module is that it has been placed in the right package in my opinion, and is the only one so far.\n\nAll the other RPC mixins are instead a bit everywhere.\nWhat would be your opinion regarding having it in a package named neutron.api.rpc.handlers just for consistence with the notifiers which are in neutron.api.rpc.agent_notifiers?","commit_id":"97a2c5287892e67a0df4a1a1db21bfd9766fb3b9"},{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"315a62d3813d96ddbfff58489f12226c08db61b4","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":36,"id":"baada198_d6f098cb","in_reply_to":"baada198_116cf335","updated":"2014-07-17 16:56:38.000000000","message":"I suppose I can do that, and as a follow-up patch move the mixins all in this place, what do you think?","commit_id":"97a2c5287892e67a0df4a1a1db21bfd9766fb3b9"}],"neutron/db/dvr_mac_db.py":[{"author":{"_account_id":261,"name":"Salvatore Orlando","email":"salv.orlando@gmail.com","username":"salvatore-orlando"},"change_message_id":"62fa31fd309ba4de5cf4967c5f281b4473282631","unresolved":false,"context_lines":[{"line_number":84,"context_line":"                              \"is %(mac_address)s\","},{"line_number":85,"context_line":"                              {\u0027host\u0027: host, \u0027mac_address\u0027: mac_address})"},{"line_number":86,"context_line":"                dvr_macs \u003d self.get_dvr_mac_address_list(context)"},{"line_number":87,"context_line":"                self.notifier.dvr_mac_address_update(context, dvr_macs)"},{"line_number":88,"context_line":"                return self._make_dvr_mac_address_dict(dvr_mac_binding)"},{"line_number":89,"context_line":"            except db_exc.DBDuplicateEntry:"},{"line_number":90,"context_line":"                LOG.debug(\"Generated dvr mac %(mac)s exists.\""}],"source_content_type":"text/x-python","patch_set":36,"id":"baada198_d1119b5e","line":87,"updated":"2014-07-17 08:17:53.000000000","message":"This is probably off topic, but can you explain why we\u0027re notifying the agent with all the dvr macs everytime one is created?\n\nThe question obviously stems from the fact that eventually there will be thousands of dvr macs and this payload might become huge.","commit_id":"97a2c5287892e67a0df4a1a1db21bfd9766fb3b9"},{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"315a62d3813d96ddbfff58489f12226c08db61b4","unresolved":false,"context_lines":[{"line_number":84,"context_line":"                              \"is %(mac_address)s\","},{"line_number":85,"context_line":"                              {\u0027host\u0027: host, \u0027mac_address\u0027: mac_address})"},{"line_number":86,"context_line":"                dvr_macs \u003d self.get_dvr_mac_address_list(context)"},{"line_number":87,"context_line":"                self.notifier.dvr_mac_address_update(context, dvr_macs)"},{"line_number":88,"context_line":"                return self._make_dvr_mac_address_dict(dvr_mac_binding)"},{"line_number":89,"context_line":"            except db_exc.DBDuplicateEntry:"},{"line_number":90,"context_line":"                LOG.debug(\"Generated dvr mac %(mac)s exists.\""}],"source_content_type":"text/x-python","patch_set":36,"id":"baada198_5183b2cb","line":87,"in_reply_to":"baada198_d1119b5e","updated":"2014-07-17 16:56:38.000000000","message":"This is needed because the compute hosts need to know about which hosts are participating in the dvr fabric. My understanding is that you\u0027ll have as many mac\u0027s as the compute hosts on which dvr is enabled. This is a great point, we\u0027d need to figure out whether we can get rid of this scalability issue by sending only the latest one, but a quick scan to the agent-side method makes me hard to believe we can. I\u0027ll add a note for the time being.","commit_id":"97a2c5287892e67a0df4a1a1db21bfd9766fb3b9"}],"neutron/db/l3_rpc_base.py":[{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"b1caaba26cba5420a2ecdde9d7e978740e9e9e2b","unresolved":false,"context_lines":[{"line_number":80,"context_line":"                                 host, port, router_id\u003dNone):"},{"line_number":81,"context_line":"        if (port and port.get(\u0027device_owner\u0027) \u003d\u003d"},{"line_number":82,"context_line":"                constants.DEVICE_OWNER_ROUTER_INTF_DISTRIBUTED):"},{"line_number":83,"context_line":"            # Ports that are DVR interfaces have multiple bindings (based on"},{"line_number":84,"context_line":"            # of hosts on which DVR router interfaces are spawned). Such"},{"line_number":85,"context_line":"            # bindings are created/updated here by invoking"},{"line_number":86,"context_line":"            # update_dvr_port_binding"}],"source_content_type":"text/x-python","patch_set":3,"id":"1ae5cdf2_e4c97952","line":83,"updated":"2014-06-25 04:26:50.000000000","message":"This parenthetical statement (based on of hosts on which ...) needs rewording.  It doesn\u0027t quite make sense to me so I can\u0027t suggest what it should be.","commit_id":"52ebae027bbc64612ed91f74c384540e8ccca8d2"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"b1caaba26cba5420a2ecdde9d7e978740e9e9e2b","unresolved":false,"context_lines":[{"line_number":95,"context_line":"            # All ports, including ports created for SNAT\u0027ing for"},{"line_number":96,"context_line":"            # DVR are handled here"},{"line_number":97,"context_line":"            plugin.update_port(context, port[\u0027id\u0027],"},{"line_number":98,"context_line":"                               {\u0027port\u0027:"},{"line_number":99,"context_line":"                                {portbindings.HOST_ID: host}"},{"line_number":100,"context_line":"                                })"},{"line_number":101,"context_line":""}],"source_content_type":"text/x-python","patch_set":3,"id":"1ae5cdf2_7119a986","line":98,"updated":"2014-06-25 04:26:50.000000000","message":"nit:  Why wrap this?  Can you change it back?","commit_id":"52ebae027bbc64612ed91f74c384540e8ccca8d2"},{"author":{"_account_id":105,"name":"Kyle Mestery","email":"mestery@mestery.com","username":"mestery"},"change_message_id":"db4a466197a370ff6c55e45b49d503c85f443765","unresolved":false,"context_lines":[{"line_number":81,"context_line":"        if (port and port.get(\u0027device_owner\u0027) \u003d\u003d"},{"line_number":82,"context_line":"                constants.DEVICE_OWNER_ROUTER_INTF_DISTRIBUTED):"},{"line_number":83,"context_line":"            # Ports that are DVR interfaces have multiple bindings (based on"},{"line_number":84,"context_line":"            # of hosts on which DVR router interfaces are spawned). Such"},{"line_number":85,"context_line":"            # bindings are created/updated here by invoking"},{"line_number":86,"context_line":"            # update_dvr_port_binding"},{"line_number":87,"context_line":"            plugin.update_dvr_port_binding(context, port[\u0027id\u0027],"}],"source_content_type":"text/x-python","patch_set":6,"id":"1ae5cdf2_271cec12","line":84,"updated":"2014-06-27 02:20:25.000000000","message":"Nit: s/of/the/","commit_id":"4ec774c39a6266030c426183b8c1f0e908acea52"},{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"1cabe00a30158033ca96837120aa9bf8f5a8be70","unresolved":false,"context_lines":[{"line_number":84,"context_line":"            # of hosts on which DVR router interfaces are spawned). Such"},{"line_number":85,"context_line":"            # bindings are created/updated here by invoking"},{"line_number":86,"context_line":"            # update_dvr_port_binding"},{"line_number":87,"context_line":"            plugin.update_dvr_port_binding(context, port[\u0027id\u0027],"},{"line_number":88,"context_line":"                                           {\u0027port\u0027:"},{"line_number":89,"context_line":"                                            {portbindings.HOST_ID: host,"},{"line_number":90,"context_line":"                                             \u0027device_id\u0027: router_id}"}],"source_content_type":"text/x-python","patch_set":22,"id":"baada198_081d8873","line":87,"updated":"2014-07-02 23:50:19.000000000","message":"this should pass the router_id","commit_id":"f9b9c2ce7cdd149aec6dec6abfb5f1aaed165e51"}],"neutron/plugins/ml2/plugin.py":[{"author":{"_account_id":261,"name":"Salvatore Orlando","email":"salv.orlando@gmail.com","username":"salvatore-orlando"},"change_message_id":"62fa31fd309ba4de5cf4967c5f281b4473282631","unresolved":false,"context_lines":[{"line_number":938,"context_line":""},{"line_number":939,"context_line":"        return self._bind_port_if_needed(port_context)"},{"line_number":940,"context_line":""},{"line_number":941,"context_line":"    def update_port_status(self, context, port_id, status, host\u003dNone):"},{"line_number":942,"context_line":"        updated \u003d False"},{"line_number":943,"context_line":"        session \u003d context.session"},{"line_number":944,"context_line":"        # REVISIT: Serialize this operation with a semaphore to"}],"source_content_type":"text/x-python","patch_set":36,"id":"baada198_11af932c","line":941,"updated":"2014-07-17 08:17:53.000000000","message":"I reckon you\u0027re just adding host\u003dNone because of the changes in the signature of the RPC implementation method?","commit_id":"97a2c5287892e67a0df4a1a1db21bfd9766fb3b9"},{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"315a62d3813d96ddbfff58489f12226c08db61b4","unresolved":false,"context_lines":[{"line_number":938,"context_line":""},{"line_number":939,"context_line":"        return self._bind_port_if_needed(port_context)"},{"line_number":940,"context_line":""},{"line_number":941,"context_line":"    def update_port_status(self, context, port_id, status, host\u003dNone):"},{"line_number":942,"context_line":"        updated \u003d False"},{"line_number":943,"context_line":"        session \u003d context.session"},{"line_number":944,"context_line":"        # REVISIT: Serialize this operation with a semaphore to"}],"source_content_type":"text/x-python","patch_set":36,"id":"baada198_d176e205","line":941,"in_reply_to":"baada198_11af932c","updated":"2014-07-17 16:56:38.000000000","message":"correct","commit_id":"97a2c5287892e67a0df4a1a1db21bfd9766fb3b9"},{"author":{"_account_id":261,"name":"Salvatore Orlando","email":"salv.orlando@gmail.com","username":"salvatore-orlando"},"change_message_id":"62fa31fd309ba4de5cf4967c5f281b4473282631","unresolved":false,"context_lines":[{"line_number":969,"context_line":""},{"line_number":970,"context_line":"        return True"},{"line_number":971,"context_line":""},{"line_number":972,"context_line":"    def port_bound_to_host(self, context, port_id, host):"},{"line_number":973,"context_line":"        port_host \u003d db.get_port_binding_host(port_id)"},{"line_number":974,"context_line":"        return (port_host \u003d\u003d host)"}],"source_content_type":"text/x-python","patch_set":36,"id":"baada198_118873c5","line":972,"updated":"2014-07-17 08:17:53.000000000","message":"what are you doing with this context?\nI don\u0027t think the case it\u0027s the same as above, isn\u0027t it?","commit_id":"97a2c5287892e67a0df4a1a1db21bfd9766fb3b9"},{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"315a62d3813d96ddbfff58489f12226c08db61b4","unresolved":false,"context_lines":[{"line_number":969,"context_line":""},{"line_number":970,"context_line":"        return True"},{"line_number":971,"context_line":""},{"line_number":972,"context_line":"    def port_bound_to_host(self, context, port_id, host):"},{"line_number":973,"context_line":"        port_host \u003d db.get_port_binding_host(port_id)"},{"line_number":974,"context_line":"        return (port_host \u003d\u003d host)"}],"source_content_type":"text/x-python","patch_set":36,"id":"baada198_31639e42","line":972,"in_reply_to":"baada198_118873c5","updated":"2014-07-17 16:56:38.000000000","message":"used in a downstream patch, I could move the change there.","commit_id":"97a2c5287892e67a0df4a1a1db21bfd9766fb3b9"},{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"8024193c6caf1c172204170493b2c8d0546e122e","unresolved":false,"context_lines":[{"line_number":969,"context_line":""},{"line_number":970,"context_line":"        return True"},{"line_number":971,"context_line":""},{"line_number":972,"context_line":"    def port_bound_to_host(self, context, port_id, host):"},{"line_number":973,"context_line":"        port_host \u003d db.get_port_binding_host(port_id)"},{"line_number":974,"context_line":"        return (port_host \u003d\u003d host)"}],"source_content_type":"text/x-python","patch_set":36,"id":"baada198_97a9b7df","line":972,"in_reply_to":"baada198_31639e42","updated":"2014-07-17 18:41:52.000000000","message":"on second thought, since this is used here too (rpc.py), I\u0027d rather keep this change here.","commit_id":"97a2c5287892e67a0df4a1a1db21bfd9766fb3b9"}],"neutron/plugins/ml2/rpc.py":[{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"b1caaba26cba5420a2ecdde9d7e978740e9e9e2b","unresolved":false,"context_lines":[{"line_number":213,"context_line":"                                  q_const.PORT_STATUS_ACTIVE,"},{"line_number":214,"context_line":"                                  host)"},{"line_number":215,"context_line":""},{"line_number":216,"context_line":"    def get_dvr_mac_address_by_host(self, rpc_context, **kwargs):"},{"line_number":217,"context_line":"        host \u003d kwargs.get(\u0027host\u0027)"},{"line_number":218,"context_line":"        LOG.debug(\"DVR Agent requests mac_address for host %r\", host)"},{"line_number":219,"context_line":"        return super(RpcCallbacks, self).get_dvr_mac_address_by_host("}],"source_content_type":"text/x-python","patch_set":3,"id":"1ae5cdf2_a45bf184","line":216,"updated":"2014-06-25 04:26:50.000000000","message":"Why is this using kwargs and not just listing host as a formal parameter like all of the other definitions of get_dvr_mac_address_by_host do (see dvr_rpc.py?  IMO, It should be consistent and I don\u0027t see any reason for using this pattern.\n\nAm I missing something?","commit_id":"52ebae027bbc64612ed91f74c384540e8ccca8d2"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"b1caaba26cba5420a2ecdde9d7e978740e9e9e2b","unresolved":false,"context_lines":[{"line_number":219,"context_line":"        return super(RpcCallbacks, self).get_dvr_mac_address_by_host("},{"line_number":220,"context_line":"            rpc_context, host)"},{"line_number":221,"context_line":""},{"line_number":222,"context_line":"    def get_compute_ports_on_host_by_subnet(self, rpc_context, **kwargs):"},{"line_number":223,"context_line":"        host \u003d kwargs.get(\u0027host\u0027)"},{"line_number":224,"context_line":"        subnet \u003d kwargs.get(\u0027subnet\u0027)"},{"line_number":225,"context_line":"        LOG.debug(\"DVR Agent requests list of VM ports on host %r\", host)"}],"source_content_type":"text/x-python","patch_set":3,"id":"1ae5cdf2_c451dd64","line":222,"updated":"2014-06-25 04:26:50.000000000","message":"ditto","commit_id":"52ebae027bbc64612ed91f74c384540e8ccca8d2"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"b1caaba26cba5420a2ecdde9d7e978740e9e9e2b","unresolved":false,"context_lines":[{"line_number":226,"context_line":"        return super(RpcCallbacks, self).get_compute_ports_on_host_by_subnet("},{"line_number":227,"context_line":"            rpc_context, host, subnet)"},{"line_number":228,"context_line":""},{"line_number":229,"context_line":"    def get_subnet_for_dvr(self, rpc_context, **kwargs):"},{"line_number":230,"context_line":"        subnet \u003d kwargs.get(\u0027subnet\u0027)"},{"line_number":231,"context_line":"        return super(RpcCallbacks, self).get_subnet_for_dvr(rpc_context,"},{"line_number":232,"context_line":"                                                            subnet)"}],"source_content_type":"text/x-python","patch_set":3,"id":"1ae5cdf2_64c80922","line":229,"updated":"2014-06-25 04:26:50.000000000","message":"ditto about kwargs","commit_id":"52ebae027bbc64612ed91f74c384540e8ccca8d2"},{"author":{"_account_id":6876,"name":"stephen-ma","email":"stephenbma43@gmail.com","username":"stephen-ma"},"change_message_id":"1e2ad61c5d365583a522d5ab2c7adb9329232e0e","unresolved":false,"context_lines":[{"line_number":90,"context_line":"        device \u003d kwargs.get(\u0027device\u0027)"},{"line_number":91,"context_line":"        host \u003d kwargs.get(\u0027host\u0027)"},{"line_number":92,"context_line":"        LOG.debug(\"Device %(device)s details requested by agent \""},{"line_number":93,"context_line":"                  \"%(agent_id)s with host %(host)\","},{"line_number":94,"context_line":"                  {\u0027device\u0027: device, \u0027agent_id\u0027: agent_id, \u0027host\u0027: host})"},{"line_number":95,"context_line":"        port_id \u003d self._device_to_port_id(device)"},{"line_number":96,"context_line":""}],"source_content_type":"text/x-python","patch_set":7,"id":"1ae5cdf2_58fff7aa","line":93,"updated":"2014-06-27 20:01:07.000000000","message":"%(host)s","commit_id":"01450e0d18d04b5124c26af73b838a1ff680cdd2"},{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"134912833605ca6d6abdb2b748782b8107d9cbaf","unresolved":false,"context_lines":[{"line_number":90,"context_line":"        device \u003d kwargs.get(\u0027device\u0027)"},{"line_number":91,"context_line":"        host \u003d kwargs.get(\u0027host\u0027)"},{"line_number":92,"context_line":"        LOG.debug(\"Device %(device)s details requested by agent \""},{"line_number":93,"context_line":"                  \"%(agent_id)s with host %(host)\","},{"line_number":94,"context_line":"                  {\u0027device\u0027: device, \u0027agent_id\u0027: agent_id, \u0027host\u0027: host})"},{"line_number":95,"context_line":"        port_id \u003d self._device_to_port_id(device)"},{"line_number":96,"context_line":""}],"source_content_type":"text/x-python","patch_set":7,"id":"1ae5cdf2_a111a3f9","line":93,"in_reply_to":"1ae5cdf2_58fff7aa","updated":"2014-06-28 01:25:16.000000000","message":"Done","commit_id":"01450e0d18d04b5124c26af73b838a1ff680cdd2"},{"author":{"_account_id":4395,"name":"Aaron Rosen","email":"aaronorosen@gmail.com","username":"arosen"},"change_message_id":"616755687bd32b4af100784bfe4a28fab55fe6fc","unresolved":false,"context_lines":[{"line_number":217,"context_line":""},{"line_number":218,"context_line":"    def get_dvr_mac_address_by_host(self, rpc_context, **kwargs):"},{"line_number":219,"context_line":"        host \u003d kwargs.get(\u0027host\u0027)"},{"line_number":220,"context_line":"        LOG.debug(\"DVR Agent requests mac_address for host %r\", host)"},{"line_number":221,"context_line":"        return super(RpcCallbacks, self).get_dvr_mac_address_by_host("},{"line_number":222,"context_line":"            rpc_context, host)"},{"line_number":223,"context_line":""}],"source_content_type":"text/x-python","patch_set":25,"id":"baada198_5bf87a49","line":220,"updated":"2014-07-09 01:11:20.000000000","message":"%r? shouldn\u0027t this be %s?","commit_id":"74fd416fa74c06611e76f514fdeddfa000c621f0"},{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"b43c843b2b4134eb2ed395a6bd70d6e5b7179c52","unresolved":false,"context_lines":[{"line_number":217,"context_line":""},{"line_number":218,"context_line":"    def get_dvr_mac_address_by_host(self, rpc_context, **kwargs):"},{"line_number":219,"context_line":"        host \u003d kwargs.get(\u0027host\u0027)"},{"line_number":220,"context_line":"        LOG.debug(\"DVR Agent requests mac_address for host %r\", host)"},{"line_number":221,"context_line":"        return super(RpcCallbacks, self).get_dvr_mac_address_by_host("},{"line_number":222,"context_line":"            rpc_context, host)"},{"line_number":223,"context_line":""}],"source_content_type":"text/x-python","patch_set":25,"id":"baada198_7a48d5cc","line":220,"in_reply_to":"baada198_5bf87a49","updated":"2014-07-09 05:52:07.000000000","message":"%r is raw, but I could replace","commit_id":"74fd416fa74c06611e76f514fdeddfa000c621f0"}]}
