)]}'
{"neutron/plugins/ml2/drivers/openvswitch/agent/ovs_neutron_agent.py":[{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"76b76fad702b93c7c177e8adf46a9ded7a731a95","unresolved":false,"context_lines":[{"line_number":81,"context_line":"    word_fmt \u003d \u0027%.2x\u0027"},{"line_number":82,"context_line":""},{"line_number":83,"context_line":""},{"line_number":84,"context_line":"class OVSPluginApi(agent_rpc.CacheBackedPluginApi):"},{"line_number":85,"context_line":"    pass"},{"line_number":86,"context_line":""},{"line_number":87,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"5f7c97a3_a5a50149","line":84,"range":{"start_line":84,"start_character":19,"end_line":84,"end_character":49},"updated":"2018-05-14 20:54:10.000000000","message":"we already get all port updates (that include bindings) via RPC callbacks. I don\u0027t think we should subscribe to a custom topic to get those updates.","commit_id":"9dcb1d8b0279ce2cb9cac291dea7a185665783cc"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"bcbd8aecda07afd1bdab6747ab84150f3d5d7e3e","unresolved":false,"context_lines":[{"line_number":81,"context_line":"    word_fmt \u003d \u0027%.2x\u0027"},{"line_number":82,"context_line":""},{"line_number":83,"context_line":""},{"line_number":84,"context_line":"class OVSPluginApi(agent_rpc.CacheBackedPluginApi):"},{"line_number":85,"context_line":"    pass"},{"line_number":86,"context_line":""},{"line_number":87,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"5f7c97a3_402bbb81","line":84,"range":{"start_line":84,"start_character":19,"end_line":84,"end_character":49},"in_reply_to":"5f7c97a3_a5a50149","updated":"2018-05-14 21:04:43.000000000","message":"Nevermind, I am dumb and don\u0027t read the whole series before commenting.","commit_id":"9dcb1d8b0279ce2cb9cac291dea7a185665783cc"},{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"cbe42f2c14d43f1005352be53346153dbcec908f","unresolved":false,"context_lines":[{"line_number":460,"context_line":"            self.deactivated_bindings -\u003d port_info[\u0027removed\u0027]"},{"line_number":461,"context_line":"        while self.deactivated_bindings:"},{"line_number":462,"context_line":"            port_id \u003d self.deactivated_bindings.pop()"},{"line_number":463,"context_line":"            port \u003d self.int_br.get_vif_port_by_id(port_id)"},{"line_number":464,"context_line":"            self.int_br.delete_port(port.port_name)"},{"line_number":465,"context_line":"            LOG.debug((\"Port id %s unplugged from integration bridge because \""},{"line_number":466,"context_line":"                       \"its binding was de-activated\"), port_id)"}],"source_content_type":"text/x-python","patch_set":1,"id":"5f7c97a3_12cea12c","line":463,"updated":"2018-05-11 19:38:35.000000000","message":"I would add\n\nif not port:\n    continue\n\nOr put the below under an \u0027if port:\u0027, either way.","commit_id":"9dcb1d8b0279ce2cb9cac291dea7a185665783cc"},{"author":{"_account_id":4694,"name":"Miguel Lavalle","email":"miguel@mlavalle.com","username":"minsel"},"change_message_id":"b39b176c2a53e5b8a7f7b436d09f28e9d59607fa","unresolved":false,"context_lines":[{"line_number":460,"context_line":"            self.deactivated_bindings -\u003d port_info[\u0027removed\u0027]"},{"line_number":461,"context_line":"        while self.deactivated_bindings:"},{"line_number":462,"context_line":"            port_id \u003d self.deactivated_bindings.pop()"},{"line_number":463,"context_line":"            port \u003d self.int_br.get_vif_port_by_id(port_id)"},{"line_number":464,"context_line":"            self.int_br.delete_port(port.port_name)"},{"line_number":465,"context_line":"            LOG.debug((\"Port id %s unplugged from integration bridge because \""},{"line_number":466,"context_line":"                       \"its binding was de-activated\"), port_id)"}],"source_content_type":"text/x-python","patch_set":1,"id":"5f7c97a3_3e722daf","line":463,"in_reply_to":"5f7c97a3_12cea12c","updated":"2018-06-04 00:34:13.000000000","message":"Done","commit_id":"9dcb1d8b0279ce2cb9cac291dea7a185665783cc"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"aaabe29daa38680af442b32d5b2f74ff28a7edc1","unresolved":false,"context_lines":[{"line_number":462,"context_line":"            port_id \u003d self.deactivated_bindings.pop()"},{"line_number":463,"context_line":"            port \u003d self.int_br.get_vif_port_by_id(port_id)"},{"line_number":464,"context_line":"            self.int_br.delete_port(port.port_name)"},{"line_number":465,"context_line":"            LOG.debug((\"Port id %s unplugged from integration bridge because \""},{"line_number":466,"context_line":"                       \"its binding was de-activated\"), port_id)"},{"line_number":467,"context_line":""},{"line_number":468,"context_line":"    def tunnel_update(self, context, **kwargs):"}],"source_content_type":"text/x-python","patch_set":1,"id":"5f7c97a3_e4de913c","line":465,"range":{"start_line":465,"start_character":22,"end_line":465,"end_character":23},"updated":"2018-05-15 08:04:15.000000000","message":"nitty nit: this second bracket is not necessary here","commit_id":"9dcb1d8b0279ce2cb9cac291dea7a185665783cc"},{"author":{"_account_id":4694,"name":"Miguel Lavalle","email":"miguel@mlavalle.com","username":"minsel"},"change_message_id":"b39b176c2a53e5b8a7f7b436d09f28e9d59607fa","unresolved":false,"context_lines":[{"line_number":462,"context_line":"            port_id \u003d self.deactivated_bindings.pop()"},{"line_number":463,"context_line":"            port \u003d self.int_br.get_vif_port_by_id(port_id)"},{"line_number":464,"context_line":"            self.int_br.delete_port(port.port_name)"},{"line_number":465,"context_line":"            LOG.debug((\"Port id %s unplugged from integration bridge because \""},{"line_number":466,"context_line":"                       \"its binding was de-activated\"), port_id)"},{"line_number":467,"context_line":""},{"line_number":468,"context_line":"    def tunnel_update(self, context, **kwargs):"}],"source_content_type":"text/x-python","patch_set":1,"id":"5f7c97a3_de6699ef","line":465,"range":{"start_line":465,"start_character":22,"end_line":465,"end_character":23},"in_reply_to":"5f7c97a3_e4de913c","updated":"2018-06-04 00:34:13.000000000","message":"It is needed. The second set of parenthesis encompasses the multi-line string.","commit_id":"9dcb1d8b0279ce2cb9cac291dea7a185665783cc"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"2f3d9a1093cfe18553fed4fca47974f2a2accac8","unresolved":false,"context_lines":[{"line_number":176,"context_line":"        # Stores port delete notifications"},{"line_number":177,"context_line":"        self.deleted_ports \u003d set()"},{"line_number":178,"context_line":"        # Stores the port IDs whose binding has been deactivated"},{"line_number":179,"context_line":"        self.deactivated_bindings \u003d set()"},{"line_number":180,"context_line":""},{"line_number":181,"context_line":"        self.network_ports \u003d collections.defaultdict(set)"},{"line_number":182,"context_line":"        # keeps association between ports and ofports to detect ofport change"}],"source_content_type":"text/x-python","patch_set":2,"id":"5f7c97a3_d6724b4a","line":179,"updated":"2018-06-12 07:41:00.000000000","message":"maybe that is stupid question but why it can\u0027t be stored and processed in exactly same way as deleted_ports? Isn\u0027t it the same process from agent PoV? If port binding on this host is deactivated why You want only remove it from br-int and not clean e.g. LVM for this network if there is no other ports from same network or something like that?","commit_id":"6b36e3e47c3b192c10cfe0ed9eeda49c784c045b"},{"author":{"_account_id":4694,"name":"Miguel Lavalle","email":"miguel@mlavalle.com","username":"minsel"},"change_message_id":"3cc4f58467d963715f3ec7fbbf0a21e0c7fb4cc4","unresolved":false,"context_lines":[{"line_number":176,"context_line":"        # Stores port delete notifications"},{"line_number":177,"context_line":"        self.deleted_ports \u003d set()"},{"line_number":178,"context_line":"        # Stores the port IDs whose binding has been deactivated"},{"line_number":179,"context_line":"        self.deactivated_bindings \u003d set()"},{"line_number":180,"context_line":""},{"line_number":181,"context_line":"        self.network_ports \u003d collections.defaultdict(set)"},{"line_number":182,"context_line":"        # keeps association between ports and ofports to detect ofport change"}],"source_content_type":"text/x-python","patch_set":2,"id":"5f7c97a3_598783b7","line":179,"in_reply_to":"5f7c97a3_38616ed4","updated":"2018-06-21 04:18:18.000000000","message":"Now I remember Why I chose to do it this way. By doing it this way and calling process_deactivated_bindings, we unplug the port and in the next iteration the agent is going to execute treat_devices_removed (L1614). It essentially does the same thing as process_deleted_ports (L432), except that it also calls the server update_device_list to update the port down. So I think I am going to stick to this approach","commit_id":"6b36e3e47c3b192c10cfe0ed9eeda49c784c045b"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"3877954518ea5395aa5c2b40188803b0b45b8d46","unresolved":false,"context_lines":[{"line_number":176,"context_line":"        # Stores port delete notifications"},{"line_number":177,"context_line":"        self.deleted_ports \u003d set()"},{"line_number":178,"context_line":"        # Stores the port IDs whose binding has been deactivated"},{"line_number":179,"context_line":"        self.deactivated_bindings \u003d set()"},{"line_number":180,"context_line":""},{"line_number":181,"context_line":"        self.network_ports \u003d collections.defaultdict(set)"},{"line_number":182,"context_line":"        # keeps association between ports and ofports to detect ofport change"}],"source_content_type":"text/x-python","patch_set":2,"id":"5f7c97a3_7d54a254","line":179,"in_reply_to":"5f7c97a3_598783b7","updated":"2018-06-21 12:14:21.000000000","message":"ok, I see now. So this new method will do for deactivated ports all the same things like it is for deleted ports but it will not set port down which makes sense IMO :) Thx for explanation","commit_id":"6b36e3e47c3b192c10cfe0ed9eeda49c784c045b"},{"author":{"_account_id":4694,"name":"Miguel Lavalle","email":"miguel@mlavalle.com","username":"minsel"},"change_message_id":"4169366ea5f7e4bcde4ea19b1e1f95f1d067a8d1","unresolved":false,"context_lines":[{"line_number":176,"context_line":"        # Stores port delete notifications"},{"line_number":177,"context_line":"        self.deleted_ports \u003d set()"},{"line_number":178,"context_line":"        # Stores the port IDs whose binding has been deactivated"},{"line_number":179,"context_line":"        self.deactivated_bindings \u003d set()"},{"line_number":180,"context_line":""},{"line_number":181,"context_line":"        self.network_ports \u003d collections.defaultdict(set)"},{"line_number":182,"context_line":"        # keeps association between ports and ofports to detect ofport change"}],"source_content_type":"text/x-python","patch_set":2,"id":"5f7c97a3_38616ed4","line":179,"in_reply_to":"5f7c97a3_d6724b4a","updated":"2018-06-20 14:44:56.000000000","message":"You raise a very good point. I am going to try this approach in my testing environment. If it works well, I\u0027ll adopt it ;-)","commit_id":"6b36e3e47c3b192c10cfe0ed9eeda49c784c045b"},{"author":{"_account_id":1653,"name":"garyk","email":"gkotton@vmware.com","username":"garyk"},"change_message_id":"7ccb21b4cc735eda12d65c1f90e2d4900688625f","unresolved":false,"context_lines":[{"line_number":124,"context_line":"    #   1.2 Support DVR (Distributed Virtual Router) RPC"},{"line_number":125,"context_line":"    #   1.3 Added param devices_to_update to security_groups_provider_updated"},{"line_number":126,"context_line":"    #   1.4 Added support for network_update"},{"line_number":127,"context_line":"    #   1.5 Added binding_deactivate"},{"line_number":128,"context_line":"    target \u003d oslo_messaging.Target(version\u003d\u00271.5\u0027)"},{"line_number":129,"context_line":""},{"line_number":130,"context_line":"    def __init__(self, bridge_classes, ext_manager, conf\u003dNone):"}],"source_content_type":"text/x-python","patch_set":7,"id":"5f7c97a3_0f209499","line":127,"range":{"start_line":127,"start_character":12,"end_line":127,"end_character":36},"updated":"2018-07-08 07:55:44.000000000","message":"this should bump the version number. no?","commit_id":"7838fd6cf3bce21cb7dff84d097b8a0323acdc49"},{"author":{"_account_id":4694,"name":"Miguel Lavalle","email":"miguel@mlavalle.com","username":"minsel"},"change_message_id":"f511df55c226112ee7f7128a5b98d3fde854c60d","unresolved":false,"context_lines":[{"line_number":124,"context_line":"    #   1.2 Support DVR (Distributed Virtual Router) RPC"},{"line_number":125,"context_line":"    #   1.3 Added param devices_to_update to security_groups_provider_updated"},{"line_number":126,"context_line":"    #   1.4 Added support for network_update"},{"line_number":127,"context_line":"    #   1.5 Added binding_deactivate"},{"line_number":128,"context_line":"    target \u003d oslo_messaging.Target(version\u003d\u00271.5\u0027)"},{"line_number":129,"context_line":""},{"line_number":130,"context_line":"    def __init__(self, bridge_classes, ext_manager, conf\u003dNone):"}],"source_content_type":"text/x-python","patch_set":7,"id":"5f7c97a3_bb95ef3f","line":127,"range":{"start_line":127,"start_character":12,"end_line":127,"end_character":36},"in_reply_to":"5f7c97a3_0f209499","updated":"2018-07-10 22:14:14.000000000","message":"Yes, This is exactly what this line does, bump the version. Or what do you mean?","commit_id":"7838fd6cf3bce21cb7dff84d097b8a0323acdc49"},{"author":{"_account_id":1653,"name":"garyk","email":"gkotton@vmware.com","username":"garyk"},"change_message_id":"37a528cc007ea9d2ca0d0fcea1a513f6527b68e2","unresolved":false,"context_lines":[{"line_number":124,"context_line":"    #   1.2 Support DVR (Distributed Virtual Router) RPC"},{"line_number":125,"context_line":"    #   1.3 Added param devices_to_update to security_groups_provider_updated"},{"line_number":126,"context_line":"    #   1.4 Added support for network_update"},{"line_number":127,"context_line":"    #   1.5 Added binding_deactivate"},{"line_number":128,"context_line":"    target \u003d oslo_messaging.Target(version\u003d\u00271.5\u0027)"},{"line_number":129,"context_line":""},{"line_number":130,"context_line":"    def __init__(self, bridge_classes, ext_manager, conf\u003dNone):"}],"source_content_type":"text/x-python","patch_set":7,"id":"5f7c97a3_398bbe17","line":127,"range":{"start_line":127,"start_character":12,"end_line":127,"end_character":36},"in_reply_to":"5f7c97a3_aaf56953","updated":"2018-07-16 09:26:53.000000000","message":"sorry my bad.","commit_id":"7838fd6cf3bce21cb7dff84d097b8a0323acdc49"},{"author":{"_account_id":15309,"name":"zhaobo","email":"bzhaojyathousandy@gmail.com","username":"ZhaoBo"},"change_message_id":"34cad68bd2ecbafe633f2dc897929fe5c959d069","unresolved":false,"context_lines":[{"line_number":124,"context_line":"    #   1.2 Support DVR (Distributed Virtual Router) RPC"},{"line_number":125,"context_line":"    #   1.3 Added param devices_to_update to security_groups_provider_updated"},{"line_number":126,"context_line":"    #   1.4 Added support for network_update"},{"line_number":127,"context_line":"    #   1.5 Added binding_deactivate"},{"line_number":128,"context_line":"    target \u003d oslo_messaging.Target(version\u003d\u00271.5\u0027)"},{"line_number":129,"context_line":""},{"line_number":130,"context_line":"    def __init__(self, bridge_classes, ext_manager, conf\u003dNone):"}],"source_content_type":"text/x-python","patch_set":7,"id":"5f7c97a3_aaf56953","line":127,"range":{"start_line":127,"start_character":12,"end_line":127,"end_character":36},"in_reply_to":"5f7c97a3_bb95ef3f","updated":"2018-07-12 15:37:09.000000000","message":"Agree to bump","commit_id":"7838fd6cf3bce21cb7dff84d097b8a0323acdc49"},{"author":{"_account_id":15309,"name":"zhaobo","email":"bzhaojyathousandy@gmail.com","username":"ZhaoBo"},"change_message_id":"34cad68bd2ecbafe633f2dc897929fe5c959d069","unresolved":false,"context_lines":[{"line_number":463,"context_line":"            port \u003d self.int_br.get_vif_port_by_id(port_id)"},{"line_number":464,"context_line":"            if not port:"},{"line_number":465,"context_line":"                continue"},{"line_number":466,"context_line":"            self.int_br.delete_port(port.port_name)"},{"line_number":467,"context_line":"            LOG.debug((\"Port id %s unplugged from integration bridge because \""},{"line_number":468,"context_line":"                       \"its binding was de-activated\"), port_id)"},{"line_number":469,"context_line":""}],"source_content_type":"text/x-python","patch_set":7,"id":"5f7c97a3_7b688587","line":466,"range":{"start_line":466,"start_character":12,"end_line":466,"end_character":51},"updated":"2018-07-12 15:37:09.000000000","message":"Here, we delete the ofport. And the next step is for update_stale_ofport_rules just flush the arp spoof rules in br-int. Then in the next loop, the removed port will be in port_info[\u0027removed\u0027], in the next whole loop, we delete the linux bridge, flush sg, and so on. But there is a step to rpc to server side to update the port status to Down. And we define there is only 1 active binding at most for a port, the port status should be Down if the active binding does not exist at this moment, and clear l2pop staff if used. \nI\u0027m not sure if there is a case that the active action after the deactive update_device_list. But that\u0027s OK, as Nova will do it propely with active/inactive","commit_id":"7838fd6cf3bce21cb7dff84d097b8a0323acdc49"}]}
