)]}'
{"neutron/db/l3_attrs_db.py":[{"author":{"_account_id":1653,"name":"garyk","email":"gkotton@vmware.com","username":"garyk"},"change_message_id":"42c658e297b67228e6e91c3d314afb57a644ef34","unresolved":false,"context_lines":[{"line_number":72,"context_line":"                self._ensure_extra_attr_model(context, router_db)"},{"line_number":73,"context_line":"                router_db[\u0027extra_attributes\u0027].update({key: value})"},{"line_number":74,"context_line":"                return"},{"line_number":75,"context_line":"        raise RuntimeError(\"Tried to set a key \u0027%s\u0027 that doesn\u0027t exist in \""},{"line_number":76,"context_line":"                           \"the extra attributes.\" % key)"},{"line_number":77,"context_line":""},{"line_number":78,"context_line":"    db_base_plugin_v2.NeutronDbPluginV2.register_dict_extend_funcs("}],"source_content_type":"text/x-python","patch_set":7,"id":"7a77a97e_5c1f35b7","line":75,"updated":"2016-11-21 06:59:57.000000000","message":"please add in missing translations here","commit_id":"ba5800d6c390efd7da46bb2d5846dae16b5c447c"}],"neutron/db/l3_hamode_db.py":[{"author":{"_account_id":12444,"name":"John Schwarz","email":"jschwarz@redhat.com","username":"jschwarz"},"change_message_id":"f874e5eaee025ffba7840711f62aa69fcfb4f7f7","unresolved":false,"context_lines":[{"line_number":393,"context_line":"        return n_utils.create_object_with_dependency("},{"line_number":394,"context_line":"            creator, dep_getter, dep_creator, dep_id_attr, dep_deleter)[1]"},{"line_number":395,"context_line":""},{"line_number":396,"context_line":"    def _before_router_create(self, resource, event, trigger,"},{"line_number":397,"context_line":"                              context, router, **kwargs):"},{"line_number":398,"context_line":"        \"\"\"Event handler to create HA resources before router creation.\"\"\""},{"line_number":399,"context_line":"        if not self._is_ha(router):"}],"source_content_type":"text/x-python","patch_set":14,"id":"ba5201f7_8f6b4384","line":396,"range":{"start_line":396,"start_character":8,"end_line":396,"end_character":29},"updated":"2017-01-08 14:52:43.000000000","message":"If this merged after https://review.openstack.org/#/c/417089/ does, this function will no longer be needed (as the ha network will be created as part of the scheduler).","commit_id":"42d5b856eeb86323c642e9cbf2fe1066a04773d3"},{"author":{"_account_id":7787,"name":"Kevin Benton","email":"kevin@benton.pub","username":"blak111"},"change_message_id":"da99bc2e32e48e8a288b4e8f9d2a876c015d30cc","unresolved":false,"context_lines":[{"line_number":393,"context_line":"        return n_utils.create_object_with_dependency("},{"line_number":394,"context_line":"            creator, dep_getter, dep_creator, dep_id_attr, dep_deleter)[1]"},{"line_number":395,"context_line":""},{"line_number":396,"context_line":"    def _before_router_create(self, resource, event, trigger,"},{"line_number":397,"context_line":"                              context, router, **kwargs):"},{"line_number":398,"context_line":"        \"\"\"Event handler to create HA resources before router creation.\"\"\""},{"line_number":399,"context_line":"        if not self._is_ha(router):"}],"source_content_type":"text/x-python","patch_set":14,"id":"ba5201f7_7a75fb2f","line":396,"range":{"start_line":396,"start_character":8,"end_line":396,"end_character":29},"in_reply_to":"ba5201f7_5accb788","updated":"2017-01-08 16:32:58.000000000","message":"Actually we may still want this for the user to get feedback immediately if there are HA network problems.\n\nIf we wait until after the router is created in the AFTER_CREATE phase, then all we can do is put the router into the ERROR state.","commit_id":"42d5b856eeb86323c642e9cbf2fe1066a04773d3"},{"author":{"_account_id":7787,"name":"Kevin Benton","email":"kevin@benton.pub","username":"blak111"},"change_message_id":"b125797178c506376bc9ab31db092664385c848b","unresolved":false,"context_lines":[{"line_number":393,"context_line":"        return n_utils.create_object_with_dependency("},{"line_number":394,"context_line":"            creator, dep_getter, dep_creator, dep_id_attr, dep_deleter)[1]"},{"line_number":395,"context_line":""},{"line_number":396,"context_line":"    def _before_router_create(self, resource, event, trigger,"},{"line_number":397,"context_line":"                              context, router, **kwargs):"},{"line_number":398,"context_line":"        \"\"\"Event handler to create HA resources before router creation.\"\"\""},{"line_number":399,"context_line":"        if not self._is_ha(router):"}],"source_content_type":"text/x-python","patch_set":14,"id":"ba5201f7_5accb788","line":396,"range":{"start_line":396,"start_character":8,"end_line":396,"end_character":29},"in_reply_to":"ba5201f7_8f6b4384","updated":"2017-01-08 16:28:09.000000000","message":"ack. i\u0027ll wait for that to land for this one.","commit_id":"42d5b856eeb86323c642e9cbf2fe1066a04773d3"},{"author":{"_account_id":12444,"name":"John Schwarz","email":"jschwarz@redhat.com","username":"jschwarz"},"change_message_id":"f874e5eaee025ffba7840711f62aa69fcfb4f7f7","unresolved":false,"context_lines":[{"line_number":407,"context_line":"        \"\"\"Event handler to set ha flag and status on creation.\"\"\""},{"line_number":408,"context_line":"        is_ha \u003d self._is_ha(router)"},{"line_number":409,"context_line":"        router[\u0027ha\u0027] \u003d is_ha"},{"line_number":410,"context_line":"        self.set_extra_attr_value(context, router_db, \u0027ha\u0027, is_ha)"},{"line_number":411,"context_line":"        if is_ha:"},{"line_number":412,"context_line":"            # This will throw an exception if there aren\u0027t enough agents to"},{"line_number":413,"context_line":"            # handle this HA router"}],"source_content_type":"text/x-python","patch_set":14,"id":"ba5201f7_cf070bc8","line":410,"range":{"start_line":410,"start_character":13,"end_line":410,"end_character":33},"updated":"2017-01-08 14:52:43.000000000","message":"If is_ha \u003d\u003d False then this is meaningless. This can be moved inside the block starting in L411.","commit_id":"42d5b856eeb86323c642e9cbf2fe1066a04773d3"},{"author":{"_account_id":7787,"name":"Kevin Benton","email":"kevin@benton.pub","username":"blak111"},"change_message_id":"b125797178c506376bc9ab31db092664385c848b","unresolved":false,"context_lines":[{"line_number":407,"context_line":"        \"\"\"Event handler to set ha flag and status on creation.\"\"\""},{"line_number":408,"context_line":"        is_ha \u003d self._is_ha(router)"},{"line_number":409,"context_line":"        router[\u0027ha\u0027] \u003d is_ha"},{"line_number":410,"context_line":"        self.set_extra_attr_value(context, router_db, \u0027ha\u0027, is_ha)"},{"line_number":411,"context_line":"        if is_ha:"},{"line_number":412,"context_line":"            # This will throw an exception if there aren\u0027t enough agents to"},{"line_number":413,"context_line":"            # handle this HA router"}],"source_content_type":"text/x-python","patch_set":14,"id":"ba5201f7_9aeb7fdb","line":410,"range":{"start_line":410,"start_character":13,"end_line":410,"end_character":33},"in_reply_to":"ba5201f7_cf070bc8","updated":"2017-01-08 16:28:09.000000000","message":"No, we still need to set the flag. Otherwise it will just be whatever the default value is. So if the default is True (because of config) and someone requests a non-ha router, it will be left as \u0027ha\u003dTrue\u0027 on the extra attr value.","commit_id":"42d5b856eeb86323c642e9cbf2fe1066a04773d3"},{"author":{"_account_id":12444,"name":"John Schwarz","email":"jschwarz@redhat.com","username":"jschwarz"},"change_message_id":"f874e5eaee025ffba7840711f62aa69fcfb4f7f7","unresolved":false,"context_lines":[{"line_number":417,"context_line":"            # until we have created all of the requisite interfaces/networks"},{"line_number":418,"context_line":"            router_db.status \u003d n_const.ROUTER_STATUS_ALLOCATING"},{"line_number":419,"context_line":""},{"line_number":420,"context_line":"        ha_net \u003d self.get_ha_network(context, router[\u0027tenant_id\u0027])"},{"line_number":421,"context_line":"        if not ha_net:"},{"line_number":422,"context_line":"            # net was deleted, throw a retry to start over to create another"},{"line_number":423,"context_line":"            raise db_exc.RetryRequest("}],"source_content_type":"text/x-python","patch_set":14,"id":"ba5201f7_0f0e73e4","line":420,"updated":"2017-01-08 14:52:43.000000000","message":"Likewise for line 396.","commit_id":"42d5b856eeb86323c642e9cbf2fe1066a04773d3"},{"author":{"_account_id":7787,"name":"Kevin Benton","email":"kevin@benton.pub","username":"blak111"},"change_message_id":"b125797178c506376bc9ab31db092664385c848b","unresolved":false,"context_lines":[{"line_number":417,"context_line":"            # until we have created all of the requisite interfaces/networks"},{"line_number":418,"context_line":"            router_db.status \u003d n_const.ROUTER_STATUS_ALLOCATING"},{"line_number":419,"context_line":""},{"line_number":420,"context_line":"        ha_net \u003d self.get_ha_network(context, router[\u0027tenant_id\u0027])"},{"line_number":421,"context_line":"        if not ha_net:"},{"line_number":422,"context_line":"            # net was deleted, throw a retry to start over to create another"},{"line_number":423,"context_line":"            raise db_exc.RetryRequest("}],"source_content_type":"text/x-python","patch_set":14,"id":"ba5201f7_1ab6aff8","line":420,"in_reply_to":"ba5201f7_0f0e73e4","updated":"2017-01-08 16:28:09.000000000","message":"ack","commit_id":"42d5b856eeb86323c642e9cbf2fe1066a04773d3"}],"neutron/tests/unit/db/test_l3_hamode_db.py":[{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"b5c4942ec333ec87bdfc2d60919841f5f9f93e2c","unresolved":false,"context_lines":[{"line_number":421,"context_line":""},{"line_number":422,"context_line":"    @mock.patch(\u0027neutron.db.l3_hamode_db.VR_ID_RANGE\u0027, new\u003dset(range(1, 1)))"},{"line_number":423,"context_line":"    def test_vr_id_depleted(self):"},{"line_number":424,"context_line":"        self.assertEqual(\u0027ERROR\u0027, self._create_router()[\u0027status\u0027])"},{"line_number":425,"context_line":""},{"line_number":426,"context_line":"    @mock.patch(\u0027neutron.db.l3_hamode_db.VR_ID_RANGE\u0027, new\u003dset(range(1, 2)))"},{"line_number":427,"context_line":"    def test_vr_id_unique_range_per_tenant(self):"}],"source_content_type":"text/x-python","patch_set":21,"id":"7a3c09a3_605013d5","line":424,"updated":"2017-01-17 23:27:23.000000000","message":"nit: should use n_const.ROUTER_STATUS_ERROR as is done for ACTIVE","commit_id":"31d30656d08ea2fae8a66390dc35731fef4c1a60"},{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"b5c4942ec333ec87bdfc2d60919841f5f9f93e2c","unresolved":false,"context_lines":[{"line_number":639,"context_line":"                       \u0027_notify_router_updated\u0027):"},{"line_number":640,"context_line":"            with mock.patch.object(self.plugin, method,"},{"line_number":641,"context_line":"                                   side_effect\u003dValueError):"},{"line_number":642,"context_line":"                self.assertEqual(\u0027ERROR\u0027, self._create_router()[\u0027status\u0027])"},{"line_number":643,"context_line":""},{"line_number":644,"context_line":"    def test_get_active_host_for_ha_router(self):"},{"line_number":645,"context_line":"        router \u003d self._create_router()"}],"source_content_type":"text/x-python","patch_set":21,"id":"7a3c09a3_a064bbb8","line":642,"updated":"2017-01-17 23:27:23.000000000","message":"ditto","commit_id":"31d30656d08ea2fae8a66390dc35731fef4c1a60"}]}
