)]}'
{"neutron/privileged/agent/linux/tc_lib.py":[{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"ced19b72fad84b930e7f5b41fcfe69e2a8573edb","unresolved":false,"context_lines":[{"line_number":118,"context_line":"                           **kwargs):"},{"line_number":119,"context_line":"    \"\"\"Delete TC policy class\"\"\""},{"line_number":120,"context_line":"    try:"},{"line_number":121,"context_line":"        index \u003d ip_lib.get_link_id(device, namespace)"},{"line_number":122,"context_line":"        with ip_lib.get_iproute(namespace) as ip:"},{"line_number":123,"context_line":"            ip.tc(\u0027del-class\u0027, index\u003dindex, handle\u003dclassid, parent\u003dparent,"},{"line_number":124,"context_line":"                  **kwargs)"}],"source_content_type":"text/x-python","patch_set":9,"id":"9fdfeff1_4dd2112a","line":121,"updated":"2019-02-01 11:37:10.000000000","message":"what if device will not be found? Should we handle such error somehow?","commit_id":"3dc6a5edee028dd2b756fd3be4a895bae726ac63"},{"author":{"_account_id":16688,"name":"Rodolfo Alonso","email":"ralonsoh@redhat.com","username":"rodolfo-alonso-hernandez"},"change_message_id":"6601a1d8b98a4fde74f4f0d7f4d4f7d856124933","unresolved":false,"context_lines":[{"line_number":118,"context_line":"                           **kwargs):"},{"line_number":119,"context_line":"    \"\"\"Delete TC policy class\"\"\""},{"line_number":120,"context_line":"    try:"},{"line_number":121,"context_line":"        index \u003d ip_lib.get_link_id(device, namespace)"},{"line_number":122,"context_line":"        with ip_lib.get_iproute(namespace) as ip:"},{"line_number":123,"context_line":"            ip.tc(\u0027del-class\u0027, index\u003dindex, handle\u003dclassid, parent\u003dparent,"},{"line_number":124,"context_line":"                  **kwargs)"}],"source_content_type":"text/x-python","patch_set":9,"id":"9fdfeff1_ad9a9d5e","line":121,"in_reply_to":"9fdfeff1_4dd2112a","updated":"2019-02-01 12:07:45.000000000","message":"This is handled in https://review.openstack.org/#/c/622859/20/neutron/privileged/agent/linux/ip_lib.py@187\n\nIf the device is not found:\n  raise NetworkInterfaceNotFound(device\u003ddevice, namespace\u003dnamespace)","commit_id":"3dc6a5edee028dd2b756fd3be4a895bae726ac63"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"ced19b72fad84b930e7f5b41fcfe69e2a8573edb","unresolved":false,"context_lines":[{"line_number":121,"context_line":"        index \u003d ip_lib.get_link_id(device, namespace)"},{"line_number":122,"context_line":"        with ip_lib.get_iproute(namespace) as ip:"},{"line_number":123,"context_line":"            ip.tc(\u0027del-class\u0027, index\u003dindex, handle\u003dclassid, parent\u003dparent,"},{"line_number":124,"context_line":"                  **kwargs)"},{"line_number":125,"context_line":"    except OSError as e:"},{"line_number":126,"context_line":"        if e.errno \u003d\u003d errno.ENOENT:"},{"line_number":127,"context_line":"            raise ip_lib.NetworkNamespaceNotFound(netns_name\u003dnamespace)"}],"source_content_type":"text/x-python","patch_set":9,"id":"9fdfeff1_adb7fdf4","line":124,"updated":"2019-02-01 11:37:10.000000000","message":"what exception it will raise if class will not be found? Shouldn\u0027t You catch it here also?","commit_id":"3dc6a5edee028dd2b756fd3be4a895bae726ac63"},{"author":{"_account_id":16688,"name":"Rodolfo Alonso","email":"ralonsoh@redhat.com","username":"rodolfo-alonso-hernandez"},"change_message_id":"6601a1d8b98a4fde74f4f0d7f4d4f7d856124933","unresolved":false,"context_lines":[{"line_number":121,"context_line":"        index \u003d ip_lib.get_link_id(device, namespace)"},{"line_number":122,"context_line":"        with ip_lib.get_iproute(namespace) as ip:"},{"line_number":123,"context_line":"            ip.tc(\u0027del-class\u0027, index\u003dindex, handle\u003dclassid, parent\u003dparent,"},{"line_number":124,"context_line":"                  **kwargs)"},{"line_number":125,"context_line":"    except OSError as e:"},{"line_number":126,"context_line":"        if e.errno \u003d\u003d errno.ENOENT:"},{"line_number":127,"context_line":"            raise ip_lib.NetworkNamespaceNotFound(netns_name\u003dnamespace)"}],"source_content_type":"text/x-python","patch_set":9,"id":"9fdfeff1_cd65a11f","line":124,"in_reply_to":"9fdfeff1_adb7fdf4","updated":"2019-02-01 12:07:45.000000000","message":"Done","commit_id":"3dc6a5edee028dd2b756fd3be4a895bae726ac63"},{"author":{"_account_id":25618,"name":"Paweł Suder","email":"pawel@suder.info","username":"SuderPawel"},"change_message_id":"25d8dcf58449d3e7806f49cacdf7c1eca891d20f","unresolved":false,"context_lines":[{"line_number":133,"context_line":"        with ip_lib.get_iproute(namespace) as ip:"},{"line_number":134,"context_line":"            ip.tc(\u0027del-class\u0027, index\u003dindex, handle\u003dclassid, parent\u003dparent,"},{"line_number":135,"context_line":"                  **kwargs)"},{"line_number":136,"context_line":"    except OSError as e:"},{"line_number":137,"context_line":"        if e.errno \u003d\u003d errno.ENOENT:"},{"line_number":138,"context_line":"            raise ip_lib.NetworkNamespaceNotFound(netns_name\u003dnamespace)"},{"line_number":139,"context_line":"        raise"},{"line_number":140,"context_line":"    except pyroute2.NetlinkError as e:"},{"line_number":141,"context_line":"        if e.code \u003d\u003d errno.ENOENT:"},{"line_number":142,"context_line":"            raise TrafficControlClassNotFound(classid\u003dclassid,"}],"source_content_type":"text/x-python","patch_set":10,"id":"9fdfeff1_039fb5b4","line":139,"range":{"start_line":136,"start_character":0,"end_line":139,"end_character":13},"updated":"2019-02-06 13:32:46.000000000","message":"This could be moved below except.NetlinkError.\n\nIt would be similar to ip_lib._run_iproute_link or ip_lib._run_iproute_neigh\n\n    try:\n        with _get_iproute(namespace) as ip:\n            pass\n    except NetlinkError as e:\n        _translate_ip_device_exception(e, device, namespace)\n        raise\n    except OSError as e:\n        if e.errno \u003d\u003d errno.ENOENT:\n            raise NetworkNamespaceNotFound(netns_name\u003dnamespace)\n        raise","commit_id":"e54722bb6e8d8e12881af105c52c2d429c64e5c8"},{"author":{"_account_id":16688,"name":"Rodolfo Alonso","email":"ralonsoh@redhat.com","username":"rodolfo-alonso-hernandez"},"change_message_id":"e8f8a62efb28f4856869470054f71fded2df8096","unresolved":false,"context_lines":[{"line_number":133,"context_line":"        with ip_lib.get_iproute(namespace) as ip:"},{"line_number":134,"context_line":"            ip.tc(\u0027del-class\u0027, index\u003dindex, handle\u003dclassid, parent\u003dparent,"},{"line_number":135,"context_line":"                  **kwargs)"},{"line_number":136,"context_line":"    except OSError as e:"},{"line_number":137,"context_line":"        if e.errno \u003d\u003d errno.ENOENT:"},{"line_number":138,"context_line":"            raise ip_lib.NetworkNamespaceNotFound(netns_name\u003dnamespace)"},{"line_number":139,"context_line":"        raise"},{"line_number":140,"context_line":"    except pyroute2.NetlinkError as e:"},{"line_number":141,"context_line":"        if e.code \u003d\u003d errno.ENOENT:"},{"line_number":142,"context_line":"            raise TrafficControlClassNotFound(classid\u003dclassid,"}],"source_content_type":"text/x-python","patch_set":10,"id":"9fdfeff1_463b819b","line":139,"range":{"start_line":136,"start_character":0,"end_line":139,"end_character":13},"in_reply_to":"9fdfeff1_039fb5b4","updated":"2019-02-06 21:19:15.000000000","message":"Done","commit_id":"e54722bb6e8d8e12881af105c52c2d429c64e5c8"},{"author":{"_account_id":16688,"name":"Rodolfo Alonso","email":"ralonsoh@redhat.com","username":"rodolfo-alonso-hernandez"},"change_message_id":"18233a33ff55576030f296968ed97f8aa045e1d1","unresolved":false,"context_lines":[{"line_number":133,"context_line":"        with ip_lib.get_iproute(namespace) as ip:"},{"line_number":134,"context_line":"            ip.tc(\u0027del-class\u0027, index\u003dindex, handle\u003dclassid, parent\u003dparent,"},{"line_number":135,"context_line":"                  **kwargs)"},{"line_number":136,"context_line":"    except OSError as e:"},{"line_number":137,"context_line":"        if e.errno \u003d\u003d errno.ENOENT:"},{"line_number":138,"context_line":"            raise ip_lib.NetworkNamespaceNotFound(netns_name\u003dnamespace)"},{"line_number":139,"context_line":"        raise"},{"line_number":140,"context_line":"    except pyroute2.NetlinkError as e:"},{"line_number":141,"context_line":"        if e.code \u003d\u003d errno.ENOENT:"},{"line_number":142,"context_line":"            raise TrafficControlClassNotFound(classid\u003dclassid,"}],"source_content_type":"text/x-python","patch_set":10,"id":"9fdfeff1_70242eb0","line":139,"range":{"start_line":136,"start_character":0,"end_line":139,"end_character":13},"in_reply_to":"9fdfeff1_463b819b","updated":"2019-02-07 11:27:28.000000000","message":"Actually I shouldn\u0027t. The exception raised (TrafficControlClassNotFound) is specific for this function and not used in any other one, but the NetlinkError code NOENT could be returned in other cases. There is no benefit in creating a wrapper for this code which is not going to be used anywhere else.","commit_id":"e54722bb6e8d8e12881af105c52c2d429c64e5c8"},{"author":{"_account_id":16688,"name":"Rodolfo Alonso","email":"ralonsoh@redhat.com","username":"rodolfo-alonso-hernandez"},"change_message_id":"715c8e933a8832124e277449644861d5904ef13b","unresolved":false,"context_lines":[{"line_number":133,"context_line":"        with ip_lib.get_iproute(namespace) as ip:"},{"line_number":134,"context_line":"            ip.tc(\u0027del-class\u0027, index\u003dindex, handle\u003dclassid, parent\u003dparent,"},{"line_number":135,"context_line":"                  **kwargs)"},{"line_number":136,"context_line":"    except OSError as e:"},{"line_number":137,"context_line":"        if e.errno \u003d\u003d errno.ENOENT:"},{"line_number":138,"context_line":"            raise ip_lib.NetworkNamespaceNotFound(netns_name\u003dnamespace)"},{"line_number":139,"context_line":"        raise"},{"line_number":140,"context_line":"    except pyroute2.NetlinkError as e:"},{"line_number":141,"context_line":"        if e.code \u003d\u003d errno.ENOENT:"},{"line_number":142,"context_line":"            raise TrafficControlClassNotFound(classid\u003dclassid,"}],"source_content_type":"text/x-python","patch_set":10,"id":"9fdfeff1_8178332b","line":139,"range":{"start_line":136,"start_character":0,"end_line":139,"end_character":13},"in_reply_to":"9fdfeff1_50456514","updated":"2019-02-11 17:12:59.000000000","message":"What I mean is that in this function we are wrapping pyroute2.NetlinkError.ENOENT as exception TrafficControlClassNotFound. This exception is only raised here.\n\nThe order of those exceptions is not relevant because both are different, OSError and pyroute2.NetlinkError.","commit_id":"e54722bb6e8d8e12881af105c52c2d429c64e5c8"},{"author":{"_account_id":25618,"name":"Paweł Suder","email":"pawel@suder.info","username":"SuderPawel"},"change_message_id":"119af2b5a7f11803cf36d7c54467d1d310e98a69","unresolved":false,"context_lines":[{"line_number":133,"context_line":"        with ip_lib.get_iproute(namespace) as ip:"},{"line_number":134,"context_line":"            ip.tc(\u0027del-class\u0027, index\u003dindex, handle\u003dclassid, parent\u003dparent,"},{"line_number":135,"context_line":"                  **kwargs)"},{"line_number":136,"context_line":"    except OSError as e:"},{"line_number":137,"context_line":"        if e.errno \u003d\u003d errno.ENOENT:"},{"line_number":138,"context_line":"            raise ip_lib.NetworkNamespaceNotFound(netns_name\u003dnamespace)"},{"line_number":139,"context_line":"        raise"},{"line_number":140,"context_line":"    except pyroute2.NetlinkError as e:"},{"line_number":141,"context_line":"        if e.code \u003d\u003d errno.ENOENT:"},{"line_number":142,"context_line":"            raise TrafficControlClassNotFound(classid\u003dclassid,"}],"source_content_type":"text/x-python","patch_set":10,"id":"9fdfeff1_50456514","line":139,"range":{"start_line":136,"start_character":0,"end_line":139,"end_character":13},"in_reply_to":"9fdfeff1_70242eb0","updated":"2019-02-07 15:54:22.000000000","message":"It means that order of expected exceptions is correct. M\u0027right?","commit_id":"e54722bb6e8d8e12881af105c52c2d429c64e5c8"}]}
