)]}'
{"neutron/db/l3_dvr_db.py":[{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"841a726c3e8f07c0d6868db9230db04b3334b6f5","unresolved":false,"context_lines":[{"line_number":639,"context_line":"                    if \u0027host\u0027 not in floating_ip.keys():"},{"line_number":640,"context_line":"                        LOG.warning(\"HOST key not found for fip: \""},{"line_number":641,"context_line":"                                    \"%s\", floating_ip)"},{"line_number":642,"context_line":"                        continue"},{"line_number":643,"context_line":"                    if self._should_skip_floating_ip_processed_for_given_agent("},{"line_number":644,"context_line":"                        floating_ip, agent):"},{"line_number":645,"context_line":"                        continue"}],"source_content_type":"text/x-python","patch_set":2,"id":"7f287b81_17aa8518","line":642,"updated":"2017-09-01 16:24:58.000000000","message":"I\u0027m thinking that tweaking the floating_ips loop in _get_dvr_sync_data() might be easier?  i.e. always set fip[\u0027host\u0027] to None by default, then I think this code just works.  But I\u0027m remembering that code is a little tricky.  Let me try that locally and see what happens.","commit_id":"9f4497a81aca211b8fa50d95d33e34a538355982"},{"author":{"_account_id":7016,"name":"Swaminathan Vasudevan","email":"swvasude@cisco.com","username":"souminathan"},"change_message_id":"776c7d73589bc3b4e45b29847515ff898e552b5b","unresolved":false,"context_lines":[{"line_number":639,"context_line":"                    if \u0027host\u0027 not in floating_ip.keys():"},{"line_number":640,"context_line":"                        LOG.warning(\"HOST key not found for fip: \""},{"line_number":641,"context_line":"                                    \"%s\", floating_ip)"},{"line_number":642,"context_line":"                        continue"},{"line_number":643,"context_line":"                    if self._should_skip_floating_ip_processed_for_given_agent("},{"line_number":644,"context_line":"                        floating_ip, agent):"},{"line_number":645,"context_line":"                        continue"}],"source_content_type":"text/x-python","patch_set":2,"id":"7f287b81_e81cb6c2","line":642,"in_reply_to":"7f287b81_17aa8518","updated":"2017-09-01 18:18:32.000000000","message":"If we set the fip[\u0027host\u0027] always to be none, then, we end up defining the \u0027dvr_snat_bound\u0027 in that case.\n\nI am yet to figure out in the grenade job, why there are some floatingip\u0027s that are coming in without a port-binding.","commit_id":"9f4497a81aca211b8fa50d95d33e34a538355982"},{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"80c312f74c617b463bb42e4410fdf613f7106fa8","unresolved":false,"context_lines":[{"line_number":751,"context_line":"            for fip in floating_ips:"},{"line_number":752,"context_line":"                vm_port \u003d port_dict.get(fip[\u0027port_id\u0027], None)"},{"line_number":753,"context_line":"                LOG.warning(\"Private port for fip: %s\", vm_port)"},{"line_number":754,"context_line":"                if vm_port:"},{"line_number":755,"context_line":"                    port_host \u003d vm_port[portbindings.HOST_ID]"},{"line_number":756,"context_line":"                    if port_host:"},{"line_number":757,"context_line":"                        fip[\u0027host\u0027] \u003d port_host"}],"source_content_type":"text/x-python","patch_set":3,"id":"7f287b81_35e0d696","line":754,"updated":"2017-09-01 20:13:58.000000000","message":"The only way we can get out of here without fip[\u0027host\u0027] being set is if there is no vm_port, so hopefully your added debug will find that.  That\u0027s why I was trying to re-do this code in my patch, but then we\u0027d just see it come across as None.","commit_id":"317aff4d2decb7895937f2a20201663d2317efd3"},{"author":{"_account_id":7016,"name":"Swaminathan Vasudevan","email":"swvasude@cisco.com","username":"souminathan"},"change_message_id":"f2e1e671098e7e316e950605dd8c3b0a3fdc2e7e","unresolved":false,"context_lines":[{"line_number":751,"context_line":"            for fip in floating_ips:"},{"line_number":752,"context_line":"                vm_port \u003d port_dict.get(fip[\u0027port_id\u0027], None)"},{"line_number":753,"context_line":"                LOG.warning(\"Private port for fip: %s\", vm_port)"},{"line_number":754,"context_line":"                if vm_port:"},{"line_number":755,"context_line":"                    port_host \u003d vm_port[portbindings.HOST_ID]"},{"line_number":756,"context_line":"                    if port_host:"},{"line_number":757,"context_line":"                        fip[\u0027host\u0027] \u003d port_host"}],"source_content_type":"text/x-python","patch_set":3,"id":"7f287b81_3555761e","line":754,"in_reply_to":"7f287b81_35e0d696","updated":"2017-09-01 20:24:27.000000000","message":"Yes, I wanted to check that last bit to make sure our logic is right.\nAlso based on the what i saw in the logs, there were floatingip configured to private IP, but there was no port-binding in there. \nSo the test might be creating the ports first and then assigning the floatingip.\nBut I need to validate if the unbound ports are also handled properly here.\nLet us wait and see what we see from the logs.","commit_id":"317aff4d2decb7895937f2a20201663d2317efd3"},{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"b17e72ea638355239fc3ba60678852eceee32b5b","unresolved":false,"context_lines":[{"line_number":634,"context_line":"            if router:"},{"line_number":635,"context_line":"                router_floatingips \u003d router.get(const.FLOATINGIP_KEY, [])"},{"line_number":636,"context_line":"                if router[\u0027distributed\u0027]:"},{"line_number":637,"context_line":"                    fip_host \u003d floating_ip.get(\u0027host\u0027)"},{"line_number":638,"context_line":"                    fip_dest_host \u003d floating_ip.get(\u0027dest_host\u0027)"},{"line_number":639,"context_line":"                    # Skip if floatingip need not be processed for the"},{"line_number":640,"context_line":"                    # given agent."}],"source_content_type":"text/x-python","patch_set":6,"id":"7f287b81_51c44f5f","side":"PARENT","line":637,"updated":"2017-09-06 00:25:39.000000000","message":"This looks like part of the problem - if there is no \u0027host\u0027 key fip_host \u003d None, what you did in the change is better, but maybe even floating_ip.get(\u0027host\u0027, \u0027\u0027) ?  That would return \u0027\u0027 if there was no key.\n\nI will admit the difference between \u0027\u0027 and None is still confusing for this field.","commit_id":"8d2c1bd88b14eefbea74c72f384cb9952e7ee62e"},{"author":{"_account_id":7016,"name":"Swaminathan Vasudevan","email":"swvasude@cisco.com","username":"souminathan"},"change_message_id":"d1848e67db808c215b24cc2b587ee9a4fd38d5da","unresolved":false,"context_lines":[{"line_number":634,"context_line":"            if router:"},{"line_number":635,"context_line":"                router_floatingips \u003d router.get(const.FLOATINGIP_KEY, [])"},{"line_number":636,"context_line":"                if router[\u0027distributed\u0027]:"},{"line_number":637,"context_line":"                    fip_host \u003d floating_ip.get(\u0027host\u0027)"},{"line_number":638,"context_line":"                    fip_dest_host \u003d floating_ip.get(\u0027dest_host\u0027)"},{"line_number":639,"context_line":"                    # Skip if floatingip need not be processed for the"},{"line_number":640,"context_line":"                    # given agent."}],"source_content_type":"text/x-python","patch_set":6,"id":"7f287b81_7b596458","side":"PARENT","line":637,"in_reply_to":"7f287b81_51c44f5f","updated":"2017-09-06 06:37:08.000000000","message":"Yes I did realize that using the \u0027get\u0027 attribute, will\nalways return \u0027None\u0027 even if the host keys are missing.","commit_id":"8d2c1bd88b14eefbea74c72f384cb9952e7ee62e"},{"author":{"_account_id":7016,"name":"Swaminathan Vasudevan","email":"swvasude@cisco.com","username":"souminathan"},"change_message_id":"a6b519c4921d6c8ae3dbedce7a04a91d568f8694","unresolved":false,"context_lines":[{"line_number":650,"context_line":"                router_floatingips.append(floating_ip)"},{"line_number":651,"context_line":"                router[const.FLOATINGIP_KEY] \u003d router_floatingips"},{"line_number":652,"context_line":""},{"line_number":653,"context_line":"    def _check_floating_ip_not_valid_for_given_host("},{"line_number":654,"context_line":"        self, fip_host, fip_dest_host, host):"},{"line_number":655,"context_line":"        \"\"\"Function to check if floatingip host match for the given agent."},{"line_number":656,"context_line":""},{"line_number":657,"context_line":"        Check if the given floatingip host matches with the requesting"}],"source_content_type":"text/x-python","patch_set":6,"id":"7f287b81_d8aa9b83","side":"PARENT","line":654,"range":{"start_line":653,"start_character":8,"end_line":654,"end_character":45},"updated":"2017-09-06 07:44:03.000000000","message":"This function is not doing its job right.\nThat\u0027s why we see a floatingip that is being sent to the agent even though the host is not defined.","commit_id":"8d2c1bd88b14eefbea74c72f384cb9952e7ee62e"}]}
