)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"f75311fde1958ef61bfa638f4c68c6fa48834122","unresolved":false,"context_lines":[{"line_number":6,"context_line":""},{"line_number":7,"context_line":"NVP plugin: Do backend router delete out from db transaction"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Performing the NVP API operation from withing a DB transaction"},{"line_number":10,"context_line":"increases the risk of a deadlock between sqlalchemy and eventlet."},{"line_number":11,"context_line":""},{"line_number":12,"context_line":"With this patch, the operation is moved outside of the db transaction"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"AAAATn%2F9ZD8%3D","line":9,"updated":"2013-12-11 23:53:27.000000000","message":"nit: within\n\nI probably would have missed it, but I saw Aaron\u0027s comment :)","commit_id":"651472cdc5a54b1cf9736c43cd40196472b38147"},{"author":{"_account_id":4395,"name":"Aaron Rosen","email":"aaronorosen@gmail.com","username":"arosen"},"change_message_id":"9a104f92283c1dc9fc2f9594ac4da1d2d05bb845","unresolved":false,"context_lines":[{"line_number":12,"context_line":"With this patch, the operation is moved outside of the db transaction"},{"line_number":13,"context_line":"and appropriate mechanism are put in place for:"},{"line_number":14,"context_line":"i) ensuring neutron db consistency in case of NVP failures"},{"line_number":15,"context_line":"ii) avoiding deleteing from backend if neutron logic does not allow it"},{"line_number":16,"context_line":""},{"line_number":17,"context_line":"This patch also synchronizes the routine for removing a router"},{"line_number":18,"context_line":"gateway port from NVP."}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"AAAATn%2F9ZHE%3D","line":15,"updated":"2013-12-11 23:44:25.000000000","message":"deleting","commit_id":"651472cdc5a54b1cf9736c43cd40196472b38147"},{"author":{"_account_id":261,"name":"Salvatore Orlando","email":"salv.orlando@gmail.com","username":"salvatore-orlando"},"change_message_id":"5c6afc7731101f1d5558015058c05e51d92db38a","unresolved":false,"context_lines":[{"line_number":15,"context_line":"ii) avoiding deleteing from backend if neutron logic does not allow it"},{"line_number":16,"context_line":""},{"line_number":17,"context_line":"This patch also synchronizes the routine for removing a router"},{"line_number":18,"context_line":"gateway port from NVP."},{"line_number":19,"context_line":""},{"line_number":20,"context_line":"Change-Id: I58d156e303e7a56ceb8c62766c192e154b0a3bb4"},{"line_number":21,"context_line":"Closes-Bug: #1258150"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"AAAATn%2F9UPg%3D","line":18,"updated":"2013-12-12 18:12:23.000000000","message":"nobody noticed that I forgot to add the synchronized statement :)","commit_id":"651472cdc5a54b1cf9736c43cd40196472b38147"}],"neutron/plugins/nicira/NeutronPlugin.py":[{"author":{"_account_id":1653,"name":"garyk","email":"gkotton@vmware.com","username":"garyk"},"change_message_id":"91d8426bcf63e41f2c7f4cd193b4c4797e81ef80","unresolved":false,"context_lines":[{"line_number":1562,"context_line":"            # TODO(salv-orlando): split pre-delete checks and actual"},{"line_number":1563,"context_line":"            # deletion in superclass."},{"line_number":1564,"context_line":""},{"line_number":1565,"context_line":"            # Ensure that the router is not used"},{"line_number":1566,"context_line":"            fips \u003d self.get_floatingips_count("},{"line_number":1567,"context_line":"                context.elevated(), filters\u003d{\u0027router_id\u0027: [router_id]})"},{"line_number":1568,"context_line":"            if fips:"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAATn%2F9XnM%3D","line":1565,"updated":"2013-12-12 06:31:16.000000000","message":"is there any reason that lines 1565-1576 should be in the db transaction?","commit_id":"651472cdc5a54b1cf9736c43cd40196472b38147"},{"author":{"_account_id":261,"name":"Salvatore Orlando","email":"salv.orlando@gmail.com","username":"salvatore-orlando"},"change_message_id":"5c6afc7731101f1d5558015058c05e51d92db38a","unresolved":false,"context_lines":[{"line_number":1562,"context_line":"            # TODO(salv-orlando): split pre-delete checks and actual"},{"line_number":1563,"context_line":"            # deletion in superclass."},{"line_number":1564,"context_line":""},{"line_number":1565,"context_line":"            # Ensure that the router is not used"},{"line_number":1566,"context_line":"            fips \u003d self.get_floatingips_count("},{"line_number":1567,"context_line":"                context.elevated(), filters\u003d{\u0027router_id\u0027: [router_id]})"},{"line_number":1568,"context_line":"            if fips:"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAATn%2F9URM%3D","line":1565,"in_reply_to":"AAAATn%2F9XnM%3D","updated":"2013-12-12 18:12:23.000000000","message":"I reckon isolation would be the only reason, in order to avoid interferences from other transactions.\n\nStrictly speaking, this is cut\u0026paste from the base class.","commit_id":"651472cdc5a54b1cf9736c43cd40196472b38147"},{"author":{"_account_id":4395,"name":"Aaron Rosen","email":"aaronorosen@gmail.com","username":"arosen"},"change_message_id":"9a104f92283c1dc9fc2f9594ac4da1d2d05bb845","unresolved":false,"context_lines":[{"line_number":1591,"context_line":"        # Perform the actual delete on the Neutron DB"},{"line_number":1592,"context_line":"        try:"},{"line_number":1593,"context_line":"            super(NvpPluginV2, self).delete_router(context, router_id)"},{"line_number":1594,"context_line":"        except Exception:"},{"line_number":1595,"context_line":"            # NOTE(salv-orlando): Broad cacthing as the following action"},{"line_number":1596,"context_line":"            # needs to be performed for every exception."},{"line_number":1597,"context_line":"            # Put the router in ERROR status"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAATn%2F9ZFw%3D","line":1594,"updated":"2013-12-11 23:44:25.000000000","message":"I\u0027m not really a fan of the board exception but i think it\u0027s okay for now. We should definitely add a LOG.exception() below though to help us figure out why the failure in the base class occurred.","commit_id":"651472cdc5a54b1cf9736c43cd40196472b38147"},{"author":{"_account_id":261,"name":"Salvatore Orlando","email":"salv.orlando@gmail.com","username":"salvatore-orlando"},"change_message_id":"5c6afc7731101f1d5558015058c05e51d92db38a","unresolved":false,"context_lines":[{"line_number":1591,"context_line":"        # Perform the actual delete on the Neutron DB"},{"line_number":1592,"context_line":"        try:"},{"line_number":1593,"context_line":"            super(NvpPluginV2, self).delete_router(context, router_id)"},{"line_number":1594,"context_line":"        except Exception:"},{"line_number":1595,"context_line":"            # NOTE(salv-orlando): Broad cacthing as the following action"},{"line_number":1596,"context_line":"            # needs to be performed for every exception."},{"line_number":1597,"context_line":"            # Put the router in ERROR status"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAATn%2F9UQE%3D","line":1594,"in_reply_to":"AAAATn%2F9ZFw%3D","updated":"2013-12-12 18:12:23.000000000","message":"sounds good to me.\ndelete_router actually can trigger a broad range of exceptions.\nI believe there is keyerror, and the both neutron and sqlalchemy exceptions.\n\nRestricting the field is possible, but in any case there should be no exception for which the router should then not be put in error; indeed we now have deleted it from nvp so if the db operation fails, the router is just a zombie db entry. Hence the reason for the broad catching.","commit_id":"651472cdc5a54b1cf9736c43cd40196472b38147"},{"author":{"_account_id":4395,"name":"Aaron Rosen","email":"aaronorosen@gmail.com","username":"arosen"},"change_message_id":"9a104f92283c1dc9fc2f9594ac4da1d2d05bb845","unresolved":false,"context_lines":[{"line_number":1592,"context_line":"        try:"},{"line_number":1593,"context_line":"            super(NvpPluginV2, self).delete_router(context, router_id)"},{"line_number":1594,"context_line":"        except Exception:"},{"line_number":1595,"context_line":"            # NOTE(salv-orlando): Broad cacthing as the following action"},{"line_number":1596,"context_line":"            # needs to be performed for every exception."},{"line_number":1597,"context_line":"            # Put the router in ERROR status"},{"line_number":1598,"context_line":"            with context.session.begin(subtransactions\u003dTrue):"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAATn%2F9ZGQ%3D","line":1595,"updated":"2013-12-11 23:44:25.000000000","message":"catching","commit_id":"651472cdc5a54b1cf9736c43cd40196472b38147"},{"author":{"_account_id":4395,"name":"Aaron Rosen","email":"aaronorosen@gmail.com","username":"arosen"},"change_message_id":"28e38401c1224685fb9d2b9d45a2d7c4bf69f132","unresolved":false,"context_lines":[{"line_number":1592,"context_line":"        try:"},{"line_number":1593,"context_line":"            super(NvpPluginV2, self).delete_router(context, router_id)"},{"line_number":1594,"context_line":"        except Exception:"},{"line_number":1595,"context_line":"            # NOTE(salv-orlando): Broad cacthing as the following action"},{"line_number":1596,"context_line":"            # needs to be performed for every exception."},{"line_number":1597,"context_line":"            # Put the router in ERROR status"},{"line_number":1598,"context_line":"            with context.session.begin(subtransactions\u003dTrue):"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAATn%2F9UCE%3D","line":1595,"in_reply_to":"AAAATn%2F9UPw%3D","updated":"2013-12-12 18:47:14.000000000","message":":)","commit_id":"651472cdc5a54b1cf9736c43cd40196472b38147"},{"author":{"_account_id":261,"name":"Salvatore Orlando","email":"salv.orlando@gmail.com","username":"salvatore-orlando"},"change_message_id":"5c6afc7731101f1d5558015058c05e51d92db38a","unresolved":false,"context_lines":[{"line_number":1592,"context_line":"        try:"},{"line_number":1593,"context_line":"            super(NvpPluginV2, self).delete_router(context, router_id)"},{"line_number":1594,"context_line":"        except Exception:"},{"line_number":1595,"context_line":"            # NOTE(salv-orlando): Broad cacthing as the following action"},{"line_number":1596,"context_line":"            # needs to be performed for every exception."},{"line_number":1597,"context_line":"            # Put the router in ERROR status"},{"line_number":1598,"context_line":"            with context.session.begin(subtransactions\u003dTrue):"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAATn%2F9UPw%3D","line":1595,"in_reply_to":"AAAATn%2F9ZGQ%3D","updated":"2013-12-12 18:12:23.000000000","message":"I\u0027m doing this kind of error more and more often.\nIt\u0027s porbably tmie to see a dotcor.","commit_id":"651472cdc5a54b1cf9736c43cd40196472b38147"},{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"235dad51851d1ae95262a9d334abea9b0aaffbb8","unresolved":false,"context_lines":[{"line_number":1597,"context_line":"            # NOTE(salv-orlando): Broad catching as the following action"},{"line_number":1598,"context_line":"            # needs to be performed for every exception."},{"line_number":1599,"context_line":"            # Put the router in ERROR status"},{"line_number":1600,"context_line":"            LOG.exception(_(\"Failure while removing router:%s from database.\""},{"line_number":1601,"context_line":"                            \"The router will be put in ERROR status\"),"},{"line_number":1602,"context_line":"                          router_id)"},{"line_number":1603,"context_line":"            with context.session.begin(subtransactions\u003dTrue):"}],"source_content_type":"text/x-python","patch_set":2,"id":"AAAATn%2F9Qsg%3D","line":1600,"updated":"2013-12-13 11:43:02.000000000","message":"Add a space on the end of the line.  Should the log show the exception details as well?","commit_id":"9221571373dd5a8011df6af4ee5a90f8c885deb6"},{"author":{"_account_id":261,"name":"Salvatore Orlando","email":"salv.orlando@gmail.com","username":"salvatore-orlando"},"change_message_id":"01e0ff986051f420095899e0cc6434879cf6e263","unresolved":false,"context_lines":[{"line_number":1597,"context_line":"            # NOTE(salv-orlando): Broad catching as the following action"},{"line_number":1598,"context_line":"            # needs to be performed for every exception."},{"line_number":1599,"context_line":"            # Put the router in ERROR status"},{"line_number":1600,"context_line":"            LOG.exception(_(\"Failure while removing router:%s from database.\""},{"line_number":1601,"context_line":"                            \"The router will be put in ERROR status\"),"},{"line_number":1602,"context_line":"                          router_id)"},{"line_number":1603,"context_line":"            with context.session.begin(subtransactions\u003dTrue):"}],"source_content_type":"text/x-python","patch_set":2,"id":"AAAATn%2F9Qk4%3D","line":1600,"in_reply_to":"AAAATn%2F9Qsg%3D","updated":"2013-12-13 12:04:19.000000000","message":"log.exception always prints the traceback too. I will add the space.","commit_id":"9221571373dd5a8011df6af4ee5a90f8c885deb6"}]}
