)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":4694,"name":"Miguel Lavalle","email":"miguel@mlavalle.com","username":"minsel"},"change_message_id":"5b7e54cea6624025700a11d3eca79f4fc8e9d683","unresolved":false,"context_lines":[{"line_number":4,"context_line":"Commit:     Rodolfo Alonso Hernandez \u003cralonsoh@redhat.com\u003e"},{"line_number":5,"context_line":"CommitDate: 2018-11-05 15:44:32 +0000"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Check port VNIC type when associating a floating IP"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"When associating a floating IP to a port and the router is distributed,"},{"line_number":10,"context_line":"the VNIC type of this port must be \"normal\" only. In any other case,"},{"line_number":11,"context_line":"the floating IP can\u0027t be assigned. For example, a SR-IOV can have a"},{"line_number":12,"context_line":"floating IP if the router is distributed (the router is in the same"},{"line_number":13,"context_line":"host of the port)."},{"line_number":14,"context_line":""},{"line_number":15,"context_line":"Change-Id: I0dab235bd492538c7fa909dace08fad2267a589d"},{"line_number":16,"context_line":"Partial-Bug: #1566951"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":3,"id":"3f79a3b5_c45dee54","line":13,"range":{"start_line":7,"start_character":0,"end_line":13,"end_character":18},"updated":"2018-11-05 22:46:25.000000000","message":"I think we can be more generic than this. Please see comment to https://review.openstack.org/#/c/615126/3/neutron_lib/plugins/utils.py@388","commit_id":"a6814924f76b481d3a7aa6be757cc371f52fe4b0"}],"neutron_lib/plugins/utils.py":[{"author":{"_account_id":4694,"name":"Miguel Lavalle","email":"miguel@mlavalle.com","username":"minsel"},"change_message_id":"5b7e54cea6624025700a11d3eca79f4fc8e9d683","unresolved":false,"context_lines":[{"line_number":385,"context_line":"        raise exceptions.PortBindingNotFound(port_id\u003dport_id, host\u003dhost)"},{"line_number":386,"context_line":""},{"line_number":387,"context_line":""},{"line_number":388,"context_line":"def is_valid_port_vnic_type_for_fip_in_dvr(port):"},{"line_number":389,"context_line":"    \"\"\"Returns if port VNIC type is valid in DVR deployment."},{"line_number":390,"context_line":""},{"line_number":391,"context_line":"    If a floating IP is assigned to a port and the router this port is"},{"line_number":392,"context_line":"    connected is distributed (the router belongs to the same host of the port),"},{"line_number":393,"context_line":"    the VNIC type of the port must be \u0027normal\u0027. If VNIC type is \u0027normal\u0027 (e.g.:"},{"line_number":394,"context_line":"    OVS, Linux Bridge), the port traffic can be redirected to the router"},{"line_number":395,"context_line":"    namespace."},{"line_number":396,"context_line":""},{"line_number":397,"context_line":"    :param port: (dict) A port dictionary."},{"line_number":398,"context_line":"    :returns: True if the port VNIC type is \u0027normal\u0027; False in any other case."}],"source_content_type":"text/x-python","patch_set":3,"id":"3f79a3b5_248622b9","line":395,"range":{"start_line":388,"start_character":4,"end_line":395,"end_character":14},"updated":"2018-11-05 22:46:25.000000000","message":"It seems to me that the name and docstring of this function make too many assumptions about the specific caller in DVR that we have currently at hand. In my opinion. functions in utils modules should be as generic as possible. The generic function that this code performs is to return true if a port is supposed to be bound through a bridge (OVS, or LB) and that should be reflected in the name and documentation of the function. How this information is used by one of potentially many callers shouldn\u0027t be reflected in the name of the function or its documentation.","commit_id":"a6814924f76b481d3a7aa6be757cc371f52fe4b0"},{"author":{"_account_id":16688,"name":"Rodolfo Alonso","email":"ralonsoh@redhat.com","username":"rodolfo-alonso-hernandez"},"change_message_id":"7cb464cf56e4118b4837f3e0327a17feef5544f8","unresolved":false,"context_lines":[{"line_number":385,"context_line":"        raise exceptions.PortBindingNotFound(port_id\u003dport_id, host\u003dhost)"},{"line_number":386,"context_line":""},{"line_number":387,"context_line":""},{"line_number":388,"context_line":"def is_valid_port_vnic_type_for_fip_in_dvr(port):"},{"line_number":389,"context_line":"    \"\"\"Returns if port VNIC type is valid in DVR deployment."},{"line_number":390,"context_line":""},{"line_number":391,"context_line":"    If a floating IP is assigned to a port and the router this port is"},{"line_number":392,"context_line":"    connected is distributed (the router belongs to the same host of the port),"},{"line_number":393,"context_line":"    the VNIC type of the port must be \u0027normal\u0027. If VNIC type is \u0027normal\u0027 (e.g.:"},{"line_number":394,"context_line":"    OVS, Linux Bridge), the port traffic can be redirected to the router"},{"line_number":395,"context_line":"    namespace."},{"line_number":396,"context_line":""},{"line_number":397,"context_line":"    :param port: (dict) A port dictionary."},{"line_number":398,"context_line":"    :returns: True if the port VNIC type is \u0027normal\u0027; False in any other case."}],"source_content_type":"text/x-python","patch_set":3,"id":"3f79a3b5_9f5acd4e","line":395,"range":{"start_line":388,"start_character":4,"end_line":395,"end_character":14},"in_reply_to":"3f79a3b5_248622b9","updated":"2018-11-06 16:17:56.000000000","message":"Done, as commented via IRC","commit_id":"a6814924f76b481d3a7aa6be757cc371f52fe4b0"},{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"550647c6a52c0a94383ec62d41213b9ca0bb36c9","unresolved":false,"context_lines":[{"line_number":385,"context_line":"        raise exceptions.PortBindingNotFound(port_id\u003dport_id, host\u003dhost)"},{"line_number":386,"context_line":""},{"line_number":387,"context_line":""},{"line_number":388,"context_line":"def is_port_bound_to_virtualbridge(port):"},{"line_number":389,"context_line":"    \"\"\"Returns if port can be bound to a virtual bridge (e.g.: LB, OVS)"},{"line_number":390,"context_line":""},{"line_number":391,"context_line":"    :param port: (dict) A port dictionary."}],"source_content_type":"text/x-python","patch_set":5,"id":"3f79a3b5_53895b22","line":388,"range":{"start_line":388,"start_character":21,"end_line":388,"end_character":34},"updated":"2018-11-08 16:12:40.000000000","message":"nit: s/virtual_bridge ?","commit_id":"db224561a9eaf489c734bbce3261e09182217f1c"},{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"76f58f8ce1b7ad4785421809656b9b408d51a52e","unresolved":false,"context_lines":[{"line_number":386,"context_line":""},{"line_number":387,"context_line":""},{"line_number":388,"context_line":"def is_port_bound_to_virtual_bridge(port):"},{"line_number":389,"context_line":"    \"\"\"Returns if port can be bound to a virtual bridge (e.g.: LB, OVS)"},{"line_number":390,"context_line":""},{"line_number":391,"context_line":"    :param port: (dict) A port dictionary."},{"line_number":392,"context_line":"    :returns: True if the port VNIC type is \u0027normal\u0027; False in any other case."}],"source_content_type":"text/x-python","patch_set":7,"id":"3f79a3b5_4e5e5e51","line":389,"range":{"start_line":389,"start_character":23,"end_line":389,"end_character":29},"updated":"2018-11-12 20:09:20.000000000","message":"s/is\n\nBut then this raises the question on what this should return.  \"is_port_bound_to_virtual_bridge\" seems like it should return True if the port is bound (!\u003d VNIC_NORMAL).  \"can_port_be_bound_to_virtual_bridge\" should return the opposite.  I think this should return the former, and callers will check !is_port...()\n\nDoes that make sense or am I crazy :)  Just trying to get this right as it\u0027s a library and it\u0027s hard to change the behavior once it\u0027s released.","commit_id":"54f3245846074863f555886dcfcfaadf99f47547"},{"author":{"_account_id":16688,"name":"Rodolfo Alonso","email":"ralonsoh@redhat.com","username":"rodolfo-alonso-hernandez"},"change_message_id":"57880b55fb01c7c000eb05c0203581820394b8eb","unresolved":false,"context_lines":[{"line_number":386,"context_line":""},{"line_number":387,"context_line":""},{"line_number":388,"context_line":"def is_port_bound_to_virtual_bridge(port):"},{"line_number":389,"context_line":"    \"\"\"Returns if port can be bound to a virtual bridge (e.g.: LB, OVS)"},{"line_number":390,"context_line":""},{"line_number":391,"context_line":"    :param port: (dict) A port dictionary."},{"line_number":392,"context_line":"    :returns: True if the port VNIC type is \u0027normal\u0027; False in any other case."}],"source_content_type":"text/x-python","patch_set":7,"id":"3f79a3b5_347a5076","line":389,"range":{"start_line":389,"start_character":23,"end_line":389,"end_character":29},"in_reply_to":"3f79a3b5_4e5e5e51","updated":"2018-11-12 20:44:36.000000000","message":"The correct function name should be \"can_port_be_bound_to_virtual_bridge\" and the behavior of the function should be the currently implemented.","commit_id":"54f3245846074863f555886dcfcfaadf99f47547"},{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"76f58f8ce1b7ad4785421809656b9b408d51a52e","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":7,"id":"3f79a3b5_2e40c25d","line":395,"updated":"2018-11-12 20:09:20.000000000","message":"nitty nit: blank line at end","commit_id":"54f3245846074863f555886dcfcfaadf99f47547"},{"author":{"_account_id":16688,"name":"Rodolfo Alonso","email":"ralonsoh@redhat.com","username":"rodolfo-alonso-hernandez"},"change_message_id":"57880b55fb01c7c000eb05c0203581820394b8eb","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":7,"id":"3f79a3b5_d48e7c7a","line":395,"in_reply_to":"3f79a3b5_2e40c25d","updated":"2018-11-12 20:44:36.000000000","message":"Done","commit_id":"54f3245846074863f555886dcfcfaadf99f47547"}],"releasenotes/notes/add-is-port-bound-to-virtualbridge-5d6db8785e58fcb9.yaml":[{"author":{"_account_id":4187,"name":"Ryan Tidwell","email":"rtidwell@suse.com","username":"ryan-tidwell"},"change_message_id":"2e4475a3a7408e1c2edbd923a6209741f7207aa3","unresolved":false,"context_lines":[{"line_number":2,"context_line":"features:"},{"line_number":3,"context_line":"  - |"},{"line_number":4,"context_line":"    Add ``is_port_bound_to_virtualbridge`` function in ``plugin.utils``."},{"line_number":5,"context_line":"    This function checks if a port VNIC type is \"normal\" and thus can be bound"},{"line_number":6,"context_line":"    to a virtual bridge."}],"source_content_type":"text/x-yaml","patch_set":4,"id":"3f79a3b5_856efe94","line":6,"range":{"start_line":5,"start_character":4,"end_line":6,"end_character":23},"updated":"2018-11-06 17:14:04.000000000","message":"How about \"This function checks if a port VNIC type can be bound to a virtual bridge\" ? VNIC types are an implementation detail, do we need to expose that level of detail here? Again, if we ever added/removed vnic types or changed their behavior in the future it would be annoying to have to update this release note.","commit_id":"41af3fee24123dcdf062b2ae72646d5c935f5688"},{"author":{"_account_id":16688,"name":"Rodolfo Alonso","email":"ralonsoh@redhat.com","username":"rodolfo-alonso-hernandez"},"change_message_id":"f3b7a0cdfaa9880f2a1df2635b928e3acd4725e7","unresolved":false,"context_lines":[{"line_number":2,"context_line":"features:"},{"line_number":3,"context_line":"  - |"},{"line_number":4,"context_line":"    Add ``is_port_bound_to_virtualbridge`` function in ``plugin.utils``."},{"line_number":5,"context_line":"    This function checks if a port VNIC type is \"normal\" and thus can be bound"},{"line_number":6,"context_line":"    to a virtual bridge."}],"source_content_type":"text/x-yaml","patch_set":4,"id":"3f79a3b5_b0f1f698","line":6,"range":{"start_line":5,"start_character":4,"end_line":6,"end_character":23},"in_reply_to":"3f79a3b5_856efe94","updated":"2018-11-06 18:07:12.000000000","message":"Done","commit_id":"41af3fee24123dcdf062b2ae72646d5c935f5688"},{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"550647c6a52c0a94383ec62d41213b9ca0bb36c9","unresolved":false,"context_lines":[{"line_number":1,"context_line":"---"},{"line_number":2,"context_line":"features:"},{"line_number":3,"context_line":"  - |"},{"line_number":4,"context_line":"    Add ``is_port_bound_to_virtualbridge`` function in ``plugin.utils``."},{"line_number":5,"context_line":"    This function checks if a port, depending on the VNIC type, can be bound"},{"line_number":6,"context_line":"    to a virtual bridge."}],"source_content_type":"text/x-yaml","patch_set":5,"id":"3f79a3b5_53b71bd8","line":4,"range":{"start_line":4,"start_character":57,"end_line":4,"end_character":69},"updated":"2018-11-08 16:12:40.000000000","message":"s/neutron_lib.plugins.utils","commit_id":"db224561a9eaf489c734bbce3261e09182217f1c"},{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"76f58f8ce1b7ad4785421809656b9b408d51a52e","unresolved":false,"context_lines":[{"line_number":3,"context_line":"  - |"},{"line_number":4,"context_line":"    Add ``is_port_bound_to_virtual_bridge`` function in"},{"line_number":5,"context_line":"    ``neutron_lib.plugins.utils``. This function checks if a port, depending"},{"line_number":6,"context_line":"    on the VNIC type, can be bound to a virtual bridge."}],"source_content_type":"text/x-yaml","patch_set":7,"id":"3f79a3b5_8e50f62e","line":6,"range":{"start_line":6,"start_character":22,"end_line":6,"end_character":28},"updated":"2018-11-12 20:09:20.000000000","message":"s/is\n\nbased on my comment in code","commit_id":"54f3245846074863f555886dcfcfaadf99f47547"},{"author":{"_account_id":16688,"name":"Rodolfo Alonso","email":"ralonsoh@redhat.com","username":"rodolfo-alonso-hernandez"},"change_message_id":"57880b55fb01c7c000eb05c0203581820394b8eb","unresolved":false,"context_lines":[{"line_number":3,"context_line":"  - |"},{"line_number":4,"context_line":"    Add ``is_port_bound_to_virtual_bridge`` function in"},{"line_number":5,"context_line":"    ``neutron_lib.plugins.utils``. This function checks if a port, depending"},{"line_number":6,"context_line":"    on the VNIC type, can be bound to a virtual bridge."}],"source_content_type":"text/x-yaml","patch_set":7,"id":"3f79a3b5_f48b7867","line":6,"range":{"start_line":6,"start_character":22,"end_line":6,"end_character":28},"in_reply_to":"3f79a3b5_8e50f62e","updated":"2018-11-12 20:44:36.000000000","message":"Done","commit_id":"54f3245846074863f555886dcfcfaadf99f47547"}],"releasenotes/notes/add-is-valid-port-vnic-type-for-fip-in-dvr-5d6db8785e58fcb9.yaml":[{"author":{"_account_id":5367,"name":"boden","email":"bodenvmw@gmail.com","username":"boden"},"change_message_id":"b67db33aabe3cc03e7d0de6699d3bca407e8c18e","unresolved":false,"context_lines":[{"line_number":3,"context_line":"  - |"},{"line_number":4,"context_line":"    Add ``is_valid_port_vnic_type_for_fip_in_dvr`` function in"},{"line_number":5,"context_line":"    ``plugin.utils``. This function checks if a port VNIC type is \"normal\"."},{"line_number":6,"context_line":"    If a floating IP is assigned to a port and the router this port is"},{"line_number":7,"context_line":"    connected is distributed (the router belongs to the same host of the port),"},{"line_number":8,"context_line":"    the VNIC type of the port must be \"normal\". If VNIC type is \"normal\" (e.g.:"},{"line_number":9,"context_line":"    OVS, Linux Bridge), the port traffic can be redirected to the router"},{"line_number":10,"context_line":"    namespace."}],"source_content_type":"text/x-yaml","patch_set":2,"id":"3f79a3b5_98e0c7fb","line":10,"range":{"start_line":6,"start_character":4,"end_line":10,"end_character":14},"updated":"2018-11-05 12:52:06.000000000","message":"While this explanation is nice, it seems a bit too in depth for a release note of this simple function. Maybe this info better belongs in the neutron docs?","commit_id":"fac08651259277df4dfd3660d61e8b2034880437"},{"author":{"_account_id":16688,"name":"Rodolfo Alonso","email":"ralonsoh@redhat.com","username":"rodolfo-alonso-hernandez"},"change_message_id":"9759d09c75e787cbdb32cbc9f0a975e749bfa79c","unresolved":false,"context_lines":[{"line_number":3,"context_line":"  - |"},{"line_number":4,"context_line":"    Add ``is_valid_port_vnic_type_for_fip_in_dvr`` function in"},{"line_number":5,"context_line":"    ``plugin.utils``. This function checks if a port VNIC type is \"normal\"."},{"line_number":6,"context_line":"    If a floating IP is assigned to a port and the router this port is"},{"line_number":7,"context_line":"    connected is distributed (the router belongs to the same host of the port),"},{"line_number":8,"context_line":"    the VNIC type of the port must be \"normal\". If VNIC type is \"normal\" (e.g.:"},{"line_number":9,"context_line":"    OVS, Linux Bridge), the port traffic can be redirected to the router"},{"line_number":10,"context_line":"    namespace."}],"source_content_type":"text/x-yaml","patch_set":2,"id":"3f79a3b5_ec9b3d13","line":10,"range":{"start_line":6,"start_character":4,"end_line":10,"end_character":14},"in_reply_to":"3f79a3b5_98e0c7fb","updated":"2018-11-05 15:44:06.000000000","message":"Done","commit_id":"fac08651259277df4dfd3660d61e8b2034880437"},{"author":{"_account_id":4187,"name":"Ryan Tidwell","email":"rtidwell@suse.com","username":"ryan-tidwell"},"change_message_id":"548d3eca232ee98c93cbaa3836a3fb4c0a5e750f","unresolved":false,"context_lines":[{"line_number":2,"context_line":"features:"},{"line_number":3,"context_line":"  - |"},{"line_number":4,"context_line":"    Add ``is_valid_port_vnic_type_for_fip_in_dvr`` function in"},{"line_number":5,"context_line":"    ``plugin.utils``. This function checks if a port VNIC type is \"normal\"."}],"source_content_type":"text/x-yaml","patch_set":3,"id":"3f79a3b5_e3d6e3f8","line":5,"updated":"2018-11-05 20:48:21.000000000","message":"Nit: we could be a little more vague here and just say that the function checks that the vnic type is one supported by DVR. If this ever changed in the future, it would be annoying to come back and update a release note. As long as the error message presented to the user in the logs or on the API is coherent and descriptive I don\u0027t think we should feel obligated to expose this level of detail in release notes.","commit_id":"a6814924f76b481d3a7aa6be757cc371f52fe4b0"},{"author":{"_account_id":4694,"name":"Miguel Lavalle","email":"miguel@mlavalle.com","username":"minsel"},"change_message_id":"5b7e54cea6624025700a11d3eca79f4fc8e9d683","unresolved":false,"context_lines":[{"line_number":2,"context_line":"features:"},{"line_number":3,"context_line":"  - |"},{"line_number":4,"context_line":"    Add ``is_valid_port_vnic_type_for_fip_in_dvr`` function in"},{"line_number":5,"context_line":"    ``plugin.utils``. This function checks if a port VNIC type is \"normal\"."}],"source_content_type":"text/x-yaml","patch_set":3,"id":"3f79a3b5_249f02f7","line":5,"in_reply_to":"3f79a3b5_e3d6e3f8","updated":"2018-11-05 22:46:25.000000000","message":"I agree with Ryan. Allow me to re-phrase his comment. Instead of vague, we can say that we could be more generic. Please see my comment to https://review.openstack.org/#/c/615126/3/neutron_lib/plugins/utils.py@388","commit_id":"a6814924f76b481d3a7aa6be757cc371f52fe4b0"}]}
