)]}'
{"neutron/manager.py":[{"author":{"_account_id":7787,"name":"Kevin Benton","email":"kevin@benton.pub","username":"blak111"},"change_message_id":"475a08cdc6c04feefc32e61175395167cd33d1a5","unresolved":false,"context_lines":[{"line_number":187,"context_line":"            # only one implementation of svc_type allowed"},{"line_number":188,"context_line":"            # specifying more than one plugin"},{"line_number":189,"context_line":"            # just pass the second plugin quiet."},{"line_number":190,"context_line":"            if plugin_inst.get_plugin_type() in self.service_plugins:"},{"line_number":191,"context_line":"                LOG.info(_(\"Multiple plugins for service \""},{"line_number":192,"context_line":"                           \"%s were configured\") %"},{"line_number":193,"context_line":"                           plugin_inst.get_plugin_type())"}],"source_content_type":"text/x-python","patch_set":2,"id":"fa1b9901_c93324aa","line":190,"updated":"2015-08-20 02:55:18.000000000","message":"It makes sense to deduplicate if they pass the same plugin; however, this change will allow them to specify different plugins of the same type.\n\nFor example, if they specify \u0027neutron.services.l3_router.brocade.mlx.l3_router_plugin.BrocadeRouterPlugin, neutron.services.l3_router.l3_sdnve.SdnveL3ServicePlugin\u0027, we are going to silently ignore one of them, which is not good because the deployer may not realize two classes are of the same service type.\n\nWe only want to skip if the same plugin is loaded twice.","commit_id":"95139424d8f4b168504d957194c1a0b64270c234"},{"author":{"_account_id":7787,"name":"Kevin Benton","email":"kevin@benton.pub","username":"blak111"},"change_message_id":"b823ca7e0c8cee5a119325040c3aa5218b60c7c0","unresolved":false,"context_lines":[{"line_number":200,"context_line":"                    LOG.warn(_LW(\"service %s were configured multiple times \""},{"line_number":201,"context_line":"                                 \"with the same plugin: %s, just skip it\"),"},{"line_number":202,"context_line":"                             plugin_type, str(plugin_inst))"},{"line_number":203,"context_line":"                    continue"},{"line_number":204,"context_line":"                raise ValueError(_(\"Multiple plugins for service \""},{"line_number":205,"context_line":"                                   \"%s were configured\") % plugin_type)"},{"line_number":206,"context_line":""}],"source_content_type":"text/x-python","patch_set":3,"id":"fa1b9901_5a46f14f","line":203,"updated":"2015-08-20 06:44:09.000000000","message":"Looking at this more, it might be dangerous to continue here because the plugin object has already been constructed. Some plugins perform tasks on startup (e.g. synchronizing to a backend, etc) that may assume that there is only one instance of the plugin.\n\nIf we continue here we allowed two instances of the same plugin to be started which may mean multiple copies of background tasks, etc are running. I think failing might actually be safer in this case rather than leading to unpredictable behaviors like these.","commit_id":"9f1748dbfddf77e84f3f5db0d8c70af0ff2f24de"},{"author":{"_account_id":11682,"name":"Ryan Moats","email":"rmoats@us.ibm.com","username":"regXboi"},"change_message_id":"9f88efad7717982341fc9df0f7035e93f6456918","unresolved":false,"context_lines":[{"line_number":200,"context_line":"                    LOG.warn(_LW(\"service %s were configured multiple times \""},{"line_number":201,"context_line":"                                 \"with the same plugin: %s, just skip it\"),"},{"line_number":202,"context_line":"                             plugin_type, str(plugin_inst))"},{"line_number":203,"context_line":"                    continue"},{"line_number":204,"context_line":"                raise ValueError(_(\"Multiple plugins for service \""},{"line_number":205,"context_line":"                                   \"%s were configured\") % plugin_type)"},{"line_number":206,"context_line":""}],"source_content_type":"text/x-python","patch_set":3,"id":"fa1b9901_4e8061c0","line":203,"in_reply_to":"fa1b9901_5a46f14f","updated":"2015-08-20 13:22:29.000000000","message":"+1 to Kevin\u0027s comment - failure is the better option","commit_id":"9f1748dbfddf77e84f3f5db0d8c70af0ff2f24de"},{"author":{"_account_id":7787,"name":"Kevin Benton","email":"kevin@benton.pub","username":"blak111"},"change_message_id":"807c6e2e2c53b1e3df00764559edd043e1ab1bd8","unresolved":false,"context_lines":[{"line_number":192,"context_line":"                \u0027neutron.service_plugins\u0027, provider)"},{"line_number":193,"context_line":"            if plugin_class in plugin_classes:"},{"line_number":194,"context_line":"                LOG.warn(_LW(\"skip the duplicated plugin: %s\"),"},{"line_number":195,"context_line":"                         str(plugin_class))"},{"line_number":196,"context_line":"                continue"},{"line_number":197,"context_line":"            plugin_classes.append(plugin_class)"},{"line_number":198,"context_line":""}],"source_content_type":"text/x-python","patch_set":4,"id":"fa1b9901_8715db9c","line":195,"updated":"2015-08-21 01:51:48.000000000","message":"calling str() isn\u0027t needed. the %s in the message will do that for you","commit_id":"8759e0cd80396d735397f9de9204caa19d96f867"}]}
