)]}'
{"neutron/db/migration/alembic_migrations/versions/23b6c4d703c7_gpm_ipd_1.py":[{"author":{"_account_id":7249,"name":"Ann Taraday","email":"akamyshnikova@mirantis.com","username":"AKamyshnikova"},"change_message_id":"34e051913b51d2ab69cb95e911399affd720a213","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":10,"id":"1abeadc6_7af4ffce","line":32,"updated":"2014-08-27 12:19:04.000000000","message":"Remove all lines about conditions in migration.","commit_id":"dfc26827a8f0632f8792b1362055490756d89e81"},{"author":{"_account_id":7249,"name":"Ann Taraday","email":"akamyshnikova@mirantis.com","username":"AKamyshnikova"},"change_message_id":"34e051913b51d2ab69cb95e911399affd720a213","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_l3_policies\u0027,"}],"source_content_type":"text/x-python","patch_set":10,"id":"1abeadc6_9a039bb7","line":42,"updated":"2014-08-27 12:19:04.000000000","message":"Remove this check.","commit_id":"dfc26827a8f0632f8792b1362055490756d89e81"},{"author":{"_account_id":7249,"name":"Ann Taraday","email":"akamyshnikova@mirantis.com","username":"AKamyshnikova"},"change_message_id":"34e051913b51d2ab69cb95e911399affd720a213","unresolved":false,"context_lines":[{"line_number":60,"context_line":""},{"line_number":61,"context_line":"def downgrade(active_plugins\u003dNone, options\u003dNone):"},{"line_number":62,"context_line":"    if not migration.should_run(active_plugins, migration_for_plugins):"},{"line_number":63,"context_line":"        return"},{"line_number":64,"context_line":""},{"line_number":65,"context_line":"    op.drop_table(\u0027gpm_owned_l2_policies\u0027)"},{"line_number":66,"context_line":"    op.drop_table(\u0027gpm_owned_l3_policies\u0027)"}],"source_content_type":"text/x-python","patch_set":10,"id":"1abeadc6_bafe97ac","line":63,"updated":"2014-08-27 12:19:04.000000000","message":"The same.","commit_id":"dfc26827a8f0632f8792b1362055490756d89e81"}],"neutron/services/grouppolicy/drivers/implicit_policy.py":[{"author":{"_account_id":6072,"name":"Eugene Nikanorov","email":"enikanorov@mirantis.com","username":"enikanorov"},"change_message_id":"b3ba369050c02a50357b6b064b9bf63e71cf4cbb","unresolved":false,"context_lines":[{"line_number":132,"context_line":"        context.set_l2_policy_id(l2p_id)"},{"line_number":133,"context_line":""},{"line_number":134,"context_line":"    def _cleanup_l2_policy(self, context, l2p_id):"},{"line_number":135,"context_line":"        if self._l2_policy_is_owned(context._plugin_context.session, l2p_id):"},{"line_number":136,"context_line":"            context._plugin.delete_l2_policy(context._plugin_context, l2p_id)"},{"line_number":137,"context_line":""},{"line_number":138,"context_line":"    def _use_implicit_l3_policy(self, context):"}],"source_content_type":"text/x-python","patch_set":1,"id":"baada198_6544144a","line":135,"updated":"2014-07-06 21:30:46.000000000","message":"if not ?","commit_id":"960e800e9ded65be0c0a617ca7fd9e2644c96ef7"},{"author":{"_account_id":1923,"name":"Mohammad Banikazemi","email":"mbanikazemi@gmail.com","username":"mb-s"},"change_message_id":"299137d97490bc719adfa23b396c68e5fd85e6bc","unresolved":false,"context_lines":[{"line_number":132,"context_line":"        context.set_l2_policy_id(l2p_id)"},{"line_number":133,"context_line":""},{"line_number":134,"context_line":"    def _cleanup_l2_policy(self, context, l2p_id):"},{"line_number":135,"context_line":"        if self._l2_policy_is_owned(context._plugin_context.session, l2p_id):"},{"line_number":136,"context_line":"            context._plugin.delete_l2_policy(context._plugin_context, l2p_id)"},{"line_number":137,"context_line":""},{"line_number":138,"context_line":"    def _use_implicit_l3_policy(self, context):"}],"source_content_type":"text/x-python","patch_set":1,"id":"baada198_95baf36c","line":135,"in_reply_to":"baada198_6544144a","updated":"2014-07-08 15:01:55.000000000","message":"Shouldn\u0027t this be:\n\nif ***not*** self._l2_policy_is_owned ....\n   delete the policy\notherwise do nothing.","commit_id":"960e800e9ded65be0c0a617ca7fd9e2644c96ef7"},{"author":{"_account_id":1689,"name":"Robert Kukura","email":"rk@theep.net","username":"rkukura"},"change_message_id":"83a1b71ae5ce1726324dd0729dcb24315be2f58e","unresolved":false,"context_lines":[{"line_number":132,"context_line":"        context.set_l2_policy_id(l2p_id)"},{"line_number":133,"context_line":""},{"line_number":134,"context_line":"    def _cleanup_l2_policy(self, context, l2p_id):"},{"line_number":135,"context_line":"        if self._l2_policy_is_owned(context._plugin_context.session, l2p_id):"},{"line_number":136,"context_line":"            context._plugin.delete_l2_policy(context._plugin_context, l2p_id)"},{"line_number":137,"context_line":""},{"line_number":138,"context_line":"    def _use_implicit_l3_policy(self, context):"}],"source_content_type":"text/x-python","patch_set":1,"id":"baada198_89d042ca","line":135,"in_reply_to":"baada198_6544144a","updated":"2014-07-17 21:44:28.000000000","message":"We only delete the L2 policy if we own it (created it implicitly). False means its not owned by this driver (it was supplied explicitly), in which case we are not responsible for deleting it.","commit_id":"960e800e9ded65be0c0a617ca7fd9e2644c96ef7"},{"author":{"_account_id":6072,"name":"Eugene Nikanorov","email":"enikanorov@mirantis.com","username":"enikanorov"},"change_message_id":"b3ba369050c02a50357b6b064b9bf63e71cf4cbb","unresolved":false,"context_lines":[{"line_number":171,"context_line":""},{"line_number":172,"context_line":"    def _l2_policy_is_owned(self, session, l2p_id):"},{"line_number":173,"context_line":"        with session.begin(subtransactions\u003dTrue):"},{"line_number":174,"context_line":"            return (session.query(OwnedL2Policy)."},{"line_number":175,"context_line":"                    filter_by(l2_policy_id\u003dl2p_id)."},{"line_number":176,"context_line":"                    count() !\u003d 0)"},{"line_number":177,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"baada198_25577c03","line":174,"updated":"2014-07-06 21:30:46.000000000","message":"theoretically, count may scan for multiple rows while .first() just fetches one or returns None. \n\nI think it might be more efficient to use it here","commit_id":"960e800e9ded65be0c0a617ca7fd9e2644c96ef7"},{"author":{"_account_id":1689,"name":"Robert Kukura","email":"rk@theep.net","username":"rkukura"},"change_message_id":"83a1b71ae5ce1726324dd0729dcb24315be2f58e","unresolved":false,"context_lines":[{"line_number":171,"context_line":""},{"line_number":172,"context_line":"    def _l2_policy_is_owned(self, session, l2p_id):"},{"line_number":173,"context_line":"        with session.begin(subtransactions\u003dTrue):"},{"line_number":174,"context_line":"            return (session.query(OwnedL2Policy)."},{"line_number":175,"context_line":"                    filter_by(l2_policy_id\u003dl2p_id)."},{"line_number":176,"context_line":"                    count() !\u003d 0)"},{"line_number":177,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"baada198_74a97adc","line":174,"in_reply_to":"baada198_25577c03","updated":"2014-07-17 21:44:28.000000000","message":"Done","commit_id":"960e800e9ded65be0c0a617ca7fd9e2644c96ef7"},{"author":{"_account_id":6072,"name":"Eugene Nikanorov","email":"enikanorov@mirantis.com","username":"enikanorov"},"change_message_id":"b3ba369050c02a50357b6b064b9bf63e71cf4cbb","unresolved":false,"context_lines":[{"line_number":184,"context_line":"        with session.begin(subtransactions\u003dTrue):"},{"line_number":185,"context_line":"            return (session.query(OwnedL3Policy)."},{"line_number":186,"context_line":"                    filter_by(l3_policy_id\u003dl3p_id)."},{"line_number":187,"context_line":"                    count() !\u003d 0)"}],"source_content_type":"text/x-python","patch_set":1,"id":"baada198_455ab02a","line":187,"updated":"2014-07-06 21:30:46.000000000","message":"same as above","commit_id":"960e800e9ded65be0c0a617ca7fd9e2644c96ef7"},{"author":{"_account_id":1689,"name":"Robert Kukura","email":"rk@theep.net","username":"rkukura"},"change_message_id":"83a1b71ae5ce1726324dd0729dcb24315be2f58e","unresolved":false,"context_lines":[{"line_number":184,"context_line":"        with session.begin(subtransactions\u003dTrue):"},{"line_number":185,"context_line":"            return (session.query(OwnedL3Policy)."},{"line_number":186,"context_line":"                    filter_by(l3_policy_id\u003dl3p_id)."},{"line_number":187,"context_line":"                    count() !\u003d 0)"}],"source_content_type":"text/x-python","patch_set":1,"id":"baada198_b4b3124c","line":187,"in_reply_to":"baada198_455ab02a","updated":"2014-07-17 21:44:28.000000000","message":"Done","commit_id":"960e800e9ded65be0c0a617ca7fd9e2644c96ef7"},{"author":{"_account_id":10965,"name":"Magesh GV","email":"mageshgv@gmail.com","username":"mageshgv"},"change_message_id":"464bbd83dc5d3078b4d36b9b5dbefe32aff98e78","unresolved":false,"context_lines":[{"line_number":98,"context_line":"    @log.log"},{"line_number":99,"context_line":"    def delete_endpoint_group_postcommit(self, context):"},{"line_number":100,"context_line":"        l2p_id \u003d context.current[\u0027l2_policy_id\u0027]"},{"line_number":101,"context_line":"        self._cleanup_l2_policy(context, l2p_id)"},{"line_number":102,"context_line":""},{"line_number":103,"context_line":"    @log.log"},{"line_number":104,"context_line":"    def create_l2_policy_postcommit(self, context):"}],"source_content_type":"text/x-python","patch_set":8,"id":"baada198_bd246eb2","line":101,"updated":"2014-08-12 00:18:58.000000000","message":"There is a problem with the cleanup sequence. First the implicit driver invokes L2 policy delete which would fail because the subnet cleanup(especially removal of subnet from router) will be performed by the Resource mapping driver after this !!\nAgain subnet cleanup will fail in resourcemapping driver because l2 policy is already deleted here.","commit_id":"a04949b9bfd6b1910d3e262ad7e5fa1fc6392290"},{"author":{"_account_id":10965,"name":"Magesh GV","email":"mageshgv@gmail.com","username":"mageshgv"},"change_message_id":"d6470f474e06755f3353bab3b5b8fdfbd68560e9","unresolved":false,"context_lines":[{"line_number":98,"context_line":"    @log.log"},{"line_number":99,"context_line":"    def delete_endpoint_group_postcommit(self, context):"},{"line_number":100,"context_line":"        l2p_id \u003d context.current[\u0027l2_policy_id\u0027]"},{"line_number":101,"context_line":"        self._cleanup_l2_policy(context, l2p_id)"},{"line_number":102,"context_line":""},{"line_number":103,"context_line":"    @log.log"},{"line_number":104,"context_line":"    def create_l2_policy_postcommit(self, context):"}],"source_content_type":"text/x-python","patch_set":10,"id":"fa98f980_00cf1580","line":101,"updated":"2014-09-02 22:24:29.000000000","message":"L3 policy cleanup has to happen before L2 policy can be deleted. L2 policy cleanup will fail here because the network cannot be deleted while there are router ports.\n\nI thought the Resource mapping driver was supposed to be used along with the implicit driver, is this not the case?","commit_id":"dfc26827a8f0632f8792b1362055490756d89e81"}],"neutron/services/grouppolicy/plugin.py":[{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"a3472c3d341080bd334919bda96c946b3ec839c6","unresolved":false,"context_lines":[{"line_number":274,"context_line":"        return updated_l3_policy"},{"line_number":275,"context_line":""},{"line_number":276,"context_line":"    @log.log"},{"line_number":277,"context_line":"    def delete_l3_policy(self, context, l3_policy_id, if_unused\u003dFalse):"},{"line_number":278,"context_line":"        session \u003d context.session"},{"line_number":279,"context_line":"        with session.begin(subtransactions\u003dTrue):"},{"line_number":280,"context_line":"            if (if_unused and"}],"source_content_type":"text/x-python","patch_set":1,"id":"baada198_4ae2d12f","line":277,"updated":"2014-07-04 14:32:55.000000000","message":"nit if_unused -\u003e interface_unused?","commit_id":"960e800e9ded65be0c0a617ca7fd9e2644c96ef7"},{"author":{"_account_id":1689,"name":"Robert Kukura","email":"rk@theep.net","username":"rkukura"},"change_message_id":"2f340ad8f647d566393d5f55a34c490a2c40b299","unresolved":false,"context_lines":[{"line_number":274,"context_line":"        return updated_l3_policy"},{"line_number":275,"context_line":""},{"line_number":276,"context_line":"    @log.log"},{"line_number":277,"context_line":"    def delete_l3_policy(self, context, l3_policy_id, if_unused\u003dFalse):"},{"line_number":278,"context_line":"        session \u003d context.session"},{"line_number":279,"context_line":"        with session.begin(subtransactions\u003dTrue):"},{"line_number":280,"context_line":"            if (if_unused and"}],"source_content_type":"text/x-python","patch_set":1,"id":"baada198_a0f1c902","line":277,"in_reply_to":"baada198_4ae2d12f","updated":"2014-07-04 17:41:53.000000000","message":"The \"if\" here does not mean \"interface\", just to delete this l3 policy \"if and only if\" it is not being used by any existing l2 policies. Would \"check_unused\" be better? Other suggestions?","commit_id":"960e800e9ded65be0c0a617ca7fd9e2644c96ef7"},{"author":{"_account_id":1689,"name":"Robert Kukura","email":"rk@theep.net","username":"rkukura"},"change_message_id":"83a1b71ae5ce1726324dd0729dcb24315be2f58e","unresolved":false,"context_lines":[{"line_number":274,"context_line":"        return updated_l3_policy"},{"line_number":275,"context_line":""},{"line_number":276,"context_line":"    @log.log"},{"line_number":277,"context_line":"    def delete_l3_policy(self, context, l3_policy_id, if_unused\u003dFalse):"},{"line_number":278,"context_line":"        session \u003d context.session"},{"line_number":279,"context_line":"        with session.begin(subtransactions\u003dTrue):"},{"line_number":280,"context_line":"            if (if_unused and"}],"source_content_type":"text/x-python","patch_set":1,"id":"baada198_345b82f7","line":277,"in_reply_to":"baada198_60bed166","updated":"2014-07-17 21:44:28.000000000","message":"Done - I went with \u0027check_unused\u0027.","commit_id":"960e800e9ded65be0c0a617ca7fd9e2644c96ef7"},{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"24a03e24dd48d22cc87e10278969ff683389da5b","unresolved":false,"context_lines":[{"line_number":274,"context_line":"        return updated_l3_policy"},{"line_number":275,"context_line":""},{"line_number":276,"context_line":"    @log.log"},{"line_number":277,"context_line":"    def delete_l3_policy(self, context, l3_policy_id, if_unused\u003dFalse):"},{"line_number":278,"context_line":"        session \u003d context.session"},{"line_number":279,"context_line":"        with session.begin(subtransactions\u003dTrue):"},{"line_number":280,"context_line":"            if (if_unused and"}],"source_content_type":"text/x-python","patch_set":1,"id":"baada198_60bed166","line":277,"in_reply_to":"baada198_a0f1c902","updated":"2014-07-04 18:48:42.000000000","message":"Ah, I initially was thinking it was awkward on L280... \"if if unsed and query...\" so if thought maybe you meant \"if interface unused\", though it didn\u0027t seem to make sense for this function. So.... that said L280 reads odd.\n\nMaybe just \u0027unused\u0027 or \u0027policy_unused\u0027?","commit_id":"960e800e9ded65be0c0a617ca7fd9e2644c96ef7"}]}
