)]}'
{"neutron/agent/l3_agent.py":[{"author":{"_account_id":7787,"name":"Kevin Benton","email":"kevin@benton.pub","username":"blak111"},"change_message_id":"0408a9463c0be41e79607602a9206a6fed6451dd","unresolved":false,"context_lines":[{"line_number":226,"context_line":"        self.sync_progress \u003d False"},{"line_number":227,"context_line":""},{"line_number":228,"context_line":"        # Get the list of service plugins from Neutron Server"},{"line_number":229,"context_line":"        self.neutron_service_plugins \u003d \\"},{"line_number":230,"context_line":"            self.plugin_rpc.get_service_plugin_list(self.context)"},{"line_number":231,"context_line":"        self._clean_stale_namespaces \u003d self.conf.use_namespaces"},{"line_number":232,"context_line":""}],"source_content_type":"text/x-python","patch_set":4,"id":"baada198_576a0a1b","line":229,"updated":"2014-07-01 09:30:27.000000000","message":"parens is preferred over backslash for line-break\n\nself.neutron_service_plugins \u003d (\n    self.plugin_rpc.get_service_plugin_list(self.context))","commit_id":"b3645e6a9ae2cd22202d4a0e7beb4bbcf496ff4d"},{"author":{"_account_id":10257,"name":"Sridhar Gaddam","email":"sgaddam@redhat.com","username":"sridhargaddam"},"change_message_id":"ce58710ef95f5130f40aa2b471f7ffbcef34b1d6","unresolved":false,"context_lines":[{"line_number":226,"context_line":"        self.sync_progress \u003d False"},{"line_number":227,"context_line":""},{"line_number":228,"context_line":"        # Get the list of service plugins from Neutron Server"},{"line_number":229,"context_line":"        self.neutron_service_plugins \u003d \\"},{"line_number":230,"context_line":"            self.plugin_rpc.get_service_plugin_list(self.context)"},{"line_number":231,"context_line":"        self._clean_stale_namespaces \u003d self.conf.use_namespaces"},{"line_number":232,"context_line":""}],"source_content_type":"text/x-python","patch_set":4,"id":"baada198_6851ef61","line":229,"in_reply_to":"baada198_576a0a1b","updated":"2014-07-01 10:45:32.000000000","message":"Done","commit_id":"b3645e6a9ae2cd22202d4a0e7beb4bbcf496ff4d"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"867688593e63fa46d8a5c8c729fe30de39a77d75","unresolved":false,"context_lines":[{"line_number":80,"context_line":"        1.1 - Floating IP operational status updates"},{"line_number":81,"context_line":"        1.2 - DVR support: new L3 plugin methods added."},{"line_number":82,"context_line":"              - get_ports_by_subnet"},{"line_number":83,"context_line":"              - get_agent_gateway_port"},{"line_number":84,"context_line":"              Needed by the agent when operating in DVR/DVR_SNAT mode"},{"line_number":85,"context_line":""},{"line_number":86,"context_line":"    \"\"\""}],"source_content_type":"text/x-python","patch_set":7,"id":"baada198_ef47b7a1","line":83,"updated":"2014-07-30 04:51:38.000000000","message":"Does this need a version bump?","commit_id":"5215d8d68aa24e555dab58425aa66a9a65c615d8"},{"author":{"_account_id":10257,"name":"Sridhar Gaddam","email":"sgaddam@redhat.com","username":"sridhargaddam"},"change_message_id":"ee7109547da1b52112118038a1f82012d6f2fedb","unresolved":false,"context_lines":[{"line_number":80,"context_line":"        1.1 - Floating IP operational status updates"},{"line_number":81,"context_line":"        1.2 - DVR support: new L3 plugin methods added."},{"line_number":82,"context_line":"              - get_ports_by_subnet"},{"line_number":83,"context_line":"              - get_agent_gateway_port"},{"line_number":84,"context_line":"              Needed by the agent when operating in DVR/DVR_SNAT mode"},{"line_number":85,"context_line":""},{"line_number":86,"context_line":"    \"\"\""}],"source_content_type":"text/x-python","patch_set":7,"id":"baada198_ede5fc3e","line":83,"in_reply_to":"baada198_ef47b7a1","updated":"2014-07-30 07:46:30.000000000","message":"hmmm... I\u0027m not very sure about this. I\u0027ll wait for other reviewers to comment on this. Thanks.","commit_id":"5215d8d68aa24e555dab58425aa66a9a65c615d8"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"efa06ead8fb0a62cdba5309b3876a43ba9e936f2","unresolved":false,"context_lines":[{"line_number":140,"context_line":"        \"\"\"Make a call to get the list of activated services.\"\"\""},{"line_number":141,"context_line":"        return self.call(context,"},{"line_number":142,"context_line":"                         self.make_msg(\u0027get_service_plugin_list\u0027),"},{"line_number":143,"context_line":"                         topic\u003dself.topic)"},{"line_number":144,"context_line":""},{"line_number":145,"context_line":""},{"line_number":146,"context_line":"class RouterInfo(object):"}],"source_content_type":"text/x-python","patch_set":7,"id":"baada198_5c7118aa","line":143,"updated":"2014-07-30 22:27:39.000000000","message":"I think when you bump the version (e.g. to 1.3) you\u0027ll need to explicitly pass the version here like on L137.  Except you will pass 1.3.","commit_id":"5215d8d68aa24e555dab58425aa66a9a65c615d8"},{"author":{"_account_id":10257,"name":"Sridhar Gaddam","email":"sgaddam@redhat.com","username":"sridhargaddam"},"change_message_id":"74e7940594a26ffa306cac5154c9df557b6c12b9","unresolved":false,"context_lines":[{"line_number":140,"context_line":"        \"\"\"Make a call to get the list of activated services.\"\"\""},{"line_number":141,"context_line":"        return self.call(context,"},{"line_number":142,"context_line":"                         self.make_msg(\u0027get_service_plugin_list\u0027),"},{"line_number":143,"context_line":"                         topic\u003dself.topic)"},{"line_number":144,"context_line":""},{"line_number":145,"context_line":""},{"line_number":146,"context_line":"class RouterInfo(object):"}],"source_content_type":"text/x-python","patch_set":7,"id":"baada198_39ec2792","line":143,"in_reply_to":"baada198_5c7118aa","updated":"2014-08-01 17:58:46.000000000","message":"Thanks Carl, I\u0027ll update the code accordingly.","commit_id":"5215d8d68aa24e555dab58425aa66a9a65c615d8"}],"neutron/services/firewall/agents/l3reference/firewall_l3_agent.py":[{"author":{"_account_id":490,"name":"Sumit Naiksatam","email":"sumitnaiksatam@gmail.com","username":"snaiksat"},"change_message_id":"f752955f2ad7aa10658b76a4dba40d856172a501","unresolved":false,"context_lines":[{"line_number":117,"context_line":"        if not self.fwaas_enabled:"},{"line_number":118,"context_line":"            LOG.error(_(\"Firewall Driver not loaded. FWaaS is \""},{"line_number":119,"context_line":"                        \"not enabled.\"))"},{"line_number":120,"context_line":"            return"},{"line_number":121,"context_line":""},{"line_number":122,"context_line":"        try:"},{"line_number":123,"context_line":"            routers \u003d self.plugin_rpc.get_routers(context)"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAXX%2F%2FzCE%3D","line":120,"updated":"2014-04-27 05:16:45.000000000","message":"I am wondering if we should move this to the init and not exit the agent if the driver is not configured.","commit_id":"b447e22b7427233cf497f8a9edd6770548e194da"},{"author":{"_account_id":10257,"name":"Sridhar Gaddam","email":"sgaddam@redhat.com","username":"sridhargaddam"},"change_message_id":"3701b8ed10f9fc881b4a0954f19a299b2f5ff59d","unresolved":false,"context_lines":[{"line_number":117,"context_line":"        if not self.fwaas_enabled:"},{"line_number":118,"context_line":"            LOG.error(_(\"Firewall Driver not loaded. FWaaS is \""},{"line_number":119,"context_line":"                        \"not enabled.\"))"},{"line_number":120,"context_line":"            return"},{"line_number":121,"context_line":""},{"line_number":122,"context_line":"        try:"},{"line_number":123,"context_line":"            routers \u003d self.plugin_rpc.get_routers(context)"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAXX%2F%2Fysk%3D","line":120,"in_reply_to":"AAAAXX%2F%2FyvE%3D","updated":"2014-04-27 11:56:03.000000000","message":"Thanks Sumit and Assaf for your review comments.","commit_id":"b447e22b7427233cf497f8a9edd6770548e194da"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"5686e1bd8c7b801f983d3b398176f8dc6babb36c","unresolved":false,"context_lines":[{"line_number":117,"context_line":"        if not self.fwaas_enabled:"},{"line_number":118,"context_line":"            LOG.error(_(\"Firewall Driver not loaded. FWaaS is \""},{"line_number":119,"context_line":"                        \"not enabled.\"))"},{"line_number":120,"context_line":"            return"},{"line_number":121,"context_line":""},{"line_number":122,"context_line":"        try:"},{"line_number":123,"context_line":"            routers \u003d self.plugin_rpc.get_routers(context)"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAXX%2F%2FyvE%3D","line":120,"in_reply_to":"AAAAXX%2F%2FzCE%3D","updated":"2014-04-27 10:35:05.000000000","message":"I agree. If the agent is missing important configuration it should fail early and loud. It should yell and fail to start up, instead of failing on the first RPC message.","commit_id":"b447e22b7427233cf497f8a9edd6770548e194da"},{"author":{"_account_id":2592,"name":"Mark McClain","email":"mark@mcclain.xyz","username":"markmcclain"},"change_message_id":"3f729fe78629f1da34e56398fe78ae1ff55d2dc6","unresolved":false,"context_lines":[{"line_number":68,"context_line":"        self.conf \u003d conf"},{"line_number":69,"context_line":"        fwaas_driver_class_path \u003d cfg.CONF.fwaas.driver"},{"line_number":70,"context_line":"        self.fwaas_enabled \u003d cfg.CONF.fwaas.enabled"},{"line_number":71,"context_line":"        fwplugin \u003d manager.NeutronManager.get_service_plugins().get("},{"line_number":72,"context_line":"            constants.FIREWALL)"},{"line_number":73,"context_line":"        if fwplugin and not self.fwaas_enabled:"},{"line_number":74,"context_line":"            msg \u003d _(\"FWaaS plugin configured, but the associated \""}],"source_content_type":"text/x-python","patch_set":2,"id":"1ae5cdf2_aa6df3cd","line":71,"updated":"2014-06-05 17:47:12.000000000","message":"This call instantiates the service plugin within the agent resulting in the REST and RPC service running on the network node.","commit_id":"955aef560a4517c00182f844e53a6e23776f152c"},{"author":{"_account_id":10257,"name":"Sridhar Gaddam","email":"sgaddam@redhat.com","username":"sridhargaddam"},"change_message_id":"7a1b8aabc5a420b1c03ec9cab1785d057032d464","unresolved":false,"context_lines":[{"line_number":68,"context_line":"        self.conf \u003d conf"},{"line_number":69,"context_line":"        fwaas_driver_class_path \u003d cfg.CONF.fwaas.driver"},{"line_number":70,"context_line":"        self.fwaas_enabled \u003d cfg.CONF.fwaas.enabled"},{"line_number":71,"context_line":"        fwplugin \u003d manager.NeutronManager.get_service_plugins().get("},{"line_number":72,"context_line":"            constants.FIREWALL)"},{"line_number":73,"context_line":"        if fwplugin and not self.fwaas_enabled:"},{"line_number":74,"context_line":"            msg \u003d _(\"FWaaS plugin configured, but the associated \""}],"source_content_type":"text/x-python","patch_set":2,"id":"1ae5cdf2_0116ca4b","line":71,"in_reply_to":"1ae5cdf2_aa6df3cd","updated":"2014-06-05 19:46:39.000000000","message":"Some Background:\n\nI could reproduce the problem mentioned in the Bug after rebasing my devstack to 21st, April as reported by Adam. This problem is no-longer seen in the latest devstack as it is fixed with Bug#1310858.\n\nThe problem reported in the current bug (i.e., 1310857) is as follows. Neutron config file is properly configured with the fwaas service plugin. i.e., service_plugins \u003d neutron.services.vpn.plugin.VPNDriverPlugin, neutron.services.firewall.fwaas_plugin.FirewallPlugin So Neutron Server assumes that FWaaS Service is enabled.\nHowever when launching the neutron-vpn-agent the fwaas_driver.ini file is not passed to it. \n\nBecause of this, when a firewall is created, neutron server sends an RPC message to the Agent. The agent was not checking the status of fwaas and was trying to create the firewall which was causing the exception. My Patch1 addresses this issue with a more meaningful message.\n\nThere is one other problem which I noticed while debugging this issue. Say, we have enabled the fwaas service plugin in neutron.conf file and also passed the fwaas_driver.ini to the VPN agent. But the configuration in fwaas_driver.ini has fwaas enabled set to \"True\" without the \"driver\" info. Currently this validation is missing in the code. Since this would be a different issue to the one reported in the current bug, I can raise a new bug and submit a patch. \n\nMark, do you think we should take approach of patch1 to address this Bug otherwise? Any pointers? Thanks for the review.","commit_id":"955aef560a4517c00182f844e53a6e23776f152c"},{"author":{"_account_id":6995,"name":"Sridar Kandaswamy","email":"skandasw@yahoo.com","username":"skandasw"},"change_message_id":"050d30fcd5a008c5f722ad3b4ec2416b6fe77555","unresolved":false,"context_lines":[{"line_number":70,"context_line":"        self.fwaas_enabled \u003d cfg.CONF.fwaas.enabled"},{"line_number":71,"context_line":"        fwplugin \u003d manager.NeutronManager.get_service_plugins().get("},{"line_number":72,"context_line":"            constants.FIREWALL)"},{"line_number":73,"context_line":"        if fwplugin and not self.fwaas_enabled:"},{"line_number":74,"context_line":"            msg \u003d _(\"FWaaS plugin configured, but the associated \""},{"line_number":75,"context_line":"                    \"configuration is missing.\")"},{"line_number":76,"context_line":"            LOG.error(msg)"}],"source_content_type":"text/x-python","patch_set":2,"id":"AAAAXX%2F%2FwjA%3D","line":73,"updated":"2014-04-28 07:36:49.000000000","message":"This was something that we struggled with as having 2 points of configuration (plugin and on the agent side) did not seem right and can land us in such scenarios. Further, there was a request to add an enabled flag on the agent side - which is what gets picked up on to fwaas_enabled. And we agreed to use this as a sort of indicator that fwaas is turned on (and that the plugin is available) and i used this to avoid potential rpc issues when we initiate something from the agent to the plugin. \n\nI am not sure on this approach to check on the plugin - i will defer to Sumit to weigh in on this. If this is indeed fine - there are few more tweaks i will add.","commit_id":"955aef560a4517c00182f844e53a6e23776f152c"},{"author":{"_account_id":10257,"name":"Sridhar Gaddam","email":"sgaddam@redhat.com","username":"sridhargaddam"},"change_message_id":"71be9989f8d6ffd496351cea1507d990738115af","unresolved":false,"context_lines":[{"line_number":70,"context_line":"        self.fwaas_enabled \u003d cfg.CONF.fwaas.enabled"},{"line_number":71,"context_line":"        fwplugin \u003d manager.NeutronManager.get_service_plugins().get("},{"line_number":72,"context_line":"            constants.FIREWALL)"},{"line_number":73,"context_line":"        if fwplugin and not self.fwaas_enabled:"},{"line_number":74,"context_line":"            msg \u003d _(\"FWaaS plugin configured, but the associated \""},{"line_number":75,"context_line":"                    \"configuration is missing.\")"},{"line_number":76,"context_line":"            LOG.error(msg)"}],"source_content_type":"text/x-python","patch_set":2,"id":"AAAAXX%2F%2FvpY%3D","line":73,"in_reply_to":"AAAAXX%2F%2FwjA%3D","updated":"2014-04-28 09:57:06.000000000","message":"Thank you Sridar for your review comments. I\u0027ll wait for Sumit to comment on this. \nI noticed that some additional changes are required in some unit test files. I\u0027ll work on them after we come to some conclusion.","commit_id":"955aef560a4517c00182f844e53a6e23776f152c"},{"author":{"_account_id":2592,"name":"Mark McClain","email":"mark@mcclain.xyz","username":"markmcclain"},"change_message_id":"3f729fe78629f1da34e56398fe78ae1ff55d2dc6","unresolved":false,"context_lines":[{"line_number":72,"context_line":"            constants.FIREWALL)"},{"line_number":73,"context_line":"        if fwplugin and not self.fwaas_enabled:"},{"line_number":74,"context_line":"            msg \u003d _(\"FWaaS plugin configured, but the associated \""},{"line_number":75,"context_line":"                    \"configuration is missing.\")"},{"line_number":76,"context_line":"            LOG.error(msg)"},{"line_number":77,"context_line":"            raise SystemExit(msg)"},{"line_number":78,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"1ae5cdf2_ca707fa6","line":75,"updated":"2014-06-05 17:47:12.000000000","message":"There may not be a separate config file, so we can only state that the option is missing.","commit_id":"955aef560a4517c00182f844e53a6e23776f152c"},{"author":{"_account_id":6995,"name":"Sridar Kandaswamy","email":"skandasw@yahoo.com","username":"skandasw"},"change_message_id":"050d30fcd5a008c5f722ad3b4ec2416b6fe77555","unresolved":false,"context_lines":[{"line_number":72,"context_line":"            constants.FIREWALL)"},{"line_number":73,"context_line":"        if fwplugin and not self.fwaas_enabled:"},{"line_number":74,"context_line":"            msg \u003d _(\"FWaaS plugin configured, but the associated \""},{"line_number":75,"context_line":"                    \"configuration is missing.\")"},{"line_number":76,"context_line":"            LOG.error(msg)"},{"line_number":77,"context_line":"            raise SystemExit(msg)"},{"line_number":78,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"AAAAXX%2F%2Fwh0%3D","line":75,"updated":"2014-04-28 07:36:49.000000000","message":"You may want to explicit state that the Driver Config file is missing.","commit_id":"955aef560a4517c00182f844e53a6e23776f152c"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"63d667f4e77cae01bfb7d11b9366dd89be63eeaa","unresolved":false,"context_lines":[{"line_number":72,"context_line":"            constants.FIREWALL)"},{"line_number":73,"context_line":"        if fwplugin and not self.fwaas_enabled:"},{"line_number":74,"context_line":"            msg \u003d _(\"FWaaS plugin configured, but the associated \""},{"line_number":75,"context_line":"                    \"configuration is missing.\")"},{"line_number":76,"context_line":"            LOG.error(msg)"},{"line_number":77,"context_line":"            raise SystemExit(msg)"},{"line_number":78,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"9ad9bd40_c39df80b","line":75,"in_reply_to":"AAAAXX%2F%2FvoQ%3D","updated":"2014-05-07 04:26:39.000000000","message":"+1 to clarification","commit_id":"955aef560a4517c00182f844e53a6e23776f152c"},{"author":{"_account_id":10257,"name":"Sridhar Gaddam","email":"sgaddam@redhat.com","username":"sridhargaddam"},"change_message_id":"71be9989f8d6ffd496351cea1507d990738115af","unresolved":false,"context_lines":[{"line_number":72,"context_line":"            constants.FIREWALL)"},{"line_number":73,"context_line":"        if fwplugin and not self.fwaas_enabled:"},{"line_number":74,"context_line":"            msg \u003d _(\"FWaaS plugin configured, but the associated \""},{"line_number":75,"context_line":"                    \"configuration is missing.\")"},{"line_number":76,"context_line":"            LOG.error(msg)"},{"line_number":77,"context_line":"            raise SystemExit(msg)"},{"line_number":78,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"AAAAXX%2F%2FvoQ%3D","line":75,"in_reply_to":"AAAAXX%2F%2Fwh0%3D","updated":"2014-04-28 09:57:06.000000000","message":"Hope you are Ok with the following message.\n\n\"FWaaS plugin configured, but the associated driver configuration is missing.\"","commit_id":"955aef560a4517c00182f844e53a6e23776f152c"},{"author":{"_account_id":8247,"name":"Thang Pham","email":"thang.g.pham@gmail.com","username":"thang.pham"},"change_message_id":"414a953a29efc1a359ad51263e67db048d8622d8","unresolved":false,"context_lines":[{"line_number":75,"context_line":"                    \"configuration is missing.\")"},{"line_number":76,"context_line":"            LOG.error(msg)"},{"line_number":77,"context_line":"            raise SystemExit(msg)"},{"line_number":78,"context_line":""},{"line_number":79,"context_line":"        if self.fwaas_enabled:"},{"line_number":80,"context_line":"            try:"},{"line_number":81,"context_line":"                self.fwaas_driver \u003d importutils.import_object("}],"source_content_type":"text/x-python","patch_set":2,"id":"AAAAXX%2F%2Fx2Q%3D","line":78,"updated":"2014-04-27 23:52:23.000000000","message":"Is there a way to create a unit test and test this raised exception?","commit_id":"955aef560a4517c00182f844e53a6e23776f152c"},{"author":{"_account_id":10257,"name":"Sridhar Gaddam","email":"sgaddam@redhat.com","username":"sridhargaddam"},"change_message_id":"71be9989f8d6ffd496351cea1507d990738115af","unresolved":false,"context_lines":[{"line_number":75,"context_line":"                    \"configuration is missing.\")"},{"line_number":76,"context_line":"            LOG.error(msg)"},{"line_number":77,"context_line":"            raise SystemExit(msg)"},{"line_number":78,"context_line":""},{"line_number":79,"context_line":"        if self.fwaas_enabled:"},{"line_number":80,"context_line":"            try:"},{"line_number":81,"context_line":"                self.fwaas_driver \u003d importutils.import_object("}],"source_content_type":"text/x-python","patch_set":2,"id":"AAAAXX%2F%2FvoE%3D","line":78,"in_reply_to":"AAAAXX%2F%2Fwio%3D","updated":"2014-04-28 09:57:06.000000000","message":"Will look into it. Thanks.","commit_id":"955aef560a4517c00182f844e53a6e23776f152c"},{"author":{"_account_id":6995,"name":"Sridar Kandaswamy","email":"skandasw@yahoo.com","username":"skandasw"},"change_message_id":"050d30fcd5a008c5f722ad3b4ec2416b6fe77555","unresolved":false,"context_lines":[{"line_number":75,"context_line":"                    \"configuration is missing.\")"},{"line_number":76,"context_line":"            LOG.error(msg)"},{"line_number":77,"context_line":"            raise SystemExit(msg)"},{"line_number":78,"context_line":""},{"line_number":79,"context_line":"        if self.fwaas_enabled:"},{"line_number":80,"context_line":"            try:"},{"line_number":81,"context_line":"                self.fwaas_driver \u003d importutils.import_object("}],"source_content_type":"text/x-python","patch_set":2,"id":"AAAAXX%2F%2Fwio%3D","line":78,"in_reply_to":"AAAAXX%2F%2Fx2Q%3D","updated":"2014-04-28 07:36:49.000000000","message":"Yes agree here will need a UT to cover the missing config file case.","commit_id":"955aef560a4517c00182f844e53a6e23776f152c"},{"author":{"_account_id":6995,"name":"Sridar Kandaswamy","email":"skandasw@yahoo.com","username":"skandasw"},"change_message_id":"8d4a167cfd8f7d653e09a4292744a9e0832b0e04","unresolved":false,"context_lines":[{"line_number":74,"context_line":"            except ImportError:"},{"line_number":75,"context_line":"                msg \u003d _(\u0027Error importing FWaaS device driver: %s\u0027)"},{"line_number":76,"context_line":"                raise ImportError(msg % fwaas_driver_class_path)"},{"line_number":77,"context_line":"        elif constants.FIREWALL in self.neutron_service_plugins:"},{"line_number":78,"context_line":"            # fwaas_plugin configured on Neutron Server, but firewall"},{"line_number":79,"context_line":"            # configuration is missing."},{"line_number":80,"context_line":"            msg \u003d _(\"FWaaS plugin configured, but the associated driver\""}],"source_content_type":"text/x-python","patch_set":3,"id":"1ae5cdf2_44ee32b6","line":77,"updated":"2014-06-27 22:10:57.000000000","message":"Thanks Sridhar. Now that u have moved the get_service_plugins() out of the agent - this should address the earlier concerns. \n\n1)  suggestion would be to rewrite this as:\n\nif fwaas_plugin:\n     if not self.fwaas_enabled:\n          Error\n     import_driver\n     .\n     .\n\nWhich makes it a bit more readable to convey:\n\"If we have a fwaas plugin better make sure that there is a  driver specified properly\"\n\n2) Fix the methods process_router_add() and process_services_sync() which try to glean that fwaas is configured before trying to msg the plugin by looking at self.fwaas_enabled - now we can actually use this check that u are adding or a flag that is derived from this. These methods may be invoked on a router_add or a sync scenario from the agent side rather than as a response to an fwaas interaction from the plugin so we want to be sure that there is a plugin.","commit_id":"063b67333f72addfee5bc7fc1ec1fcfe23f67ae6"},{"author":{"_account_id":10257,"name":"Sridhar Gaddam","email":"sgaddam@redhat.com","username":"sridhargaddam"},"change_message_id":"5eb7e524e705704063165ce1eb73226d4af903c2","unresolved":false,"context_lines":[{"line_number":74,"context_line":"            except ImportError:"},{"line_number":75,"context_line":"                msg \u003d _(\u0027Error importing FWaaS device driver: %s\u0027)"},{"line_number":76,"context_line":"                raise ImportError(msg % fwaas_driver_class_path)"},{"line_number":77,"context_line":"        elif constants.FIREWALL in self.neutron_service_plugins:"},{"line_number":78,"context_line":"            # fwaas_plugin configured on Neutron Server, but firewall"},{"line_number":79,"context_line":"            # configuration is missing."},{"line_number":80,"context_line":"            msg \u003d _(\"FWaaS plugin configured, but the associated driver\""}],"source_content_type":"text/x-python","patch_set":3,"id":"dab895d6_70880823","line":77,"in_reply_to":"1ae5cdf2_44ee32b6","updated":"2014-06-30 08:37:27.000000000","message":"Thank you for the review comments. Will update the code accordingly.","commit_id":"063b67333f72addfee5bc7fc1ec1fcfe23f67ae6"},{"author":{"_account_id":7787,"name":"Kevin Benton","email":"kevin@benton.pub","username":"blak111"},"change_message_id":"0408a9463c0be41e79607602a9206a6fed6451dd","unresolved":false,"context_lines":[{"line_number":71,"context_line":"                msg \u003d _(\"FWaaS plugin configured, but the associated driver\""},{"line_number":72,"context_line":"                        \" configuration is missing.\")"},{"line_number":73,"context_line":"                LOG.error(msg)"},{"line_number":74,"context_line":"                raise SystemExit(1)"},{"line_number":75,"context_line":"            try:"},{"line_number":76,"context_line":"                self.fwaas_driver \u003d importutils.import_object("},{"line_number":77,"context_line":"                    fwaas_driver_class_path)"}],"source_content_type":"text/x-python","patch_set":4,"id":"baada198_77e54ea7","line":74,"updated":"2014-07-01 09:30:27.000000000","message":"Is SystemExit really necessary here? It makes debugging unit tests hard if uncaught because it immediately exists. Can you change to ImportError?","commit_id":"b3645e6a9ae2cd22202d4a0e7beb4bbcf496ff4d"},{"author":{"_account_id":10257,"name":"Sridhar Gaddam","email":"sgaddam@redhat.com","username":"sridhargaddam"},"change_message_id":"ce58710ef95f5130f40aa2b471f7ffbcef34b1d6","unresolved":false,"context_lines":[{"line_number":71,"context_line":"                msg \u003d _(\"FWaaS plugin configured, but the associated driver\""},{"line_number":72,"context_line":"                        \" configuration is missing.\")"},{"line_number":73,"context_line":"                LOG.error(msg)"},{"line_number":74,"context_line":"                raise SystemExit(1)"},{"line_number":75,"context_line":"            try:"},{"line_number":76,"context_line":"                self.fwaas_driver \u003d importutils.import_object("},{"line_number":77,"context_line":"                    fwaas_driver_class_path)"}],"source_content_type":"text/x-python","patch_set":4,"id":"baada198_a8ef87af","line":74,"in_reply_to":"baada198_77e54ea7","updated":"2014-07-01 10:45:32.000000000","message":"Thank you Kevin for your review comments.\n\nRegarding the ImportError, IMHO it may not be apt as it is generally used when an Import statement fails. The problem here is a configuration problem so I considered SystemExit. As you know, SystemExit is used in couple of places in Neutron, like l3_agent.py, for similar issues. \n\nHowever, if its a general opinion among all the other reviewers, I\u0027ll change it to ImportError.","commit_id":"b3645e6a9ae2cd22202d4a0e7beb4bbcf496ff4d"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"7132c731bcf61e1da3a72ead18fcb727a4d3ea61","unresolved":false,"context_lines":[{"line_number":67,"context_line":"        fwaas_enabled \u003d cfg.CONF.fwaas.enabled"},{"line_number":68,"context_line":"        self.fwaas_plugin \u003d constants.FIREWALL in self.neutron_service_plugins"},{"line_number":69,"context_line":"        if self.fwaas_plugin:"},{"line_number":70,"context_line":"            if not fwaas_enabled:"},{"line_number":71,"context_line":"                msg \u003d _(\"FWaaS plugin configured, but the associated driver\""},{"line_number":72,"context_line":"                        \" configuration is missing.\")"},{"line_number":73,"context_line":"                LOG.error(msg)"}],"source_content_type":"text/x-python","patch_set":6,"id":"baada198_5ba2733f","line":70,"updated":"2014-07-22 00:24:51.000000000","message":"How about the following logic? \"self.fwaas_enabled\" looks more appropriate var name to me.\n\n  fwaas_enabled \u003d cfg.CONF.fwaas.enabled\n  fwaas_plugin_configured \u003d constants.FIREWALL in self.neutron_service_plugins\n  if fwaas_plugin_configured and not fwaas_enabled:\n      \u003cerror handling below\u003e\n  self.fwaas_enabled \u003d fwaas_enabled and fwaas_plugin_configured\n  if self.fwaas_enabled:\n     \u003cimport fwaas driver (L.75)\u003e","commit_id":"366066c6748041e0c7222472b0b14bb5547e32a9"},{"author":{"_account_id":10257,"name":"Sridhar Gaddam","email":"sgaddam@redhat.com","username":"sridhargaddam"},"change_message_id":"ca17d4c87b8e5898fcb73375d82f51ce026cc11b","unresolved":false,"context_lines":[{"line_number":67,"context_line":"        fwaas_enabled \u003d cfg.CONF.fwaas.enabled"},{"line_number":68,"context_line":"        self.fwaas_plugin \u003d constants.FIREWALL in self.neutron_service_plugins"},{"line_number":69,"context_line":"        if self.fwaas_plugin:"},{"line_number":70,"context_line":"            if not fwaas_enabled:"},{"line_number":71,"context_line":"                msg \u003d _(\"FWaaS plugin configured, but the associated driver\""},{"line_number":72,"context_line":"                        \" configuration is missing.\")"},{"line_number":73,"context_line":"                LOG.error(msg)"}],"source_content_type":"text/x-python","patch_set":6,"id":"baada198_7d1c4fc3","line":70,"in_reply_to":"baada198_5ba2733f","updated":"2014-07-29 20:50:31.000000000","message":"ok Akihiro, I\u0027ll update it accordingly. Thanks for the review comments.","commit_id":"366066c6748041e0c7222472b0b14bb5547e32a9"},{"author":{"_account_id":2592,"name":"Mark McClain","email":"mark@mcclain.xyz","username":"markmcclain"},"change_message_id":"a6cb33c248b2e92e809d1cabf402ec7ed5250df2","unresolved":false,"context_lines":[{"line_number":69,"context_line":"        if self.fwaas_plugin:"},{"line_number":70,"context_line":"            if not fwaas_enabled:"},{"line_number":71,"context_line":"                msg \u003d _(\"FWaaS plugin configured, but the associated driver\""},{"line_number":72,"context_line":"                        \" configuration is missing.\")"},{"line_number":73,"context_line":"                LOG.error(msg)"},{"line_number":74,"context_line":"                raise SystemExit(1)"},{"line_number":75,"context_line":"            try:"}],"source_content_type":"text/x-python","patch_set":6,"id":"baada198_170e6e3b","line":72,"updated":"2014-07-03 12:57:10.000000000","message":"What hints that the driver is missing here?  Do we need to check that cfg.CONF.fwaas.driver has a value?","commit_id":"366066c6748041e0c7222472b0b14bb5547e32a9"},{"author":{"_account_id":10257,"name":"Sridhar Gaddam","email":"sgaddam@redhat.com","username":"sridhargaddam"},"change_message_id":"39adb697346a51c5fd56b2b9419b194de7e60a8a","unresolved":false,"context_lines":[{"line_number":69,"context_line":"        if self.fwaas_plugin:"},{"line_number":70,"context_line":"            if not fwaas_enabled:"},{"line_number":71,"context_line":"                msg \u003d _(\"FWaaS plugin configured, but the associated driver\""},{"line_number":72,"context_line":"                        \" configuration is missing.\")"},{"line_number":73,"context_line":"                LOG.error(msg)"},{"line_number":74,"context_line":"                raise SystemExit(1)"},{"line_number":75,"context_line":"            try:"}],"source_content_type":"text/x-python","patch_set":6,"id":"baada198_fd471b75","line":72,"in_reply_to":"baada198_170e6e3b","updated":"2014-07-03 13:29:34.000000000","message":"Thank you Mark for your review comments.\n\nAs you know, on the agent side we have two flags (enabled and driver) in fwaas_driver.ini file. Based on the previous review comments and looking at the file name firewall_driver.ini, the message is framed in that manner.\n\nIf you have any alternate suggestion, please let me know and I\u0027ll update the error message.","commit_id":"366066c6748041e0c7222472b0b14bb5547e32a9"},{"author":{"_account_id":10257,"name":"Sridhar Gaddam","email":"sgaddam@redhat.com","username":"sridhargaddam"},"change_message_id":"ca17d4c87b8e5898fcb73375d82f51ce026cc11b","unresolved":false,"context_lines":[{"line_number":69,"context_line":"        if self.fwaas_plugin:"},{"line_number":70,"context_line":"            if not fwaas_enabled:"},{"line_number":71,"context_line":"                msg \u003d _(\"FWaaS plugin configured, but the associated driver\""},{"line_number":72,"context_line":"                        \" configuration is missing.\")"},{"line_number":73,"context_line":"                LOG.error(msg)"},{"line_number":74,"context_line":"                raise SystemExit(1)"},{"line_number":75,"context_line":"            try:"}],"source_content_type":"text/x-python","patch_set":6,"id":"baada198_9d1923d4","line":72,"in_reply_to":"baada198_60fb06be","updated":"2014-07-29 20:50:31.000000000","message":"Done","commit_id":"366066c6748041e0c7222472b0b14bb5547e32a9"},{"author":{"_account_id":10182,"name":"Karthik Natarajan","email":"natarajk@brocade.com","username":"natarajk"},"change_message_id":"0a319d937231a5ab1b96347bbbc17155900de026","unresolved":false,"context_lines":[{"line_number":69,"context_line":"        if self.fwaas_plugin:"},{"line_number":70,"context_line":"            if not fwaas_enabled:"},{"line_number":71,"context_line":"                msg \u003d _(\"FWaaS plugin configured, but the associated driver\""},{"line_number":72,"context_line":"                        \" configuration is missing.\")"},{"line_number":73,"context_line":"                LOG.error(msg)"},{"line_number":74,"context_line":"                raise SystemExit(1)"},{"line_number":75,"context_line":"            try:"}],"source_content_type":"text/x-python","patch_set":6,"id":"baada198_65e29131","line":72,"in_reply_to":"baada198_60fb06be","updated":"2014-07-24 17:47:39.000000000","message":"We need to explicitly show the message: \"Check if the fwaas_driver.ini file is provided to the l3-agent and enabled property is set to true\".","commit_id":"366066c6748041e0c7222472b0b14bb5547e32a9"},{"author":{"_account_id":10257,"name":"Sridhar Gaddam","email":"sgaddam@redhat.com","username":"sridhargaddam"},"change_message_id":"ca17d4c87b8e5898fcb73375d82f51ce026cc11b","unresolved":false,"context_lines":[{"line_number":69,"context_line":"        if self.fwaas_plugin:"},{"line_number":70,"context_line":"            if not fwaas_enabled:"},{"line_number":71,"context_line":"                msg \u003d _(\"FWaaS plugin configured, but the associated driver\""},{"line_number":72,"context_line":"                        \" configuration is missing.\")"},{"line_number":73,"context_line":"                LOG.error(msg)"},{"line_number":74,"context_line":"                raise SystemExit(1)"},{"line_number":75,"context_line":"            try:"}],"source_content_type":"text/x-python","patch_set":6,"id":"baada198_7d4a8fae","line":72,"in_reply_to":"baada198_65e29131","updated":"2014-07-29 20:50:31.000000000","message":"@Karthik, IMHO hardcoding the file name in the message may not be a good idea. I hope you are ok with the suggestion of Akihiro which is good enough to convey the error message.","commit_id":"366066c6748041e0c7222472b0b14bb5547e32a9"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"7132c731bcf61e1da3a72ead18fcb727a4d3ea61","unresolved":false,"context_lines":[{"line_number":69,"context_line":"        if self.fwaas_plugin:"},{"line_number":70,"context_line":"            if not fwaas_enabled:"},{"line_number":71,"context_line":"                msg \u003d _(\"FWaaS plugin configured, but the associated driver\""},{"line_number":72,"context_line":"                        \" configuration is missing.\")"},{"line_number":73,"context_line":"                LOG.error(msg)"},{"line_number":74,"context_line":"                raise SystemExit(1)"},{"line_number":75,"context_line":"            try:"}],"source_content_type":"text/x-python","patch_set":6,"id":"baada198_60fb06be","line":72,"in_reply_to":"baada198_7218951e","updated":"2014-07-22 00:24:51.000000000","message":"I agree the message is ambiguous. This patch tries to add the logic to check fwaas configuration matches between the server and agent sides. How about changing the message to:\n\n  FWaaS plugin is configured in the server side, but FWaaS is disabled in L3-agent.","commit_id":"366066c6748041e0c7222472b0b14bb5547e32a9"},{"author":{"_account_id":10257,"name":"Sridhar Gaddam","email":"sgaddam@redhat.com","username":"sridhargaddam"},"change_message_id":"5a512b33adf76eb636d65650747d98b633adee6e","unresolved":false,"context_lines":[{"line_number":69,"context_line":"        if self.fwaas_plugin:"},{"line_number":70,"context_line":"            if not fwaas_enabled:"},{"line_number":71,"context_line":"                msg \u003d _(\"FWaaS plugin configured, but the associated driver\""},{"line_number":72,"context_line":"                        \" configuration is missing.\")"},{"line_number":73,"context_line":"                LOG.error(msg)"},{"line_number":74,"context_line":"                raise SystemExit(1)"},{"line_number":75,"context_line":"            try:"}],"source_content_type":"text/x-python","patch_set":6,"id":"baada198_7218951e","line":72,"in_reply_to":"baada198_fd471b75","updated":"2014-07-03 14:08:29.000000000","message":"In such situations, cfg.CONF.fwaas.driver would be empty. I can add this check if it makes sense.","commit_id":"366066c6748041e0c7222472b0b14bb5547e32a9"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"7132c731bcf61e1da3a72ead18fcb727a4d3ea61","unresolved":false,"context_lines":[{"line_number":225,"context_line":"    def process_router_add(self, ri):"},{"line_number":226,"context_line":"        \"\"\"On router add, get fw with rules from plugin and update driver.\"\"\""},{"line_number":227,"context_line":"        # avoid msg to plugin when fwaas is not configured"},{"line_number":228,"context_line":"        if not self.fwaas_plugin:"},{"line_number":229,"context_line":"            return"},{"line_number":230,"context_line":"        try:"},{"line_number":231,"context_line":"            self._process_router_add(ri)"}],"source_content_type":"text/x-python","patch_set":6,"id":"baada198_3b005faa","line":228,"updated":"2014-07-22 00:24:51.000000000","message":"According to my comment above, there is no need to change this.","commit_id":"366066c6748041e0c7222472b0b14bb5547e32a9"},{"author":{"_account_id":10257,"name":"Sridhar Gaddam","email":"sgaddam@redhat.com","username":"sridhargaddam"},"change_message_id":"ca17d4c87b8e5898fcb73375d82f51ce026cc11b","unresolved":false,"context_lines":[{"line_number":225,"context_line":"    def process_router_add(self, ri):"},{"line_number":226,"context_line":"        \"\"\"On router add, get fw with rules from plugin and update driver.\"\"\""},{"line_number":227,"context_line":"        # avoid msg to plugin when fwaas is not configured"},{"line_number":228,"context_line":"        if not self.fwaas_plugin:"},{"line_number":229,"context_line":"            return"},{"line_number":230,"context_line":"        try:"},{"line_number":231,"context_line":"            self._process_router_add(ri)"}],"source_content_type":"text/x-python","patch_set":6,"id":"baada198_bdc34705","line":228,"in_reply_to":"baada198_3b005faa","updated":"2014-07-29 20:50:31.000000000","message":"Done","commit_id":"366066c6748041e0c7222472b0b14bb5547e32a9"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"867688593e63fa46d8a5c8c729fe30de39a77d75","unresolved":false,"context_lines":[{"line_number":83,"context_line":"            except ImportError:"},{"line_number":84,"context_line":"                msg \u003d _(\u0027Error importing FWaaS device driver: %s\u0027)"},{"line_number":85,"context_line":"                raise ImportError(msg % fwaas_driver_class_path)"},{"line_number":86,"context_line":""},{"line_number":87,"context_line":"        self.services_sync \u003d False"},{"line_number":88,"context_line":"        self.root_helper \u003d config.get_root_helper(conf)"},{"line_number":89,"context_line":"        # setup RPC to msg fwaas plugin"}],"source_content_type":"text/x-python","patch_set":7,"id":"baada198_af75bf34","line":86,"updated":"2014-07-30 04:51:38.000000000","message":"Unrelated change.","commit_id":"5215d8d68aa24e555dab58425aa66a9a65c615d8"},{"author":{"_account_id":10257,"name":"Sridhar Gaddam","email":"sgaddam@redhat.com","username":"sridhargaddam"},"change_message_id":"ee7109547da1b52112118038a1f82012d6f2fedb","unresolved":false,"context_lines":[{"line_number":83,"context_line":"            except ImportError:"},{"line_number":84,"context_line":"                msg \u003d _(\u0027Error importing FWaaS device driver: %s\u0027)"},{"line_number":85,"context_line":"                raise ImportError(msg % fwaas_driver_class_path)"},{"line_number":86,"context_line":""},{"line_number":87,"context_line":"        self.services_sync \u003d False"},{"line_number":88,"context_line":"        self.root_helper \u003d config.get_root_helper(conf)"},{"line_number":89,"context_line":"        # setup RPC to msg fwaas plugin"}],"source_content_type":"text/x-python","patch_set":7,"id":"baada198_8da800db","line":86,"in_reply_to":"baada198_af75bf34","updated":"2014-07-30 07:46:30.000000000","message":"Done","commit_id":"5215d8d68aa24e555dab58425aa66a9a65c615d8"},{"author":{"_account_id":2592,"name":"Mark McClain","email":"mark@mcclain.xyz","username":"markmcclain"},"change_message_id":"0032f09153afce0a0207f593b89a3aabf22c973c","unresolved":false,"context_lines":[{"line_number":71,"context_line":"            msg \u003d _(\"FWaaS plugin is configured in the server side, but \""},{"line_number":72,"context_line":"                    \"FWaaS is disabled in L3-agent.\")"},{"line_number":73,"context_line":"            LOG.error(msg)"},{"line_number":74,"context_line":"            raise SystemExit(1)"},{"line_number":75,"context_line":""},{"line_number":76,"context_line":"        self.fwaas_enabled \u003d fwaas_enabled and fwaas_plugin_configured"},{"line_number":77,"context_line":"        if self.fwaas_enabled:"}],"source_content_type":"text/x-python","patch_set":9,"id":"baada198_60ced1b8","line":74,"updated":"2014-08-02 13:18:54.000000000","message":"raise SystemExit(msg)","commit_id":"d6f014d0922e03864fd72efbcde04322711c2510"},{"author":{"_account_id":2592,"name":"Mark McClain","email":"mark@mcclain.xyz","username":"markmcclain"},"change_message_id":"dc13d602876f0345403011a3056ffec98274b1d4","unresolved":false,"context_lines":[{"line_number":71,"context_line":"            msg \u003d _(\"FWaaS plugin is configured in the server side, but \""},{"line_number":72,"context_line":"                    \"FWaaS is disabled in L3-agent.\")"},{"line_number":73,"context_line":"            LOG.error(msg)"},{"line_number":74,"context_line":"            raise SystemExit(1)"},{"line_number":75,"context_line":""},{"line_number":76,"context_line":"        self.fwaas_enabled \u003d fwaas_enabled and fwaas_plugin_configured"},{"line_number":77,"context_line":"        if self.fwaas_enabled:"}],"source_content_type":"text/x-python","patch_set":9,"id":"baada198_d082b2fe","line":74,"in_reply_to":"baada198_40e8edde","updated":"2014-08-05 16:59:31.000000000","message":"You\u0027re right I was happened to crosscheck at one of the two other places in the code where we are doing it the older way","commit_id":"d6f014d0922e03864fd72efbcde04322711c2510"},{"author":{"_account_id":10257,"name":"Sridhar Gaddam","email":"sgaddam@redhat.com","username":"sridhargaddam"},"change_message_id":"ffe3dde14dc8434e7a2277695a53adfd566bca46","unresolved":false,"context_lines":[{"line_number":71,"context_line":"            msg \u003d _(\"FWaaS plugin is configured in the server side, but \""},{"line_number":72,"context_line":"                    \"FWaaS is disabled in L3-agent.\")"},{"line_number":73,"context_line":"            LOG.error(msg)"},{"line_number":74,"context_line":"            raise SystemExit(1)"},{"line_number":75,"context_line":""},{"line_number":76,"context_line":"        self.fwaas_enabled \u003d fwaas_enabled and fwaas_plugin_configured"},{"line_number":77,"context_line":"        if self.fwaas_enabled:"}],"source_content_type":"text/x-python","patch_set":9,"id":"baada198_40e8edde","line":74,"in_reply_to":"baada198_60ced1b8","updated":"2014-08-02 13:47:33.000000000","message":"Hi Mark,\n\nSince Log.error would anyway log the error message, using SystemExit(msg) was duplicating the error message. It was suggested to use SystemExit(1). Please have a look at the following patch in Neutron which incorporated this change - https://review.openstack.org/#/c/91185/3 \n\n--Sridhar.","commit_id":"d6f014d0922e03864fd72efbcde04322711c2510"}],"neutron/tests/unit/services/firewall/agents/l3reference/test_firewall_l3_agent.py":[{"author":{"_account_id":7787,"name":"Kevin Benton","email":"kevin@benton.pub","username":"blak111"},"change_message_id":"0408a9463c0be41e79607602a9206a6fed6451dd","unresolved":false,"context_lines":[{"line_number":40,"context_line":""},{"line_number":41,"context_line":"class FWaasAgent(firewall_l3_agent.FWaaSL3AgentRpcCallback, FWaasHelper):"},{"line_number":42,"context_line":"    def __init__(self, conf\u003dNone):"},{"line_number":43,"context_line":"        self.neutron_service_plugins \u003d list()"},{"line_number":44,"context_line":"        super(FWaasAgent, self).__init__(conf)"},{"line_number":45,"context_line":""},{"line_number":46,"context_line":""}],"source_content_type":"text/x-python","patch_set":4,"id":"baada198_f79f9e01","line":43,"updated":"2014-07-01 09:30:27.000000000","message":"Use [] for consistency with the rest of code base.\n\nself.neutron_service_plugins \u003d []","commit_id":"b3645e6a9ae2cd22202d4a0e7beb4bbcf496ff4d"},{"author":{"_account_id":10257,"name":"Sridhar Gaddam","email":"sgaddam@redhat.com","username":"sridhargaddam"},"change_message_id":"ce58710ef95f5130f40aa2b471f7ffbcef34b1d6","unresolved":false,"context_lines":[{"line_number":40,"context_line":""},{"line_number":41,"context_line":"class FWaasAgent(firewall_l3_agent.FWaaSL3AgentRpcCallback, FWaasHelper):"},{"line_number":42,"context_line":"    def __init__(self, conf\u003dNone):"},{"line_number":43,"context_line":"        self.neutron_service_plugins \u003d list()"},{"line_number":44,"context_line":"        super(FWaasAgent, self).__init__(conf)"},{"line_number":45,"context_line":""},{"line_number":46,"context_line":""}],"source_content_type":"text/x-python","patch_set":4,"id":"baada198_e8309f58","line":43,"in_reply_to":"baada198_f79f9e01","updated":"2014-07-01 10:45:32.000000000","message":"Done","commit_id":"b3645e6a9ae2cd22202d4a0e7beb4bbcf496ff4d"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"7132c731bcf61e1da3a72ead18fcb727a4d3ea61","unresolved":false,"context_lines":[{"line_number":40,"context_line":""},{"line_number":41,"context_line":"class FWaasAgent(firewall_l3_agent.FWaaSL3AgentRpcCallback, FWaasHelper):"},{"line_number":42,"context_line":"    def __init__(self, conf\u003dNone):"},{"line_number":43,"context_line":"        self.neutron_service_plugins \u003d []"},{"line_number":44,"context_line":"        super(FWaasAgent, self).__init__(conf)"},{"line_number":45,"context_line":""},{"line_number":46,"context_line":""}],"source_content_type":"text/x-python","patch_set":6,"id":"baada198_d5449274","line":43,"updated":"2014-07-22 00:24:51.000000000","message":"Can we make neutron_service_plugins to a class attribute? I think it makes the code simpler.","commit_id":"366066c6748041e0c7222472b0b14bb5547e32a9"},{"author":{"_account_id":10257,"name":"Sridhar Gaddam","email":"sgaddam@redhat.com","username":"sridhargaddam"},"change_message_id":"ca17d4c87b8e5898fcb73375d82f51ce026cc11b","unresolved":false,"context_lines":[{"line_number":40,"context_line":""},{"line_number":41,"context_line":"class FWaasAgent(firewall_l3_agent.FWaaSL3AgentRpcCallback, FWaasHelper):"},{"line_number":42,"context_line":"    def __init__(self, conf\u003dNone):"},{"line_number":43,"context_line":"        self.neutron_service_plugins \u003d []"},{"line_number":44,"context_line":"        super(FWaasAgent, self).__init__(conf)"},{"line_number":45,"context_line":""},{"line_number":46,"context_line":""}],"source_content_type":"text/x-python","patch_set":6,"id":"baada198_ee90a744","line":43,"in_reply_to":"baada198_d5449274","updated":"2014-07-29 20:50:31.000000000","message":"Done","commit_id":"366066c6748041e0c7222472b0b14bb5547e32a9"}],"neutron/tests/unit/services/firewall/agents/varmour/test_varmour_router.py":[{"author":{"_account_id":7787,"name":"Kevin Benton","email":"kevin@benton.pub","username":"blak111"},"change_message_id":"0408a9463c0be41e79607602a9206a6fed6451dd","unresolved":false,"context_lines":[{"line_number":76,"context_line":""},{"line_number":77,"context_line":"        l3_plugin_p \u003d mock.patch(\u0027neutron.agent.l3_agent.L3PluginApi\u0027)"},{"line_number":78,"context_line":"        l3_plugin_cls \u003d l3_plugin_p.start()"},{"line_number":79,"context_line":"        l3_plugin_cls.return_value \u003d mock.MagicMock()"},{"line_number":80,"context_line":""},{"line_number":81,"context_line":"        self.looping_call_p \u003d mock.patch("},{"line_number":82,"context_line":"            \u0027neutron.openstack.common.loopingcall.FixedIntervalLoopingCall\u0027)"}],"source_content_type":"text/x-python","patch_set":4,"id":"baada198_b7636619","line":79,"updated":"2014-07-01 09:30:27.000000000","message":"This line isn\u0027t necessary. By default the magicmock returned from mock.patch.start() already returns magicmocks.","commit_id":"b3645e6a9ae2cd22202d4a0e7beb4bbcf496ff4d"},{"author":{"_account_id":10257,"name":"Sridhar Gaddam","email":"sgaddam@redhat.com","username":"sridhargaddam"},"change_message_id":"ce58710ef95f5130f40aa2b471f7ffbcef34b1d6","unresolved":false,"context_lines":[{"line_number":76,"context_line":""},{"line_number":77,"context_line":"        l3_plugin_p \u003d mock.patch(\u0027neutron.agent.l3_agent.L3PluginApi\u0027)"},{"line_number":78,"context_line":"        l3_plugin_cls \u003d l3_plugin_p.start()"},{"line_number":79,"context_line":"        l3_plugin_cls.return_value \u003d mock.MagicMock()"},{"line_number":80,"context_line":""},{"line_number":81,"context_line":"        self.looping_call_p \u003d mock.patch("},{"line_number":82,"context_line":"            \u0027neutron.openstack.common.loopingcall.FixedIntervalLoopingCall\u0027)"}],"source_content_type":"text/x-python","patch_set":4,"id":"baada198_486d0b32","line":79,"in_reply_to":"baada198_b7636619","updated":"2014-07-01 10:45:32.000000000","message":"Done","commit_id":"b3645e6a9ae2cd22202d4a0e7beb4bbcf496ff4d"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"7132c731bcf61e1da3a72ead18fcb727a4d3ea61","unresolved":false,"context_lines":[{"line_number":75,"context_line":"        ip_cls.return_value \u003d self.mock_ip"},{"line_number":76,"context_line":""},{"line_number":77,"context_line":"        l3_plugin_p \u003d mock.patch(\u0027neutron.agent.l3_agent.L3PluginApi\u0027)"},{"line_number":78,"context_line":"        l3_plugin_p.start()"},{"line_number":79,"context_line":""},{"line_number":80,"context_line":"        self.looping_call_p \u003d mock.patch("},{"line_number":81,"context_line":"            \u0027neutron.openstack.common.loopingcall.FixedIntervalLoopingCall\u0027)"}],"source_content_type":"text/x-python","patch_set":6,"id":"baada198_5550822b","line":78,"updated":"2014-07-22 00:24:51.000000000","message":"We can make this to:\n\n  mock.patch(\u0027neutron.agent.l3_agent.L3PluginApi\u0027).start()\n\nThere is no need to assign a variable.","commit_id":"366066c6748041e0c7222472b0b14bb5547e32a9"},{"author":{"_account_id":10257,"name":"Sridhar Gaddam","email":"sgaddam@redhat.com","username":"sridhargaddam"},"change_message_id":"ca17d4c87b8e5898fcb73375d82f51ce026cc11b","unresolved":false,"context_lines":[{"line_number":75,"context_line":"        ip_cls.return_value \u003d self.mock_ip"},{"line_number":76,"context_line":""},{"line_number":77,"context_line":"        l3_plugin_p \u003d mock.patch(\u0027neutron.agent.l3_agent.L3PluginApi\u0027)"},{"line_number":78,"context_line":"        l3_plugin_p.start()"},{"line_number":79,"context_line":""},{"line_number":80,"context_line":"        self.looping_call_p \u003d mock.patch("},{"line_number":81,"context_line":"            \u0027neutron.openstack.common.loopingcall.FixedIntervalLoopingCall\u0027)"}],"source_content_type":"text/x-python","patch_set":6,"id":"baada198_9df5a353","line":78,"in_reply_to":"baada198_5550822b","updated":"2014-07-29 20:50:31.000000000","message":"Done","commit_id":"366066c6748041e0c7222472b0b14bb5547e32a9"}],"neutron/tests/unit/services/firewall/drivers/varmour/test_varmour_fwaas.py":[{"author":{"_account_id":7787,"name":"Kevin Benton","email":"kevin@benton.pub","username":"blak111"},"change_message_id":"0408a9463c0be41e79607602a9206a6fed6451dd","unresolved":false,"context_lines":[{"line_number":77,"context_line":""},{"line_number":78,"context_line":"        l3_plugin_p \u003d mock.patch(\u0027neutron.agent.l3_agent.L3PluginApi\u0027)"},{"line_number":79,"context_line":"        l3_plugin_cls \u003d l3_plugin_p.start()"},{"line_number":80,"context_line":"        l3_plugin_cls.return_value \u003d mock.MagicMock()"},{"line_number":81,"context_line":""},{"line_number":82,"context_line":"        self.looping_call_p \u003d mock.patch("},{"line_number":83,"context_line":"            \u0027neutron.openstack.common.loopingcall.FixedIntervalLoopingCall\u0027)"}],"source_content_type":"text/x-python","patch_set":4,"id":"baada198_7781ce8e","line":80,"updated":"2014-07-01 09:30:27.000000000","message":"Remove this line as well.","commit_id":"b3645e6a9ae2cd22202d4a0e7beb4bbcf496ff4d"},{"author":{"_account_id":10257,"name":"Sridhar Gaddam","email":"sgaddam@redhat.com","username":"sridhargaddam"},"change_message_id":"ce58710ef95f5130f40aa2b471f7ffbcef34b1d6","unresolved":false,"context_lines":[{"line_number":77,"context_line":""},{"line_number":78,"context_line":"        l3_plugin_p \u003d mock.patch(\u0027neutron.agent.l3_agent.L3PluginApi\u0027)"},{"line_number":79,"context_line":"        l3_plugin_cls \u003d l3_plugin_p.start()"},{"line_number":80,"context_line":"        l3_plugin_cls.return_value \u003d mock.MagicMock()"},{"line_number":81,"context_line":""},{"line_number":82,"context_line":"        self.looping_call_p \u003d mock.patch("},{"line_number":83,"context_line":"            \u0027neutron.openstack.common.loopingcall.FixedIntervalLoopingCall\u0027)"}],"source_content_type":"text/x-python","patch_set":4,"id":"baada198_a874e7fd","line":80,"in_reply_to":"baada198_7781ce8e","updated":"2014-07-01 10:45:32.000000000","message":"Done","commit_id":"b3645e6a9ae2cd22202d4a0e7beb4bbcf496ff4d"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"7132c731bcf61e1da3a72ead18fcb727a4d3ea61","unresolved":false,"context_lines":[{"line_number":76,"context_line":"        ip_cls.return_value \u003d self.mock_ip"},{"line_number":77,"context_line":""},{"line_number":78,"context_line":"        l3_plugin_p \u003d mock.patch(\u0027neutron.agent.l3_agent.L3PluginApi\u0027)"},{"line_number":79,"context_line":"        l3_plugin_p.start()"},{"line_number":80,"context_line":""},{"line_number":81,"context_line":"        self.looping_call_p \u003d mock.patch("},{"line_number":82,"context_line":"            \u0027neutron.openstack.common.loopingcall.FixedIntervalLoopingCall\u0027)"}],"source_content_type":"text/x-python","patch_set":6,"id":"baada198_155a8a4f","line":79,"updated":"2014-07-22 00:24:51.000000000","message":"We can make this to:\n\n  mock.patch(\u0027neutron.agent.l3_agent.L3PluginApi\u0027).start()\n\nThere is no need to assign a variable.","commit_id":"366066c6748041e0c7222472b0b14bb5547e32a9"},{"author":{"_account_id":10257,"name":"Sridhar Gaddam","email":"sgaddam@redhat.com","username":"sridhargaddam"},"change_message_id":"ca17d4c87b8e5898fcb73375d82f51ce026cc11b","unresolved":false,"context_lines":[{"line_number":76,"context_line":"        ip_cls.return_value \u003d self.mock_ip"},{"line_number":77,"context_line":""},{"line_number":78,"context_line":"        l3_plugin_p \u003d mock.patch(\u0027neutron.agent.l3_agent.L3PluginApi\u0027)"},{"line_number":79,"context_line":"        l3_plugin_p.start()"},{"line_number":80,"context_line":""},{"line_number":81,"context_line":"        self.looping_call_p \u003d mock.patch("},{"line_number":82,"context_line":"            \u0027neutron.openstack.common.loopingcall.FixedIntervalLoopingCall\u0027)"}],"source_content_type":"text/x-python","patch_set":6,"id":"baada198_dd963bef","line":79,"in_reply_to":"baada198_155a8a4f","updated":"2014-07-29 20:50:31.000000000","message":"Done","commit_id":"366066c6748041e0c7222472b0b14bb5547e32a9"}],"neutron/tests/unit/services/vpn/test_vpn_agent.py":[{"author":{"_account_id":2592,"name":"Mark McClain","email":"mark@mcclain.xyz","username":"markmcclain"},"change_message_id":"a6cb33c248b2e92e809d1cabf402ec7ed5250df2","unresolved":false,"context_lines":[{"line_number":71,"context_line":""},{"line_number":72,"context_line":"        l3pluginApi_cls \u003d mock.patch("},{"line_number":73,"context_line":"            \u0027neutron.agent.l3_agent.L3PluginApi\u0027).start()"},{"line_number":74,"context_line":"        self.plugin_api \u003d mock.MagicMock()"},{"line_number":75,"context_line":"        l3pluginApi_cls.return_value \u003d self.plugin_api"},{"line_number":76,"context_line":""},{"line_number":77,"context_line":"        looping_call_p \u003d mock.patch("}],"source_content_type":"text/x-python","patch_set":6,"id":"baada198_020d4e37","line":74,"updated":"2014-07-03 12:57:10.000000000","message":"Why this change?  Seems that should not have been changed.","commit_id":"366066c6748041e0c7222472b0b14bb5547e32a9"},{"author":{"_account_id":10257,"name":"Sridhar Gaddam","email":"sgaddam@redhat.com","username":"sridhargaddam"},"change_message_id":"39adb697346a51c5fd56b2b9419b194de7e60a8a","unresolved":false,"context_lines":[{"line_number":71,"context_line":""},{"line_number":72,"context_line":"        l3pluginApi_cls \u003d mock.patch("},{"line_number":73,"context_line":"            \u0027neutron.agent.l3_agent.L3PluginApi\u0027).start()"},{"line_number":74,"context_line":"        self.plugin_api \u003d mock.MagicMock()"},{"line_number":75,"context_line":"        l3pluginApi_cls.return_value \u003d self.plugin_api"},{"line_number":76,"context_line":""},{"line_number":77,"context_line":"        looping_call_p \u003d mock.patch("}],"source_content_type":"text/x-python","patch_set":6,"id":"baada198_5d18071e","line":74,"in_reply_to":"baada198_020d4e37","updated":"2014-07-03 13:29:34.000000000","message":"As we are checking for FIREWALL in self.neutron_service_plugins and since Mock is not iterable, it is changed to MagicMock.\n\nPSB the trace.\n\nTraceback (most recent call last):\n  File \"/home/sridhar/projects/neutron/neutron/neutron/tests/unit/services/vpn/test_vpn_agent.py\", line 82, in setUp\n    self.agent \u003d agent.VPNAgent(self.fake_host)\n  File \"/home/sridhar/projects/neutron/neutron/neutron/services/vpn/agent.py\", line 34, in __init__\n    super(VPNAgent, self).__init__(host\u003dhost, conf\u003dconf)\n  File \"/home/sridhar/projects/neutron/neutron/neutron/agent/l3_agent.py\", line 918, in __init__\n    super(L3NATAgentWithStateReport, self).__init__(host\u003dhost, conf\u003dconf)\n  File \"/home/sridhar/projects/neutron/neutron/neutron/agent/l3_agent.py\", line 236, in __init__\n    super(L3NATAgent, self).__init__(conf\u003dself.conf)\n  File \"/home/sridhar/projects/neutron/neutron/neutron/services/firewall/agents/l3reference/firewall_l3_agent.py\", line 68, in __init__\n    self.fwaas_plugin \u003d constants.FIREWALL in self.neutron_service_plugins\nTypeError: argument of type \u0027Mock\u0027 is not iterable","commit_id":"366066c6748041e0c7222472b0b14bb5547e32a9"}],"neutron/tests/unit/test_l3_agent.py":[{"author":{"_account_id":2592,"name":"Mark McClain","email":"mark@mcclain.xyz","username":"markmcclain"},"change_message_id":"a6cb33c248b2e92e809d1cabf402ec7ed5250df2","unresolved":false,"context_lines":[{"line_number":84,"context_line":"        self.l3pluginApi_cls_p \u003d mock.patch("},{"line_number":85,"context_line":"            \u0027neutron.agent.l3_agent.L3PluginApi\u0027)"},{"line_number":86,"context_line":"        l3pluginApi_cls \u003d self.l3pluginApi_cls_p.start()"},{"line_number":87,"context_line":"        self.plugin_api \u003d mock.MagicMock()"},{"line_number":88,"context_line":"        l3pluginApi_cls.return_value \u003d self.plugin_api"},{"line_number":89,"context_line":""},{"line_number":90,"context_line":"        self.looping_call_p \u003d mock.patch("}],"source_content_type":"text/x-python","patch_set":6,"id":"baada198_022aae2b","line":87,"updated":"2014-07-03 12:57:10.000000000","message":"Same question as earlier why change this?","commit_id":"366066c6748041e0c7222472b0b14bb5547e32a9"}]}
