)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"176fd48ee9ef144e0a2bccab51e170e0a55358e9","unresolved":false,"context_lines":[{"line_number":7,"context_line":"Reorder operations in create_vip"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Previously VIP\u0027s port creation was moved outside the transaction"},{"line_number":10,"context_line":"to avoid deadlocks related to rpc calls. "},{"line_number":11,"context_line":"It leaded to small chance of VIP being fetched by rpc code with"},{"line_number":12,"context_line":"port being still None."},{"line_number":13,"context_line":""}],"source_content_type":"text/x-gerrit-commit-message","patch_set":2,"id":"baada198_6c3bb5ea","line":10,"updated":"2014-08-13 15:27:15.000000000","message":"micro-nit","commit_id":"811b8ce4e0f6c73b0ffd8b1d0476937e07fcdbba"},{"author":{"_account_id":6072,"name":"Eugene Nikanorov","email":"enikanorov@mirantis.com","username":"enikanorov"},"change_message_id":"4e73bae1c6cca69eebb11c04ed0a1d2a4f86211a","unresolved":false,"context_lines":[{"line_number":7,"context_line":"Reorder operations in create_vip"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Previously VIP\u0027s port creation was moved outside the transaction"},{"line_number":10,"context_line":"to avoid deadlocks related to rpc calls. "},{"line_number":11,"context_line":"It leaded to small chance of VIP being fetched by rpc code with"},{"line_number":12,"context_line":"port being still None."},{"line_number":13,"context_line":""}],"source_content_type":"text/x-gerrit-commit-message","patch_set":2,"id":"baada198_f0478f50","line":10,"in_reply_to":"baada198_6c3bb5ea","updated":"2014-08-13 17:21:12.000000000","message":"Done","commit_id":"811b8ce4e0f6c73b0ffd8b1d0476937e07fcdbba"},{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"176fd48ee9ef144e0a2bccab51e170e0a55358e9","unresolved":false,"context_lines":[{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Previously VIP\u0027s port creation was moved outside the transaction"},{"line_number":10,"context_line":"to avoid deadlocks related to rpc calls. "},{"line_number":11,"context_line":"It leaded to small chance of VIP being fetched by rpc code with"},{"line_number":12,"context_line":"port being still None."},{"line_number":13,"context_line":""},{"line_number":14,"context_line":"In this patch reorders VIP association with the pool so it\u0027s done"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":2,"id":"baada198_cc29219e","line":11,"updated":"2014-08-13 15:27:15.000000000","message":"it led","commit_id":"811b8ce4e0f6c73b0ffd8b1d0476937e07fcdbba"},{"author":{"_account_id":6072,"name":"Eugene Nikanorov","email":"enikanorov@mirantis.com","username":"enikanorov"},"change_message_id":"4e73bae1c6cca69eebb11c04ed0a1d2a4f86211a","unresolved":false,"context_lines":[{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Previously VIP\u0027s port creation was moved outside the transaction"},{"line_number":10,"context_line":"to avoid deadlocks related to rpc calls. "},{"line_number":11,"context_line":"It leaded to small chance of VIP being fetched by rpc code with"},{"line_number":12,"context_line":"port being still None."},{"line_number":13,"context_line":""},{"line_number":14,"context_line":"In this patch reorders VIP association with the pool so it\u0027s done"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":2,"id":"baada198_50575b01","line":11,"in_reply_to":"baada198_cc29219e","updated":"2014-08-13 17:21:12.000000000","message":"Done","commit_id":"811b8ce4e0f6c73b0ffd8b1d0476937e07fcdbba"},{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"176fd48ee9ef144e0a2bccab51e170e0a55358e9","unresolved":false,"context_lines":[{"line_number":11,"context_line":"It leaded to small chance of VIP being fetched by rpc code with"},{"line_number":12,"context_line":"port being still None."},{"line_number":13,"context_line":""},{"line_number":14,"context_line":"In this patch reorders VIP association with the pool so it\u0027s done"},{"line_number":15,"context_line":"only after port has been created."},{"line_number":16,"context_line":""},{"line_number":17,"context_line":"This patch also leaves small possibility of uncaught exception in"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":2,"id":"baada198_6c12d562","line":14,"updated":"2014-08-13 15:27:15.000000000","message":"This patch","commit_id":"811b8ce4e0f6c73b0ffd8b1d0476937e07fcdbba"},{"author":{"_account_id":6072,"name":"Eugene Nikanorov","email":"enikanorov@mirantis.com","username":"enikanorov"},"change_message_id":"4e73bae1c6cca69eebb11c04ed0a1d2a4f86211a","unresolved":false,"context_lines":[{"line_number":11,"context_line":"It leaded to small chance of VIP being fetched by rpc code with"},{"line_number":12,"context_line":"port being still None."},{"line_number":13,"context_line":""},{"line_number":14,"context_line":"In this patch reorders VIP association with the pool so it\u0027s done"},{"line_number":15,"context_line":"only after port has been created."},{"line_number":16,"context_line":""},{"line_number":17,"context_line":"This patch also leaves small possibility of uncaught exception in"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":2,"id":"baada198_703b7fc9","line":14,"in_reply_to":"baada198_6c12d562","updated":"2014-08-13 17:21:12.000000000","message":"Done","commit_id":"811b8ce4e0f6c73b0ffd8b1d0476937e07fcdbba"}],"neutron/db/loadbalancer/loadbalancer_db.py":[{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"176fd48ee9ef144e0a2bccab51e170e0a55358e9","unresolved":false,"context_lines":[{"line_number":385,"context_line":"                context.session.delete(vip_db)"},{"line_number":386,"context_line":"                context.session.flush()"},{"line_number":387,"context_line":""},{"line_number":388,"context_line":"        if v[\u0027pool_id\u0027]:"},{"line_number":389,"context_line":"            pool \u003d self._get_resource(context, Pool, v[\u0027pool_id\u0027])"},{"line_number":390,"context_line":"            # validate that the pool has same tenant"},{"line_number":391,"context_line":"            if pool[\u0027tenant_id\u0027] !\u003d tenant_id:"}],"source_content_type":"text/x-python","patch_set":2,"id":"baada198_0f594b00","line":388,"updated":"2014-08-13 15:27:15.000000000","message":"Would it help if we wrapped this block into a new with statement?","commit_id":"811b8ce4e0f6c73b0ffd8b1d0476937e07fcdbba"},{"author":{"_account_id":6072,"name":"Eugene Nikanorov","email":"enikanorov@mirantis.com","username":"enikanorov"},"change_message_id":"4e73bae1c6cca69eebb11c04ed0a1d2a4f86211a","unresolved":false,"context_lines":[{"line_number":385,"context_line":"                context.session.delete(vip_db)"},{"line_number":386,"context_line":"                context.session.flush()"},{"line_number":387,"context_line":""},{"line_number":388,"context_line":"        if v[\u0027pool_id\u0027]:"},{"line_number":389,"context_line":"            pool \u003d self._get_resource(context, Pool, v[\u0027pool_id\u0027])"},{"line_number":390,"context_line":"            # validate that the pool has same tenant"},{"line_number":391,"context_line":"            if pool[\u0027tenant_id\u0027] !\u003d tenant_id:"}],"source_content_type":"text/x-python","patch_set":2,"id":"baada198_d02b6b7a","line":388,"in_reply_to":"baada198_0f594b00","updated":"2014-08-13 17:21:12.000000000","message":"I thought about it, but apparently if we\u0027re doing _core_plugin.delete_port() then it would be wrapping rpc calls with transaction","commit_id":"811b8ce4e0f6c73b0ffd8b1d0476937e07fcdbba"},{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"176fd48ee9ef144e0a2bccab51e170e0a55358e9","unresolved":false,"context_lines":[{"line_number":406,"context_line":"                                                id\u003dpool[\u0027id\u0027])"},{"line_number":407,"context_line":"            vip_db[\u0027pool_id\u0027] \u003d v[\u0027pool_id\u0027]"},{"line_number":408,"context_line":"            pool[\u0027vip_id\u0027] \u003d vip_db[\u0027id\u0027]"},{"line_number":409,"context_line":"            #explicitly flush changes as we\u0027re outside any transaction"},{"line_number":410,"context_line":"            context.session.flush()"},{"line_number":411,"context_line":""},{"line_number":412,"context_line":"        return self._make_vip_dict(vip_db)"}],"source_content_type":"text/x-python","patch_set":2,"id":"baada198_8f455b18","line":409,"updated":"2014-08-13 15:27:15.000000000","message":"customary to add a space between # and test","commit_id":"811b8ce4e0f6c73b0ffd8b1d0476937e07fcdbba"},{"author":{"_account_id":6072,"name":"Eugene Nikanorov","email":"enikanorov@mirantis.com","username":"enikanorov"},"change_message_id":"4e73bae1c6cca69eebb11c04ed0a1d2a4f86211a","unresolved":false,"context_lines":[{"line_number":406,"context_line":"                                                id\u003dpool[\u0027id\u0027])"},{"line_number":407,"context_line":"            vip_db[\u0027pool_id\u0027] \u003d v[\u0027pool_id\u0027]"},{"line_number":408,"context_line":"            pool[\u0027vip_id\u0027] \u003d vip_db[\u0027id\u0027]"},{"line_number":409,"context_line":"            #explicitly flush changes as we\u0027re outside any transaction"},{"line_number":410,"context_line":"            context.session.flush()"},{"line_number":411,"context_line":""},{"line_number":412,"context_line":"        return self._make_vip_dict(vip_db)"}],"source_content_type":"text/x-python","patch_set":2,"id":"baada198_d0144b43","line":409,"in_reply_to":"baada198_8f455b18","updated":"2014-08-13 17:21:12.000000000","message":"Done","commit_id":"811b8ce4e0f6c73b0ffd8b1d0476937e07fcdbba"},{"author":{"_account_id":10980,"name":"Doug Wiegley","email":"dougwig@parkside.io","username":"dougw"},"change_message_id":"fabb6e4b487003c15c36e958c835749b1640f75a","unresolved":false,"context_lines":[{"line_number":408,"context_line":"            pool[\u0027vip_id\u0027] \u003d vip_db[\u0027id\u0027]"},{"line_number":409,"context_line":"            # explicitly flush changes as we\u0027re outside any transaction"},{"line_number":410,"context_line":"            context.session.flush()"},{"line_number":411,"context_line":""},{"line_number":412,"context_line":"        return self._make_vip_dict(vip_db)"},{"line_number":413,"context_line":""},{"line_number":414,"context_line":"    def update_vip(self, context, id, vip):"}],"source_content_type":"text/x-python","patch_set":3,"id":"7ac7a964_9e76683d","line":411,"updated":"2014-08-15 02:09:22.000000000","message":"My comment got eaten.  If I\u0027m reading this right, we create the port BEFORE we do the tenant security checks, and then undo it (outside a transaction, no less.)  So if it shouldn\u0027t be there, it is, for a small window of time.  Can we instead do the security checks above as before, and just do the assignment here?","commit_id":"aa3868a039b9d627f362f0d973af2f3244ddcd08"},{"author":{"_account_id":6072,"name":"Eugene Nikanorov","email":"enikanorov@mirantis.com","username":"enikanorov"},"change_message_id":"14ea4d0e3a2056f0ff0cbc77f0ec0bd79e332378","unresolved":false,"context_lines":[{"line_number":408,"context_line":"            pool[\u0027vip_id\u0027] \u003d vip_db[\u0027id\u0027]"},{"line_number":409,"context_line":"            # explicitly flush changes as we\u0027re outside any transaction"},{"line_number":410,"context_line":"            context.session.flush()"},{"line_number":411,"context_line":""},{"line_number":412,"context_line":"        return self._make_vip_dict(vip_db)"},{"line_number":413,"context_line":""},{"line_number":414,"context_line":"    def update_vip(self, context, id, vip):"}],"source_content_type":"text/x-python","patch_set":3,"id":"1abeadc6_c9811791","line":411,"in_reply_to":"7ac7a964_9e76683d","updated":"2014-08-19 01:39:21.000000000","message":"Done","commit_id":"aa3868a039b9d627f362f0d973af2f3244ddcd08"}]}
