)]}'
{"neutron/db/migration/alembic_migrations/versions/1bf7555fa01a_gpm_rmd_1.py":[{"author":{"_account_id":7249,"name":"Ann Taraday","email":"akamyshnikova@mirantis.com","username":"AKamyshnikova"},"change_message_id":"ba6d12493d48c9c2ca77248b97543b247a3cb017","unresolved":false,"context_lines":[{"line_number":29,"context_line":""},{"line_number":30,"context_line":"migration_for_plugins \u003d ["},{"line_number":31,"context_line":"    \u0027*\u0027"},{"line_number":32,"context_line":"]"},{"line_number":33,"context_line":""},{"line_number":34,"context_line":"from alembic import op"},{"line_number":35,"context_line":"import sqlalchemy as sa"}],"source_content_type":"text/x-python","patch_set":9,"id":"1abeadc6_7a6ddf98","line":32,"updated":"2014-08-27 12:18:13.000000000","message":"Remove all lines about conditions in migration.","commit_id":"a3b8bad6fd23eaf21c693f53a60cd0c2d2f54b62"},{"author":{"_account_id":7249,"name":"Ann Taraday","email":"akamyshnikova@mirantis.com","username":"AKamyshnikova"},"change_message_id":"ba6d12493d48c9c2ca77248b97543b247a3cb017","unresolved":false,"context_lines":[{"line_number":39,"context_line":""},{"line_number":40,"context_line":"def upgrade(active_plugins\u003dNone, options\u003dNone):"},{"line_number":41,"context_line":"    if not migration.should_run(active_plugins, migration_for_plugins):"},{"line_number":42,"context_line":"        return"},{"line_number":43,"context_line":""},{"line_number":44,"context_line":"    op.create_table("},{"line_number":45,"context_line":"        \u0027gpm_owned_networks\u0027,"}],"source_content_type":"text/x-python","patch_set":9,"id":"1abeadc6_9a6c7b9e","line":42,"updated":"2014-08-27 12:18:13.000000000","message":"Remove this check.","commit_id":"a3b8bad6fd23eaf21c693f53a60cd0c2d2f54b62"},{"author":{"_account_id":7249,"name":"Ann Taraday","email":"akamyshnikova@mirantis.com","username":"AKamyshnikova"},"change_message_id":"ba6d12493d48c9c2ca77248b97543b247a3cb017","unresolved":false,"context_lines":[{"line_number":76,"context_line":""},{"line_number":77,"context_line":"def downgrade(active_plugins\u003dNone, options\u003dNone):"},{"line_number":78,"context_line":"    if not migration.should_run(active_plugins, migration_for_plugins):"},{"line_number":79,"context_line":"        return"},{"line_number":80,"context_line":""},{"line_number":81,"context_line":"    op.drop_table(\u0027gpm_owned_routers\u0027)"},{"line_number":82,"context_line":"    op.drop_table(\u0027gpm_owned_subnets\u0027)"}],"source_content_type":"text/x-python","patch_set":9,"id":"1abeadc6_fa080fdb","line":79,"updated":"2014-08-27 12:18:13.000000000","message":"The same.","commit_id":"a3b8bad6fd23eaf21c693f53a60cd0c2d2f54b62"}],"neutron/services/grouppolicy/drivers/resource_mapping.py":[{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"ec36ea219c26f3d8ce6e92ffdba5b5f8d1130950","unresolved":false,"context_lines":[{"line_number":264,"context_line":"                                            subnet_id)"},{"line_number":265,"context_line":"                    context.add_subnet(subnet_id)"},{"line_number":266,"context_line":"                    return"},{"line_number":267,"context_line":"                except Exception:"},{"line_number":268,"context_line":"                    LOG.exception(_(\"add_subnet failed\"))"},{"line_number":269,"context_line":"                    self._delete_subnet(context, subnet[\u0027id\u0027])"},{"line_number":270,"context_line":"            except Exception:"}],"source_content_type":"text/x-python","patch_set":3,"id":"baada198_ae1b8c1a","line":267,"updated":"2014-07-25 13:00:58.000000000","message":"Can a more specific exception(s) be checked here and L270?","commit_id":"04ef412ed284d64a32650f160ad928f7c64ea4ea"},{"author":{"_account_id":1689,"name":"Robert Kukura","email":"rk@theep.net","username":"rkukura"},"change_message_id":"56524e2b45a680cbee913917f37edaa9c2d5fba0","unresolved":false,"context_lines":[{"line_number":264,"context_line":"                                            subnet_id)"},{"line_number":265,"context_line":"                    context.add_subnet(subnet_id)"},{"line_number":266,"context_line":"                    return"},{"line_number":267,"context_line":"                except Exception:"},{"line_number":268,"context_line":"                    LOG.exception(_(\"add_subnet failed\"))"},{"line_number":269,"context_line":"                    self._delete_subnet(context, subnet[\u0027id\u0027])"},{"line_number":270,"context_line":"            except Exception:"}],"source_content_type":"text/x-python","patch_set":3,"id":"baada198_79126eb4","line":267,"in_reply_to":"baada198_ae1b8c1a","updated":"2014-07-30 22:28:04.000000000","message":"I changed line 270 to catch InvalidInput, and added a comment describing why this exception is expected. \n\nThe main reason for this try/except is to prevent an exception here from being caught on line 270, so I changed that to InvalidInput as well, and have it through a different exception instead.","commit_id":"04ef412ed284d64a32650f160ad928f7c64ea4ea"},{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"ec36ea219c26f3d8ce6e92ffdba5b5f8d1130950","unresolved":false,"context_lines":[{"line_number":265,"context_line":"                    context.add_subnet(subnet_id)"},{"line_number":266,"context_line":"                    return"},{"line_number":267,"context_line":"                except Exception:"},{"line_number":268,"context_line":"                    LOG.exception(_(\"add_subnet failed\"))"},{"line_number":269,"context_line":"                    self._delete_subnet(context, subnet[\u0027id\u0027])"},{"line_number":270,"context_line":"            except Exception:"},{"line_number":271,"context_line":"                LOG.exception(_(\"create_subnet failed\"))"}],"source_content_type":"text/x-python","patch_set":3,"id":"baada198_aefd4c3d","line":268,"updated":"2014-07-25 13:00:58.000000000","message":"Just trying to wrap my head around this... this is going through and trying to create and add subnet, and once one is successful, returns? Is exception level an appropriate level of logging, for failures?","commit_id":"04ef412ed284d64a32650f160ad928f7c64ea4ea"},{"author":{"_account_id":1689,"name":"Robert Kukura","email":"rk@theep.net","username":"rkukura"},"change_message_id":"56524e2b45a680cbee913917f37edaa9c2d5fba0","unresolved":false,"context_lines":[{"line_number":265,"context_line":"                    context.add_subnet(subnet_id)"},{"line_number":266,"context_line":"                    return"},{"line_number":267,"context_line":"                except Exception:"},{"line_number":268,"context_line":"                    LOG.exception(_(\"add_subnet failed\"))"},{"line_number":269,"context_line":"                    self._delete_subnet(context, subnet[\u0027id\u0027])"},{"line_number":270,"context_line":"            except Exception:"},{"line_number":271,"context_line":"                LOG.exception(_(\"create_subnet failed\"))"}],"source_content_type":"text/x-python","patch_set":3,"id":"baada198_19033211","line":268,"in_reply_to":"baada198_aefd4c3d","updated":"2014-07-30 22:28:04.000000000","message":"I removed the logging for the expected exception when the CIDR is already in use.","commit_id":"04ef412ed284d64a32650f160ad928f7c64ea4ea"},{"author":{"_account_id":1689,"name":"Robert Kukura","email":"rk@theep.net","username":"rkukura"},"change_message_id":"412d1698b2f3fa4a8f82252fd8a69b3d8a43f41e","unresolved":false,"context_lines":[{"line_number":93,"context_line":"            self._use_implicit_port(context)"},{"line_number":94,"context_line":""},{"line_number":95,"context_line":"    @log.log"},{"line_number":96,"context_line":"    def update_endpoint_precommit(self, context):"},{"line_number":97,"context_line":"        pass"},{"line_number":98,"context_line":""},{"line_number":99,"context_line":"    @log.log"}],"source_content_type":"text/x-python","patch_set":6,"id":"baada198_0e366651","line":96,"updated":"2014-08-01 13:53:16.000000000","message":"If allow_put is True for the endpoint_group_id attribute, we should reject attempts to change it here.","commit_id":"711f8ae02f8106d4c1f39f37e68fb60d1a3e3c71"},{"author":{"_account_id":1689,"name":"Robert Kukura","email":"rk@theep.net","username":"rkukura"},"change_message_id":"5f6dc8d18aa1d2213fd3036db4a37b455f1ef0c4","unresolved":false,"context_lines":[{"line_number":93,"context_line":"            self._use_implicit_port(context)"},{"line_number":94,"context_line":""},{"line_number":95,"context_line":"    @log.log"},{"line_number":96,"context_line":"    def update_endpoint_precommit(self, context):"},{"line_number":97,"context_line":"        pass"},{"line_number":98,"context_line":""},{"line_number":99,"context_line":"    @log.log"}],"source_content_type":"text/x-python","patch_set":6,"id":"baada198_f0361db3","line":96,"in_reply_to":"baada198_0e366651","updated":"2014-08-04 04:21:23.000000000","message":"Done","commit_id":"711f8ae02f8106d4c1f39f37e68fb60d1a3e3c71"},{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"4d4f510a2c51af255d2e566fa1b6b7ec1cb4bfd5","unresolved":false,"context_lines":[{"line_number":271,"context_line":"                    # as if the CIDR is already in use."},{"line_number":272,"context_line":"                    LOG.exception(_(\"adding subnet to router failed\"))"},{"line_number":273,"context_line":"                    self._delete_subnet(context, subnet[\u0027id\u0027])"},{"line_number":274,"context_line":"                    raise exc.GroupPolicyInternalError()"},{"line_number":275,"context_line":"            except n_exc.InvalidInput:"},{"line_number":276,"context_line":"                # This is expected (CIDR overlap) until we have a"},{"line_number":277,"context_line":"                # proper subnet allocation algorithm. We ignore the"}],"source_content_type":"text/x-python","patch_set":6,"id":"baada198_e89e9468","line":274,"updated":"2014-07-31 12:44:35.000000000","message":"since your raising a different exception, and have a logging call before, this should all be wrapped in a save_and_reraise_exception() block:\n\nRef: https://github.com/openstack/neutron/blob/master/neutron/openstack/common/excutils.py#L30","commit_id":"711f8ae02f8106d4c1f39f37e68fb60d1a3e3c71"},{"author":{"_account_id":1689,"name":"Robert Kukura","email":"rk@theep.net","username":"rkukura"},"change_message_id":"412d1698b2f3fa4a8f82252fd8a69b3d8a43f41e","unresolved":false,"context_lines":[{"line_number":271,"context_line":"                    # as if the CIDR is already in use."},{"line_number":272,"context_line":"                    LOG.exception(_(\"adding subnet to router failed\"))"},{"line_number":273,"context_line":"                    self._delete_subnet(context, subnet[\u0027id\u0027])"},{"line_number":274,"context_line":"                    raise exc.GroupPolicyInternalError()"},{"line_number":275,"context_line":"            except n_exc.InvalidInput:"},{"line_number":276,"context_line":"                # This is expected (CIDR overlap) until we have a"},{"line_number":277,"context_line":"                # proper subnet allocation algorithm. We ignore the"}],"source_content_type":"text/x-python","patch_set":6,"id":"baada198_cb87dc59","line":274,"in_reply_to":"baada198_e89e9468","updated":"2014-08-01 13:53:16.000000000","message":"I would agree if we were re-raising the same exception. But we need to raise some exception other than InvalidInput here, or else it will be caught on line 275, which we do not want in this case.","commit_id":"711f8ae02f8106d4c1f39f37e68fb60d1a3e3c71"},{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"c100155b3b309095b090f0ffdb47b2372f254b4f","unresolved":false,"context_lines":[{"line_number":273,"context_line":"                    # as if the CIDR is already in use."},{"line_number":274,"context_line":"                    LOG.exception(_(\"adding subnet to router failed\"))"},{"line_number":275,"context_line":"                    self._delete_subnet(context, subnet[\u0027id\u0027])"},{"line_number":276,"context_line":"                    raise exc.GroupPolicyInternalError()"},{"line_number":277,"context_line":"            except n_exc.InvalidInput:"},{"line_number":278,"context_line":"                # This is expected (CIDR overlap) until we have a"},{"line_number":279,"context_line":"                # proper subnet allocation algorithm. We ignore the"}],"source_content_type":"text/x-python","patch_set":7,"id":"baada198_f0130f66","line":276,"updated":"2014-08-06 15:00:28.000000000","message":"Please take a look at the reference line in patch set 6. Even if you are raising another exception, you can set reraise\u003dFalse. This with block will prevent problems with context switches, due to the LOG.","commit_id":"e7ed8e27f3b1a8325d21c4b7d2f113bb14da3af2"}]}
