)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":490,"name":"Sumit Naiksatam","email":"sumitnaiksatam@gmail.com","username":"snaiksat"},"change_message_id":"35ba862dde111cf33576fd9ab0ab0c9ba7958d28","unresolved":false,"context_lines":[{"line_number":12,"context_line":"and the plugin will be extended to support the L3 and service plugin extension"},{"line_number":13,"context_line":"APIs."},{"line_number":14,"context_line":""},{"line_number":15,"context_line":"Fixes for review comments."},{"line_number":16,"context_line":""},{"line_number":17,"context_line":"Change-Id: Ic8a0dc0f5950d41b9b253c0d61b6812dbfd161c7"},{"line_number":18,"context_line":"Implements: blueprint oc-nvsd-neutron-plugin"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":9,"id":"AAAAVn%2F%2FqEA%3D","line":15,"updated":"2014-03-04 20:45:33.000000000","message":"drop this line","commit_id":"550cc1df3990f31f6a2aca0f913e64263c5ba1f8"},{"author":{"_account_id":9722,"name":"Hemanth Ravi","email":"hemanth.ravi@oneconvergence.com","username":"hemanthravi"},"change_message_id":"015ee0cd718908547c7a3c47b7a7577e3ffb011e","unresolved":false,"context_lines":[{"line_number":12,"context_line":"and the plugin will be extended to support the L3 and service plugin extension"},{"line_number":13,"context_line":"APIs."},{"line_number":14,"context_line":""},{"line_number":15,"context_line":"Fixes for review comments."},{"line_number":16,"context_line":""},{"line_number":17,"context_line":"Change-Id: Ic8a0dc0f5950d41b9b253c0d61b6812dbfd161c7"},{"line_number":18,"context_line":"Implements: blueprint oc-nvsd-neutron-plugin"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":9,"id":"AAAAVn%2F%2FocQ%3D","line":15,"in_reply_to":"AAAAVn%2F%2FqEA%3D","updated":"2014-03-04 23:21:29.000000000","message":"Done","commit_id":"550cc1df3990f31f6a2aca0f913e64263c5ba1f8"}],"etc/neutron/plugins/oneconvergence/nvsdplugin.ini":[{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"660c2ae3d857d97ff43290f718d1b24bae397af5","unresolved":false,"context_lines":[{"line_number":18,"context_line":"# Maximum number of retry attempts to login to the NVSD controller"},{"line_number":19,"context_line":"# Specify 0 to retry until success (default)"},{"line_number":20,"context_line":"# nvsd_retries \u003d 0"},{"line_number":21,"context_line":""}],"source_content_type":"text/x-properties","patch_set":12,"id":"AAAAVn%2F%2FkVM%3D","line":21,"updated":"2014-03-05 10:39:05.000000000","message":"[database] connection entry is required here.","commit_id":"1980a92a238f843d35dcfaf9921e2b8134b1ae66"},{"author":{"_account_id":9722,"name":"Hemanth Ravi","email":"hemanth.ravi@oneconvergence.com","username":"hemanthravi"},"change_message_id":"6961120e19f5c60aec9e0c53451b7bb672a7ffc6","unresolved":false,"context_lines":[{"line_number":18,"context_line":"# Maximum number of retry attempts to login to the NVSD controller"},{"line_number":19,"context_line":"# Specify 0 to retry until success (default)"},{"line_number":20,"context_line":"# nvsd_retries \u003d 0"},{"line_number":21,"context_line":""}],"source_content_type":"text/x-properties","patch_set":12,"id":"AAAAVn%2F%2Feb8%3D","line":21,"in_reply_to":"AAAAVn%2F%2FkVM%3D","updated":"2014-03-05 21:27:52.000000000","message":"Done","commit_id":"1980a92a238f843d35dcfaf9921e2b8134b1ae66"}],"neutron/plugins/oneconvergence/NeutronPlugin.py":[{"author":{"_account_id":2711,"name":"Zhang Hua","display_name":"Zhang Hua","email":"joshua.zhang@canonical.com","username":"zhhuabj"},"change_message_id":"c7b409963ccfc2455f7bb341c647323d290f48e1","unresolved":false,"context_lines":[{"line_number":14,"context_line":"#    License for the specific language governing permissions and limitations"},{"line_number":15,"context_line":"#    under the License."},{"line_number":16,"context_line":"#"},{"line_number":17,"context_line":"# @author: Kedar Kulkarni, One Convergence, Inc."},{"line_number":18,"context_line":""},{"line_number":19,"context_line":"\"\"\"Implementation of OneConvergence Neutron Plugin.\"\"\""},{"line_number":20,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAUH%2F%2Ba8Q%3D","line":17,"updated":"2014-01-27 03:45:00.000000000","message":"pls first fix lots of pep8 error as below\n\n[hua@oc1741755750 neutron]$ ./run_tests.sh -N -p\nRunning flake8 ...\n./setup.py:1:1: H803  git commit title (\u0027One Convergence Neutron Plugin Implementation.\u0027) should not end with period\n#!/usr/bin/env python\n^\n./neutron/plugins/oneconvergence/NeutronPlugin.py:33:1: H306  imports not in alphabetical order (neutron.db.extraroute_db, neutron.db.external_net_db)\nfrom neutron.db import external_net_db\n^\n./neutron/plugins/oneconvergence/NeutronPlugin.py:111:1: H402  one line docstring needs punctuation.\n        \"\"\" Initialize the connections and set the log levels for the plugin\"\"\"\n^\n./neutron/plugins/oneconvergence/NeutronPlugin.py:111:9: H401  docstring should not start with a space\n        \"\"\" Initialize the connections and set the log levels for the plugin\"\"\"\n        ^\n./neutron/plugins/oneconvergence/NeutronPlugin.py:116:1: H402  one line docstring needs punctuation.\n        \"\"\" Setup RPC\"\"\"\n^\n./neutron/plugins/oneconvergence/NeutronPlugin.py:116:9: H401  docstring should not start with a space\n        \"\"\" Setup RPC\"\"\"\n        ^\n./neutron/plugins/oneconvergence/NeutronPlugin.py:221:15: H201  no \u0027except:\u0027 at least use \u0027except Exception:\u0027\n        except:\n              ^\n./neutron/plugins/oneconvergence/lib/credentials.py:23:1: H402  one line docstring needs punctuation.\n    \"\"\" Check whether a given tenant admin or not\"\"\"\n^\n./neutron/plugins/oneconvergence/lib/credentials.py:23:5: H401  docstring should not start with a space\n    \"\"\" Check whether a given tenant admin or not\"\"\"\n    ^\n./neutron/plugins/oneconvergence/lib/dummynvsdlib.py:24:1: H306  imports not in alphabetical order (uuid, neutron.plugins.oneconvergence.lib.plugin_helper.initialize_plugin_helper)\nfrom neutron.plugins.oneconvergence.lib.plugin_helper import \\\n^\n./neutron/plugins/oneconvergence/lib/dummynvsdlib.py:73:1: H402  one line docstring needs punctuation.\n        \"\"\"Get the subnet from a network\"\"\"\n^\n./neutron/plugins/oneconvergence/lib/dummynvsdlib.py:77:1: H402  one line docstring needs punctuation.\n        \"\"\"Creates a new virtual port\"\"\"\n^\n./neutron/plugins/oneconvergence/lib/dummynvsdlib.py:89:1: H402  one line docstring needs punctuation.\n        \"\"\"get the virtual port \"\"\"\n^\n./neutron/plugins/oneconvergence/lib/logging_module.py:75:1: H402  one line docstring needs punctuation.\n        \"\"\" Emit the log message \"\"\"\n^\n./neutron/plugins/oneconvergence/lib/logging_module.py:75:9: H401  docstring should not start with a space\n        \"\"\" Emit the log message \"\"\"\n        ^\n./neutron/plugins/oneconvergence/lib/nvsdlib.py:23:1: F401 \u0027attributes\u0027 imported but unused\nfrom neutron.api.v2 import attributes\n^\n./neutron/plugins/oneconvergence/lib/nvsdlib.py:23:1: H306  imports not in alphabetical order (oslo.config.cfg, neutron.api.v2.attributes)\nfrom neutron.api.v2 import attributes\n^\n./neutron/plugins/oneconvergence/lib/plugin_helper.py:25:1: H306  imports not in alphabetical order (neutron.plugins.oneconvergence.lib.logging_module, neutron.plugins.oneconvergence.lib.exception)\nimport neutron.plugins.oneconvergence.lib.exception as exception\n^\n./neutron/plugins/oneconvergence/lib/plugin_helper.py:29:1: H306  imports not in alphabetical order (urllib3.httpconnectionpool, oslo.config.cfg)\nfrom oslo.config import cfg\n^\n./neutron/plugins/oneconvergence/lib/plugin_helper.py:38:5: H401  docstring should not start with a space\n    \"\"\" Encapsulates the NVSD Controller details\n    ^\n./neutron/plugins/oneconvergence/lib/plugin_helper.py:58:1: H402  one line docstring needs punctuation.\n        \"\"\" Login to NVSD Controller \"\"\"\n^\n./neutron/plugins/oneconvergence/lib/plugin_helper.py:58:9: H401  docstring should not start with a space\n        \"\"\" Login to NVSD Controller \"\"\"\n        ^\n./neutron/plugins/oneconvergence/lib/plugin_helper.py:75:1: F821 undefined name \u0027log\u0027\n                log.emit(\u0027error\u0027, \u0027 \u0027, \"Login failed\")\n^\n./neutron/plugins/oneconvergence/lib/plugin_helper.py:76:1: F821 undefined name \u0027log\u0027\n                log.emit(\u0027error\u0027, \u0027 \u0027, \"Unable to establish connection\"\n^\n./neutron/plugins/oneconvergence/lib/plugin_helper.py:82:1: F821 undefined name \u0027log\u0027\n                    log.emit(\u0027error\u0027, \u0027 \u0027, \"Response is Null, Request timed \"\n^\n./neutron/plugins/oneconvergence/lib/plugin_helper.py:90:1: F821 undefined name \u0027log\u0027\n            log.emit(\u0027debug\u0027, \u0027 \u0027, \"Login Successful %s  %s\"\n^\n./neutron/plugins/oneconvergence/lib/plugin_helper.py:94:1: F821 undefined name \u0027log\u0027\n            log.emit(\u0027debug\u0027, \u0027 \u0027, \"AuthToken \u003d %s\" % self.auth_token)\n^\n./neutron/plugins/oneconvergence/lib/plugin_helper.py:96:1: F821 undefined name \u0027log\u0027\n            log.emit(\u0027error\u0027, \u0027 \u0027, \"login failed\")\n^\n./neutron/plugins/oneconvergence/lib/plugin_helper.py:100:1: H402  one line docstring needs punctuation.\n        \"\"\" Logout of NVSD Controller \"\"\"\n^\n./neutron/plugins/oneconvergence/lib/plugin_helper.py:100:9: H401  docstring should not start with a space\n        \"\"\" Logout of NVSD Controller \"\"\"\n        ^\n./neutron/plugins/oneconvergence/lib/plugin_helper.py:103:1: F821 undefined name \u0027log\u0027\n            log.emit(\u0027error\u0027, \u0027 \u0027, \"No Token, session logged out\")\n^\n./neutron/plugins/oneconvergence/lib/plugin_helper.py:121:19: H201  no \u0027except:\u0027 at least use \u0027except Exception:\u0027\n            except:\n                  ^\n./neutron/plugins/oneconvergence/lib/plugin_helper.py:123:1: F821 undefined name \u0027log\u0027\n                log.emit(\u0027error\u0027, \u0027 \u0027, \"Problem in logout\")\n^\n./neutron/plugins/oneconvergence/lib/plugin_helper.py:128:1: F821 undefined name \u0027log\u0027\n            log.emit(\u0027debug\u0027, \u0027 \u0027, \"Logged out\")\n^\n./neutron/plugins/oneconvergence/lib/plugin_helper.py:130:1: F821 undefined name \u0027log\u0027\n            log.emit(\u0027error\u0027, \u0027 \u0027, \"logout failed\")\n^\n./neutron/plugins/oneconvergence/lib/plugin_helper.py:137:1: F821 undefined name \u0027log\u0027\n            log.emit(\u0027warning\u0027, \u0027 \u0027, \"No Token, Re-login\")\n^\n./neutron/plugins/oneconvergence/lib/plugin_helper.py:154:1: F821 undefined name \u0027log\u0027\n            log.emit(\u0027debug\u0027, \u0027 \u0027, msg)\n^\n./neutron/plugins/oneconvergence/lib/plugin_helper.py:161:1: F821 undefined name \u0027log\u0027\n            log.emit(\u0027error\u0027, \u0027 \u0027, \"%s\" % (traceback.format_exc()))\n^\n./neutron/plugins/oneconvergence/lib/plugin_helper.py:163:1: F821 undefined name \u0027log\u0027\n            log.emit(\u0027error\u0027, \u0027 \u0027, msg)\n^\n./neutron/plugins/oneconvergence/lib/plugin_helper.py:172:1: F821 undefined name \u0027log\u0027\n            log.emit(\u0027error\u0027, \u0027 \u0027, msg)\n^\n./neutron/plugins/oneconvergence/lib/plugin_helper.py:179:1: F821 undefined name \u0027log\u0027\n            log.emit(\u0027error\u0027, \u0027 \u0027, msg)\n^\n./neutron/plugins/oneconvergence/lib/plugin_helper.py:189:1: F821 undefined name \u0027log\u0027\n            log.emit(\u0027error\u0027, \u0027 \u0027, msg)\n^\n./neutron/plugins/oneconvergence/lib/plugin_helper.py:190:1: F821 undefined name \u0027log\u0027\n            log.emit(\u0027error\u0027, \u0027 \u0027, \"%s\" % response.reason)\n^\n./neutron/plugins/oneconvergence/lib/plugin_helper.py:197:1: F821 undefined name \u0027log\u0027\n            log.emit(\u0027error\u0027, \u0027 \u0027, msg)\n^\n./neutron/plugins/oneconvergence/lib/plugin_helper.py:202:1: F821 undefined name \u0027log\u0027\n            log.emit(\u0027error\u0027, \u0027 \u0027, msg)\n^\n./neutron/plugins/oneconvergence/lib/plugin_helper.py:207:1: F821 undefined name \u0027log\u0027\n            log.emit(\u0027debug\u0027, \u0027 \u0027, msg)\n^\n./neutron/plugins/oneconvergence/lib/plugin_helper.py:212:1: H402  one line docstring needs punctuation.\n        \"\"\" Resource Not Found \"\"\"\n^\n./neutron/plugins/oneconvergence/lib/plugin_helper.py:212:9: H401  docstring should not start with a space\n        \"\"\" Resource Not Found \"\"\"\n        ^\n./neutron/plugins/oneconvergence/lib/plugin_helper.py:216:1: H402  one line docstring needs punctuation.\n        \"\"\" Bad Request \"\"\"\n^\n./neutron/plugins/oneconvergence/lib/plugin_helper.py:216:9: H401  docstring should not start with a space\n        \"\"\" Bad Request \"\"\"\n        ^\n./neutron/plugins/oneconvergence/lib/plugin_helper.py:220:1: H402  one line docstring needs punctuation.\n        \"\"\" Internal Server Error \"\"\"\n^\n./neutron/plugins/oneconvergence/lib/plugin_helper.py:220:9: H401  docstring should not start with a space\n        \"\"\" Internal Server Error \"\"\"\n        ^\n./neutron/plugins/oneconvergence/lib/plugin_helper.py:224:1: H402  one line docstring needs punctuation.\n        \"\"\" Server Exception \"\"\"\n^\n./neutron/plugins/oneconvergence/lib/plugin_helper.py:224:9: H401  docstring should not start with a space\n        \"\"\" Server Exception \"\"\"\n        ^\n./neutron/plugins/oneconvergence/lib/plugin_helper.py:228:1: H402  one line docstring needs punctuation.\n        \"\"\" Forbidden \"\"\"\n^\n./neutron/plugins/oneconvergence/lib/plugin_helper.py:228:9: H401  docstring should not start with a space\n        \"\"\" Forbidden \"\"\"\n        ^\n./neutron/plugins/oneconvergence/lib/plugin_helper.py:232:1: H402  one line docstring needs punctuation.\n        \"\"\" Generic Exception\"\"\"\n^\n./neutron/plugins/oneconvergence/lib/plugin_helper.py:232:9: H401  docstring should not start with a space\n        \"\"\" Generic Exception\"\"\"\n        ^\n./neutron/tests/unit/oneconvergence/test_nvsd_plugin.py:84:1: W391 blank line at end of file\n\n^","commit_id":"78e0b071223055b0c6392feae6dcd8ed9c8a42f4"},{"author":{"_account_id":9722,"name":"Hemanth Ravi","email":"hemanth.ravi@oneconvergence.com","username":"hemanthravi"},"change_message_id":"ea7bfa31b8dda86fadbdfdf983b08e7a0d84a42b","unresolved":false,"context_lines":[{"line_number":14,"context_line":"#    License for the specific language governing permissions and limitations"},{"line_number":15,"context_line":"#    under the License."},{"line_number":16,"context_line":"#"},{"line_number":17,"context_line":"# @author: Kedar Kulkarni, One Convergence, Inc."},{"line_number":18,"context_line":""},{"line_number":19,"context_line":"\"\"\"Implementation of OneConvergence Neutron Plugin.\"\"\""},{"line_number":20,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAUH%2F%2BGWY%3D","line":17,"in_reply_to":"AAAAUH%2F%2Ba8Q%3D","updated":"2014-02-12 15:41:34.000000000","message":"Done","commit_id":"78e0b071223055b0c6392feae6dcd8ed9c8a42f4"},{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"9c9e2fbcb3526f313d0781a012faefffeb0c0882","unresolved":false,"context_lines":[{"line_number":69,"context_line":"                             extradhcpopt_db.ExtraDhcpOptMixin,"},{"line_number":70,"context_line":"                             addr_pair_db.AllowedAddressPairsMixin):"},{"line_number":71,"context_line":"    \"\"\""},{"line_number":72,"context_line":"    OneConvergencePluginV2 is a Neutron plugin that provides L2 Virtual Network"},{"line_number":73,"context_line":"    functionality."},{"line_number":74,"context_line":"    \"\"\""},{"line_number":75,"context_line":"    __native_bulk_support \u003d True"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAUH%2F%2BZUg%3D","line":72,"updated":"2014-01-27 12:52:24.000000000","message":"PEP257, put a single line summary for the docstring and then continue rest of doctstring separated by a blank line.","commit_id":"78e0b071223055b0c6392feae6dcd8ed9c8a42f4"},{"author":{"_account_id":9722,"name":"Hemanth Ravi","email":"hemanth.ravi@oneconvergence.com","username":"hemanthravi"},"change_message_id":"ea7bfa31b8dda86fadbdfdf983b08e7a0d84a42b","unresolved":false,"context_lines":[{"line_number":69,"context_line":"                             extradhcpopt_db.ExtraDhcpOptMixin,"},{"line_number":70,"context_line":"                             addr_pair_db.AllowedAddressPairsMixin):"},{"line_number":71,"context_line":"    \"\"\""},{"line_number":72,"context_line":"    OneConvergencePluginV2 is a Neutron plugin that provides L2 Virtual Network"},{"line_number":73,"context_line":"    functionality."},{"line_number":74,"context_line":"    \"\"\""},{"line_number":75,"context_line":"    __native_bulk_support \u003d True"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAUH%2F%2BGWU%3D","line":72,"in_reply_to":"AAAAUH%2F%2BZUg%3D","updated":"2014-02-12 15:41:34.000000000","message":"Done","commit_id":"78e0b071223055b0c6392feae6dcd8ed9c8a42f4"},{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"9c9e2fbcb3526f313d0781a012faefffeb0c0882","unresolved":false,"context_lines":[{"line_number":113,"context_line":"        self.nvsdlib.set_connection()"},{"line_number":114,"context_line":""},{"line_number":115,"context_line":"    def setup_rpc(self):"},{"line_number":116,"context_line":"        \"\"\" Setup RPC\"\"\""},{"line_number":117,"context_line":"        self.service_topics \u003d {svc_constants.CORE: topics.PLUGIN,"},{"line_number":118,"context_line":"                               svc_constants.L3_ROUTER_NAT: topics.L3PLUGIN}"},{"line_number":119,"context_line":"        self.topic \u003d topics.PLUGIN"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAUH%2F%2BZUM%3D","line":116,"updated":"2014-01-27 12:52:24.000000000","message":"If including a docstring, should be descriptive of what the function is doing.","commit_id":"78e0b071223055b0c6392feae6dcd8ed9c8a42f4"},{"author":{"_account_id":9722,"name":"Hemanth Ravi","email":"hemanth.ravi@oneconvergence.com","username":"hemanthravi"},"change_message_id":"ea7bfa31b8dda86fadbdfdf983b08e7a0d84a42b","unresolved":false,"context_lines":[{"line_number":113,"context_line":"        self.nvsdlib.set_connection()"},{"line_number":114,"context_line":""},{"line_number":115,"context_line":"    def setup_rpc(self):"},{"line_number":116,"context_line":"        \"\"\" Setup RPC\"\"\""},{"line_number":117,"context_line":"        self.service_topics \u003d {svc_constants.CORE: topics.PLUGIN,"},{"line_number":118,"context_line":"                               svc_constants.L3_ROUTER_NAT: topics.L3PLUGIN}"},{"line_number":119,"context_line":"        self.topic \u003d topics.PLUGIN"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAUH%2F%2BGWQ%3D","line":116,"in_reply_to":"AAAAUH%2F%2BZUM%3D","updated":"2014-02-12 15:41:34.000000000","message":"Done","commit_id":"78e0b071223055b0c6392feae6dcd8ed9c8a42f4"},{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"9c9e2fbcb3526f313d0781a012faefffeb0c0882","unresolved":false,"context_lines":[{"line_number":287,"context_line":"            neutron_port \u003d super(OneConvergencePluginV2,"},{"line_number":288,"context_line":"                                 self).create_port(context, port)"},{"line_number":289,"context_line":""},{"line_number":290,"context_line":"            if ((port[\u0027port\u0027][\u0027device_owner\u0027] \u003d\u003d \u0027network:router_gateway\u0027"},{"line_number":291,"context_line":"                 or port[\u0027port\u0027][\u0027device_owner\u0027] \u003d\u003d \u0027network:floatingip\u0027)):"},{"line_number":292,"context_line":"                # for l3 requests, tenant_id will be None/\u0027\u0027"},{"line_number":293,"context_line":"                network \u003d self._get_network(context, network_id)"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAUH%2F%2BZSk%3D","line":290,"updated":"2014-01-27 12:52:24.000000000","message":"Could do:\n\nif (port[\u0027port\u0027][\u0027device_owner\u0027] in (\u0027network:router_gateway\u0027, \u0027network:floatingip\u0027)):","commit_id":"78e0b071223055b0c6392feae6dcd8ed9c8a42f4"},{"author":{"_account_id":9722,"name":"Hemanth Ravi","email":"hemanth.ravi@oneconvergence.com","username":"hemanthravi"},"change_message_id":"ea7bfa31b8dda86fadbdfdf983b08e7a0d84a42b","unresolved":false,"context_lines":[{"line_number":287,"context_line":"            neutron_port \u003d super(OneConvergencePluginV2,"},{"line_number":288,"context_line":"                                 self).create_port(context, port)"},{"line_number":289,"context_line":""},{"line_number":290,"context_line":"            if ((port[\u0027port\u0027][\u0027device_owner\u0027] \u003d\u003d \u0027network:router_gateway\u0027"},{"line_number":291,"context_line":"                 or port[\u0027port\u0027][\u0027device_owner\u0027] \u003d\u003d \u0027network:floatingip\u0027)):"},{"line_number":292,"context_line":"                # for l3 requests, tenant_id will be None/\u0027\u0027"},{"line_number":293,"context_line":"                network \u003d self._get_network(context, network_id)"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAUH%2F%2BGWE%3D","line":290,"in_reply_to":"AAAAUH%2F%2BZSk%3D","updated":"2014-02-12 15:41:34.000000000","message":"Done","commit_id":"78e0b071223055b0c6392feae6dcd8ed9c8a42f4"},{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"9c9e2fbcb3526f313d0781a012faefffeb0c0882","unresolved":false,"context_lines":[{"line_number":301,"context_line":"        try:"},{"line_number":302,"context_line":"            self.nvsdlib.create_port(tenant_id, neutron_port)"},{"line_number":303,"context_line":"        except nvsdexception.NotFoundException:"},{"line_number":304,"context_line":"            self.log.emit(\u0027error\u0027, tenant_id, \"Deleting newly created neutron\""},{"line_number":305,"context_line":"                          \" port %s, reason Network %s not found\" % ("},{"line_number":306,"context_line":"                              port_id, network_id))"},{"line_number":307,"context_line":"            super(OneConvergencePluginV2, self).delete_port(context, port_id)"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAUH%2F%2BZPQ%3D","line":304,"updated":"2014-01-27 12:52:24.000000000","message":"i18n for log messages.","commit_id":"78e0b071223055b0c6392feae6dcd8ed9c8a42f4"},{"author":{"_account_id":9722,"name":"Hemanth Ravi","email":"hemanth.ravi@oneconvergence.com","username":"hemanthravi"},"change_message_id":"ea7bfa31b8dda86fadbdfdf983b08e7a0d84a42b","unresolved":false,"context_lines":[{"line_number":301,"context_line":"        try:"},{"line_number":302,"context_line":"            self.nvsdlib.create_port(tenant_id, neutron_port)"},{"line_number":303,"context_line":"        except nvsdexception.NotFoundException:"},{"line_number":304,"context_line":"            self.log.emit(\u0027error\u0027, tenant_id, \"Deleting newly created neutron\""},{"line_number":305,"context_line":"                          \" port %s, reason Network %s not found\" % ("},{"line_number":306,"context_line":"                              port_id, network_id))"},{"line_number":307,"context_line":"            super(OneConvergencePluginV2, self).delete_port(context, port_id)"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAUH%2F97Kk%3D","line":304,"in_reply_to":"AAAAUH%2F%2BZPQ%3D","updated":"2014-02-12 15:41:34.000000000","message":"Done","commit_id":"78e0b071223055b0c6392feae6dcd8ed9c8a42f4"},{"author":{"_account_id":6072,"name":"Eugene Nikanorov","email":"enikanorov@mirantis.com","username":"enikanorov"},"change_message_id":"2b2a7c5e9fe38767de2e67cb7db83c9a5e6baf8d","unresolved":false,"context_lines":[{"line_number":42,"context_line":"import neutron.plugins.oneconvergence.lib.config  # noqa"},{"line_number":43,"context_line":"import neutron.plugins.oneconvergence.lib.exception as nvsdexception"},{"line_number":44,"context_line":"import neutron.plugins.oneconvergence.lib.logging_module as logging_module"},{"line_number":45,"context_line":"from oslo.config import cfg"},{"line_number":46,"context_line":""},{"line_number":47,"context_line":"NVSD_LIB \u003d \u0027neutron.plugins.oneconvergence.lib.nvsdlib.NVSDApi\u0027"},{"line_number":48,"context_line":"IPv6 \u003d 6"}],"source_content_type":"text/x-python","patch_set":2,"id":"AAAAUH%2F96uc%3D","line":45,"updated":"2014-02-01 07:54:40.000000000","message":"that should go in the first import section somewhere in line 20.\noslo is a third-party library that doesn\u0027t belong to neutron","commit_id":"8550f48b390e4e0aab11be7c2c6bc35e88f97499"},{"author":{"_account_id":9722,"name":"Hemanth Ravi","email":"hemanth.ravi@oneconvergence.com","username":"hemanthravi"},"change_message_id":"5fcdccb9ab01e36eb67ea18e8acce689114c8e5d","unresolved":false,"context_lines":[{"line_number":42,"context_line":"import neutron.plugins.oneconvergence.lib.config  # noqa"},{"line_number":43,"context_line":"import neutron.plugins.oneconvergence.lib.exception as nvsdexception"},{"line_number":44,"context_line":"import neutron.plugins.oneconvergence.lib.logging_module as logging_module"},{"line_number":45,"context_line":"from oslo.config import cfg"},{"line_number":46,"context_line":""},{"line_number":47,"context_line":"NVSD_LIB \u003d \u0027neutron.plugins.oneconvergence.lib.nvsdlib.NVSDApi\u0027"},{"line_number":48,"context_line":"IPv6 \u003d 6"}],"source_content_type":"text/x-python","patch_set":2,"id":"AAAAUH%2F9Ut4%3D","line":45,"in_reply_to":"AAAAUH%2F96uc%3D","updated":"2014-02-12 15:41:05.000000000","message":"Done","commit_id":"8550f48b390e4e0aab11be7c2c6bc35e88f97499"},{"author":{"_account_id":6072,"name":"Eugene Nikanorov","email":"enikanorov@mirantis.com","username":"enikanorov"},"change_message_id":"2b2a7c5e9fe38767de2e67cb7db83c9a5e6baf8d","unresolved":false,"context_lines":[{"line_number":148,"context_line":""},{"line_number":149,"context_line":"    def update_network(self, context, net_id, network):"},{"line_number":150,"context_line":""},{"line_number":151,"context_line":"        with context.session.begin(subtransactions\u003dTrue):"},{"line_number":152,"context_line":""},{"line_number":153,"context_line":"            neutron_net \u003d super(OneConvergencePluginV2,"},{"line_number":154,"context_line":"                                self).update_network(context, net_id, network)"}],"source_content_type":"text/x-python","patch_set":2,"id":"AAAAUH%2F96ss%3D","line":151,"updated":"2014-02-01 07:54:40.000000000","message":"is not needed, since parent class\u0027s update_network is wrapped in the transaction","commit_id":"8550f48b390e4e0aab11be7c2c6bc35e88f97499"},{"author":{"_account_id":9722,"name":"Hemanth Ravi","email":"hemanth.ravi@oneconvergence.com","username":"hemanthravi"},"change_message_id":"5fcdccb9ab01e36eb67ea18e8acce689114c8e5d","unresolved":false,"context_lines":[{"line_number":148,"context_line":""},{"line_number":149,"context_line":"    def update_network(self, context, net_id, network):"},{"line_number":150,"context_line":""},{"line_number":151,"context_line":"        with context.session.begin(subtransactions\u003dTrue):"},{"line_number":152,"context_line":""},{"line_number":153,"context_line":"            neutron_net \u003d super(OneConvergencePluginV2,"},{"line_number":154,"context_line":"                                self).update_network(context, net_id, network)"}],"source_content_type":"text/x-python","patch_set":2,"id":"AAAAUH%2F9Ujc%3D","line":151,"in_reply_to":"AAAAUH%2F96ss%3D","updated":"2014-02-12 15:41:05.000000000","message":"Done","commit_id":"8550f48b390e4e0aab11be7c2c6bc35e88f97499"},{"author":{"_account_id":6072,"name":"Eugene Nikanorov","email":"enikanorov@mirantis.com","username":"enikanorov"},"change_message_id":"2b2a7c5e9fe38767de2e67cb7db83c9a5e6baf8d","unresolved":false,"context_lines":[{"line_number":162,"context_line":""},{"line_number":163,"context_line":"    def get_network(self, context, net_id, fields\u003dNone):"},{"line_number":164,"context_line":""},{"line_number":165,"context_line":"        with context.session.begin(subtransactions\u003dTrue):"},{"line_number":166,"context_line":""},{"line_number":167,"context_line":"            neutron_net \u003d super(OneConvergencePluginV2,"},{"line_number":168,"context_line":"                                self).get_network(context, net_id, fields)"}],"source_content_type":"text/x-python","patch_set":2,"id":"AAAAUH%2F96so%3D","line":165,"updated":"2014-02-01 07:54:40.000000000","message":"same as above","commit_id":"8550f48b390e4e0aab11be7c2c6bc35e88f97499"},{"author":{"_account_id":9722,"name":"Hemanth Ravi","email":"hemanth.ravi@oneconvergence.com","username":"hemanthravi"},"change_message_id":"5fcdccb9ab01e36eb67ea18e8acce689114c8e5d","unresolved":false,"context_lines":[{"line_number":162,"context_line":""},{"line_number":163,"context_line":"    def get_network(self, context, net_id, fields\u003dNone):"},{"line_number":164,"context_line":""},{"line_number":165,"context_line":"        with context.session.begin(subtransactions\u003dTrue):"},{"line_number":166,"context_line":""},{"line_number":167,"context_line":"            neutron_net \u003d super(OneConvergencePluginV2,"},{"line_number":168,"context_line":"                                self).get_network(context, net_id, fields)"}],"source_content_type":"text/x-python","patch_set":2,"id":"AAAAUH%2F9UjY%3D","line":165,"in_reply_to":"AAAAUH%2F96so%3D","updated":"2014-02-12 15:41:05.000000000","message":"Done","commit_id":"8550f48b390e4e0aab11be7c2c6bc35e88f97499"},{"author":{"_account_id":6072,"name":"Eugene Nikanorov","email":"enikanorov@mirantis.com","username":"enikanorov"},"change_message_id":"2b2a7c5e9fe38767de2e67cb7db83c9a5e6baf8d","unresolved":false,"context_lines":[{"line_number":176,"context_line":"                     page_reverse\u003dFalse):"},{"line_number":177,"context_line":""},{"line_number":178,"context_line":"        #Invoke the Neutron  API for getting network info"},{"line_number":179,"context_line":"        with context.session.begin(subtransactions\u003dTrue):"},{"line_number":180,"context_line":""},{"line_number":181,"context_line":"            neutron_nets \u003d super(OneConvergencePluginV2,"},{"line_number":182,"context_line":"                                 self).get_networks(context,"}],"source_content_type":"text/x-python","patch_set":2,"id":"AAAAUH%2F96qs%3D","line":179,"updated":"2014-02-01 07:54:40.000000000","message":"same as above","commit_id":"8550f48b390e4e0aab11be7c2c6bc35e88f97499"},{"author":{"_account_id":9722,"name":"Hemanth Ravi","email":"hemanth.ravi@oneconvergence.com","username":"hemanthravi"},"change_message_id":"5fcdccb9ab01e36eb67ea18e8acce689114c8e5d","unresolved":false,"context_lines":[{"line_number":176,"context_line":"                     page_reverse\u003dFalse):"},{"line_number":177,"context_line":""},{"line_number":178,"context_line":"        #Invoke the Neutron  API for getting network info"},{"line_number":179,"context_line":"        with context.session.begin(subtransactions\u003dTrue):"},{"line_number":180,"context_line":""},{"line_number":181,"context_line":"            neutron_nets \u003d super(OneConvergencePluginV2,"},{"line_number":182,"context_line":"                                 self).get_networks(context,"}],"source_content_type":"text/x-python","patch_set":2,"id":"AAAAUH%2F9UjI%3D","line":179,"in_reply_to":"AAAAUH%2F96qs%3D","updated":"2014-02-12 15:41:05.000000000","message":"Done","commit_id":"8550f48b390e4e0aab11be7c2c6bc35e88f97499"},{"author":{"_account_id":6072,"name":"Eugene Nikanorov","email":"enikanorov@mirantis.com","username":"enikanorov"},"change_message_id":"2b2a7c5e9fe38767de2e67cb7db83c9a5e6baf8d","unresolved":false,"context_lines":[{"line_number":211,"context_line":"            raise nexception.InvalidInput("},{"line_number":212,"context_line":"                error_message\u003d\"NVSDPlugin doesn\u0027t support IPv6.\")"},{"line_number":213,"context_line":""},{"line_number":214,"context_line":"        with context.session.begin(subtransactions\u003dTrue):"},{"line_number":215,"context_line":""},{"line_number":216,"context_line":"            neutron_subnet \u003d super(OneConvergencePluginV2,"},{"line_number":217,"context_line":"                                   self).create_subnet(context, subnet)"}],"source_content_type":"text/x-python","patch_set":2,"id":"AAAAUH%2F96p4%3D","line":214,"updated":"2014-02-01 07:54:40.000000000","message":"same on transaction","commit_id":"8550f48b390e4e0aab11be7c2c6bc35e88f97499"},{"author":{"_account_id":9722,"name":"Hemanth Ravi","email":"hemanth.ravi@oneconvergence.com","username":"hemanthravi"},"change_message_id":"5fcdccb9ab01e36eb67ea18e8acce689114c8e5d","unresolved":false,"context_lines":[{"line_number":211,"context_line":"            raise nexception.InvalidInput("},{"line_number":212,"context_line":"                error_message\u003d\"NVSDPlugin doesn\u0027t support IPv6.\")"},{"line_number":213,"context_line":""},{"line_number":214,"context_line":"        with context.session.begin(subtransactions\u003dTrue):"},{"line_number":215,"context_line":""},{"line_number":216,"context_line":"            neutron_subnet \u003d super(OneConvergencePluginV2,"},{"line_number":217,"context_line":"                                   self).create_subnet(context, subnet)"}],"source_content_type":"text/x-python","patch_set":2,"id":"AAAAUH%2F9Ui4%3D","line":214,"in_reply_to":"AAAAUH%2F96p4%3D","updated":"2014-02-12 15:41:05.000000000","message":"Done","commit_id":"8550f48b390e4e0aab11be7c2c6bc35e88f97499"},{"author":{"_account_id":6072,"name":"Eugene Nikanorov","email":"enikanorov@mirantis.com","username":"enikanorov"},"change_message_id":"2b2a7c5e9fe38767de2e67cb7db83c9a5e6baf8d","unresolved":false,"context_lines":[{"line_number":321,"context_line":"            neutron_port \u003d super(OneConvergencePluginV2,"},{"line_number":322,"context_line":"                                 self).update_port(context, port_id, port)"},{"line_number":323,"context_line":""},{"line_number":324,"context_line":"            if neutron_port[\u0027tenant_id\u0027] \u003d\u003d \u0027\u0027:"},{"line_number":325,"context_line":"                network \u003d self._get_network(context,"},{"line_number":326,"context_line":"                                            neutron_port[\u0027network_id\u0027])"},{"line_number":327,"context_line":"                tenant_id \u003d network[\u0027tenant_id\u0027]"}],"source_content_type":"text/x-python","patch_set":2,"id":"AAAAUH%2F96po%3D","line":324,"updated":"2014-02-01 07:54:40.000000000","message":"how is this possible?","commit_id":"8550f48b390e4e0aab11be7c2c6bc35e88f97499"},{"author":{"_account_id":9722,"name":"Hemanth Ravi","email":"hemanth.ravi@oneconvergence.com","username":"hemanthravi"},"change_message_id":"4054def11287da299f96489f0e26c7234af6ba2d","unresolved":false,"context_lines":[{"line_number":321,"context_line":"            neutron_port \u003d super(OneConvergencePluginV2,"},{"line_number":322,"context_line":"                                 self).update_port(context, port_id, port)"},{"line_number":323,"context_line":""},{"line_number":324,"context_line":"            if neutron_port[\u0027tenant_id\u0027] \u003d\u003d \u0027\u0027:"},{"line_number":325,"context_line":"                network \u003d self._get_network(context,"},{"line_number":326,"context_line":"                                            neutron_port[\u0027network_id\u0027])"},{"line_number":327,"context_line":"                tenant_id \u003d network[\u0027tenant_id\u0027]"}],"source_content_type":"text/x-python","patch_set":2,"id":"AAAAUX%2F%2FfbQ%3D","line":324,"in_reply_to":"AAAAUH%2F96po%3D","updated":"2014-02-12 20:13:38.000000000","message":"tenant_id value is set to \u0027\u0027 for floating_ip ports or router_gateway ports","commit_id":"8550f48b390e4e0aab11be7c2c6bc35e88f97499"},{"author":{"_account_id":6072,"name":"Eugene Nikanorov","email":"enikanorov@mirantis.com","username":"enikanorov"},"change_message_id":"2b2a7c5e9fe38767de2e67cb7db83c9a5e6baf8d","unresolved":false,"context_lines":[{"line_number":349,"context_line":""},{"line_number":350,"context_line":"        return self._fields(neutron_port, fields)"},{"line_number":351,"context_line":""},{"line_number":352,"context_line":"    def get_ports(self, context, filters\u003dNone, fields\u003dNone,"},{"line_number":353,"context_line":"                  sorts\u003dNone, limit\u003dNone, marker\u003dNone,"},{"line_number":354,"context_line":"                  page_reverse\u003dFalse):"},{"line_number":355,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"AAAAUH%2F96pc%3D","line":352,"updated":"2014-02-01 07:54:40.000000000","message":"looks like db plugin already implements get_ports and this method doesn\u0027t add logic to it","commit_id":"8550f48b390e4e0aab11be7c2c6bc35e88f97499"},{"author":{"_account_id":9722,"name":"Hemanth Ravi","email":"hemanth.ravi@oneconvergence.com","username":"hemanthravi"},"change_message_id":"5fcdccb9ab01e36eb67ea18e8acce689114c8e5d","unresolved":false,"context_lines":[{"line_number":349,"context_line":""},{"line_number":350,"context_line":"        return self._fields(neutron_port, fields)"},{"line_number":351,"context_line":""},{"line_number":352,"context_line":"    def get_ports(self, context, filters\u003dNone, fields\u003dNone,"},{"line_number":353,"context_line":"                  sorts\u003dNone, limit\u003dNone, marker\u003dNone,"},{"line_number":354,"context_line":"                  page_reverse\u003dFalse):"},{"line_number":355,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"AAAAUH%2F9Uis%3D","line":352,"in_reply_to":"AAAAUH%2F96pc%3D","updated":"2014-02-12 15:41:05.000000000","message":"Done","commit_id":"8550f48b390e4e0aab11be7c2c6bc35e88f97499"},{"author":{"_account_id":6072,"name":"Eugene Nikanorov","email":"enikanorov@mirantis.com","username":"enikanorov"},"change_message_id":"2b2a7c5e9fe38767de2e67cb7db83c9a5e6baf8d","unresolved":false,"context_lines":[{"line_number":355,"context_line":""},{"line_number":356,"context_line":"        neutron_ports \u003d []"},{"line_number":357,"context_line":""},{"line_number":358,"context_line":"        with context.session.begin(subtransactions\u003dTrue):"},{"line_number":359,"context_line":""},{"line_number":360,"context_line":"            neutron_ports \u003d super(OneConvergencePluginV2,"},{"line_number":361,"context_line":"                                  self).get_ports(context, filters, fields,"}],"source_content_type":"text/x-python","patch_set":2,"id":"AAAAUH%2F96pk%3D","line":358,"updated":"2014-02-01 07:54:40.000000000","message":"no need in transaction","commit_id":"8550f48b390e4e0aab11be7c2c6bc35e88f97499"},{"author":{"_account_id":9722,"name":"Hemanth Ravi","email":"hemanth.ravi@oneconvergence.com","username":"hemanthravi"},"change_message_id":"5fcdccb9ab01e36eb67ea18e8acce689114c8e5d","unresolved":false,"context_lines":[{"line_number":355,"context_line":""},{"line_number":356,"context_line":"        neutron_ports \u003d []"},{"line_number":357,"context_line":""},{"line_number":358,"context_line":"        with context.session.begin(subtransactions\u003dTrue):"},{"line_number":359,"context_line":""},{"line_number":360,"context_line":"            neutron_ports \u003d super(OneConvergencePluginV2,"},{"line_number":361,"context_line":"                                  self).get_ports(context, filters, fields,"}],"source_content_type":"text/x-python","patch_set":2,"id":"AAAAUX%2F%2F6ps%3D","line":358,"in_reply_to":"AAAAUH%2F96pk%3D","updated":"2014-02-12 15:41:05.000000000","message":"Done","commit_id":"8550f48b390e4e0aab11be7c2c6bc35e88f97499"},{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"493d3a15aeab137a4fc0075b4a60f5a1e9c16033","unresolved":false,"context_lines":[{"line_number":93,"context_line":""},{"line_number":94,"context_line":"    def __init__(self):"},{"line_number":95,"context_line":""},{"line_number":96,"context_line":"        self.oneconvergence_init()"},{"line_number":97,"context_line":""},{"line_number":98,"context_line":"        self.log \u003d logging_module.Logger(app_name\u003d\"NVSDPlugin\","},{"line_number":99,"context_line":"                                         module_name\u003d\"NeutronPluginV2\","}],"source_content_type":"text/x-python","patch_set":3,"id":"AAAAUH%2F92AM%3D","line":96,"updated":"2014-02-03 12:49:18.000000000","message":"And need to call base classes\u0027 __init__?","commit_id":"f0083b0672149d77fb4214a8f54422b5dc2981d9"},{"author":{"_account_id":9722,"name":"Hemanth Ravi","email":"hemanth.ravi@oneconvergence.com","username":"hemanthravi"},"change_message_id":"e896851407590beb1ab54b6f05edf003c84c1df7","unresolved":false,"context_lines":[{"line_number":93,"context_line":""},{"line_number":94,"context_line":"    def __init__(self):"},{"line_number":95,"context_line":""},{"line_number":96,"context_line":"        self.oneconvergence_init()"},{"line_number":97,"context_line":""},{"line_number":98,"context_line":"        self.log \u003d logging_module.Logger(app_name\u003d\"NVSDPlugin\","},{"line_number":99,"context_line":"                                         module_name\u003d\"NeutronPluginV2\","}],"source_content_type":"text/x-python","patch_set":3,"id":"AAAAUX%2F%2F6pg%3D","line":96,"in_reply_to":"AAAAUH%2F92AM%3D","updated":"2014-02-12 15:40:42.000000000","message":"Doesn\u0027t look like there is a requirement to call base class __init__. None of the plugins call the base class __init__.","commit_id":"f0083b0672149d77fb4214a8f54422b5dc2981d9"},{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"493d3a15aeab137a4fc0075b4a60f5a1e9c16033","unresolved":false,"context_lines":[{"line_number":219,"context_line":""},{"line_number":220,"context_line":"        try:"},{"line_number":221,"context_line":"            self.nvsdlib.create_subnet(neutron_subnet)"},{"line_number":222,"context_line":"        except nexception.NeutronException as e:"},{"line_number":223,"context_line":"            #Log the message and delete the subnet from the neutron"},{"line_number":224,"context_line":"            super(OneConvergencePluginV2,"},{"line_number":225,"context_line":"                  self).delete_subnet(context, neutron_subnet[\u0027id\u0027])"}],"source_content_type":"text/x-python","patch_set":3,"id":"AAAAUH%2F9180%3D","line":222,"updated":"2014-02-03 12:49:18.000000000","message":"Can a more specific exception be caught here?","commit_id":"f0083b0672149d77fb4214a8f54422b5dc2981d9"},{"author":{"_account_id":9722,"name":"Hemanth Ravi","email":"hemanth.ravi@oneconvergence.com","username":"hemanthravi"},"change_message_id":"e896851407590beb1ab54b6f05edf003c84c1df7","unresolved":false,"context_lines":[{"line_number":219,"context_line":""},{"line_number":220,"context_line":"        try:"},{"line_number":221,"context_line":"            self.nvsdlib.create_subnet(neutron_subnet)"},{"line_number":222,"context_line":"        except nexception.NeutronException as e:"},{"line_number":223,"context_line":"            #Log the message and delete the subnet from the neutron"},{"line_number":224,"context_line":"            super(OneConvergencePluginV2,"},{"line_number":225,"context_line":"                  self).delete_subnet(context, neutron_subnet[\u0027id\u0027])"}],"source_content_type":"text/x-python","patch_set":3,"id":"AAAAUX%2F%2F6pU%3D","line":222,"in_reply_to":"AAAAUH%2F9180%3D","updated":"2014-02-12 15:40:42.000000000","message":"catching NeutronException to handle any exception during invocation of nvsdlib and the exception is passed to the callers of this function.","commit_id":"f0083b0672149d77fb4214a8f54422b5dc2981d9"},{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"493d3a15aeab137a4fc0075b4a60f5a1e9c16033","unresolved":false,"context_lines":[{"line_number":227,"context_line":"                          _(\"Failed to create subnet, \""},{"line_number":228,"context_line":"                            \"deleting it from neutron\"))"},{"line_number":229,"context_line":""},{"line_number":230,"context_line":"            raise e"},{"line_number":231,"context_line":""},{"line_number":232,"context_line":"        return neutron_subnet"},{"line_number":233,"context_line":""}],"source_content_type":"text/x-python","patch_set":3,"id":"AAAAUH%2F919I%3D","line":230,"updated":"2014-02-03 12:49:18.000000000","message":"If you just do \"raise\" then it\u0027ll have the traceback to the original error.","commit_id":"f0083b0672149d77fb4214a8f54422b5dc2981d9"},{"author":{"_account_id":9722,"name":"Hemanth Ravi","email":"hemanth.ravi@oneconvergence.com","username":"hemanthravi"},"change_message_id":"e896851407590beb1ab54b6f05edf003c84c1df7","unresolved":false,"context_lines":[{"line_number":227,"context_line":"                          _(\"Failed to create subnet, \""},{"line_number":228,"context_line":"                            \"deleting it from neutron\"))"},{"line_number":229,"context_line":""},{"line_number":230,"context_line":"            raise e"},{"line_number":231,"context_line":""},{"line_number":232,"context_line":"        return neutron_subnet"},{"line_number":233,"context_line":""}],"source_content_type":"text/x-python","patch_set":3,"id":"AAAAUX%2F%2F6pQ%3D","line":230,"in_reply_to":"AAAAUH%2F919I%3D","updated":"2014-02-12 15:40:42.000000000","message":"Done","commit_id":"f0083b0672149d77fb4214a8f54422b5dc2981d9"},{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"493d3a15aeab137a4fc0075b4a60f5a1e9c16033","unresolved":false,"context_lines":[{"line_number":258,"context_line":""},{"line_number":259,"context_line":"        with context.session.begin(subtransactions\u003dTrue):"},{"line_number":260,"context_line":"            #Get the subnets from NeutronDB by making neutron call"},{"line_number":261,"context_line":"            neutron_subnets \u003d super(OneConvergencePluginV2,"},{"line_number":262,"context_line":"                                    self).get_subnets(context, filters, fields,"},{"line_number":263,"context_line":"                                                      sorts, limit, marker,"},{"line_number":264,"context_line":"                                                      page_reverse)"}],"source_content_type":"text/x-python","patch_set":3,"id":"AAAAUH%2F918Y%3D","line":261,"updated":"2014-02-03 12:49:18.000000000","message":"Don\u0027t need temp variable. Can just return the result.","commit_id":"f0083b0672149d77fb4214a8f54422b5dc2981d9"},{"author":{"_account_id":9722,"name":"Hemanth Ravi","email":"hemanth.ravi@oneconvergence.com","username":"hemanthravi"},"change_message_id":"e896851407590beb1ab54b6f05edf003c84c1df7","unresolved":false,"context_lines":[{"line_number":258,"context_line":""},{"line_number":259,"context_line":"        with context.session.begin(subtransactions\u003dTrue):"},{"line_number":260,"context_line":"            #Get the subnets from NeutronDB by making neutron call"},{"line_number":261,"context_line":"            neutron_subnets \u003d super(OneConvergencePluginV2,"},{"line_number":262,"context_line":"                                    self).get_subnets(context, filters, fields,"},{"line_number":263,"context_line":"                                                      sorts, limit, marker,"},{"line_number":264,"context_line":"                                                      page_reverse)"}],"source_content_type":"text/x-python","patch_set":3,"id":"AAAAUX%2F%2F6pM%3D","line":261,"in_reply_to":"AAAAUH%2F918Y%3D","updated":"2014-02-12 15:40:42.000000000","message":"Done","commit_id":"f0083b0672149d77fb4214a8f54422b5dc2981d9"},{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"493d3a15aeab137a4fc0075b4a60f5a1e9c16033","unresolved":false,"context_lines":[{"line_number":306,"context_line":"            self.log.emit(\u0027error\u0027, tenant_id, _(\"Deleting newly created \""},{"line_number":307,"context_line":"                          \"neutron port %s\") % port_id)"},{"line_number":308,"context_line":"            super(OneConvergencePluginV2, self).delete_port(context, port_id)"},{"line_number":309,"context_line":"            raise e"},{"line_number":310,"context_line":""},{"line_number":311,"context_line":"        return neutron_port"},{"line_number":312,"context_line":""}],"source_content_type":"text/x-python","patch_set":3,"id":"AAAAUH%2F918E%3D","line":309,"updated":"2014-02-03 12:49:18.000000000","message":"Ditto on the re-raise and the exception type caught.","commit_id":"f0083b0672149d77fb4214a8f54422b5dc2981d9"},{"author":{"_account_id":9722,"name":"Hemanth Ravi","email":"hemanth.ravi@oneconvergence.com","username":"hemanthravi"},"change_message_id":"e896851407590beb1ab54b6f05edf003c84c1df7","unresolved":false,"context_lines":[{"line_number":306,"context_line":"            self.log.emit(\u0027error\u0027, tenant_id, _(\"Deleting newly created \""},{"line_number":307,"context_line":"                          \"neutron port %s\") % port_id)"},{"line_number":308,"context_line":"            super(OneConvergencePluginV2, self).delete_port(context, port_id)"},{"line_number":309,"context_line":"            raise e"},{"line_number":310,"context_line":""},{"line_number":311,"context_line":"        return neutron_port"},{"line_number":312,"context_line":""}],"source_content_type":"text/x-python","patch_set":3,"id":"AAAAUX%2F%2F6pI%3D","line":309,"in_reply_to":"AAAAUH%2F918E%3D","updated":"2014-02-12 15:40:42.000000000","message":"Done","commit_id":"f0083b0672149d77fb4214a8f54422b5dc2981d9"},{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"493d3a15aeab137a4fc0075b4a60f5a1e9c16033","unresolved":false,"context_lines":[{"line_number":335,"context_line":"            neutron_port \u003d super(OneConvergencePluginV2,"},{"line_number":336,"context_line":"                                 self).get_port(context, port_id, fields)"},{"line_number":337,"context_line":""},{"line_number":338,"context_line":"            tenant_id \u003d (neutron_port[\u0027tenant_id\u0027]"},{"line_number":339,"context_line":"                         if neutron_port[\u0027tenant_id\u0027] !\u003d \u0027\u0027"},{"line_number":340,"context_line":"                         else self._get_network("},{"line_number":341,"context_line":"                             context, neutron_port[\u0027network_id\u0027])[\u0027tenant_id\u0027])"}],"source_content_type":"text/x-python","patch_set":3,"id":"AAAAUH%2F916s%3D","line":338,"updated":"2014-02-03 12:49:18.000000000","message":"May be clearer with...\ntenant_id \u003d neutron_port[\u0027tenant_id\u0027] or self._get_network(context, neutron_port[\u0027network_id\u0027])[\u0027tenant_id\u0027]\n\nThere is similar logic in L376-378, so another alternative may be to place this logic in a function that each place could use.","commit_id":"f0083b0672149d77fb4214a8f54422b5dc2981d9"},{"author":{"_account_id":9722,"name":"Hemanth Ravi","email":"hemanth.ravi@oneconvergence.com","username":"hemanthravi"},"change_message_id":"e896851407590beb1ab54b6f05edf003c84c1df7","unresolved":false,"context_lines":[{"line_number":335,"context_line":"            neutron_port \u003d super(OneConvergencePluginV2,"},{"line_number":336,"context_line":"                                 self).get_port(context, port_id, fields)"},{"line_number":337,"context_line":""},{"line_number":338,"context_line":"            tenant_id \u003d (neutron_port[\u0027tenant_id\u0027]"},{"line_number":339,"context_line":"                         if neutron_port[\u0027tenant_id\u0027] !\u003d \u0027\u0027"},{"line_number":340,"context_line":"                         else self._get_network("},{"line_number":341,"context_line":"                             context, neutron_port[\u0027network_id\u0027])[\u0027tenant_id\u0027])"}],"source_content_type":"text/x-python","patch_set":3,"id":"AAAAUX%2F%2F6pE%3D","line":338,"in_reply_to":"AAAAUH%2F916s%3D","updated":"2014-02-12 15:40:42.000000000","message":"Done","commit_id":"f0083b0672149d77fb4214a8f54422b5dc2981d9"},{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"a2c41ed87d9c6b693f6ded3062ba6afe2aeeda76","unresolved":false,"context_lines":[{"line_number":1,"context_line":"# vim: tabstop\u003d4 shiftwidth\u003d4 softtabstop\u003d4"},{"line_number":2,"context_line":""},{"line_number":3,"context_line":"# Copyright 2014 OneConvergence, Inc. All Rights Reserved."},{"line_number":4,"context_line":"#"}],"source_content_type":"text/x-python","patch_set":4,"id":"AAAAUX%2F%2F2wU%3D","line":1,"updated":"2014-02-10 12:04:40.000000000","message":"Remove vim line from all added files.","commit_id":"69894c1efec9d2d448401e7c1726704747925f6c"},{"author":{"_account_id":9722,"name":"Hemanth Ravi","email":"hemanth.ravi@oneconvergence.com","username":"hemanthravi"},"change_message_id":"8c5bdf5692be6f96c34514f6d6b63b2abfdbff38","unresolved":false,"context_lines":[{"line_number":1,"context_line":"# vim: tabstop\u003d4 shiftwidth\u003d4 softtabstop\u003d4"},{"line_number":2,"context_line":""},{"line_number":3,"context_line":"# Copyright 2014 OneConvergence, Inc. All Rights Reserved."},{"line_number":4,"context_line":"#"}],"source_content_type":"text/x-python","patch_set":4,"id":"AAAAUX%2F%2FfWI%3D","line":1,"in_reply_to":"AAAAUX%2F%2F2wU%3D","updated":"2014-02-12 21:35:28.000000000","message":"Done","commit_id":"69894c1efec9d2d448401e7c1726704747925f6c"},{"author":{"_account_id":6072,"name":"Eugene Nikanorov","email":"enikanorov@mirantis.com","username":"enikanorov"},"change_message_id":"71098d8234b8d334f09cdb37c5ccafebf458c376","unresolved":false,"context_lines":[{"line_number":43,"context_line":"from neutron.openstack.common import rpc"},{"line_number":44,"context_line":"from neutron.plugins.common import constants as svc_constants"},{"line_number":45,"context_line":"import neutron.plugins.oneconvergence.lib.config  # noqa"},{"line_number":46,"context_line":"import neutron.plugins.oneconvergence.lib.logging_module as logging_module"},{"line_number":47,"context_line":""},{"line_number":48,"context_line":"NVSD_LIB \u003d \u0027neutron.plugins.oneconvergence.lib.nvsdlib.NVSDApi\u0027"},{"line_number":49,"context_line":"IPv6 \u003d 6"}],"source_content_type":"text/x-python","patch_set":4,"id":"AAAAUX%2F%2FsAA%3D","line":46,"updated":"2014-02-11 14:13:32.000000000","message":"why not to use standard logging?","commit_id":"69894c1efec9d2d448401e7c1726704747925f6c"},{"author":{"_account_id":9722,"name":"Hemanth Ravi","email":"hemanth.ravi@oneconvergence.com","username":"hemanthravi"},"change_message_id":"8c5bdf5692be6f96c34514f6d6b63b2abfdbff38","unresolved":false,"context_lines":[{"line_number":43,"context_line":"from neutron.openstack.common import rpc"},{"line_number":44,"context_line":"from neutron.plugins.common import constants as svc_constants"},{"line_number":45,"context_line":"import neutron.plugins.oneconvergence.lib.config  # noqa"},{"line_number":46,"context_line":"import neutron.plugins.oneconvergence.lib.logging_module as logging_module"},{"line_number":47,"context_line":""},{"line_number":48,"context_line":"NVSD_LIB \u003d \u0027neutron.plugins.oneconvergence.lib.nvsdlib.NVSDApi\u0027"},{"line_number":49,"context_line":"IPv6 \u003d 6"}],"source_content_type":"text/x-python","patch_set":4,"id":"AAAAUX%2F%2FfZM%3D","line":46,"in_reply_to":"AAAAUX%2F%2FsAA%3D","updated":"2014-02-12 21:35:28.000000000","message":"The plugin logs to the default neutron log destination as well as send the logs to a syslog server running on the NVSD controller. The logs sent to the NVSD controller are formatted with specific fields. This logger class implements the above and invokes the normal logger","commit_id":"69894c1efec9d2d448401e7c1726704747925f6c"},{"author":{"_account_id":6072,"name":"Eugene Nikanorov","email":"enikanorov@mirantis.com","username":"enikanorov"},"change_message_id":"71098d8234b8d334f09cdb37c5ccafebf458c376","unresolved":false,"context_lines":[{"line_number":140,"context_line":""},{"line_number":141,"context_line":"    def create_network(self, context, network):"},{"line_number":142,"context_line":""},{"line_number":143,"context_line":"        net \u003d self.nvsdlib.create_network(network[\u0027network\u0027])"},{"line_number":144,"context_line":""},{"line_number":145,"context_line":"        network[\u0027network\u0027][\u0027id\u0027] \u003d net[\u0027id\u0027]"},{"line_number":146,"context_line":""}],"source_content_type":"text/x-python","patch_set":4,"id":"AAAAUX%2F%2FsBQ%3D","line":143,"updated":"2014-02-11 14:13:32.000000000","message":"is it ok to create network on the device before persisting it in the db? what if the call on L148 fails?","commit_id":"69894c1efec9d2d448401e7c1726704747925f6c"},{"author":{"_account_id":9722,"name":"Hemanth Ravi","email":"hemanth.ravi@oneconvergence.com","username":"hemanthravi"},"change_message_id":"8c5bdf5692be6f96c34514f6d6b63b2abfdbff38","unresolved":false,"context_lines":[{"line_number":140,"context_line":""},{"line_number":141,"context_line":"    def create_network(self, context, network):"},{"line_number":142,"context_line":""},{"line_number":143,"context_line":"        net \u003d self.nvsdlib.create_network(network[\u0027network\u0027])"},{"line_number":144,"context_line":""},{"line_number":145,"context_line":"        network[\u0027network\u0027][\u0027id\u0027] \u003d net[\u0027id\u0027]"},{"line_number":146,"context_line":""}],"source_content_type":"text/x-python","patch_set":4,"id":"AAAAUX%2F%2FfXU%3D","line":143,"in_reply_to":"AAAAUX%2F%2FsBQ%3D","updated":"2014-02-12 21:35:28.000000000","message":"network is created on the backend first to get the network id which is generated by the backend.","commit_id":"69894c1efec9d2d448401e7c1726704747925f6c"},{"author":{"_account_id":6072,"name":"Eugene Nikanorov","email":"enikanorov@mirantis.com","username":"enikanorov"},"change_message_id":"71098d8234b8d334f09cdb37c5ccafebf458c376","unresolved":false,"context_lines":[{"line_number":161,"context_line":"            neutron_net \u003d super(OneConvergencePluginV2,"},{"line_number":162,"context_line":"                                self).update_network(context, net_id, network)"},{"line_number":163,"context_line":""},{"line_number":164,"context_line":"            self.nvsdlib.update_network(neutron_net, network[\u0027network\u0027])"},{"line_number":165,"context_line":"            # updates neutron database e.g. externalnetworks table."},{"line_number":166,"context_line":"            self._process_l3_update(context, neutron_net, network[\u0027network\u0027])"},{"line_number":167,"context_line":""}],"source_content_type":"text/x-python","patch_set":4,"id":"AAAAUX%2F%2FsAI%3D","line":164,"updated":"2014-02-11 14:13:32.000000000","message":"It\u0027s not good to communicate with the backend within the transaction. This call triggers some http-request, which will block current greenthread, so transaction will not end until the call returns. That increases chances of all kinds of races and deadlocks.\n\nI think communication with the backend should be done outside the transaction. In case of deploy failure, you\u0027ll need to modiify object state and set it to ERROR.\n\nThat comment applies to code below as well.","commit_id":"69894c1efec9d2d448401e7c1726704747925f6c"},{"author":{"_account_id":9722,"name":"Hemanth Ravi","email":"hemanth.ravi@oneconvergence.com","username":"hemanthravi"},"change_message_id":"8c5bdf5692be6f96c34514f6d6b63b2abfdbff38","unresolved":false,"context_lines":[{"line_number":161,"context_line":"            neutron_net \u003d super(OneConvergencePluginV2,"},{"line_number":162,"context_line":"                                self).update_network(context, net_id, network)"},{"line_number":163,"context_line":""},{"line_number":164,"context_line":"            self.nvsdlib.update_network(neutron_net, network[\u0027network\u0027])"},{"line_number":165,"context_line":"            # updates neutron database e.g. externalnetworks table."},{"line_number":166,"context_line":"            self._process_l3_update(context, neutron_net, network[\u0027network\u0027])"},{"line_number":167,"context_line":""}],"source_content_type":"text/x-python","patch_set":4,"id":"AAAAUX%2F%2FfWU%3D","line":164,"in_reply_to":"AAAAUX%2F%2FsAI%3D","updated":"2014-02-12 21:35:28.000000000","message":"backend calls are within the transaction to avoid any inconsistency. We couldn\u0027t identify any race conditions and haven\u0027t run into these during our testing. Most of the plugins which interact with a backend do follow the same scheme.","commit_id":"69894c1efec9d2d448401e7c1726704747925f6c"},{"author":{"_account_id":2592,"name":"Mark McClain","email":"mark@mcclain.xyz","username":"markmcclain"},"change_message_id":"28ff0a08c6daa1b099799374928cd706ca6d22f5","unresolved":false,"context_lines":[{"line_number":1,"context_line":"# Copyright 2014 OneConvergence, Inc. All Rights Reserved."},{"line_number":2,"context_line":"#"},{"line_number":3,"context_line":"#    Licensed under the Apache License, Version 2.0 (the \"License\"); you may"},{"line_number":4,"context_line":"#    not use this file except in compliance with the License. You may obtain"}],"source_content_type":"text/x-python","patch_set":5,"id":"AAAAUX%2F%2Fels%3D","line":1,"updated":"2014-02-12 23:06:05.000000000","message":"this file should just be called plugin.py","commit_id":"eac8d861c015b44832e1ec11f6e1fbccf9bebe2c"},{"author":{"_account_id":9722,"name":"Hemanth Ravi","email":"hemanth.ravi@oneconvergence.com","username":"hemanthravi"},"change_message_id":"8ec8e434ce8b2f00e4d610b2e682123f95c4d337","unresolved":false,"context_lines":[{"line_number":1,"context_line":"# Copyright 2014 OneConvergence, Inc. All Rights Reserved."},{"line_number":2,"context_line":"#"},{"line_number":3,"context_line":"#    Licensed under the Apache License, Version 2.0 (the \"License\"); you may"},{"line_number":4,"context_line":"#    not use this file except in compliance with the License. You may obtain"}],"source_content_type":"text/x-python","patch_set":5,"id":"AAAAVn%2F%2FnRY%3D","line":1,"in_reply_to":"AAAAUX%2F%2Fels%3D","updated":"2014-03-05 05:05:52.000000000","message":"Done","commit_id":"eac8d861c015b44832e1ec11f6e1fbccf9bebe2c"},{"author":{"_account_id":7962,"name":"Ronak Shah","email":"ronak.malav.shah@gmail.com","username":"ronak"},"change_message_id":"edb347a56f8bc7c2e583a90a4ed01e7a757cdd6e","unresolved":false,"context_lines":[{"line_number":166,"context_line":"        return neutron_net"},{"line_number":167,"context_line":""},{"line_number":168,"context_line":"    def delete_network(self, context, net_id):"},{"line_number":169,"context_line":""},{"line_number":170,"context_line":"        with context.session.begin(subtransactions\u003dTrue):"},{"line_number":171,"context_line":"            network \u003d self._get_network(context, net_id)"},{"line_number":172,"context_line":"            #get all the subnets under the network to delete them"}],"source_content_type":"text/x-python","patch_set":5,"id":"AAAAUX%2F%2FUtE%3D","line":169,"updated":"2014-02-14 00:25:19.000000000","message":"Not sure why do we need to open a transaction here as super will do it as well. Agreeing with Mark where delete sequence needs to be reverse from create.\nAll possible reasons where delete could fail within neutron will be (or should be) handled in oc controller as well, isnt it?\n\nSame comment for delete_subnet as well.","commit_id":"eac8d861c015b44832e1ec11f6e1fbccf9bebe2c"},{"author":{"_account_id":9722,"name":"Hemanth Ravi","email":"hemanth.ravi@oneconvergence.com","username":"hemanthravi"},"change_message_id":"8ec8e434ce8b2f00e4d610b2e682123f95c4d337","unresolved":false,"context_lines":[{"line_number":166,"context_line":"        return neutron_net"},{"line_number":167,"context_line":""},{"line_number":168,"context_line":"    def delete_network(self, context, net_id):"},{"line_number":169,"context_line":""},{"line_number":170,"context_line":"        with context.session.begin(subtransactions\u003dTrue):"},{"line_number":171,"context_line":"            network \u003d self._get_network(context, net_id)"},{"line_number":172,"context_line":"            #get all the subnets under the network to delete them"}],"source_content_type":"text/x-python","patch_set":5,"id":"AAAAVn%2F%2FnPY%3D","line":169,"in_reply_to":"AAAAUX%2F%2FUtE%3D","updated":"2014-03-05 05:05:52.000000000","message":"The transaction is to avoid committing to the DB in case of failures in the call to the backend controller. The order is intentional in order to use the DB to validate the delete operation.","commit_id":"eac8d861c015b44832e1ec11f6e1fbccf9bebe2c"},{"author":{"_account_id":2592,"name":"Mark McClain","email":"mark@mcclain.xyz","username":"markmcclain"},"change_message_id":"28ff0a08c6daa1b099799374928cd706ca6d22f5","unresolved":false,"context_lines":[{"line_number":175,"context_line":"            super(OneConvergencePluginV2, self).delete_network(context,"},{"line_number":176,"context_line":"                                                               net_id)"},{"line_number":177,"context_line":""},{"line_number":178,"context_line":"            self.nvsdlib.delete_network(network, subnets)"},{"line_number":179,"context_line":""},{"line_number":180,"context_line":"    def create_subnet(self, context, subnet):"},{"line_number":181,"context_line":""}],"source_content_type":"text/x-python","patch_set":5,"id":"AAAAUX%2F%2Fee0%3D","line":178,"updated":"2014-02-12 23:06:05.000000000","message":"This should be called before line 175.","commit_id":"eac8d861c015b44832e1ec11f6e1fbccf9bebe2c"},{"author":{"_account_id":9722,"name":"Hemanth Ravi","email":"hemanth.ravi@oneconvergence.com","username":"hemanthravi"},"change_message_id":"8ec8e434ce8b2f00e4d610b2e682123f95c4d337","unresolved":false,"context_lines":[{"line_number":175,"context_line":"            super(OneConvergencePluginV2, self).delete_network(context,"},{"line_number":176,"context_line":"                                                               net_id)"},{"line_number":177,"context_line":""},{"line_number":178,"context_line":"            self.nvsdlib.delete_network(network, subnets)"},{"line_number":179,"context_line":""},{"line_number":180,"context_line":"    def create_subnet(self, context, subnet):"},{"line_number":181,"context_line":""}],"source_content_type":"text/x-python","patch_set":5,"id":"AAAAVn%2F%2FnPM%3D","line":178,"in_reply_to":"AAAAUX%2F%2Fee0%3D","updated":"2014-03-05 05:05:52.000000000","message":"Same as on line 169","commit_id":"eac8d861c015b44832e1ec11f6e1fbccf9bebe2c"},{"author":{"_account_id":2592,"name":"Mark McClain","email":"mark@mcclain.xyz","username":"markmcclain"},"change_message_id":"28ff0a08c6daa1b099799374928cd706ca6d22f5","unresolved":false,"context_lines":[{"line_number":192,"context_line":"            #Log the message and delete the subnet from the neutron"},{"line_number":193,"context_line":"            super(OneConvergencePluginV2,"},{"line_number":194,"context_line":"                  self).delete_subnet(context, neutron_subnet[\u0027id\u0027])"},{"line_number":195,"context_line":"            self.log.emit(\u0027debug\u0027, neutron_subnet[\u0027tenant_id\u0027],"},{"line_number":196,"context_line":"                          _(\"Failed to create subnet, \""},{"line_number":197,"context_line":"                            \"deleting it from neutron\"))"},{"line_number":198,"context_line":""}],"source_content_type":"text/x-python","patch_set":5,"id":"AAAAUX%2F%2Feic%3D","line":195,"updated":"2014-02-12 23:06:05.000000000","message":"Why are you not using the main openstack.common.logging module?","commit_id":"eac8d861c015b44832e1ec11f6e1fbccf9bebe2c"},{"author":{"_account_id":9722,"name":"Hemanth Ravi","email":"hemanth.ravi@oneconvergence.com","username":"hemanthravi"},"change_message_id":"8ec8e434ce8b2f00e4d610b2e682123f95c4d337","unresolved":false,"context_lines":[{"line_number":192,"context_line":"            #Log the message and delete the subnet from the neutron"},{"line_number":193,"context_line":"            super(OneConvergencePluginV2,"},{"line_number":194,"context_line":"                  self).delete_subnet(context, neutron_subnet[\u0027id\u0027])"},{"line_number":195,"context_line":"            self.log.emit(\u0027debug\u0027, neutron_subnet[\u0027tenant_id\u0027],"},{"line_number":196,"context_line":"                          _(\"Failed to create subnet, \""},{"line_number":197,"context_line":"                            \"deleting it from neutron\"))"},{"line_number":198,"context_line":""}],"source_content_type":"text/x-python","patch_set":5,"id":"AAAAVn%2F%2FnPI%3D","line":195,"in_reply_to":"AAAAUX%2F%2Feic%3D","updated":"2014-03-05 05:05:52.000000000","message":"Done","commit_id":"eac8d861c015b44832e1ec11f6e1fbccf9bebe2c"},{"author":{"_account_id":2592,"name":"Mark McClain","email":"mark@mcclain.xyz","username":"markmcclain"},"change_message_id":"28ff0a08c6daa1b099799374928cd706ca6d22f5","unresolved":false,"context_lines":[{"line_number":206,"context_line":""},{"line_number":207,"context_line":"        with context.session.begin(subtransactions\u003dTrue):"},{"line_number":208,"context_line":""},{"line_number":209,"context_line":"            super(OneConvergencePluginV2, self).delete_subnet(context,"},{"line_number":210,"context_line":"                                                              subnet_id)"},{"line_number":211,"context_line":""},{"line_number":212,"context_line":"            self.nvsdlib.delete_subnet(neutron_subnet)"}],"source_content_type":"text/x-python","patch_set":5,"id":"AAAAUX%2F%2Fef8%3D","line":209,"updated":"2014-02-12 23:06:05.000000000","message":"The ordering seems backwards here.  In create you call super then into nvsdlib, so seems like that pattern should be reversed.  Doing so will allow you to include 205 in the same transaction context.","commit_id":"eac8d861c015b44832e1ec11f6e1fbccf9bebe2c"},{"author":{"_account_id":9722,"name":"Hemanth Ravi","email":"hemanth.ravi@oneconvergence.com","username":"hemanthravi"},"change_message_id":"8ec8e434ce8b2f00e4d610b2e682123f95c4d337","unresolved":false,"context_lines":[{"line_number":206,"context_line":""},{"line_number":207,"context_line":"        with context.session.begin(subtransactions\u003dTrue):"},{"line_number":208,"context_line":""},{"line_number":209,"context_line":"            super(OneConvergencePluginV2, self).delete_subnet(context,"},{"line_number":210,"context_line":"                                                              subnet_id)"},{"line_number":211,"context_line":""},{"line_number":212,"context_line":"            self.nvsdlib.delete_subnet(neutron_subnet)"}],"source_content_type":"text/x-python","patch_set":5,"id":"AAAAVn%2F%2FnOw%3D","line":209,"in_reply_to":"AAAAUX%2F%2Fef8%3D","updated":"2014-03-05 05:05:52.000000000","message":"Same as on line 169","commit_id":"eac8d861c015b44832e1ec11f6e1fbccf9bebe2c"},{"author":{"_account_id":7962,"name":"Ronak Shah","email":"ronak.malav.shah@gmail.com","username":"ronak"},"change_message_id":"edb347a56f8bc7c2e583a90a4ed01e7a757cdd6e","unresolved":false,"context_lines":[{"line_number":245,"context_line":""},{"line_number":246,"context_line":"                tenant_id \u003d network[\u0027tenant_id\u0027]"},{"line_number":247,"context_line":"            else:"},{"line_number":248,"context_line":"                tenant_id \u003d port[\u0027port\u0027][\u0027tenant_id\u0027]"},{"line_number":249,"context_line":""},{"line_number":250,"context_line":"        port_id \u003d neutron_port[\u0027id\u0027]"},{"line_number":251,"context_line":""}],"source_content_type":"text/x-python","patch_set":5,"id":"AAAAUX%2F%2FUqA%3D","line":248,"updated":"2014-02-14 00:25:19.000000000","message":"In case of VM creation from Nova, this tenant_id is going to be \"service\" tenant_id (New change in Icehouse). Shouldnt this be tenant_id \u003d neutron_port[\u0027tenant_id\u0027]?","commit_id":"eac8d861c015b44832e1ec11f6e1fbccf9bebe2c"},{"author":{"_account_id":9722,"name":"Hemanth Ravi","email":"hemanth.ravi@oneconvergence.com","username":"hemanthravi"},"change_message_id":"8ec8e434ce8b2f00e4d610b2e682123f95c4d337","unresolved":false,"context_lines":[{"line_number":245,"context_line":""},{"line_number":246,"context_line":"                tenant_id \u003d network[\u0027tenant_id\u0027]"},{"line_number":247,"context_line":"            else:"},{"line_number":248,"context_line":"                tenant_id \u003d port[\u0027port\u0027][\u0027tenant_id\u0027]"},{"line_number":249,"context_line":""},{"line_number":250,"context_line":"        port_id \u003d neutron_port[\u0027id\u0027]"},{"line_number":251,"context_line":""}],"source_content_type":"text/x-python","patch_set":5,"id":"AAAAVn%2F%2FmfI%3D","line":248,"in_reply_to":"AAAAUX%2F%2FUqA%3D","updated":"2014-03-05 05:05:52.000000000","message":"I have verified that nova does make the call with the correct tenant-id and not with the service tenant-id","commit_id":"eac8d861c015b44832e1ec11f6e1fbccf9bebe2c"},{"author":{"_account_id":7962,"name":"Ronak Shah","email":"ronak.malav.shah@gmail.com","username":"ronak"},"change_message_id":"edb347a56f8bc7c2e583a90a4ed01e7a757cdd6e","unresolved":false,"context_lines":[{"line_number":272,"context_line":"                tenant_id \u003d network[\u0027tenant_id\u0027]"},{"line_number":273,"context_line":"            else:"},{"line_number":274,"context_line":"                tenant_id \u003d neutron_port[\u0027tenant_id\u0027]"},{"line_number":275,"context_line":""},{"line_number":276,"context_line":"            self.nvsdlib.update_port(tenant_id, neutron_port, port[\u0027port\u0027])"},{"line_number":277,"context_line":""},{"line_number":278,"context_line":"            self._process_portbindings_create_and_update(context,"}],"source_content_type":"text/x-python","patch_set":5,"id":"AAAAUX%2F%2FUoE%3D","line":275,"updated":"2014-02-14 00:25:19.000000000","message":"My above comment in create_port makes more sense for consistency with this code. While creating and updating, you probably want the same resource for your tenant_id and which should be neutron_port[\u0027tenant_id\u0027].","commit_id":"eac8d861c015b44832e1ec11f6e1fbccf9bebe2c"},{"author":{"_account_id":9722,"name":"Hemanth Ravi","email":"hemanth.ravi@oneconvergence.com","username":"hemanthravi"},"change_message_id":"8ec8e434ce8b2f00e4d610b2e682123f95c4d337","unresolved":false,"context_lines":[{"line_number":272,"context_line":"                tenant_id \u003d network[\u0027tenant_id\u0027]"},{"line_number":273,"context_line":"            else:"},{"line_number":274,"context_line":"                tenant_id \u003d neutron_port[\u0027tenant_id\u0027]"},{"line_number":275,"context_line":""},{"line_number":276,"context_line":"            self.nvsdlib.update_port(tenant_id, neutron_port, port[\u0027port\u0027])"},{"line_number":277,"context_line":""},{"line_number":278,"context_line":"            self._process_portbindings_create_and_update(context,"}],"source_content_type":"text/x-python","patch_set":5,"id":"AAAAVn%2F%2Fme8%3D","line":275,"in_reply_to":"AAAAUX%2F%2FUoE%3D","updated":"2014-03-05 05:05:52.000000000","message":"Either parameters contain the same value. Leaving as is.","commit_id":"eac8d861c015b44832e1ec11f6e1fbccf9bebe2c"},{"author":{"_account_id":2592,"name":"Mark McClain","email":"mark@mcclain.xyz","username":"markmcclain"},"change_message_id":"28ff0a08c6daa1b099799374928cd706ca6d22f5","unresolved":false,"context_lines":[{"line_number":287,"context_line":""},{"line_number":288,"context_line":"        neutron_port \u003d self._get_port(context, port_id)"},{"line_number":289,"context_line":""},{"line_number":290,"context_line":"        with context.session.begin(subtransactions\u003dTrue):"},{"line_number":291,"context_line":""},{"line_number":292,"context_line":"            self.disassociate_floatingips(context, port_id)"},{"line_number":293,"context_line":""}],"source_content_type":"text/x-python","patch_set":5,"id":"AAAAUX%2F%2Fefo%3D","line":290,"updated":"2014-02-12 23:06:05.000000000","message":"Same comment about operation ordering as in delete_subnet().","commit_id":"eac8d861c015b44832e1ec11f6e1fbccf9bebe2c"},{"author":{"_account_id":9722,"name":"Hemanth Ravi","email":"hemanth.ravi@oneconvergence.com","username":"hemanthravi"},"change_message_id":"8ec8e434ce8b2f00e4d610b2e682123f95c4d337","unresolved":false,"context_lines":[{"line_number":287,"context_line":""},{"line_number":288,"context_line":"        neutron_port \u003d self._get_port(context, port_id)"},{"line_number":289,"context_line":""},{"line_number":290,"context_line":"        with context.session.begin(subtransactions\u003dTrue):"},{"line_number":291,"context_line":""},{"line_number":292,"context_line":"            self.disassociate_floatingips(context, port_id)"},{"line_number":293,"context_line":""}],"source_content_type":"text/x-python","patch_set":5,"id":"AAAAVn%2F%2FnKo%3D","line":290,"in_reply_to":"AAAAUX%2F%2Fefo%3D","updated":"2014-03-05 05:05:52.000000000","message":"Same as on line 169","commit_id":"eac8d861c015b44832e1ec11f6e1fbccf9bebe2c"}],"neutron/plugins/oneconvergence/README":[{"author":{"_account_id":490,"name":"Sumit Naiksatam","email":"sumitnaiksatam@gmail.com","username":"snaiksat"},"change_message_id":"35ba862dde111cf33576fd9ab0ab0c9ba7958d28","unresolved":false,"context_lines":[{"line_number":1,"context_line":"One Convergence Neutron Plugin to implement the Neutron v2.0 API. The plugin"},{"line_number":2,"context_line":"works with One Convergence NVSD controller to provide network virtualization"},{"line_number":3,"context_line":"functionality."},{"line_number":4,"context_line":""}],"source_content_type":"application/octet-stream","patch_set":9,"id":"AAAAVn%2F%2FqEI%3D","line":1,"updated":"2014-03-04 20:45:33.000000000","message":"You probably want to put this information in an external wiki and just put a link to that wiki in this file. That way you can modify the contents without having to go through a gerrit and review process.","commit_id":"550cc1df3990f31f6a2aca0f913e64263c5ba1f8"},{"author":{"_account_id":9722,"name":"Hemanth Ravi","email":"hemanth.ravi@oneconvergence.com","username":"hemanthravi"},"change_message_id":"015ee0cd718908547c7a3c47b7a7577e3ffb011e","unresolved":false,"context_lines":[{"line_number":1,"context_line":"One Convergence Neutron Plugin to implement the Neutron v2.0 API. The plugin"},{"line_number":2,"context_line":"works with One Convergence NVSD controller to provide network virtualization"},{"line_number":3,"context_line":"functionality."},{"line_number":4,"context_line":""}],"source_content_type":"application/octet-stream","patch_set":9,"id":"AAAAVn%2F%2FodM%3D","line":1,"in_reply_to":"AAAAVn%2F%2FqEI%3D","updated":"2014-03-04 23:21:29.000000000","message":"Don\u0027t expect this info to change, will add the link to the README.","commit_id":"550cc1df3990f31f6a2aca0f913e64263c5ba1f8"}],"neutron/plugins/oneconvergence/__init__.py":[{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"9c9e2fbcb3526f313d0781a012faefffeb0c0882","unresolved":false,"context_lines":[{"line_number":1,"context_line":"# vim: tabstop\u003d4 shiftwidth\u003d4 softtabstop\u003d4"},{"line_number":2,"context_line":"#"},{"line_number":3,"context_line":"# Copyright 2014 OneConvergence, Inc. All Rights Reserved."},{"line_number":4,"context_line":"#"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAUH%2F%2BZOY%3D","line":1,"updated":"2014-01-27 12:52:24.000000000","message":"File can be empty.","commit_id":"78e0b071223055b0c6392feae6dcd8ed9c8a42f4"},{"author":{"_account_id":9722,"name":"Hemanth Ravi","email":"hemanth.ravi@oneconvergence.com","username":"hemanthravi"},"change_message_id":"ea7bfa31b8dda86fadbdfdf983b08e7a0d84a42b","unresolved":false,"context_lines":[{"line_number":1,"context_line":"# vim: tabstop\u003d4 shiftwidth\u003d4 softtabstop\u003d4"},{"line_number":2,"context_line":"#"},{"line_number":3,"context_line":"# Copyright 2014 OneConvergence, Inc. All Rights Reserved."},{"line_number":4,"context_line":"#"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAUH%2F%2BGWA%3D","line":1,"in_reply_to":"AAAAUH%2F%2BZOY%3D","updated":"2014-02-12 15:41:34.000000000","message":"Done","commit_id":"78e0b071223055b0c6392feae6dcd8ed9c8a42f4"}],"neutron/plugins/oneconvergence/lib/__init__.py":[{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"9c9e2fbcb3526f313d0781a012faefffeb0c0882","unresolved":false,"context_lines":[{"line_number":1,"context_line":"# vim: tabstop\u003d4 shiftwidth\u003d4 softtabstop\u003d4"},{"line_number":2,"context_line":"#"},{"line_number":3,"context_line":"# Copyright 2014 OneConvergence, Inc. All Rights Reserved."},{"line_number":4,"context_line":"#"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAUH%2F%2BZN4%3D","line":1,"updated":"2014-01-27 12:52:24.000000000","message":"File can be empty.","commit_id":"78e0b071223055b0c6392feae6dcd8ed9c8a42f4"},{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"9c9e2fbcb3526f313d0781a012faefffeb0c0882","unresolved":false,"context_lines":[{"line_number":1,"context_line":"# vim: tabstop\u003d4 shiftwidth\u003d4 softtabstop\u003d4"},{"line_number":2,"context_line":"#"},{"line_number":3,"context_line":"# Copyright 2014 OneConvergence, Inc. All Rights Reserved."},{"line_number":4,"context_line":"#"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAUH%2F%2BZMQ%3D","line":1,"updated":"2014-01-27 12:52:24.000000000","message":"file can be empty","commit_id":"78e0b071223055b0c6392feae6dcd8ed9c8a42f4"},{"author":{"_account_id":9722,"name":"Hemanth Ravi","email":"hemanth.ravi@oneconvergence.com","username":"hemanthravi"},"change_message_id":"ea7bfa31b8dda86fadbdfdf983b08e7a0d84a42b","unresolved":false,"context_lines":[{"line_number":1,"context_line":"# vim: tabstop\u003d4 shiftwidth\u003d4 softtabstop\u003d4"},{"line_number":2,"context_line":"#"},{"line_number":3,"context_line":"# Copyright 2014 OneConvergence, Inc. All Rights Reserved."},{"line_number":4,"context_line":"#"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAUH%2F%2BGV4%3D","line":1,"in_reply_to":"AAAAUH%2F%2BZMQ%3D","updated":"2014-02-12 15:41:34.000000000","message":"Done","commit_id":"78e0b071223055b0c6392feae6dcd8ed9c8a42f4"},{"author":{"_account_id":9722,"name":"Hemanth Ravi","email":"hemanth.ravi@oneconvergence.com","username":"hemanthravi"},"change_message_id":"ea7bfa31b8dda86fadbdfdf983b08e7a0d84a42b","unresolved":false,"context_lines":[{"line_number":1,"context_line":"# vim: tabstop\u003d4 shiftwidth\u003d4 softtabstop\u003d4"},{"line_number":2,"context_line":"#"},{"line_number":3,"context_line":"# Copyright 2014 OneConvergence, Inc. All Rights Reserved."},{"line_number":4,"context_line":"#"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAUH%2F%2BGV0%3D","line":1,"in_reply_to":"AAAAUH%2F%2BZN4%3D","updated":"2014-02-12 15:41:34.000000000","message":"Done","commit_id":"78e0b071223055b0c6392feae6dcd8ed9c8a42f4"}],"neutron/plugins/oneconvergence/lib/config.py":[{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"9c9e2fbcb3526f313d0781a012faefffeb0c0882","unresolved":false,"context_lines":[{"line_number":37,"context_line":"               help\u003d_(\"NVSD Controller password\")),"},{"line_number":38,"context_line":"    cfg.StrOpt(\u0027request_timeout\u0027,"},{"line_number":39,"context_line":"               default\u003d30,"},{"line_number":40,"context_line":"               help\u003d_(\"NVSD Controller IP address\")),"},{"line_number":41,"context_line":"    cfg.StrOpt(\u0027syslog_handler_ip\u0027, default\u003d\u0027localhost\u0027,"},{"line_number":42,"context_line":"               help\u003d_(\"IP address of the SysLog Handler\"))]"},{"line_number":43,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAUH%2F%2BZNQ%3D","line":40,"updated":"2014-01-27 12:52:24.000000000","message":"Help message doesn\u0027t seem correct for request_timeout. May want to indicate default in help message.","commit_id":"78e0b071223055b0c6392feae6dcd8ed9c8a42f4"},{"author":{"_account_id":9722,"name":"Hemanth Ravi","email":"hemanth.ravi@oneconvergence.com","username":"hemanthravi"},"change_message_id":"ea7bfa31b8dda86fadbdfdf983b08e7a0d84a42b","unresolved":false,"context_lines":[{"line_number":37,"context_line":"               help\u003d_(\"NVSD Controller password\")),"},{"line_number":38,"context_line":"    cfg.StrOpt(\u0027request_timeout\u0027,"},{"line_number":39,"context_line":"               default\u003d30,"},{"line_number":40,"context_line":"               help\u003d_(\"NVSD Controller IP address\")),"},{"line_number":41,"context_line":"    cfg.StrOpt(\u0027syslog_handler_ip\u0027, default\u003d\u0027localhost\u0027,"},{"line_number":42,"context_line":"               help\u003d_(\"IP address of the SysLog Handler\"))]"},{"line_number":43,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAUH%2F%2BGVs%3D","line":40,"in_reply_to":"AAAAUH%2F%2BZNQ%3D","updated":"2014-02-12 15:41:34.000000000","message":"Done","commit_id":"78e0b071223055b0c6392feae6dcd8ed9c8a42f4"},{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"9c9e2fbcb3526f313d0781a012faefffeb0c0882","unresolved":false,"context_lines":[{"line_number":39,"context_line":"               default\u003d30,"},{"line_number":40,"context_line":"               help\u003d_(\"NVSD Controller IP address\")),"},{"line_number":41,"context_line":"    cfg.StrOpt(\u0027syslog_handler_ip\u0027, default\u003d\u0027localhost\u0027,"},{"line_number":42,"context_line":"               help\u003d_(\"IP address of the SysLog Handler\"))]"},{"line_number":43,"context_line":""},{"line_number":44,"context_line":"cfg.CONF.register_opts(NVSD_OPT, \"nvsd\")"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAUH%2F%2BZMw%3D","line":42,"updated":"2014-01-27 12:52:24.000000000","message":"Could be more descriptive as to what this is. Is it some long on the NVSD controller?","commit_id":"78e0b071223055b0c6392feae6dcd8ed9c8a42f4"},{"author":{"_account_id":9722,"name":"Hemanth Ravi","email":"hemanth.ravi@oneconvergence.com","username":"hemanthravi"},"change_message_id":"ea7bfa31b8dda86fadbdfdf983b08e7a0d84a42b","unresolved":false,"context_lines":[{"line_number":39,"context_line":"               default\u003d30,"},{"line_number":40,"context_line":"               help\u003d_(\"NVSD Controller IP address\")),"},{"line_number":41,"context_line":"    cfg.StrOpt(\u0027syslog_handler_ip\u0027, default\u003d\u0027localhost\u0027,"},{"line_number":42,"context_line":"               help\u003d_(\"IP address of the SysLog Handler\"))]"},{"line_number":43,"context_line":""},{"line_number":44,"context_line":"cfg.CONF.register_opts(NVSD_OPT, \"nvsd\")"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAUH%2F%2BGVo%3D","line":42,"in_reply_to":"AAAAUH%2F%2BZMw%3D","updated":"2014-02-12 15:41:34.000000000","message":"Done","commit_id":"78e0b071223055b0c6392feae6dcd8ed9c8a42f4"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"1402f37b9de35f4cea74fffe1a9e910cb28c74fa","unresolved":false,"context_lines":[{"line_number":29,"context_line":"               default\u003d\u0027ocplugin\u0027,"},{"line_number":30,"context_line":"               help\u003d_(\"NVSD Controller username\")),"},{"line_number":31,"context_line":"    cfg.StrOpt(\u0027nvsd_passwd\u0027,"},{"line_number":32,"context_line":"               default\u003d\u0027oc123\u0027,"},{"line_number":33,"context_line":"               help\u003d_(\"NVSD Controller password\")),"},{"line_number":34,"context_line":"    cfg.StrOpt(\u0027request_timeout\u0027,"},{"line_number":35,"context_line":"               default\u003d30,"}],"source_content_type":"text/x-python","patch_set":7,"id":"AAAAVn%2F%2F1ks%3D","line":32,"updated":"2014-03-03 22:29:01.000000000","message":"It is better to add \"secret\u003dTrue\" to prevent logging.","commit_id":"7f18d9229aeaa60f30e128ff76df001ba198bc59"},{"author":{"_account_id":9722,"name":"Hemanth Ravi","email":"hemanth.ravi@oneconvergence.com","username":"hemanthravi"},"change_message_id":"aad3d1e2b2de3e1eb27017ded42310d6e56d5c37","unresolved":false,"context_lines":[{"line_number":29,"context_line":"               default\u003d\u0027ocplugin\u0027,"},{"line_number":30,"context_line":"               help\u003d_(\"NVSD Controller username\")),"},{"line_number":31,"context_line":"    cfg.StrOpt(\u0027nvsd_passwd\u0027,"},{"line_number":32,"context_line":"               default\u003d\u0027oc123\u0027,"},{"line_number":33,"context_line":"               help\u003d_(\"NVSD Controller password\")),"},{"line_number":34,"context_line":"    cfg.StrOpt(\u0027request_timeout\u0027,"},{"line_number":35,"context_line":"               default\u003d30,"}],"source_content_type":"text/x-python","patch_set":7,"id":"AAAAVn%2F%2Fvzo%3D","line":32,"in_reply_to":"AAAAVn%2F%2F1ks%3D","updated":"2014-03-04 10:35:13.000000000","message":"Done","commit_id":"7f18d9229aeaa60f30e128ff76df001ba198bc59"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"1402f37b9de35f4cea74fffe1a9e910cb28c74fa","unresolved":false,"context_lines":[{"line_number":31,"context_line":"    cfg.StrOpt(\u0027nvsd_passwd\u0027,"},{"line_number":32,"context_line":"               default\u003d\u0027oc123\u0027,"},{"line_number":33,"context_line":"               help\u003d_(\"NVSD Controller password\")),"},{"line_number":34,"context_line":"    cfg.StrOpt(\u0027request_timeout\u0027,"},{"line_number":35,"context_line":"               default\u003d30,"},{"line_number":36,"context_line":"               help\u003d_(\"NVSD controller REST API request timeout in seconds\")),"},{"line_number":37,"context_line":"    cfg.StrOpt(\u0027nvsd_retries\u0027, default\u003d0,"}],"source_content_type":"text/x-python","patch_set":7,"id":"AAAAVn%2F%2F1kk%3D","line":34,"updated":"2014-03-03 22:29:01.000000000","message":"IntOpt","commit_id":"7f18d9229aeaa60f30e128ff76df001ba198bc59"},{"author":{"_account_id":9722,"name":"Hemanth Ravi","email":"hemanth.ravi@oneconvergence.com","username":"hemanthravi"},"change_message_id":"aad3d1e2b2de3e1eb27017ded42310d6e56d5c37","unresolved":false,"context_lines":[{"line_number":31,"context_line":"    cfg.StrOpt(\u0027nvsd_passwd\u0027,"},{"line_number":32,"context_line":"               default\u003d\u0027oc123\u0027,"},{"line_number":33,"context_line":"               help\u003d_(\"NVSD Controller password\")),"},{"line_number":34,"context_line":"    cfg.StrOpt(\u0027request_timeout\u0027,"},{"line_number":35,"context_line":"               default\u003d30,"},{"line_number":36,"context_line":"               help\u003d_(\"NVSD controller REST API request timeout in seconds\")),"},{"line_number":37,"context_line":"    cfg.StrOpt(\u0027nvsd_retries\u0027, default\u003d0,"}],"source_content_type":"text/x-python","patch_set":7,"id":"AAAAVn%2F%2Fvzg%3D","line":34,"in_reply_to":"AAAAVn%2F%2F1kk%3D","updated":"2014-03-04 10:35:13.000000000","message":"Done","commit_id":"7f18d9229aeaa60f30e128ff76df001ba198bc59"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"1402f37b9de35f4cea74fffe1a9e910cb28c74fa","unresolved":false,"context_lines":[{"line_number":34,"context_line":"    cfg.StrOpt(\u0027request_timeout\u0027,"},{"line_number":35,"context_line":"               default\u003d30,"},{"line_number":36,"context_line":"               help\u003d_(\"NVSD controller REST API request timeout in seconds\")),"},{"line_number":37,"context_line":"    cfg.StrOpt(\u0027nvsd_retries\u0027, default\u003d0,"},{"line_number":38,"context_line":"               help\u003d_(\"Number of login retries to NVSD controller\"))"},{"line_number":39,"context_line":"]"},{"line_number":40,"context_line":""}],"source_content_type":"text/x-python","patch_set":7,"id":"AAAAVn%2F%2F1kI%3D","line":37,"updated":"2014-03-03 22:29:01.000000000","message":"IntOpt","commit_id":"7f18d9229aeaa60f30e128ff76df001ba198bc59"},{"author":{"_account_id":9722,"name":"Hemanth Ravi","email":"hemanth.ravi@oneconvergence.com","username":"hemanthravi"},"change_message_id":"aad3d1e2b2de3e1eb27017ded42310d6e56d5c37","unresolved":false,"context_lines":[{"line_number":34,"context_line":"    cfg.StrOpt(\u0027request_timeout\u0027,"},{"line_number":35,"context_line":"               default\u003d30,"},{"line_number":36,"context_line":"               help\u003d_(\"NVSD controller REST API request timeout in seconds\")),"},{"line_number":37,"context_line":"    cfg.StrOpt(\u0027nvsd_retries\u0027, default\u003d0,"},{"line_number":38,"context_line":"               help\u003d_(\"Number of login retries to NVSD controller\"))"},{"line_number":39,"context_line":"]"},{"line_number":40,"context_line":""}],"source_content_type":"text/x-python","patch_set":7,"id":"AAAAVn%2F%2FvzY%3D","line":37,"in_reply_to":"AAAAVn%2F%2F1kI%3D","updated":"2014-03-04 10:35:13.000000000","message":"Done","commit_id":"7f18d9229aeaa60f30e128ff76df001ba198bc59"}],"neutron/plugins/oneconvergence/lib/credentials.py":[{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"9c9e2fbcb3526f313d0781a012faefffeb0c0882","unresolved":false,"context_lines":[{"line_number":19,"context_line":"from neutron.common import exceptions as qexception"},{"line_number":20,"context_line":""},{"line_number":21,"context_line":""},{"line_number":22,"context_line":"def check_tenantcreds(context, tenant_id):"},{"line_number":23,"context_line":"    \"\"\" Check whether a given tenant admin or not\"\"\""},{"line_number":24,"context_line":"    if ((context.tenant_id !\u003d tenant_id"},{"line_number":25,"context_line":"         and context.is_admin is not True)):"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAUH%2F%2BZLM%3D","line":22,"updated":"2014-01-27 12:52:24.000000000","message":"Should this be named check_is_admin_tenant() to be more self documenting?","commit_id":"78e0b071223055b0c6392feae6dcd8ed9c8a42f4"},{"author":{"_account_id":9722,"name":"Hemanth Ravi","email":"hemanth.ravi@oneconvergence.com","username":"hemanthravi"},"change_message_id":"ea7bfa31b8dda86fadbdfdf983b08e7a0d84a42b","unresolved":false,"context_lines":[{"line_number":19,"context_line":"from neutron.common import exceptions as qexception"},{"line_number":20,"context_line":""},{"line_number":21,"context_line":""},{"line_number":22,"context_line":"def check_tenantcreds(context, tenant_id):"},{"line_number":23,"context_line":"    \"\"\" Check whether a given tenant admin or not\"\"\""},{"line_number":24,"context_line":"    if ((context.tenant_id !\u003d tenant_id"},{"line_number":25,"context_line":"         and context.is_admin is not True)):"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAUH%2F%2BGVg%3D","line":22,"in_reply_to":"AAAAUH%2F%2BZLM%3D","updated":"2014-02-12 15:41:34.000000000","message":"Removed this file as it is not used currently.","commit_id":"78e0b071223055b0c6392feae6dcd8ed9c8a42f4"},{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"9c9e2fbcb3526f313d0781a012faefffeb0c0882","unresolved":false,"context_lines":[{"line_number":20,"context_line":""},{"line_number":21,"context_line":""},{"line_number":22,"context_line":"def check_tenantcreds(context, tenant_id):"},{"line_number":23,"context_line":"    \"\"\" Check whether a given tenant admin or not\"\"\""},{"line_number":24,"context_line":"    if ((context.tenant_id !\u003d tenant_id"},{"line_number":25,"context_line":"         and context.is_admin is not True)):"},{"line_number":26,"context_line":"        raise qexception.AdminRequired"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAUH%2F%2BZLg%3D","line":23,"updated":"2014-01-27 12:52:24.000000000","message":"PEP257, period at end of line for single line doc string.\nSpace at beginning of doc string.\n...tenant is admin or not","commit_id":"78e0b071223055b0c6392feae6dcd8ed9c8a42f4"},{"author":{"_account_id":9722,"name":"Hemanth Ravi","email":"hemanth.ravi@oneconvergence.com","username":"hemanthravi"},"change_message_id":"ea7bfa31b8dda86fadbdfdf983b08e7a0d84a42b","unresolved":false,"context_lines":[{"line_number":20,"context_line":""},{"line_number":21,"context_line":""},{"line_number":22,"context_line":"def check_tenantcreds(context, tenant_id):"},{"line_number":23,"context_line":"    \"\"\" Check whether a given tenant admin or not\"\"\""},{"line_number":24,"context_line":"    if ((context.tenant_id !\u003d tenant_id"},{"line_number":25,"context_line":"         and context.is_admin is not True)):"},{"line_number":26,"context_line":"        raise qexception.AdminRequired"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAUH%2F%2BGVc%3D","line":23,"in_reply_to":"AAAAUH%2F%2BZLg%3D","updated":"2014-02-12 15:41:34.000000000","message":"Done","commit_id":"78e0b071223055b0c6392feae6dcd8ed9c8a42f4"}],"neutron/plugins/oneconvergence/lib/dummynvsdlib.py":[{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"9c9e2fbcb3526f313d0781a012faefffeb0c0882","unresolved":false,"context_lines":[{"line_number":21,"context_line":"\"\"\""},{"line_number":22,"context_line":""},{"line_number":23,"context_line":"import uuid"},{"line_number":24,"context_line":"from neutron.plugins.oneconvergence.lib.plugin_helper import \\"},{"line_number":25,"context_line":"    initialize_plugin_helper"},{"line_number":26,"context_line":""},{"line_number":27,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAUH%2F%2BZKU%3D","line":24,"updated":"2014-01-27 12:52:24.000000000","message":"Eliminate backslash - use parens.\nShould import module and not object (assuming initialize_plugin helper is a function in module).","commit_id":"78e0b071223055b0c6392feae6dcd8ed9c8a42f4"},{"author":{"_account_id":9722,"name":"Hemanth Ravi","email":"hemanth.ravi@oneconvergence.com","username":"hemanthravi"},"change_message_id":"ea7bfa31b8dda86fadbdfdf983b08e7a0d84a42b","unresolved":false,"context_lines":[{"line_number":21,"context_line":"\"\"\""},{"line_number":22,"context_line":""},{"line_number":23,"context_line":"import uuid"},{"line_number":24,"context_line":"from neutron.plugins.oneconvergence.lib.plugin_helper import \\"},{"line_number":25,"context_line":"    initialize_plugin_helper"},{"line_number":26,"context_line":""},{"line_number":27,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAUH%2F%2BGVU%3D","line":24,"in_reply_to":"AAAAUH%2F%2BZKU%3D","updated":"2014-02-12 15:41:34.000000000","message":"Done","commit_id":"78e0b071223055b0c6392feae6dcd8ed9c8a42f4"},{"author":{"_account_id":2592,"name":"Mark McClain","email":"mark@mcclain.xyz","username":"markmcclain"},"change_message_id":"28ff0a08c6daa1b099799374928cd706ca6d22f5","unresolved":false,"context_lines":[{"line_number":23,"context_line":"from neutron.plugins.oneconvergence.lib import plugin_helper"},{"line_number":24,"context_line":""},{"line_number":25,"context_line":""},{"line_number":26,"context_line":"class NVSDApi(object):"},{"line_number":27,"context_line":""},{"line_number":28,"context_line":"    def __init__(self):"},{"line_number":29,"context_line":"        pass"}],"source_content_type":"text/x-python","patch_set":5,"id":"AAAAUX%2F%2Fedw%3D","line":26,"updated":"2014-02-12 23:06:05.000000000","message":"This is test code and should be in the proper plugin test directory in neutron/tests/unit/oneconvergence.","commit_id":"eac8d861c015b44832e1ec11f6e1fbccf9bebe2c"},{"author":{"_account_id":9722,"name":"Hemanth Ravi","email":"hemanth.ravi@oneconvergence.com","username":"hemanthravi"},"change_message_id":"8ec8e434ce8b2f00e4d610b2e682123f95c4d337","unresolved":false,"context_lines":[{"line_number":23,"context_line":"from neutron.plugins.oneconvergence.lib import plugin_helper"},{"line_number":24,"context_line":""},{"line_number":25,"context_line":""},{"line_number":26,"context_line":"class NVSDApi(object):"},{"line_number":27,"context_line":""},{"line_number":28,"context_line":"    def __init__(self):"},{"line_number":29,"context_line":"        pass"}],"source_content_type":"text/x-python","patch_set":5,"id":"AAAAVn%2F%2FnJw%3D","line":26,"in_reply_to":"AAAAUX%2F%2Fedw%3D","updated":"2014-03-05 05:05:52.000000000","message":"Done","commit_id":"eac8d861c015b44832e1ec11f6e1fbccf9bebe2c"}],"neutron/plugins/oneconvergence/lib/exception.py":[{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"9c9e2fbcb3526f313d0781a012faefffeb0c0882","unresolved":false,"context_lines":[{"line_number":18,"context_line":"\"\"\" Exception Definitions\"\"\""},{"line_number":19,"context_line":""},{"line_number":20,"context_line":""},{"line_number":21,"context_line":"class NVSDAPIException(Exception):"},{"line_number":22,"context_line":"    \u0027\u0027\u0027"},{"line_number":23,"context_line":"    Base NVSDplugin Exception"},{"line_number":24,"context_line":"    \u0027\u0027\u0027"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAUH%2F%2BZJk%3D","line":21,"updated":"2014-01-27 12:52:24.000000000","message":"Should this inherit from NeutronException?","commit_id":"78e0b071223055b0c6392feae6dcd8ed9c8a42f4"},{"author":{"_account_id":9722,"name":"Hemanth Ravi","email":"hemanth.ravi@oneconvergence.com","username":"hemanthravi"},"change_message_id":"ea7bfa31b8dda86fadbdfdf983b08e7a0d84a42b","unresolved":false,"context_lines":[{"line_number":18,"context_line":"\"\"\" Exception Definitions\"\"\""},{"line_number":19,"context_line":""},{"line_number":20,"context_line":""},{"line_number":21,"context_line":"class NVSDAPIException(Exception):"},{"line_number":22,"context_line":"    \u0027\u0027\u0027"},{"line_number":23,"context_line":"    Base NVSDplugin Exception"},{"line_number":24,"context_line":"    \u0027\u0027\u0027"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAUH%2F%2BGVQ%3D","line":21,"in_reply_to":"AAAAUH%2F%2BZJk%3D","updated":"2014-02-12 15:41:34.000000000","message":"Done","commit_id":"78e0b071223055b0c6392feae6dcd8ed9c8a42f4"},{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"9c9e2fbcb3526f313d0781a012faefffeb0c0882","unresolved":false,"context_lines":[{"line_number":20,"context_line":""},{"line_number":21,"context_line":"class NVSDAPIException(Exception):"},{"line_number":22,"context_line":"    \u0027\u0027\u0027"},{"line_number":23,"context_line":"    Base NVSDplugin Exception"},{"line_number":24,"context_line":"    \u0027\u0027\u0027"},{"line_number":25,"context_line":"    message \u003d \"An unknown nvsd plugin exception occurred: %(reason)s\""},{"line_number":26,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAUH%2F%2BZKM%3D","line":23,"updated":"2014-01-27 12:52:24.000000000","message":"PEP 257, single line docstrings. Oneline, with period ending.","commit_id":"78e0b071223055b0c6392feae6dcd8ed9c8a42f4"},{"author":{"_account_id":9722,"name":"Hemanth Ravi","email":"hemanth.ravi@oneconvergence.com","username":"hemanthravi"},"change_message_id":"ea7bfa31b8dda86fadbdfdf983b08e7a0d84a42b","unresolved":false,"context_lines":[{"line_number":20,"context_line":""},{"line_number":21,"context_line":"class NVSDAPIException(Exception):"},{"line_number":22,"context_line":"    \u0027\u0027\u0027"},{"line_number":23,"context_line":"    Base NVSDplugin Exception"},{"line_number":24,"context_line":"    \u0027\u0027\u0027"},{"line_number":25,"context_line":"    message \u003d \"An unknown nvsd plugin exception occurred: %(reason)s\""},{"line_number":26,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAUH%2F%2BGVM%3D","line":23,"in_reply_to":"AAAAUH%2F%2BZKM%3D","updated":"2014-02-12 15:41:34.000000000","message":"Done","commit_id":"78e0b071223055b0c6392feae6dcd8ed9c8a42f4"},{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"9c9e2fbcb3526f313d0781a012faefffeb0c0882","unresolved":false,"context_lines":[{"line_number":24,"context_line":"    \u0027\u0027\u0027"},{"line_number":25,"context_line":"    message \u003d \"An unknown nvsd plugin exception occurred: %(reason)s\""},{"line_number":26,"context_line":""},{"line_number":27,"context_line":"    def __init__(self, **kwargs):"},{"line_number":28,"context_line":"        try:"},{"line_number":29,"context_line":"            self._error_string \u003d self.message % kwargs"},{"line_number":30,"context_line":"        except Exception:"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAUH%2F%2BZJg%3D","line":27,"updated":"2014-01-27 12:52:24.000000000","message":"Not sure why this is needed. Same with __str__","commit_id":"78e0b071223055b0c6392feae6dcd8ed9c8a42f4"},{"author":{"_account_id":9722,"name":"Hemanth Ravi","email":"hemanth.ravi@oneconvergence.com","username":"hemanthravi"},"change_message_id":"ea7bfa31b8dda86fadbdfdf983b08e7a0d84a42b","unresolved":false,"context_lines":[{"line_number":24,"context_line":"    \u0027\u0027\u0027"},{"line_number":25,"context_line":"    message \u003d \"An unknown nvsd plugin exception occurred: %(reason)s\""},{"line_number":26,"context_line":""},{"line_number":27,"context_line":"    def __init__(self, **kwargs):"},{"line_number":28,"context_line":"        try:"},{"line_number":29,"context_line":"            self._error_string \u003d self.message % kwargs"},{"line_number":30,"context_line":"        except Exception:"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAUH%2F%2BGVE%3D","line":27,"in_reply_to":"AAAAUH%2F%2BZJg%3D","updated":"2014-02-12 15:41:34.000000000","message":"Done","commit_id":"78e0b071223055b0c6392feae6dcd8ed9c8a42f4"},{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"9c9e2fbcb3526f313d0781a012faefffeb0c0882","unresolved":false,"context_lines":[{"line_number":35,"context_line":"        return self._error_string"},{"line_number":36,"context_line":""},{"line_number":37,"context_line":""},{"line_number":38,"context_line":"class RequestTimeout(NVSDAPIException):"},{"line_number":39,"context_line":"    message \u003d \"The request has timed out.\""},{"line_number":40,"context_line":""},{"line_number":41,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAUH%2F%2BZIw%3D","line":38,"updated":"2014-01-27 12:52:24.000000000","message":"Consider consistency in all the messages (period at end), should they indicate which resource/request/user caused the exception?","commit_id":"78e0b071223055b0c6392feae6dcd8ed9c8a42f4"},{"author":{"_account_id":9722,"name":"Hemanth Ravi","email":"hemanth.ravi@oneconvergence.com","username":"hemanthravi"},"change_message_id":"ea7bfa31b8dda86fadbdfdf983b08e7a0d84a42b","unresolved":false,"context_lines":[{"line_number":35,"context_line":"        return self._error_string"},{"line_number":36,"context_line":""},{"line_number":37,"context_line":""},{"line_number":38,"context_line":"class RequestTimeout(NVSDAPIException):"},{"line_number":39,"context_line":"    message \u003d \"The request has timed out.\""},{"line_number":40,"context_line":""},{"line_number":41,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAUH%2F97Kc%3D","line":38,"in_reply_to":"AAAAUH%2F%2BZIw%3D","updated":"2014-02-12 15:41:34.000000000","message":"Done","commit_id":"78e0b071223055b0c6392feae6dcd8ed9c8a42f4"},{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"9c9e2fbcb3526f313d0781a012faefffeb0c0882","unresolved":false,"context_lines":[{"line_number":60,"context_line":""},{"line_number":61,"context_line":""},{"line_number":62,"context_line":"class ForbiddenException(NVSDAPIException):"},{"line_number":63,"context_line":"    message \u003d \"The request is forbidden from accessing the referenced\""},{"line_number":64,"context_line":"    \" resource. :%(reason)s\""},{"line_number":65,"context_line":""},{"line_number":66,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAUH%2F%2BZJA%3D","line":63,"updated":"2014-01-27 12:52:24.000000000","message":"\"The request is forbidden access to the resource: %(reason)s\"?","commit_id":"78e0b071223055b0c6392feae6dcd8ed9c8a42f4"},{"author":{"_account_id":9722,"name":"Hemanth Ravi","email":"hemanth.ravi@oneconvergence.com","username":"hemanthravi"},"change_message_id":"ea7bfa31b8dda86fadbdfdf983b08e7a0d84a42b","unresolved":false,"context_lines":[{"line_number":60,"context_line":""},{"line_number":61,"context_line":""},{"line_number":62,"context_line":"class ForbiddenException(NVSDAPIException):"},{"line_number":63,"context_line":"    message \u003d \"The request is forbidden from accessing the referenced\""},{"line_number":64,"context_line":"    \" resource. :%(reason)s\""},{"line_number":65,"context_line":""},{"line_number":66,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAUH%2F%2BGVA%3D","line":63,"in_reply_to":"AAAAUH%2F%2BZJA%3D","updated":"2014-02-12 15:41:34.000000000","message":"Done","commit_id":"78e0b071223055b0c6392feae6dcd8ed9c8a42f4"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"1402f37b9de35f4cea74fffe1a9e910cb28c74fa","unresolved":false,"context_lines":[{"line_number":32,"context_line":""},{"line_number":33,"context_line":""},{"line_number":34,"context_line":"class NotFoundException(NVSDAPIException):"},{"line_number":35,"context_line":"    message \u003d _(\"A resource is not found: %(reason)s.\")"},{"line_number":36,"context_line":""},{"line_number":37,"context_line":""},{"line_number":38,"context_line":"class BadRequestException(NVSDAPIException):"}],"source_content_type":"text/x-python","patch_set":7,"id":"AAAAVn%2F%2F1iA%3D","line":35,"updated":"2014-03-03 22:29:01.000000000","message":"It does not inherits n_exc.NotFound, so on Neutron API layer 500 will be returned to a caller. Is it intended?\nIMO, it is okay because these errors are system internal (neutron-server and one convergence NVSD).","commit_id":"7f18d9229aeaa60f30e128ff76df001ba198bc59"},{"author":{"_account_id":9722,"name":"Hemanth Ravi","email":"hemanth.ravi@oneconvergence.com","username":"hemanthravi"},"change_message_id":"aad3d1e2b2de3e1eb27017ded42310d6e56d5c37","unresolved":false,"context_lines":[{"line_number":32,"context_line":""},{"line_number":33,"context_line":""},{"line_number":34,"context_line":"class NotFoundException(NVSDAPIException):"},{"line_number":35,"context_line":"    message \u003d _(\"A resource is not found: %(reason)s.\")"},{"line_number":36,"context_line":""},{"line_number":37,"context_line":""},{"line_number":38,"context_line":"class BadRequestException(NVSDAPIException):"}],"source_content_type":"text/x-python","patch_set":7,"id":"AAAAVn%2F%2FyHo%3D","line":35,"in_reply_to":"AAAAVn%2F%2F1iA%3D","updated":"2014-03-04 10:35:13.000000000","message":"The 500 is intentional, since we are treating these as internal errors.","commit_id":"7f18d9229aeaa60f30e128ff76df001ba198bc59"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"1402f37b9de35f4cea74fffe1a9e910cb28c74fa","unresolved":false,"context_lines":[{"line_number":35,"context_line":"    message \u003d _(\"A resource is not found: %(reason)s.\")"},{"line_number":36,"context_line":""},{"line_number":37,"context_line":""},{"line_number":38,"context_line":"class BadRequestException(NVSDAPIException):"},{"line_number":39,"context_line":"    message \u003d _(\"Request sent to server is invalid: %(reason)s.\")"},{"line_number":40,"context_line":""},{"line_number":41,"context_line":""}],"source_content_type":"text/x-python","patch_set":7,"id":"AAAAVn%2F%2F1h4%3D","line":38,"updated":"2014-03-03 22:29:01.000000000","message":"same as the above","commit_id":"7f18d9229aeaa60f30e128ff76df001ba198bc59"},{"author":{"_account_id":9722,"name":"Hemanth Ravi","email":"hemanth.ravi@oneconvergence.com","username":"hemanthravi"},"change_message_id":"aad3d1e2b2de3e1eb27017ded42310d6e56d5c37","unresolved":false,"context_lines":[{"line_number":35,"context_line":"    message \u003d _(\"A resource is not found: %(reason)s.\")"},{"line_number":36,"context_line":""},{"line_number":37,"context_line":""},{"line_number":38,"context_line":"class BadRequestException(NVSDAPIException):"},{"line_number":39,"context_line":"    message \u003d _(\"Request sent to server is invalid: %(reason)s.\")"},{"line_number":40,"context_line":""},{"line_number":41,"context_line":""}],"source_content_type":"text/x-python","patch_set":7,"id":"AAAAVn%2F%2FyHg%3D","line":38,"in_reply_to":"AAAAVn%2F%2F1h4%3D","updated":"2014-03-04 10:35:13.000000000","message":"The 500 is intentional, since we are treating these as internal errors.","commit_id":"7f18d9229aeaa60f30e128ff76df001ba198bc59"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"1402f37b9de35f4cea74fffe1a9e910cb28c74fa","unresolved":false,"context_lines":[{"line_number":36,"context_line":""},{"line_number":37,"context_line":""},{"line_number":38,"context_line":"class BadRequestException(NVSDAPIException):"},{"line_number":39,"context_line":"    message \u003d _(\"Request sent to server is invalid: %(reason)s.\")"},{"line_number":40,"context_line":""},{"line_number":41,"context_line":""},{"line_number":42,"context_line":"class ServerException(NVSDAPIException):"}],"source_content_type":"text/x-python","patch_set":7,"id":"AAAAVn%2F%2F1gE%3D","line":39,"updated":"2014-03-03 22:29:01.000000000","message":"A period at EOL looks unnecessary.","commit_id":"7f18d9229aeaa60f30e128ff76df001ba198bc59"},{"author":{"_account_id":9722,"name":"Hemanth Ravi","email":"hemanth.ravi@oneconvergence.com","username":"hemanthravi"},"change_message_id":"aad3d1e2b2de3e1eb27017ded42310d6e56d5c37","unresolved":false,"context_lines":[{"line_number":36,"context_line":""},{"line_number":37,"context_line":""},{"line_number":38,"context_line":"class BadRequestException(NVSDAPIException):"},{"line_number":39,"context_line":"    message \u003d _(\"Request sent to server is invalid: %(reason)s.\")"},{"line_number":40,"context_line":""},{"line_number":41,"context_line":""},{"line_number":42,"context_line":"class ServerException(NVSDAPIException):"}],"source_content_type":"text/x-python","patch_set":7,"id":"AAAAVn%2F%2FvzQ%3D","line":39,"in_reply_to":"AAAAVn%2F%2F1gE%3D","updated":"2014-03-04 10:35:13.000000000","message":"Done","commit_id":"7f18d9229aeaa60f30e128ff76df001ba198bc59"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"1402f37b9de35f4cea74fffe1a9e910cb28c74fa","unresolved":false,"context_lines":[{"line_number":44,"context_line":""},{"line_number":45,"context_line":""},{"line_number":46,"context_line":"class ConnectionClosedException(NVSDAPIException):"},{"line_number":47,"context_line":"    message \u003d _(\"Connection is closed by the server.\")"},{"line_number":48,"context_line":""},{"line_number":49,"context_line":""},{"line_number":50,"context_line":"class ForbiddenException(NVSDAPIException):"}],"source_content_type":"text/x-python","patch_set":7,"id":"AAAAVn%2F%2F1gA%3D","line":47,"updated":"2014-03-03 22:29:01.000000000","message":"ditto","commit_id":"7f18d9229aeaa60f30e128ff76df001ba198bc59"},{"author":{"_account_id":9722,"name":"Hemanth Ravi","email":"hemanth.ravi@oneconvergence.com","username":"hemanthravi"},"change_message_id":"aad3d1e2b2de3e1eb27017ded42310d6e56d5c37","unresolved":false,"context_lines":[{"line_number":44,"context_line":""},{"line_number":45,"context_line":""},{"line_number":46,"context_line":"class ConnectionClosedException(NVSDAPIException):"},{"line_number":47,"context_line":"    message \u003d _(\"Connection is closed by the server.\")"},{"line_number":48,"context_line":""},{"line_number":49,"context_line":""},{"line_number":50,"context_line":"class ForbiddenException(NVSDAPIException):"}],"source_content_type":"text/x-python","patch_set":7,"id":"AAAAVn%2F%2FvzI%3D","line":47,"in_reply_to":"AAAAVn%2F%2F1gA%3D","updated":"2014-03-04 10:35:13.000000000","message":"Done","commit_id":"7f18d9229aeaa60f30e128ff76df001ba198bc59"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"1402f37b9de35f4cea74fffe1a9e910cb28c74fa","unresolved":false,"context_lines":[{"line_number":52,"context_line":""},{"line_number":53,"context_line":""},{"line_number":54,"context_line":"class InternalServerError(NVSDAPIException):"},{"line_number":55,"context_line":"    message \u003d _(\"Internal Server Error from NVSD controller: %(reason)s.\")"}],"source_content_type":"text/x-python","patch_set":7,"id":"AAAAVn%2F%2F1f4%3D","line":55,"updated":"2014-03-03 22:29:01.000000000","message":"ditto","commit_id":"7f18d9229aeaa60f30e128ff76df001ba198bc59"},{"author":{"_account_id":9722,"name":"Hemanth Ravi","email":"hemanth.ravi@oneconvergence.com","username":"hemanthravi"},"change_message_id":"aad3d1e2b2de3e1eb27017ded42310d6e56d5c37","unresolved":false,"context_lines":[{"line_number":52,"context_line":""},{"line_number":53,"context_line":""},{"line_number":54,"context_line":"class InternalServerError(NVSDAPIException):"},{"line_number":55,"context_line":"    message \u003d _(\"Internal Server Error from NVSD controller: %(reason)s.\")"}],"source_content_type":"text/x-python","patch_set":7,"id":"AAAAVn%2F%2FvzE%3D","line":55,"in_reply_to":"AAAAVn%2F%2F1f4%3D","updated":"2014-03-04 10:35:13.000000000","message":"Done","commit_id":"7f18d9229aeaa60f30e128ff76df001ba198bc59"},{"author":{"_account_id":490,"name":"Sumit Naiksatam","email":"sumitnaiksatam@gmail.com","username":"snaiksat"},"change_message_id":"35ba862dde111cf33576fd9ab0ab0c9ba7958d28","unresolved":false,"context_lines":[{"line_number":35,"context_line":"    message \u003d _(\"A resource is not found: %(reason)s\")"},{"line_number":36,"context_line":""},{"line_number":37,"context_line":""},{"line_number":38,"context_line":"class BadRequestException(NVSDAPIException):"},{"line_number":39,"context_line":"    message \u003d _(\"Request sent to server is invalid: %(reason)s\")"},{"line_number":40,"context_line":""},{"line_number":41,"context_line":""}],"source_content_type":"text/x-python","patch_set":9,"id":"AAAAVn%2F%2FqBQ%3D","line":38,"updated":"2014-03-04 20:45:33.000000000","message":"this is defined in neutron.common.exceptions.py, any particular reason you dont want to use that?\n\nSame with some other exceptions here. Alternatively you probably want to inherit from those.","commit_id":"550cc1df3990f31f6a2aca0f913e64263c5ba1f8"},{"author":{"_account_id":9722,"name":"Hemanth Ravi","email":"hemanth.ravi@oneconvergence.com","username":"hemanthravi"},"change_message_id":"015ee0cd718908547c7a3c47b7a7577e3ffb011e","unresolved":false,"context_lines":[{"line_number":35,"context_line":"    message \u003d _(\"A resource is not found: %(reason)s\")"},{"line_number":36,"context_line":""},{"line_number":37,"context_line":""},{"line_number":38,"context_line":"class BadRequestException(NVSDAPIException):"},{"line_number":39,"context_line":"    message \u003d _(\"Request sent to server is invalid: %(reason)s\")"},{"line_number":40,"context_line":""},{"line_number":41,"context_line":""}],"source_content_type":"text/x-python","patch_set":9,"id":"AAAAVn%2F%2FpGI%3D","line":38,"in_reply_to":"AAAAVn%2F%2FqBQ%3D","updated":"2014-03-04 23:21:29.000000000","message":"This is intentional, we are returning an Internal Error for errors from NVSD controller.","commit_id":"550cc1df3990f31f6a2aca0f913e64263c5ba1f8"}],"neutron/plugins/oneconvergence/lib/logging_module.py":[{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"9c9e2fbcb3526f313d0781a012faefffeb0c0882","unresolved":false,"context_lines":[{"line_number":16,"context_line":"#"},{"line_number":17,"context_line":"# @author: Kedar Kulkarni, One Convergence, Inc."},{"line_number":18,"context_line":""},{"line_number":19,"context_line":"\"\"\" logging module for OneConvergence Plugin \"\"\""},{"line_number":20,"context_line":"import logging"},{"line_number":21,"context_line":"import logging.handlers as handlers"},{"line_number":22,"context_line":"from oslo.config import cfg"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAUH%2F%2BZIQ%3D","line":19,"updated":"2014-01-27 12:52:24.000000000","message":"Check PEP8/257 on docstring formatting for this and other modules.","commit_id":"78e0b071223055b0c6392feae6dcd8ed9c8a42f4"},{"author":{"_account_id":9722,"name":"Hemanth Ravi","email":"hemanth.ravi@oneconvergence.com","username":"hemanthravi"},"change_message_id":"ea7bfa31b8dda86fadbdfdf983b08e7a0d84a42b","unresolved":false,"context_lines":[{"line_number":16,"context_line":"#"},{"line_number":17,"context_line":"# @author: Kedar Kulkarni, One Convergence, Inc."},{"line_number":18,"context_line":""},{"line_number":19,"context_line":"\"\"\" logging module for OneConvergence Plugin \"\"\""},{"line_number":20,"context_line":"import logging"},{"line_number":21,"context_line":"import logging.handlers as handlers"},{"line_number":22,"context_line":"from oslo.config import cfg"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAUH%2F%2BGU8%3D","line":19,"in_reply_to":"AAAAUH%2F%2BZIQ%3D","updated":"2014-02-12 15:41:34.000000000","message":"Done","commit_id":"78e0b071223055b0c6392feae6dcd8ed9c8a42f4"},{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"9c9e2fbcb3526f313d0781a012faefffeb0c0882","unresolved":false,"context_lines":[{"line_number":42,"context_line":"             \"critical\": logging.CRITICAL}"},{"line_number":43,"context_line":""},{"line_number":44,"context_line":""},{"line_number":45,"context_line":"class Logger:"},{"line_number":46,"context_line":"    \"\"\" Register Syslog handler\"\"\""},{"line_number":47,"context_line":"    def __init__(self,"},{"line_number":48,"context_line":"                 app_name,"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAUH%2F%2BZHw%3D","line":45,"updated":"2014-01-27 12:52:24.000000000","message":"base class?\n\nCan you elaborate on why you\u0027re creating a special logger class, versus using the normal mechanism?","commit_id":"78e0b071223055b0c6392feae6dcd8ed9c8a42f4"},{"author":{"_account_id":9722,"name":"Hemanth Ravi","email":"hemanth.ravi@oneconvergence.com","username":"hemanthravi"},"change_message_id":"ea7bfa31b8dda86fadbdfdf983b08e7a0d84a42b","unresolved":false,"context_lines":[{"line_number":42,"context_line":"             \"critical\": logging.CRITICAL}"},{"line_number":43,"context_line":""},{"line_number":44,"context_line":""},{"line_number":45,"context_line":"class Logger:"},{"line_number":46,"context_line":"    \"\"\" Register Syslog handler\"\"\""},{"line_number":47,"context_line":"    def __init__(self,"},{"line_number":48,"context_line":"                 app_name,"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAUH%2F%2BGUk%3D","line":45,"in_reply_to":"AAAAUH%2F%2BZHw%3D","updated":"2014-02-12 15:41:34.000000000","message":"The plugin logs to the default neutron log destination as well as send the logs to a syslog server running on the NVSD controller. The logs sent to the NVSD controller are formatted with specific fields. This logger class implements the above and invokes the normal logger.","commit_id":"78e0b071223055b0c6392feae6dcd8ed9c8a42f4"},{"author":{"_account_id":2592,"name":"Mark McClain","email":"mark@mcclain.xyz","username":"markmcclain"},"change_message_id":"28ff0a08c6daa1b099799374928cd706ca6d22f5","unresolved":false,"context_lines":[{"line_number":1,"context_line":"# Copyright 2014 OneConvergence, Inc. All Rights Reserved."},{"line_number":2,"context_line":"#"},{"line_number":3,"context_line":"#    Licensed under the Apache License, Version 2.0 (the \"License\"); you may"},{"line_number":4,"context_line":"#    not use this file except in compliance with the License. You may obtain"}],"source_content_type":"text/x-python","patch_set":5,"id":"AAAAUX%2F%2FedE%3D","line":1,"updated":"2014-02-12 23:06:05.000000000","message":"You should use the log handler in neutron.openstack.common otherwise you will not get all log messages.  It supports nearly everything implemented here.","commit_id":"eac8d861c015b44832e1ec11f6e1fbccf9bebe2c"},{"author":{"_account_id":9722,"name":"Hemanth Ravi","email":"hemanth.ravi@oneconvergence.com","username":"hemanthravi"},"change_message_id":"8ec8e434ce8b2f00e4d610b2e682123f95c4d337","unresolved":false,"context_lines":[{"line_number":1,"context_line":"# Copyright 2014 OneConvergence, Inc. All Rights Reserved."},{"line_number":2,"context_line":"#"},{"line_number":3,"context_line":"#    Licensed under the Apache License, Version 2.0 (the \"License\"); you may"},{"line_number":4,"context_line":"#    not use this file except in compliance with the License. You may obtain"}],"source_content_type":"text/x-python","patch_set":5,"id":"AAAAVn%2F%2FnJk%3D","line":1,"in_reply_to":"AAAAU3%2F%2F62k%3D","updated":"2014-03-05 05:05:52.000000000","message":"Done","commit_id":"eac8d861c015b44832e1ec11f6e1fbccf9bebe2c"},{"author":{"_account_id":2592,"name":"Mark McClain","email":"mark@mcclain.xyz","username":"markmcclain"},"change_message_id":"3019b363c2c6d60246c6d69d7b39ac17a60aa630","unresolved":false,"context_lines":[{"line_number":1,"context_line":"# Copyright 2014 OneConvergence, Inc. All Rights Reserved."},{"line_number":2,"context_line":"#"},{"line_number":3,"context_line":"#    Licensed under the Apache License, Version 2.0 (the \"License\"); you may"},{"line_number":4,"context_line":"#    not use this file except in compliance with the License. You may obtain"}],"source_content_type":"text/x-python","patch_set":5,"id":"AAAAU3%2F%2F62k%3D","line":1,"in_reply_to":"AAAAUX%2F%2FdRg%3D","updated":"2014-02-24 03:32:52.000000000","message":"Yes.","commit_id":"eac8d861c015b44832e1ec11f6e1fbccf9bebe2c"},{"author":{"_account_id":9722,"name":"Hemanth Ravi","email":"hemanth.ravi@oneconvergence.com","username":"hemanthravi"},"change_message_id":"293efba2d850441f05dc2eec6f43e17dc8a85128","unresolved":false,"context_lines":[{"line_number":1,"context_line":"# Copyright 2014 OneConvergence, Inc. All Rights Reserved."},{"line_number":2,"context_line":"#"},{"line_number":3,"context_line":"#    Licensed under the Apache License, Version 2.0 (the \"License\"); you may"},{"line_number":4,"context_line":"#    not use this file except in compliance with the License. You may obtain"}],"source_content_type":"text/x-python","patch_set":5,"id":"AAAAUX%2F%2FdRg%3D","line":1,"in_reply_to":"AAAAUX%2F%2FedE%3D","updated":"2014-02-13 03:04:00.000000000","message":"Does the log handler in neutron.openstack.common allow for adding a handler to enable sending the logs to a remote controller with a custom forrmat?","commit_id":"eac8d861c015b44832e1ec11f6e1fbccf9bebe2c"},{"author":{"_account_id":2592,"name":"Mark McClain","email":"mark@mcclain.xyz","username":"markmcclain"},"change_message_id":"8a0063973be0629db20c5e5e7722d47a4d2b2ea7","unresolved":false,"context_lines":[{"line_number":41,"context_line":"             \"critical\": logging.CRITICAL}"},{"line_number":42,"context_line":""},{"line_number":43,"context_line":""},{"line_number":44,"context_line":"class Logger(object):"},{"line_number":45,"context_line":"    \"\"\"Register Syslog handler."},{"line_number":46,"context_line":""},{"line_number":47,"context_line":"    This class is used to format and redirect the NVSD plugin logs to"}],"source_content_type":"text/x-python","patch_set":6,"id":"AAAAU3%2F%2F6x8%3D","line":44,"updated":"2014-02-24 03:59:07.000000000","message":"Please take a look at the neutron.openstack.common.log module.  It supports custom format strings and logging to another server.","commit_id":"1ef8c0acf761561d4681f43c7260bcc561406991"},{"author":{"_account_id":9722,"name":"Hemanth Ravi","email":"hemanth.ravi@oneconvergence.com","username":"hemanthravi"},"change_message_id":"64316c6b7b16b91dba7428de01aac13a8236757c","unresolved":false,"context_lines":[{"line_number":41,"context_line":"             \"critical\": logging.CRITICAL}"},{"line_number":42,"context_line":""},{"line_number":43,"context_line":""},{"line_number":44,"context_line":"class Logger(object):"},{"line_number":45,"context_line":"    \"\"\"Register Syslog handler."},{"line_number":46,"context_line":""},{"line_number":47,"context_line":"    This class is used to format and redirect the NVSD plugin logs to"}],"source_content_type":"text/x-python","patch_set":6,"id":"AAAAVn%2F%2F0%2B8%3D","line":44,"in_reply_to":"AAAAU3%2F%2F6x8%3D","updated":"2014-03-03 22:36:25.000000000","message":"Done","commit_id":"1ef8c0acf761561d4681f43c7260bcc561406991"},{"author":{"_account_id":2592,"name":"Mark McClain","email":"mark@mcclain.xyz","username":"markmcclain"},"change_message_id":"8a0063973be0629db20c5e5e7722d47a4d2b2ea7","unresolved":false,"context_lines":[{"line_number":68,"context_line":"                           \"warning\": self.logger.warning,"},{"line_number":69,"context_line":"                           \"error\": self.logger.error,"},{"line_number":70,"context_line":"                           \"critical\": self.logger.critical}"},{"line_number":71,"context_line":"        self.extra_dict \u003d {\"hostname\": socket.gethostname(),"},{"line_number":72,"context_line":"                           \"app_name\": app_name,"},{"line_number":73,"context_line":"                           \"module_name\": module_name}"},{"line_number":74,"context_line":""}],"source_content_type":"text/x-python","patch_set":6,"id":"AAAAU3%2F%2F634%3D","line":71,"updated":"2014-02-24 03:59:07.000000000","message":"from neutron.common import utils\nutils.get_hostname()","commit_id":"1ef8c0acf761561d4681f43c7260bcc561406991"},{"author":{"_account_id":9722,"name":"Hemanth Ravi","email":"hemanth.ravi@oneconvergence.com","username":"hemanthravi"},"change_message_id":"64316c6b7b16b91dba7428de01aac13a8236757c","unresolved":false,"context_lines":[{"line_number":68,"context_line":"                           \"warning\": self.logger.warning,"},{"line_number":69,"context_line":"                           \"error\": self.logger.error,"},{"line_number":70,"context_line":"                           \"critical\": self.logger.critical}"},{"line_number":71,"context_line":"        self.extra_dict \u003d {\"hostname\": socket.gethostname(),"},{"line_number":72,"context_line":"                           \"app_name\": app_name,"},{"line_number":73,"context_line":"                           \"module_name\": module_name}"},{"line_number":74,"context_line":""}],"source_content_type":"text/x-python","patch_set":6,"id":"AAAAVn%2F%2F0%2B4%3D","line":71,"in_reply_to":"AAAAU3%2F%2F634%3D","updated":"2014-03-03 22:36:25.000000000","message":"Done","commit_id":"1ef8c0acf761561d4681f43c7260bcc561406991"}],"neutron/plugins/oneconvergence/lib/nvsdlib.py":[{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"9c9e2fbcb3526f313d0781a012faefffeb0c0882","unresolved":false,"context_lines":[{"line_number":18,"context_line":""},{"line_number":19,"context_line":"\"\"\" Intermidiate NVSD Library \"\"\""},{"line_number":20,"context_line":""},{"line_number":21,"context_line":"import json"},{"line_number":22,"context_line":"from oslo.config import cfg"},{"line_number":23,"context_line":"from neutron.api.v2 import attributes"},{"line_number":24,"context_line":"from neutron.common import exceptions as n_exception"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAUH%2F%2BZHY%3D","line":21,"updated":"2014-01-27 12:52:24.000000000","message":"Check style guides on import grouping...\n\nhttp://docs.openstack.org/developer/hacking/\n\nCheck other modules as well.","commit_id":"78e0b071223055b0c6392feae6dcd8ed9c8a42f4"},{"author":{"_account_id":9722,"name":"Hemanth Ravi","email":"hemanth.ravi@oneconvergence.com","username":"hemanthravi"},"change_message_id":"ea7bfa31b8dda86fadbdfdf983b08e7a0d84a42b","unresolved":false,"context_lines":[{"line_number":18,"context_line":""},{"line_number":19,"context_line":"\"\"\" Intermidiate NVSD Library \"\"\""},{"line_number":20,"context_line":""},{"line_number":21,"context_line":"import json"},{"line_number":22,"context_line":"from oslo.config import cfg"},{"line_number":23,"context_line":"from neutron.api.v2 import attributes"},{"line_number":24,"context_line":"from neutron.common import exceptions as n_exception"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAUH%2F%2BGUg%3D","line":21,"in_reply_to":"AAAAUH%2F%2BZHY%3D","updated":"2014-02-12 15:41:34.000000000","message":"Done","commit_id":"78e0b071223055b0c6392feae6dcd8ed9c8a42f4"},{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"9c9e2fbcb3526f313d0781a012faefffeb0c0882","unresolved":false,"context_lines":[{"line_number":39,"context_line":"PORT_URI \u003d PORTS_URI + \"%s\""},{"line_number":40,"context_line":""},{"line_number":41,"context_line":""},{"line_number":42,"context_line":"class NVSDApi:"},{"line_number":43,"context_line":""},{"line_number":44,"context_line":"    def __init__(self):"},{"line_number":45,"context_line":"        pass"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAUH%2F%2BZHM%3D","line":42,"updated":"2014-01-27 12:52:24.000000000","message":"Base class?","commit_id":"78e0b071223055b0c6392feae6dcd8ed9c8a42f4"},{"author":{"_account_id":9722,"name":"Hemanth Ravi","email":"hemanth.ravi@oneconvergence.com","username":"hemanthravi"},"change_message_id":"ea7bfa31b8dda86fadbdfdf983b08e7a0d84a42b","unresolved":false,"context_lines":[{"line_number":39,"context_line":"PORT_URI \u003d PORTS_URI + \"%s\""},{"line_number":40,"context_line":""},{"line_number":41,"context_line":""},{"line_number":42,"context_line":"class NVSDApi:"},{"line_number":43,"context_line":""},{"line_number":44,"context_line":"    def __init__(self):"},{"line_number":45,"context_line":"        pass"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAUH%2F%2BGUc%3D","line":42,"in_reply_to":"AAAAUH%2F%2BZHM%3D","updated":"2014-02-12 15:41:34.000000000","message":"Done","commit_id":"78e0b071223055b0c6392feae6dcd8ed9c8a42f4"},{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"9c9e2fbcb3526f313d0781a012faefffeb0c0882","unresolved":false,"context_lines":[{"line_number":83,"context_line":"        except nvsdexception.NVSDAPIException:"},{"line_number":84,"context_line":"            self.log.emit(\u0027error\u0027, tenant_id, \"Exception in create network for\""},{"line_number":85,"context_line":"                          \" tenant %s \" % tenant_id)"},{"line_number":86,"context_line":"            raise n_exception.NeutronException()"},{"line_number":87,"context_line":""},{"line_number":88,"context_line":"        nvsd_net \u003d json.loads(response.body)"},{"line_number":89,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAUH%2F%2BZG8%3D","line":86,"updated":"2014-01-27 12:52:24.000000000","message":"Any reason why re-raising as NeutronException? Here and in following cases. Loss of location info, when re-raise.","commit_id":"78e0b071223055b0c6392feae6dcd8ed9c8a42f4"},{"author":{"_account_id":9722,"name":"Hemanth Ravi","email":"hemanth.ravi@oneconvergence.com","username":"hemanthravi"},"change_message_id":"ea7bfa31b8dda86fadbdfdf983b08e7a0d84a42b","unresolved":false,"context_lines":[{"line_number":83,"context_line":"        except nvsdexception.NVSDAPIException:"},{"line_number":84,"context_line":"            self.log.emit(\u0027error\u0027, tenant_id, \"Exception in create network for\""},{"line_number":85,"context_line":"                          \" tenant %s \" % tenant_id)"},{"line_number":86,"context_line":"            raise n_exception.NeutronException()"},{"line_number":87,"context_line":""},{"line_number":88,"context_line":"        nvsd_net \u003d json.loads(response.body)"},{"line_number":89,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAUH%2F%2BGFE%3D","line":86,"in_reply_to":"AAAAUH%2F%2BZG8%3D","updated":"2014-02-12 15:41:34.000000000","message":"Done","commit_id":"78e0b071223055b0c6392feae6dcd8ed9c8a42f4"},{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"9c9e2fbcb3526f313d0781a012faefffeb0c0882","unresolved":false,"context_lines":[{"line_number":94,"context_line":""},{"line_number":95,"context_line":"    def get_network(self, tenant_id, network_id):"},{"line_number":96,"context_line":""},{"line_number":97,"context_line":"        path \u003d NETWORK_URI % (tenant_id, network_id)"},{"line_number":98,"context_line":""},{"line_number":99,"context_line":"        try:"},{"line_number":100,"context_line":"            self.send_request(\"GET\", path)"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAUH%2F%2BZFw%3D","line":97,"updated":"2014-01-27 12:52:24.000000000","message":"There\u0027s duplication of L97-108 seen in other functions that you can consider refactoring into a helper function.","commit_id":"78e0b071223055b0c6392feae6dcd8ed9c8a42f4"},{"author":{"_account_id":9722,"name":"Hemanth Ravi","email":"hemanth.ravi@oneconvergence.com","username":"hemanthravi"},"change_message_id":"ea7bfa31b8dda86fadbdfdf983b08e7a0d84a42b","unresolved":false,"context_lines":[{"line_number":94,"context_line":""},{"line_number":95,"context_line":"    def get_network(self, tenant_id, network_id):"},{"line_number":96,"context_line":""},{"line_number":97,"context_line":"        path \u003d NETWORK_URI % (tenant_id, network_id)"},{"line_number":98,"context_line":""},{"line_number":99,"context_line":"        try:"},{"line_number":100,"context_line":"            self.send_request(\"GET\", path)"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAUH%2F%2BGUU%3D","line":97,"in_reply_to":"AAAAUH%2F%2BZFw%3D","updated":"2014-02-12 15:41:34.000000000","message":"Done","commit_id":"78e0b071223055b0c6392feae6dcd8ed9c8a42f4"},{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"9c9e2fbcb3526f313d0781a012faefffeb0c0882","unresolved":false,"context_lines":[{"line_number":122,"context_line":"                                         json.dumps(network_update))"},{"line_number":123,"context_line":"        except nvsdexception.NotFoundException:"},{"line_number":124,"context_line":"            self.log.emit(\u0027error\u0027, tenant_id,"},{"line_number":125,"context_line":"                          \"Network %s not found for updation\""},{"line_number":126,"context_line":"                          \"for tenant %s\" % (network_id, tenant_id))"},{"line_number":127,"context_line":"            raise n_exception.NetworkNotFound(net_id\u003dnetwork_id)"},{"line_number":128,"context_line":"        except nvsdexception.NVSDAPIException:"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAUH%2F%2BZFU%3D","line":125,"updated":"2014-01-27 12:52:24.000000000","message":"Missing space at end of string for continuation.","commit_id":"78e0b071223055b0c6392feae6dcd8ed9c8a42f4"},{"author":{"_account_id":9722,"name":"Hemanth Ravi","email":"hemanth.ravi@oneconvergence.com","username":"hemanthravi"},"change_message_id":"ea7bfa31b8dda86fadbdfdf983b08e7a0d84a42b","unresolved":false,"context_lines":[{"line_number":122,"context_line":"                                         json.dumps(network_update))"},{"line_number":123,"context_line":"        except nvsdexception.NotFoundException:"},{"line_number":124,"context_line":"            self.log.emit(\u0027error\u0027, tenant_id,"},{"line_number":125,"context_line":"                          \"Network %s not found for updation\""},{"line_number":126,"context_line":"                          \"for tenant %s\" % (network_id, tenant_id))"},{"line_number":127,"context_line":"            raise n_exception.NetworkNotFound(net_id\u003dnetwork_id)"},{"line_number":128,"context_line":"        except nvsdexception.NVSDAPIException:"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAUH%2F%2BGUQ%3D","line":125,"in_reply_to":"AAAAUH%2F%2BZFU%3D","updated":"2014-02-12 15:41:34.000000000","message":"Done","commit_id":"78e0b071223055b0c6392feae6dcd8ed9c8a42f4"},{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"9c9e2fbcb3526f313d0781a012faefffeb0c0882","unresolved":false,"context_lines":[{"line_number":126,"context_line":"                          \"for tenant %s\" % (network_id, tenant_id))"},{"line_number":127,"context_line":"            raise n_exception.NetworkNotFound(net_id\u003dnetwork_id)"},{"line_number":128,"context_line":"        except nvsdexception.NVSDAPIException:"},{"line_number":129,"context_line":"            self.log.emit(\u0027error\u0027, tenant_id, \"Exception in update network %s \\"},{"line_number":130,"context_line":"            tenant %s\" % (network_id, tenant_id))"},{"line_number":131,"context_line":"            raise n_exception.NeutronException()"},{"line_number":132,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAUH%2F%2BZFA%3D","line":129,"updated":"2014-01-27 12:52:24.000000000","message":"Eliminate backslash. Here and later in file","commit_id":"78e0b071223055b0c6392feae6dcd8ed9c8a42f4"},{"author":{"_account_id":9722,"name":"Hemanth Ravi","email":"hemanth.ravi@oneconvergence.com","username":"hemanthravi"},"change_message_id":"ea7bfa31b8dda86fadbdfdf983b08e7a0d84a42b","unresolved":false,"context_lines":[{"line_number":126,"context_line":"                          \"for tenant %s\" % (network_id, tenant_id))"},{"line_number":127,"context_line":"            raise n_exception.NetworkNotFound(net_id\u003dnetwork_id)"},{"line_number":128,"context_line":"        except nvsdexception.NVSDAPIException:"},{"line_number":129,"context_line":"            self.log.emit(\u0027error\u0027, tenant_id, \"Exception in update network %s \\"},{"line_number":130,"context_line":"            tenant %s\" % (network_id, tenant_id))"},{"line_number":131,"context_line":"            raise n_exception.NeutronException()"},{"line_number":132,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAUH%2F%2BGUM%3D","line":129,"in_reply_to":"AAAAUH%2F%2BZFA%3D","updated":"2014-02-12 15:41:34.000000000","message":"Done","commit_id":"78e0b071223055b0c6392feae6dcd8ed9c8a42f4"},{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"9c9e2fbcb3526f313d0781a012faefffeb0c0882","unresolved":false,"context_lines":[{"line_number":163,"context_line":"            raise n_exception.NeutronException()"},{"line_number":164,"context_line":""},{"line_number":165,"context_line":"        self.log.emit(\u0027debug\u0027, tenant_id, \"Network %s deleted under tenant %s\""},{"line_number":166,"context_line":"                      \"\" % (network_id, tenant_id))"},{"line_number":167,"context_line":""},{"line_number":168,"context_line":"    def create_subnet(self, subnet):"},{"line_number":169,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAUH%2F%2BZE4%3D","line":166,"updated":"2014-01-27 12:52:24.000000000","message":"empty string continuation?","commit_id":"78e0b071223055b0c6392feae6dcd8ed9c8a42f4"},{"author":{"_account_id":9722,"name":"Hemanth Ravi","email":"hemanth.ravi@oneconvergence.com","username":"hemanthravi"},"change_message_id":"ea7bfa31b8dda86fadbdfdf983b08e7a0d84a42b","unresolved":false,"context_lines":[{"line_number":163,"context_line":"            raise n_exception.NeutronException()"},{"line_number":164,"context_line":""},{"line_number":165,"context_line":"        self.log.emit(\u0027debug\u0027, tenant_id, \"Network %s deleted under tenant %s\""},{"line_number":166,"context_line":"                      \"\" % (network_id, tenant_id))"},{"line_number":167,"context_line":""},{"line_number":168,"context_line":"    def create_subnet(self, subnet):"},{"line_number":169,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAUH%2F%2BGUI%3D","line":166,"in_reply_to":"AAAAUH%2F%2BZE4%3D","updated":"2014-02-12 15:41:34.000000000","message":"Done","commit_id":"78e0b071223055b0c6392feae6dcd8ed9c8a42f4"},{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"9c9e2fbcb3526f313d0781a012faefffeb0c0882","unresolved":false,"context_lines":[{"line_number":196,"context_line":"            self.send_request(\"DELETE\", uri)"},{"line_number":197,"context_line":"        except nvsdexception.NotFoundException:"},{"line_number":198,"context_line":"            self.log.emit(\u0027error\u0027, tenant_id, \"Resource not found for\""},{"line_number":199,"context_line":"                          \"delete subnet %s tenant %s\" % (subnet_id,"},{"line_number":200,"context_line":"                                                          tenant_id))"},{"line_number":201,"context_line":"            raise n_exception.SubnetNotFound(subnet_id\u003dsubnet_id)"},{"line_number":202,"context_line":"        except nvsdexception.NVSDAPIException:"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAUH%2F%2BZEY%3D","line":199,"updated":"2014-01-27 12:52:24.000000000","message":"missing space between for and delete","commit_id":"78e0b071223055b0c6392feae6dcd8ed9c8a42f4"},{"author":{"_account_id":9722,"name":"Hemanth Ravi","email":"hemanth.ravi@oneconvergence.com","username":"hemanthravi"},"change_message_id":"ea7bfa31b8dda86fadbdfdf983b08e7a0d84a42b","unresolved":false,"context_lines":[{"line_number":196,"context_line":"            self.send_request(\"DELETE\", uri)"},{"line_number":197,"context_line":"        except nvsdexception.NotFoundException:"},{"line_number":198,"context_line":"            self.log.emit(\u0027error\u0027, tenant_id, \"Resource not found for\""},{"line_number":199,"context_line":"                          \"delete subnet %s tenant %s\" % (subnet_id,"},{"line_number":200,"context_line":"                                                          tenant_id))"},{"line_number":201,"context_line":"            raise n_exception.SubnetNotFound(subnet_id\u003dsubnet_id)"},{"line_number":202,"context_line":"        except nvsdexception.NVSDAPIException:"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAUH%2F%2BGT4%3D","line":199,"in_reply_to":"AAAAUH%2F%2BZEY%3D","updated":"2014-02-12 15:41:34.000000000","message":"Done","commit_id":"78e0b071223055b0c6392feae6dcd8ed9c8a42f4"},{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"9c9e2fbcb3526f313d0781a012faefffeb0c0882","unresolved":false,"context_lines":[{"line_number":244,"context_line":"            response \u003d self.send_request(\"GET\", uri)"},{"line_number":245,"context_line":"        except nvsdexception.NotFoundException:"},{"line_number":246,"context_line":"            self.log.emit(\u0027error\u0027, tenant_id, \"Resource not found for\""},{"line_number":247,"context_line":"                          \"get subnet %s tenant %s\" % (subnet_id, tenant_id))"},{"line_number":248,"context_line":"            raise n_exception.SubnetNotFound(subnet_id\u003dsubnet_id)"},{"line_number":249,"context_line":"        except nvsdexception.NVSDAPIException:"},{"line_number":250,"context_line":"            self.log.emit(\u0027error\u0027, tenant_id, \"\")"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAUH%2F%2BZEI%3D","line":247,"updated":"2014-01-27 12:52:24.000000000","message":"space","commit_id":"78e0b071223055b0c6392feae6dcd8ed9c8a42f4"},{"author":{"_account_id":9722,"name":"Hemanth Ravi","email":"hemanth.ravi@oneconvergence.com","username":"hemanthravi"},"change_message_id":"ea7bfa31b8dda86fadbdfdf983b08e7a0d84a42b","unresolved":false,"context_lines":[{"line_number":244,"context_line":"            response \u003d self.send_request(\"GET\", uri)"},{"line_number":245,"context_line":"        except nvsdexception.NotFoundException:"},{"line_number":246,"context_line":"            self.log.emit(\u0027error\u0027, tenant_id, \"Resource not found for\""},{"line_number":247,"context_line":"                          \"get subnet %s tenant %s\" % (subnet_id, tenant_id))"},{"line_number":248,"context_line":"            raise n_exception.SubnetNotFound(subnet_id\u003dsubnet_id)"},{"line_number":249,"context_line":"        except nvsdexception.NVSDAPIException:"},{"line_number":250,"context_line":"            self.log.emit(\u0027error\u0027, tenant_id, \"\")"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAUH%2F%2BGT0%3D","line":247,"in_reply_to":"AAAAUH%2F%2BZEI%3D","updated":"2014-02-12 15:41:34.000000000","message":"Done","commit_id":"78e0b071223055b0c6392feae6dcd8ed9c8a42f4"},{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"9c9e2fbcb3526f313d0781a012faefffeb0c0882","unresolved":false,"context_lines":[{"line_number":355,"context_line":"            self.send_request(\"DELETE\", uri)"},{"line_number":356,"context_line":"        except nvsdexception.NotFoundException:"},{"line_number":357,"context_line":"            self.log.emit(\u0027error\u0027, tenant_id, \"Resource not found for\""},{"line_number":358,"context_line":"                          \"delete port %s tenant %s\" % (port_id, tenant_id))"},{"line_number":359,"context_line":"            raise n_exception.PortNotFound(port_id\u003dport_id, net_id\u003dnetwork_id)"},{"line_number":360,"context_line":"        except nvsdexception.NVSDAPIException:"},{"line_number":361,"context_line":"            self.log.emit(\u0027error\u0027, tenant_id, \"\")"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAUH%2F%2BZDw%3D","line":358,"updated":"2014-01-27 12:52:24.000000000","message":"space","commit_id":"78e0b071223055b0c6392feae6dcd8ed9c8a42f4"},{"author":{"_account_id":9722,"name":"Hemanth Ravi","email":"hemanth.ravi@oneconvergence.com","username":"hemanthravi"},"change_message_id":"ea7bfa31b8dda86fadbdfdf983b08e7a0d84a42b","unresolved":false,"context_lines":[{"line_number":355,"context_line":"            self.send_request(\"DELETE\", uri)"},{"line_number":356,"context_line":"        except nvsdexception.NotFoundException:"},{"line_number":357,"context_line":"            self.log.emit(\u0027error\u0027, tenant_id, \"Resource not found for\""},{"line_number":358,"context_line":"                          \"delete port %s tenant %s\" % (port_id, tenant_id))"},{"line_number":359,"context_line":"            raise n_exception.PortNotFound(port_id\u003dport_id, net_id\u003dnetwork_id)"},{"line_number":360,"context_line":"        except nvsdexception.NVSDAPIException:"},{"line_number":361,"context_line":"            self.log.emit(\u0027error\u0027, tenant_id, \"\")"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAUH%2F%2BGTw%3D","line":358,"in_reply_to":"AAAAUH%2F%2BZDw%3D","updated":"2014-02-12 15:41:34.000000000","message":"Done","commit_id":"78e0b071223055b0c6392feae6dcd8ed9c8a42f4"},{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"9c9e2fbcb3526f313d0781a012faefffeb0c0882","unresolved":false,"context_lines":[{"line_number":373,"context_line":"            nvsd_port \u003d json.loads(response.body)"},{"line_number":374,"context_line":"        except nvsdexception.NotFoundException:"},{"line_number":375,"context_line":"            self.log.emit(\u0027error\u0027, tenant_id, \"Resource not found for\""},{"line_number":376,"context_line":"                          \"get port %s, network %s, tenant %s\" % ("},{"line_number":377,"context_line":"                              port_id, network_id, tenant_id))"},{"line_number":378,"context_line":"            raise n_exception.PortNotFound(port_id\u003dnvsd_port,"},{"line_number":379,"context_line":"                                           net_id\u003dnetwork_id)"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAUH%2F%2BZDg%3D","line":376,"updated":"2014-01-27 12:52:24.000000000","message":"ditto","commit_id":"78e0b071223055b0c6392feae6dcd8ed9c8a42f4"},{"author":{"_account_id":9722,"name":"Hemanth Ravi","email":"hemanth.ravi@oneconvergence.com","username":"hemanthravi"},"change_message_id":"ea7bfa31b8dda86fadbdfdf983b08e7a0d84a42b","unresolved":false,"context_lines":[{"line_number":373,"context_line":"            nvsd_port \u003d json.loads(response.body)"},{"line_number":374,"context_line":"        except nvsdexception.NotFoundException:"},{"line_number":375,"context_line":"            self.log.emit(\u0027error\u0027, tenant_id, \"Resource not found for\""},{"line_number":376,"context_line":"                          \"get port %s, network %s, tenant %s\" % ("},{"line_number":377,"context_line":"                              port_id, network_id, tenant_id))"},{"line_number":378,"context_line":"            raise n_exception.PortNotFound(port_id\u003dnvsd_port,"},{"line_number":379,"context_line":"                                           net_id\u003dnetwork_id)"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAUH%2F%2BGTs%3D","line":376,"in_reply_to":"AAAAUH%2F%2BZDg%3D","updated":"2014-02-12 15:41:34.000000000","message":"Done","commit_id":"78e0b071223055b0c6392feae6dcd8ed9c8a42f4"},{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"493d3a15aeab137a4fc0075b4a60f5a1e9c16033","unresolved":false,"context_lines":[{"line_number":90,"context_line":"        except n_exception.NeutronException as e:"},{"line_number":91,"context_line":"            msg \u003d build_error_msg(method, resource, tenant_id, resource_id)"},{"line_number":92,"context_line":"            self.log.emit(\u0027error\u0027, tenant_id, msg)"},{"line_number":93,"context_line":"            raise e"},{"line_number":94,"context_line":""},{"line_number":95,"context_line":"        return result"},{"line_number":96,"context_line":""}],"source_content_type":"text/x-python","patch_set":3,"id":"AAAAUH%2F914A%3D","line":93,"updated":"2014-02-03 12:49:18.000000000","message":"Do you want to loose the T/B info for the original source of exception, in this case?","commit_id":"f0083b0672149d77fb4214a8f54422b5dc2981d9"},{"author":{"_account_id":9722,"name":"Hemanth Ravi","email":"hemanth.ravi@oneconvergence.com","username":"hemanthravi"},"change_message_id":"e896851407590beb1ab54b6f05edf003c84c1df7","unresolved":false,"context_lines":[{"line_number":90,"context_line":"        except n_exception.NeutronException as e:"},{"line_number":91,"context_line":"            msg \u003d build_error_msg(method, resource, tenant_id, resource_id)"},{"line_number":92,"context_line":"            self.log.emit(\u0027error\u0027, tenant_id, msg)"},{"line_number":93,"context_line":"            raise e"},{"line_number":94,"context_line":""},{"line_number":95,"context_line":"        return result"},{"line_number":96,"context_line":""}],"source_content_type":"text/x-python","patch_set":3,"id":"AAAAUX%2F%2F6pA%3D","line":93,"in_reply_to":"AAAAUH%2F914A%3D","updated":"2014-02-12 15:40:42.000000000","message":"Done","commit_id":"f0083b0672149d77fb4214a8f54422b5dc2981d9"},{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"493d3a15aeab137a4fc0075b4a60f5a1e9c16033","unresolved":false,"context_lines":[{"line_number":97,"context_line":"    def create_network(self, network):"},{"line_number":98,"context_line":""},{"line_number":99,"context_line":"        tenant_id \u003d network[\u0027tenant_id\u0027]"},{"line_number":100,"context_line":"        external \u003d network[\u0027router:external\u0027]"},{"line_number":101,"context_line":"        router_external \u003d False"},{"line_number":102,"context_line":"        if external is True:"},{"line_number":103,"context_line":"            router_external \u003d True"}],"source_content_type":"text/x-python","patch_set":3,"id":"AAAAUH%2F913M%3D","line":100,"updated":"2014-02-03 12:49:18.000000000","message":"router_external \u003d network[\u0027router:external\u0027]\ninstead of L100-105?","commit_id":"f0083b0672149d77fb4214a8f54422b5dc2981d9"},{"author":{"_account_id":9722,"name":"Hemanth Ravi","email":"hemanth.ravi@oneconvergence.com","username":"hemanthravi"},"change_message_id":"e896851407590beb1ab54b6f05edf003c84c1df7","unresolved":false,"context_lines":[{"line_number":97,"context_line":"    def create_network(self, network):"},{"line_number":98,"context_line":""},{"line_number":99,"context_line":"        tenant_id \u003d network[\u0027tenant_id\u0027]"},{"line_number":100,"context_line":"        external \u003d network[\u0027router:external\u0027]"},{"line_number":101,"context_line":"        router_external \u003d False"},{"line_number":102,"context_line":"        if external is True:"},{"line_number":103,"context_line":"            router_external \u003d True"}],"source_content_type":"text/x-python","patch_set":3,"id":"AAAAUX%2F%2F6o8%3D","line":100,"in_reply_to":"AAAAUH%2F913M%3D","updated":"2014-02-12 15:40:42.000000000","message":"Added comment explaining the additional logic","commit_id":"f0083b0672149d77fb4214a8f54422b5dc2981d9"},{"author":{"_account_id":9722,"name":"Hemanth Ravi","email":"hemanth.ravi@oneconvergence.com","username":"hemanthravi"},"change_message_id":"3d1474238336019b211b1fccae733c47a61a97c6","unresolved":false,"context_lines":[{"line_number":97,"context_line":"    def create_network(self, network):"},{"line_number":98,"context_line":""},{"line_number":99,"context_line":"        tenant_id \u003d network[\u0027tenant_id\u0027]"},{"line_number":100,"context_line":"        external \u003d network[\u0027router:external\u0027]"},{"line_number":101,"context_line":"        router_external \u003d False"},{"line_number":102,"context_line":"        if external is True:"},{"line_number":103,"context_line":"            router_external \u003d True"}],"source_content_type":"text/x-python","patch_set":3,"id":"AAAAUX%2F%2Fhc0%3D","line":100,"in_reply_to":"AAAAUX%2F%2F6o8%3D","updated":"2014-02-12 16:06:30.000000000","message":"Ignore previous comment. Will change this.","commit_id":"f0083b0672149d77fb4214a8f54422b5dc2981d9"},{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"a2c41ed87d9c6b693f6ded3062ba6afe2aeeda76","unresolved":false,"context_lines":[{"line_number":92,"context_line":"    def create_network(self, network):"},{"line_number":93,"context_line":""},{"line_number":94,"context_line":"        tenant_id \u003d network[\u0027tenant_id\u0027]"},{"line_number":95,"context_line":"        external \u003d network[\u0027router:external\u0027]"},{"line_number":96,"context_line":"        router_external \u003d False"},{"line_number":97,"context_line":"        #If the network is external, then this field is True,"},{"line_number":98,"context_line":"        #In other cases getting Non-JSONParseable object, So explicitly"}],"source_content_type":"text/x-python","patch_set":4,"id":"AAAAUX%2F%2F2to%3D","line":95,"updated":"2014-02-10 12:04:40.000000000","message":"router_external \u003d network[\u0027router:external\u0027] is True?","commit_id":"69894c1efec9d2d448401e7c1726704747925f6c"},{"author":{"_account_id":9722,"name":"Hemanth Ravi","email":"hemanth.ravi@oneconvergence.com","username":"hemanthravi"},"change_message_id":"8c5bdf5692be6f96c34514f6d6b63b2abfdbff38","unresolved":false,"context_lines":[{"line_number":92,"context_line":"    def create_network(self, network):"},{"line_number":93,"context_line":""},{"line_number":94,"context_line":"        tenant_id \u003d network[\u0027tenant_id\u0027]"},{"line_number":95,"context_line":"        external \u003d network[\u0027router:external\u0027]"},{"line_number":96,"context_line":"        router_external \u003d False"},{"line_number":97,"context_line":"        #If the network is external, then this field is True,"},{"line_number":98,"context_line":"        #In other cases getting Non-JSONParseable object, So explicitly"}],"source_content_type":"text/x-python","patch_set":4,"id":"AAAAUX%2F%2FfVs%3D","line":95,"in_reply_to":"AAAAUX%2F%2F2to%3D","updated":"2014-02-12 21:35:28.000000000","message":"Done","commit_id":"69894c1efec9d2d448401e7c1726704747925f6c"},{"author":{"_account_id":2592,"name":"Mark McClain","email":"mark@mcclain.xyz","username":"markmcclain"},"change_message_id":"28ff0a08c6daa1b099799374928cd706ca6d22f5","unresolved":false,"context_lines":[{"line_number":16,"context_line":""},{"line_number":17,"context_line":"\"\"\"Intermidiate NVSD Library.\"\"\""},{"line_number":18,"context_line":""},{"line_number":19,"context_line":"import json"},{"line_number":20,"context_line":""},{"line_number":21,"context_line":"from oslo.config import cfg"},{"line_number":22,"context_line":""}],"source_content_type":"text/x-python","patch_set":5,"id":"AAAAUX%2F%2Fec0%3D","line":19,"updated":"2014-02-12 23:06:05.000000000","message":"from neutron.openstack.common import jsonutils as json","commit_id":"eac8d861c015b44832e1ec11f6e1fbccf9bebe2c"},{"author":{"_account_id":9722,"name":"Hemanth Ravi","email":"hemanth.ravi@oneconvergence.com","username":"hemanthravi"},"change_message_id":"8ec8e434ce8b2f00e4d610b2e682123f95c4d337","unresolved":false,"context_lines":[{"line_number":16,"context_line":""},{"line_number":17,"context_line":"\"\"\"Intermidiate NVSD Library.\"\"\""},{"line_number":18,"context_line":""},{"line_number":19,"context_line":"import json"},{"line_number":20,"context_line":""},{"line_number":21,"context_line":"from oslo.config import cfg"},{"line_number":22,"context_line":""}],"source_content_type":"text/x-python","patch_set":5,"id":"AAAAVn%2F%2FnJE%3D","line":19,"in_reply_to":"AAAAUX%2F%2Fec0%3D","updated":"2014-03-05 05:05:52.000000000","message":"Done","commit_id":"eac8d861c015b44832e1ec11f6e1fbccf9bebe2c"},{"author":{"_account_id":2592,"name":"Mark McClain","email":"mark@mcclain.xyz","username":"markmcclain"},"change_message_id":"28ff0a08c6daa1b099799374928cd706ca6d22f5","unresolved":false,"context_lines":[{"line_number":44,"context_line":""},{"line_number":45,"context_line":"class NVSDApi(object):"},{"line_number":46,"context_line":""},{"line_number":47,"context_line":"    def __init__(self):"},{"line_number":48,"context_line":"        pass"},{"line_number":49,"context_line":""},{"line_number":50,"context_line":"    def set_log_level(self):"}],"source_content_type":"text/x-python","patch_set":5,"id":"AAAAUX%2F%2Fecc%3D","line":47,"updated":"2014-02-12 23:06:05.000000000","message":"This can be removed since it does nothing.","commit_id":"eac8d861c015b44832e1ec11f6e1fbccf9bebe2c"},{"author":{"_account_id":9722,"name":"Hemanth Ravi","email":"hemanth.ravi@oneconvergence.com","username":"hemanthravi"},"change_message_id":"8ec8e434ce8b2f00e4d610b2e682123f95c4d337","unresolved":false,"context_lines":[{"line_number":44,"context_line":""},{"line_number":45,"context_line":"class NVSDApi(object):"},{"line_number":46,"context_line":""},{"line_number":47,"context_line":"    def __init__(self):"},{"line_number":48,"context_line":"        pass"},{"line_number":49,"context_line":""},{"line_number":50,"context_line":"    def set_log_level(self):"}],"source_content_type":"text/x-python","patch_set":5,"id":"AAAAVn%2F%2FnI0%3D","line":47,"in_reply_to":"AAAAUX%2F%2Fecc%3D","updated":"2014-03-05 05:05:52.000000000","message":"Done","commit_id":"eac8d861c015b44832e1ec11f6e1fbccf9bebe2c"},{"author":{"_account_id":7962,"name":"Ronak Shah","email":"ronak.malav.shah@gmail.com","username":"ronak"},"change_message_id":"edb347a56f8bc7c2e583a90a4ed01e7a757cdd6e","unresolved":false,"context_lines":[{"line_number":132,"context_line":"        self.log.emit(\u0027debug\u0027, tenant_id, msg)"},{"line_number":133,"context_line":""},{"line_number":134,"context_line":"        return json.loads(response.body)"},{"line_number":135,"context_line":""},{"line_number":136,"context_line":"    def delete_network(self, network, subnets):"},{"line_number":137,"context_line":""},{"line_number":138,"context_line":"        tenant_id \u003d network[\u0027tenant_id\u0027]"}],"source_content_type":"text/x-python","patch_set":5,"id":"AAAAUX%2F%2FUhE%3D","line":135,"updated":"2014-02-14 00:25:19.000000000","message":"This return is not used in plugin file. May be we can get rid of it?","commit_id":"eac8d861c015b44832e1ec11f6e1fbccf9bebe2c"},{"author":{"_account_id":9722,"name":"Hemanth Ravi","email":"hemanth.ravi@oneconvergence.com","username":"hemanthravi"},"change_message_id":"8ec8e434ce8b2f00e4d610b2e682123f95c4d337","unresolved":false,"context_lines":[{"line_number":132,"context_line":"        self.log.emit(\u0027debug\u0027, tenant_id, msg)"},{"line_number":133,"context_line":""},{"line_number":134,"context_line":"        return json.loads(response.body)"},{"line_number":135,"context_line":""},{"line_number":136,"context_line":"    def delete_network(self, network, subnets):"},{"line_number":137,"context_line":""},{"line_number":138,"context_line":"        tenant_id \u003d network[\u0027tenant_id\u0027]"}],"source_content_type":"text/x-python","patch_set":5,"id":"AAAAVn%2F%2FnIw%3D","line":135,"in_reply_to":"AAAAUX%2F%2FUhE%3D","updated":"2014-03-05 05:05:52.000000000","message":"Done","commit_id":"eac8d861c015b44832e1ec11f6e1fbccf9bebe2c"},{"author":{"_account_id":7962,"name":"Ronak Shah","email":"ronak.malav.shah@gmail.com","username":"ronak"},"change_message_id":"edb347a56f8bc7c2e583a90a4ed01e7a757cdd6e","unresolved":false,"context_lines":[{"line_number":172,"context_line":"        self.log.emit(\u0027debug\u0027, tenant_id, msg)"},{"line_number":173,"context_line":""},{"line_number":174,"context_line":"        return json.loads(response.body)"},{"line_number":175,"context_line":""},{"line_number":176,"context_line":"    def delete_subnet(self, subnet):"},{"line_number":177,"context_line":""},{"line_number":178,"context_line":"        tenant_id \u003d subnet[\u0027tenant_id\u0027]"}],"source_content_type":"text/x-python","patch_set":5,"id":"AAAAUX%2F%2FUg8%3D","line":175,"updated":"2014-02-14 00:25:19.000000000","message":"This return is not used in plugin file. May be we can get rid of it?","commit_id":"eac8d861c015b44832e1ec11f6e1fbccf9bebe2c"},{"author":{"_account_id":9722,"name":"Hemanth Ravi","email":"hemanth.ravi@oneconvergence.com","username":"hemanthravi"},"change_message_id":"8ec8e434ce8b2f00e4d610b2e682123f95c4d337","unresolved":false,"context_lines":[{"line_number":172,"context_line":"        self.log.emit(\u0027debug\u0027, tenant_id, msg)"},{"line_number":173,"context_line":""},{"line_number":174,"context_line":"        return json.loads(response.body)"},{"line_number":175,"context_line":""},{"line_number":176,"context_line":"    def delete_subnet(self, subnet):"},{"line_number":177,"context_line":""},{"line_number":178,"context_line":"        tenant_id \u003d subnet[\u0027tenant_id\u0027]"}],"source_content_type":"text/x-python","patch_set":5,"id":"AAAAVn%2F%2FnIo%3D","line":175,"in_reply_to":"AAAAUX%2F%2FUg8%3D","updated":"2014-03-05 05:05:52.000000000","message":"Done","commit_id":"eac8d861c015b44832e1ec11f6e1fbccf9bebe2c"},{"author":{"_account_id":7962,"name":"Ronak Shah","email":"ronak.malav.shah@gmail.com","username":"ronak"},"change_message_id":"edb347a56f8bc7c2e583a90a4ed01e7a757cdd6e","unresolved":false,"context_lines":[{"line_number":207,"context_line":""},{"line_number":208,"context_line":"        self.log.emit(\u0027debug\u0027, tenant_id, msg)"},{"line_number":209,"context_line":""},{"line_number":210,"context_line":"        return json.loads(response.body)"},{"line_number":211,"context_line":""},{"line_number":212,"context_line":"    def create_port(self, tenant_id, port):"},{"line_number":213,"context_line":""}],"source_content_type":"text/x-python","patch_set":5,"id":"AAAAUX%2F%2FUg4%3D","line":210,"updated":"2014-02-14 00:25:19.000000000","message":"This return is not used in plugin file. May be we can get rid of it?","commit_id":"eac8d861c015b44832e1ec11f6e1fbccf9bebe2c"},{"author":{"_account_id":9722,"name":"Hemanth Ravi","email":"hemanth.ravi@oneconvergence.com","username":"hemanthravi"},"change_message_id":"8ec8e434ce8b2f00e4d610b2e682123f95c4d337","unresolved":false,"context_lines":[{"line_number":207,"context_line":""},{"line_number":208,"context_line":"        self.log.emit(\u0027debug\u0027, tenant_id, msg)"},{"line_number":209,"context_line":""},{"line_number":210,"context_line":"        return json.loads(response.body)"},{"line_number":211,"context_line":""},{"line_number":212,"context_line":"    def create_port(self, tenant_id, port):"},{"line_number":213,"context_line":""}],"source_content_type":"text/x-python","patch_set":5,"id":"AAAAVn%2F%2FnIg%3D","line":210,"in_reply_to":"AAAAUX%2F%2FUg4%3D","updated":"2014-03-05 05:05:52.000000000","message":"Done","commit_id":"eac8d861c015b44832e1ec11f6e1fbccf9bebe2c"},{"author":{"_account_id":2592,"name":"Mark McClain","email":"mark@mcclain.xyz","username":"markmcclain"},"change_message_id":"8a0063973be0629db20c5e5e7722d47a4d2b2ea7","unresolved":false,"context_lines":[{"line_number":58,"context_line":"        \"\"\"Issue a request to NVSD controller.\"\"\""},{"line_number":59,"context_line":""},{"line_number":60,"context_line":"        def build_error_msg(method, resource, tenant_id, resource_id):"},{"line_number":61,"context_line":"            if method is \"POST\":"},{"line_number":62,"context_line":"                msg \u003d _(\"Could not create a %(resource)s under tenant \""},{"line_number":63,"context_line":"                        \"%(tenant_id)s\") % {\u0027resource\u0027: resource,"},{"line_number":64,"context_line":"                                            \u0027tenant_id\u0027: tenant_id}"}],"source_content_type":"text/x-python","patch_set":6,"id":"AAAAU3%2F%2F63k%3D","line":61,"updated":"2014-02-24 03:59:07.000000000","message":"if method \u003d\u003d \u0027POST\u0027:","commit_id":"1ef8c0acf761561d4681f43c7260bcc561406991"},{"author":{"_account_id":9722,"name":"Hemanth Ravi","email":"hemanth.ravi@oneconvergence.com","username":"hemanthravi"},"change_message_id":"64316c6b7b16b91dba7428de01aac13a8236757c","unresolved":false,"context_lines":[{"line_number":58,"context_line":"        \"\"\"Issue a request to NVSD controller.\"\"\""},{"line_number":59,"context_line":""},{"line_number":60,"context_line":"        def build_error_msg(method, resource, tenant_id, resource_id):"},{"line_number":61,"context_line":"            if method is \"POST\":"},{"line_number":62,"context_line":"                msg \u003d _(\"Could not create a %(resource)s under tenant \""},{"line_number":63,"context_line":"                        \"%(tenant_id)s\") % {\u0027resource\u0027: resource,"},{"line_number":64,"context_line":"                                            \u0027tenant_id\u0027: tenant_id}"}],"source_content_type":"text/x-python","patch_set":6,"id":"AAAAVn%2F%2F08k%3D","line":61,"in_reply_to":"AAAAU3%2F%2F63k%3D","updated":"2014-03-03 22:36:25.000000000","message":"Done","commit_id":"1ef8c0acf761561d4681f43c7260bcc561406991"},{"author":{"_account_id":2592,"name":"Mark McClain","email":"mark@mcclain.xyz","username":"markmcclain"},"change_message_id":"8a0063973be0629db20c5e5e7722d47a4d2b2ea7","unresolved":false,"context_lines":[{"line_number":62,"context_line":"                msg \u003d _(\"Could not create a %(resource)s under tenant \""},{"line_number":63,"context_line":"                        \"%(tenant_id)s\") % {\u0027resource\u0027: resource,"},{"line_number":64,"context_line":"                                            \u0027tenant_id\u0027: tenant_id}"},{"line_number":65,"context_line":"            else:"},{"line_number":66,"context_line":"                if resource_id is not None:"},{"line_number":67,"context_line":"                    msg \u003d _(\"Failed to %(method)s %(resource)s \""},{"line_number":68,"context_line":"                            \"id\u003d%(resource_id)s\") % {\u0027method\u0027: METHODS[method],"}],"source_content_type":"text/x-python","patch_set":6,"id":"AAAAU3%2F%2F6vA%3D","line":65,"updated":"2014-02-24 03:59:07.000000000","message":"elif resource_id is not None:","commit_id":"1ef8c0acf761561d4681f43c7260bcc561406991"},{"author":{"_account_id":9722,"name":"Hemanth Ravi","email":"hemanth.ravi@oneconvergence.com","username":"hemanthravi"},"change_message_id":"64316c6b7b16b91dba7428de01aac13a8236757c","unresolved":false,"context_lines":[{"line_number":62,"context_line":"                msg \u003d _(\"Could not create a %(resource)s under tenant \""},{"line_number":63,"context_line":"                        \"%(tenant_id)s\") % {\u0027resource\u0027: resource,"},{"line_number":64,"context_line":"                                            \u0027tenant_id\u0027: tenant_id}"},{"line_number":65,"context_line":"            else:"},{"line_number":66,"context_line":"                if resource_id is not None:"},{"line_number":67,"context_line":"                    msg \u003d _(\"Failed to %(method)s %(resource)s \""},{"line_number":68,"context_line":"                            \"id\u003d%(resource_id)s\") % {\u0027method\u0027: METHODS[method],"}],"source_content_type":"text/x-python","patch_set":6,"id":"AAAAVn%2F%2F08Y%3D","line":65,"in_reply_to":"AAAAU3%2F%2F6vA%3D","updated":"2014-03-03 22:36:25.000000000","message":"Done","commit_id":"1ef8c0acf761561d4681f43c7260bcc561406991"},{"author":{"_account_id":2592,"name":"Mark McClain","email":"mark@mcclain.xyz","username":"markmcclain"},"change_message_id":"8a0063973be0629db20c5e5e7722d47a4d2b2ea7","unresolved":false,"context_lines":[{"line_number":77,"context_line":"        try:"},{"line_number":78,"context_line":"            result \u003d self.nvsdcontroller.request(method, uri, body\u003dbody)"},{"line_number":79,"context_line":"        except nvsdexception.NVSDAPIException as e:"},{"line_number":80,"context_line":"            msg \u003d build_error_msg(method, resource, tenant_id, resource_id)"},{"line_number":81,"context_line":"            self.log.emit(\u0027error\u0027, tenant_id, msg)"},{"line_number":82,"context_line":"            raise type(e)(reason\u003dmsg)"},{"line_number":83,"context_line":""}],"source_content_type":"text/x-python","patch_set":6,"id":"AAAAU3%2F%2F63A%3D","line":80,"updated":"2014-02-24 03:59:07.000000000","message":"Why are you rewrapping the exception here?  Doing so, loses context.","commit_id":"1ef8c0acf761561d4681f43c7260bcc561406991"},{"author":{"_account_id":2592,"name":"Mark McClain","email":"mark@mcclain.xyz","username":"markmcclain"},"change_message_id":"8a0063973be0629db20c5e5e7722d47a4d2b2ea7","unresolved":false,"context_lines":[{"line_number":101,"context_line":"        response \u003d self.send_request(\"POST\", uri, body\u003djson.dumps(network_obj),"},{"line_number":102,"context_line":"                                     resource\u003d\u0027network\u0027, tenant_id\u003dtenant_id)"},{"line_number":103,"context_line":""},{"line_number":104,"context_line":"        nvsd_net \u003d json.loads(response.body)"},{"line_number":105,"context_line":""},{"line_number":106,"context_line":"        msg \u003d _(\"Network %(id)s created under tenant %(tenant_id)s\") % {"},{"line_number":107,"context_line":"            \u0027id\u0027: nvsd_net[\u0027id\u0027], \u0027tenant_id\u0027: tenant_id}"}],"source_content_type":"text/x-python","patch_set":6,"id":"AAAAU3%2F%2F6vY%3D","line":104,"updated":"2014-02-24 03:59:07.000000000","message":"nvsd_net \u003d response.json()","commit_id":"1ef8c0acf761561d4681f43c7260bcc561406991"},{"author":{"_account_id":9722,"name":"Hemanth Ravi","email":"hemanth.ravi@oneconvergence.com","username":"hemanthravi"},"change_message_id":"64316c6b7b16b91dba7428de01aac13a8236757c","unresolved":false,"context_lines":[{"line_number":101,"context_line":"        response \u003d self.send_request(\"POST\", uri, body\u003djson.dumps(network_obj),"},{"line_number":102,"context_line":"                                     resource\u003d\u0027network\u0027, tenant_id\u003dtenant_id)"},{"line_number":103,"context_line":""},{"line_number":104,"context_line":"        nvsd_net \u003d json.loads(response.body)"},{"line_number":105,"context_line":""},{"line_number":106,"context_line":"        msg \u003d _(\"Network %(id)s created under tenant %(tenant_id)s\") % {"},{"line_number":107,"context_line":"            \u0027id\u0027: nvsd_net[\u0027id\u0027], \u0027tenant_id\u0027: tenant_id}"}],"source_content_type":"text/x-python","patch_set":6,"id":"AAAAVn%2F%2F05o%3D","line":104,"in_reply_to":"AAAAU3%2F%2F6vY%3D","updated":"2014-03-03 22:36:25.000000000","message":"Done","commit_id":"1ef8c0acf761561d4681f43c7260bcc561406991"},{"author":{"_account_id":2592,"name":"Mark McClain","email":"mark@mcclain.xyz","username":"markmcclain"},"change_message_id":"8a0063973be0629db20c5e5e7722d47a4d2b2ea7","unresolved":false,"context_lines":[{"line_number":239,"context_line":"        network_id \u003d port[\u0027network_id\u0027]"},{"line_number":240,"context_line":"        port_id \u003d port[\u0027id\u0027]"},{"line_number":241,"context_line":""},{"line_number":242,"context_line":"        admin_state_up \u003d port_update.get(\u0027admin_state_up\u0027, None)"},{"line_number":243,"context_line":"        name \u003d port_update.get(\u0027name\u0027, None)"},{"line_number":244,"context_line":"        device_id \u003d port_update.get(\u0027device_id\u0027, None)"},{"line_number":245,"context_line":"        device_owner \u003d port_update.get(\u0027device_owner\u0027, None)"}],"source_content_type":"text/x-python","patch_set":6,"id":"AAAAU3%2F%2F62s%3D","line":242,"updated":"2014-02-24 03:59:07.000000000","message":"Consider refactoring 242-261.\n\nlport \u003d {}\n\nfor k in (\u0027admin_state_up\u0027, \u0027name\u0027, \u0027device_id\u0027, \u0027device_owner\u0027):\n    if k in port_update:\n        lport[k] \u003d port_update[k]","commit_id":"1ef8c0acf761561d4681f43c7260bcc561406991"},{"author":{"_account_id":9722,"name":"Hemanth Ravi","email":"hemanth.ravi@oneconvergence.com","username":"hemanthravi"},"change_message_id":"64316c6b7b16b91dba7428de01aac13a8236757c","unresolved":false,"context_lines":[{"line_number":239,"context_line":"        network_id \u003d port[\u0027network_id\u0027]"},{"line_number":240,"context_line":"        port_id \u003d port[\u0027id\u0027]"},{"line_number":241,"context_line":""},{"line_number":242,"context_line":"        admin_state_up \u003d port_update.get(\u0027admin_state_up\u0027, None)"},{"line_number":243,"context_line":"        name \u003d port_update.get(\u0027name\u0027, None)"},{"line_number":244,"context_line":"        device_id \u003d port_update.get(\u0027device_id\u0027, None)"},{"line_number":245,"context_line":"        device_owner \u003d port_update.get(\u0027device_owner\u0027, None)"}],"source_content_type":"text/x-python","patch_set":6,"id":"AAAAVn%2F%2F05I%3D","line":242,"in_reply_to":"AAAAU3%2F%2F62s%3D","updated":"2014-03-03 22:36:25.000000000","message":"Done","commit_id":"1ef8c0acf761561d4681f43c7260bcc561406991"},{"author":{"_account_id":2592,"name":"Mark McClain","email":"mark@mcclain.xyz","username":"markmcclain"},"change_message_id":"8a0063973be0629db20c5e5e7722d47a4d2b2ea7","unresolved":false,"context_lines":[{"line_number":240,"context_line":"        port_id \u003d port[\u0027id\u0027]"},{"line_number":241,"context_line":""},{"line_number":242,"context_line":"        admin_state_up \u003d port_update.get(\u0027admin_state_up\u0027, None)"},{"line_number":243,"context_line":"        name \u003d port_update.get(\u0027name\u0027, None)"},{"line_number":244,"context_line":"        device_id \u003d port_update.get(\u0027device_id\u0027, None)"},{"line_number":245,"context_line":"        device_owner \u003d port_update.get(\u0027device_owner\u0027, None)"},{"line_number":246,"context_line":"        fixed_ips \u003d port_update.get(\u0027fixed_ips\u0027, None)"}],"source_content_type":"text/x-python","patch_set":6,"id":"AAAAU3%2F%2F6xY%3D","line":243,"updated":"2014-02-24 03:59:07.000000000","message":"same","commit_id":"1ef8c0acf761561d4681f43c7260bcc561406991"},{"author":{"_account_id":9722,"name":"Hemanth Ravi","email":"hemanth.ravi@oneconvergence.com","username":"hemanthravi"},"change_message_id":"64316c6b7b16b91dba7428de01aac13a8236757c","unresolved":false,"context_lines":[{"line_number":240,"context_line":"        port_id \u003d port[\u0027id\u0027]"},{"line_number":241,"context_line":""},{"line_number":242,"context_line":"        admin_state_up \u003d port_update.get(\u0027admin_state_up\u0027, None)"},{"line_number":243,"context_line":"        name \u003d port_update.get(\u0027name\u0027, None)"},{"line_number":244,"context_line":"        device_id \u003d port_update.get(\u0027device_id\u0027, None)"},{"line_number":245,"context_line":"        device_owner \u003d port_update.get(\u0027device_owner\u0027, None)"},{"line_number":246,"context_line":"        fixed_ips \u003d port_update.get(\u0027fixed_ips\u0027, None)"}],"source_content_type":"text/x-python","patch_set":6,"id":"AAAAVn%2F%2F05E%3D","line":243,"in_reply_to":"AAAAU3%2F%2F6xY%3D","updated":"2014-03-03 22:36:25.000000000","message":"Done","commit_id":"1ef8c0acf761561d4681f43c7260bcc561406991"},{"author":{"_account_id":2592,"name":"Mark McClain","email":"mark@mcclain.xyz","username":"markmcclain"},"change_message_id":"8a0063973be0629db20c5e5e7722d47a4d2b2ea7","unresolved":false,"context_lines":[{"line_number":241,"context_line":""},{"line_number":242,"context_line":"        admin_state_up \u003d port_update.get(\u0027admin_state_up\u0027, None)"},{"line_number":243,"context_line":"        name \u003d port_update.get(\u0027name\u0027, None)"},{"line_number":244,"context_line":"        device_id \u003d port_update.get(\u0027device_id\u0027, None)"},{"line_number":245,"context_line":"        device_owner \u003d port_update.get(\u0027device_owner\u0027, None)"},{"line_number":246,"context_line":"        fixed_ips \u003d port_update.get(\u0027fixed_ips\u0027, None)"},{"line_number":247,"context_line":""}],"source_content_type":"text/x-python","patch_set":6,"id":"AAAAU3%2F%2F6xQ%3D","line":244,"updated":"2014-02-24 03:59:07.000000000","message":"same","commit_id":"1ef8c0acf761561d4681f43c7260bcc561406991"},{"author":{"_account_id":9722,"name":"Hemanth Ravi","email":"hemanth.ravi@oneconvergence.com","username":"hemanthravi"},"change_message_id":"64316c6b7b16b91dba7428de01aac13a8236757c","unresolved":false,"context_lines":[{"line_number":241,"context_line":""},{"line_number":242,"context_line":"        admin_state_up \u003d port_update.get(\u0027admin_state_up\u0027, None)"},{"line_number":243,"context_line":"        name \u003d port_update.get(\u0027name\u0027, None)"},{"line_number":244,"context_line":"        device_id \u003d port_update.get(\u0027device_id\u0027, None)"},{"line_number":245,"context_line":"        device_owner \u003d port_update.get(\u0027device_owner\u0027, None)"},{"line_number":246,"context_line":"        fixed_ips \u003d port_update.get(\u0027fixed_ips\u0027, None)"},{"line_number":247,"context_line":""}],"source_content_type":"text/x-python","patch_set":6,"id":"AAAAVn%2F%2F04w%3D","line":244,"in_reply_to":"AAAAU3%2F%2F6xQ%3D","updated":"2014-03-03 22:36:25.000000000","message":"Done","commit_id":"1ef8c0acf761561d4681f43c7260bcc561406991"},{"author":{"_account_id":2592,"name":"Mark McClain","email":"mark@mcclain.xyz","username":"markmcclain"},"change_message_id":"8a0063973be0629db20c5e5e7722d47a4d2b2ea7","unresolved":false,"context_lines":[{"line_number":242,"context_line":"        admin_state_up \u003d port_update.get(\u0027admin_state_up\u0027, None)"},{"line_number":243,"context_line":"        name \u003d port_update.get(\u0027name\u0027, None)"},{"line_number":244,"context_line":"        device_id \u003d port_update.get(\u0027device_id\u0027, None)"},{"line_number":245,"context_line":"        device_owner \u003d port_update.get(\u0027device_owner\u0027, None)"},{"line_number":246,"context_line":"        fixed_ips \u003d port_update.get(\u0027fixed_ips\u0027, None)"},{"line_number":247,"context_line":""},{"line_number":248,"context_line":"        lport \u003d {}"}],"source_content_type":"text/x-python","patch_set":6,"id":"AAAAU3%2F%2F6xM%3D","line":245,"updated":"2014-02-24 03:59:07.000000000","message":"same","commit_id":"1ef8c0acf761561d4681f43c7260bcc561406991"},{"author":{"_account_id":9722,"name":"Hemanth Ravi","email":"hemanth.ravi@oneconvergence.com","username":"hemanthravi"},"change_message_id":"64316c6b7b16b91dba7428de01aac13a8236757c","unresolved":false,"context_lines":[{"line_number":242,"context_line":"        admin_state_up \u003d port_update.get(\u0027admin_state_up\u0027, None)"},{"line_number":243,"context_line":"        name \u003d port_update.get(\u0027name\u0027, None)"},{"line_number":244,"context_line":"        device_id \u003d port_update.get(\u0027device_id\u0027, None)"},{"line_number":245,"context_line":"        device_owner \u003d port_update.get(\u0027device_owner\u0027, None)"},{"line_number":246,"context_line":"        fixed_ips \u003d port_update.get(\u0027fixed_ips\u0027, None)"},{"line_number":247,"context_line":""},{"line_number":248,"context_line":"        lport \u003d {}"}],"source_content_type":"text/x-python","patch_set":6,"id":"AAAAVn%2F%2F04s%3D","line":245,"in_reply_to":"AAAAU3%2F%2F6xM%3D","updated":"2014-03-03 22:36:25.000000000","message":"Done","commit_id":"1ef8c0acf761561d4681f43c7260bcc561406991"},{"author":{"_account_id":2592,"name":"Mark McClain","email":"mark@mcclain.xyz","username":"markmcclain"},"change_message_id":"8a0063973be0629db20c5e5e7722d47a4d2b2ea7","unresolved":false,"context_lines":[{"line_number":243,"context_line":"        name \u003d port_update.get(\u0027name\u0027, None)"},{"line_number":244,"context_line":"        device_id \u003d port_update.get(\u0027device_id\u0027, None)"},{"line_number":245,"context_line":"        device_owner \u003d port_update.get(\u0027device_owner\u0027, None)"},{"line_number":246,"context_line":"        fixed_ips \u003d port_update.get(\u0027fixed_ips\u0027, None)"},{"line_number":247,"context_line":""},{"line_number":248,"context_line":"        lport \u003d {}"},{"line_number":249,"context_line":""}],"source_content_type":"text/x-python","patch_set":6,"id":"AAAAU3%2F%2F6xI%3D","line":246,"updated":"2014-02-24 03:59:07.000000000","message":"same","commit_id":"1ef8c0acf761561d4681f43c7260bcc561406991"},{"author":{"_account_id":9722,"name":"Hemanth Ravi","email":"hemanth.ravi@oneconvergence.com","username":"hemanthravi"},"change_message_id":"64316c6b7b16b91dba7428de01aac13a8236757c","unresolved":false,"context_lines":[{"line_number":243,"context_line":"        name \u003d port_update.get(\u0027name\u0027, None)"},{"line_number":244,"context_line":"        device_id \u003d port_update.get(\u0027device_id\u0027, None)"},{"line_number":245,"context_line":"        device_owner \u003d port_update.get(\u0027device_owner\u0027, None)"},{"line_number":246,"context_line":"        fixed_ips \u003d port_update.get(\u0027fixed_ips\u0027, None)"},{"line_number":247,"context_line":""},{"line_number":248,"context_line":"        lport \u003d {}"},{"line_number":249,"context_line":""}],"source_content_type":"text/x-python","patch_set":6,"id":"AAAAVn%2F%2F04o%3D","line":246,"in_reply_to":"AAAAU3%2F%2F6xI%3D","updated":"2014-03-03 22:36:25.000000000","message":"Done","commit_id":"1ef8c0acf761561d4681f43c7260bcc561406991"},{"author":{"_account_id":2592,"name":"Mark McClain","email":"mark@mcclain.xyz","username":"markmcclain"},"change_message_id":"8a0063973be0629db20c5e5e7722d47a4d2b2ea7","unresolved":false,"context_lines":[{"line_number":296,"context_line":"        response \u003d self.send_request(\"GET\", uri, resource\u003d\u0027ports\u0027,"},{"line_number":297,"context_line":"                                     tenant_id\u003dtenant_id)"},{"line_number":298,"context_line":""},{"line_number":299,"context_line":"        return json.loads(response.body)"}],"source_content_type":"text/x-python","patch_set":6,"id":"AAAAU3%2F%2F6vs%3D","line":299,"updated":"2014-02-24 03:59:07.000000000","message":"You\u0027re using requests, so:\nresponse.json()","commit_id":"1ef8c0acf761561d4681f43c7260bcc561406991"},{"author":{"_account_id":9722,"name":"Hemanth Ravi","email":"hemanth.ravi@oneconvergence.com","username":"hemanthravi"},"change_message_id":"64316c6b7b16b91dba7428de01aac13a8236757c","unresolved":false,"context_lines":[{"line_number":296,"context_line":"        response \u003d self.send_request(\"GET\", uri, resource\u003d\u0027ports\u0027,"},{"line_number":297,"context_line":"                                     tenant_id\u003dtenant_id)"},{"line_number":298,"context_line":""},{"line_number":299,"context_line":"        return json.loads(response.body)"}],"source_content_type":"text/x-python","patch_set":6,"id":"AAAAVn%2F%2F04c%3D","line":299,"in_reply_to":"AAAAU3%2F%2F6vs%3D","updated":"2014-03-03 22:36:25.000000000","message":"Done","commit_id":"1ef8c0acf761561d4681f43c7260bcc561406991"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"1402f37b9de35f4cea74fffe1a9e910cb28c74fa","unresolved":false,"context_lines":[{"line_number":47,"context_line":"        self.nvsdcontroller.login()"},{"line_number":48,"context_line":""},{"line_number":49,"context_line":"    def send_request(self, method, uri, body\u003dNone, resource\u003dNone,"},{"line_number":50,"context_line":"                     tenant_id\u003d\u0027 \u0027, resource_id\u003dNone):"},{"line_number":51,"context_line":"        \"\"\"Issue a request to NVSD controller.\"\"\""},{"line_number":52,"context_line":""},{"line_number":53,"context_line":"        def build_error_msg(method, resource, tenant_id, resource_id):"}],"source_content_type":"text/x-python","patch_set":7,"id":"AAAAVn%2F%2F1Z0%3D","line":50,"updated":"2014-03-03 22:29:01.000000000","message":"\u0027 \u0027 for tenant_id default value looks a bit odd.\n\n  tenant_id\u003d\u0027\u0027","commit_id":"7f18d9229aeaa60f30e128ff76df001ba198bc59"},{"author":{"_account_id":9722,"name":"Hemanth Ravi","email":"hemanth.ravi@oneconvergence.com","username":"hemanthravi"},"change_message_id":"aad3d1e2b2de3e1eb27017ded42310d6e56d5c37","unresolved":false,"context_lines":[{"line_number":47,"context_line":"        self.nvsdcontroller.login()"},{"line_number":48,"context_line":""},{"line_number":49,"context_line":"    def send_request(self, method, uri, body\u003dNone, resource\u003dNone,"},{"line_number":50,"context_line":"                     tenant_id\u003d\u0027 \u0027, resource_id\u003dNone):"},{"line_number":51,"context_line":"        \"\"\"Issue a request to NVSD controller.\"\"\""},{"line_number":52,"context_line":""},{"line_number":53,"context_line":"        def build_error_msg(method, resource, tenant_id, resource_id):"}],"source_content_type":"text/x-python","patch_set":7,"id":"AAAAVn%2F%2Fvyw%3D","line":50,"in_reply_to":"AAAAVn%2F%2F1Z0%3D","updated":"2014-03-04 10:35:13.000000000","message":"Done","commit_id":"7f18d9229aeaa60f30e128ff76df001ba198bc59"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"1402f37b9de35f4cea74fffe1a9e910cb28c74fa","unresolved":false,"context_lines":[{"line_number":50,"context_line":"                     tenant_id\u003d\u0027 \u0027, resource_id\u003dNone):"},{"line_number":51,"context_line":"        \"\"\"Issue a request to NVSD controller.\"\"\""},{"line_number":52,"context_line":""},{"line_number":53,"context_line":"        def build_error_msg(method, resource, tenant_id, resource_id):"},{"line_number":54,"context_line":"            if method \u003d\u003d \"POST\":"},{"line_number":55,"context_line":"                msg \u003d _(\"Could not create a %(resource)s under tenant \""},{"line_number":56,"context_line":"                        \"%(tenant_id)s\") % {\u0027resource\u0027: resource,"}],"source_content_type":"text/x-python","patch_set":7,"id":"AAAAVn%2F%2F1c8%3D","line":53,"updated":"2014-03-03 22:29:01.000000000","message":"I don\u0027t think it is defined inside the method. Can you change it to @staticmethod? Defining a method internally means the method will be defined every time the outer method is called. It is not efficient.","commit_id":"7f18d9229aeaa60f30e128ff76df001ba198bc59"},{"author":{"_account_id":9722,"name":"Hemanth Ravi","email":"hemanth.ravi@oneconvergence.com","username":"hemanthravi"},"change_message_id":"aad3d1e2b2de3e1eb27017ded42310d6e56d5c37","unresolved":false,"context_lines":[{"line_number":50,"context_line":"                     tenant_id\u003d\u0027 \u0027, resource_id\u003dNone):"},{"line_number":51,"context_line":"        \"\"\"Issue a request to NVSD controller.\"\"\""},{"line_number":52,"context_line":""},{"line_number":53,"context_line":"        def build_error_msg(method, resource, tenant_id, resource_id):"},{"line_number":54,"context_line":"            if method \u003d\u003d \"POST\":"},{"line_number":55,"context_line":"                msg \u003d _(\"Could not create a %(resource)s under tenant \""},{"line_number":56,"context_line":"                        \"%(tenant_id)s\") % {\u0027resource\u0027: resource,"}],"source_content_type":"text/x-python","patch_set":7,"id":"AAAAVn%2F%2Fvyg%3D","line":53,"in_reply_to":"AAAAVn%2F%2F1c8%3D","updated":"2014-03-04 10:35:13.000000000","message":"Moved it outside of send_request","commit_id":"7f18d9229aeaa60f30e128ff76df001ba198bc59"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"38414e07afcb3113fbc7e65d4e156df185651f1f","unresolved":false,"context_lines":[{"line_number":71,"context_line":"        except nvsdexception.NVSDAPIException as e:"},{"line_number":72,"context_line":"            msg \u003d build_error_msg(method, resource, tenant_id, resource_id)"},{"line_number":73,"context_line":"            LOG.error(msg)"},{"line_number":74,"context_line":"            raise type(e)(reason\u003dmsg)"},{"line_number":75,"context_line":""},{"line_number":76,"context_line":"        return result"},{"line_number":77,"context_line":""}],"source_content_type":"text/x-python","patch_set":7,"id":"AAAAVn%2F%2F0oo%3D","line":74,"updated":"2014-03-03 23:01:29.000000000","message":"Why do you regenerating an exception? It loses the original exception sysinfo.\n\nI would suggest to use save_and_reraise_exeception after changing the ctxt.value in save_and_reraise, (or use six.reraise to reuse the original exception context).","commit_id":"7f18d9229aeaa60f30e128ff76df001ba198bc59"},{"author":{"_account_id":9722,"name":"Hemanth Ravi","email":"hemanth.ravi@oneconvergence.com","username":"hemanthravi"},"change_message_id":"aad3d1e2b2de3e1eb27017ded42310d6e56d5c37","unresolved":false,"context_lines":[{"line_number":71,"context_line":"        except nvsdexception.NVSDAPIException as e:"},{"line_number":72,"context_line":"            msg \u003d build_error_msg(method, resource, tenant_id, resource_id)"},{"line_number":73,"context_line":"            LOG.error(msg)"},{"line_number":74,"context_line":"            raise type(e)(reason\u003dmsg)"},{"line_number":75,"context_line":""},{"line_number":76,"context_line":"        return result"},{"line_number":77,"context_line":""}],"source_content_type":"text/x-python","patch_set":7,"id":"AAAAVn%2F%2Fvyc%3D","line":74,"in_reply_to":"AAAAVn%2F%2F0oo%3D","updated":"2014-03-04 10:35:13.000000000","message":"Done","commit_id":"7f18d9229aeaa60f30e128ff76df001ba198bc59"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"1402f37b9de35f4cea74fffe1a9e910cb28c74fa","unresolved":false,"context_lines":[{"line_number":78,"context_line":"    def create_network(self, network):"},{"line_number":79,"context_line":""},{"line_number":80,"context_line":"        tenant_id \u003d network[\u0027tenant_id\u0027]"},{"line_number":81,"context_line":"        router_external \u003d network[\u0027router:external\u0027] is True"},{"line_number":82,"context_line":""},{"line_number":83,"context_line":"        network_obj \u003d {"},{"line_number":84,"context_line":"            \"name\": network[\u0027name\u0027],"}],"source_content_type":"text/x-python","patch_set":7,"id":"AAAAVn%2F%2F1VU%3D","line":81,"updated":"2014-03-03 22:29:01.000000000","message":"router:external is already boolean. \"is True\" is unnecessary.","commit_id":"7f18d9229aeaa60f30e128ff76df001ba198bc59"},{"author":{"_account_id":9722,"name":"Hemanth Ravi","email":"hemanth.ravi@oneconvergence.com","username":"hemanthravi"},"change_message_id":"aad3d1e2b2de3e1eb27017ded42310d6e56d5c37","unresolved":false,"context_lines":[{"line_number":78,"context_line":"    def create_network(self, network):"},{"line_number":79,"context_line":""},{"line_number":80,"context_line":"        tenant_id \u003d network[\u0027tenant_id\u0027]"},{"line_number":81,"context_line":"        router_external \u003d network[\u0027router:external\u0027] is True"},{"line_number":82,"context_line":""},{"line_number":83,"context_line":"        network_obj \u003d {"},{"line_number":84,"context_line":"            \"name\": network[\u0027name\u0027],"}],"source_content_type":"text/x-python","patch_set":7,"id":"AAAAVn%2F%2FyCQ%3D","line":81,"in_reply_to":"AAAAVn%2F%2F1VU%3D","updated":"2014-03-04 10:35:13.000000000","message":"For non external networks network[\u0027router:external\u0027] is not set to False, but is set to an object not parseable by json","commit_id":"7f18d9229aeaa60f30e128ff76df001ba198bc59"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"1402f37b9de35f4cea74fffe1a9e910cb28c74fa","unresolved":false,"context_lines":[{"line_number":98,"context_line":"        msg \u003d _(\"Network %(id)s created under tenant %(tenant_id)s\") % {"},{"line_number":99,"context_line":"            \u0027id\u0027: nvsd_net[\u0027id\u0027], \u0027tenant_id\u0027: tenant_id}"},{"line_number":100,"context_line":""},{"line_number":101,"context_line":"        LOG.debug(msg)"},{"line_number":102,"context_line":""},{"line_number":103,"context_line":"        return nvsd_net"},{"line_number":104,"context_line":""}],"source_content_type":"text/x-python","patch_set":7,"id":"AAAAVn%2F%2F1O0%3D","line":101,"updated":"2014-03-03 22:29:01.000000000","message":"Consider the following:\n\n  LOG.debug(_(\"Network %(id)s created under tenant %(tenant_id)s\"),\n    {\u0027id\u0027: nvsd_net[\u0027id\u0027], \u0027tenant_id\u0027: tenant_id})\n\nIt defers message formatting until the log is actually output.\nIt means if log level is INFO or higher, message formatting will be skipped.\n\nIt applies to the similar LOG.debug below.","commit_id":"7f18d9229aeaa60f30e128ff76df001ba198bc59"},{"author":{"_account_id":9722,"name":"Hemanth Ravi","email":"hemanth.ravi@oneconvergence.com","username":"hemanthravi"},"change_message_id":"aad3d1e2b2de3e1eb27017ded42310d6e56d5c37","unresolved":false,"context_lines":[{"line_number":98,"context_line":"        msg \u003d _(\"Network %(id)s created under tenant %(tenant_id)s\") % {"},{"line_number":99,"context_line":"            \u0027id\u0027: nvsd_net[\u0027id\u0027], \u0027tenant_id\u0027: tenant_id}"},{"line_number":100,"context_line":""},{"line_number":101,"context_line":"        LOG.debug(msg)"},{"line_number":102,"context_line":""},{"line_number":103,"context_line":"        return nvsd_net"},{"line_number":104,"context_line":""}],"source_content_type":"text/x-python","patch_set":7,"id":"AAAAVn%2F%2FvyU%3D","line":101,"in_reply_to":"AAAAVn%2F%2F1O0%3D","updated":"2014-03-04 10:35:13.000000000","message":"Done","commit_id":"7f18d9229aeaa60f30e128ff76df001ba198bc59"},{"author":{"_account_id":490,"name":"Sumit Naiksatam","email":"sumitnaiksatam@gmail.com","username":"snaiksat"},"change_message_id":"35ba862dde111cf33576fd9ab0ab0c9ba7958d28","unresolved":false,"context_lines":[{"line_number":48,"context_line":"            msg \u003d _(\"Could not create a %(resource)s under tenant \""},{"line_number":49,"context_line":"                    \"%(tenant_id)s\") % {\u0027resource\u0027: resource,"},{"line_number":50,"context_line":"                                        \u0027tenant_id\u0027: tenant_id}"},{"line_number":51,"context_line":"        elif resource_id is not None:"},{"line_number":52,"context_line":"            msg \u003d _(\"Failed to %(method)s %(resource)s \""},{"line_number":53,"context_line":"                    \"id\u003d%(resource_id)s\") % {\u0027method\u0027: METHODS[method],"},{"line_number":54,"context_line":"                                             \u0027resource\u0027: resource,"}],"source_content_type":"text/x-python","patch_set":9,"id":"AAAAVn%2F%2FqAY%3D","line":51,"updated":"2014-03-04 20:45:33.000000000","message":"elif resource_id:","commit_id":"550cc1df3990f31f6a2aca0f913e64263c5ba1f8"},{"author":{"_account_id":9722,"name":"Hemanth Ravi","email":"hemanth.ravi@oneconvergence.com","username":"hemanthravi"},"change_message_id":"015ee0cd718908547c7a3c47b7a7577e3ffb011e","unresolved":false,"context_lines":[{"line_number":48,"context_line":"            msg \u003d _(\"Could not create a %(resource)s under tenant \""},{"line_number":49,"context_line":"                    \"%(tenant_id)s\") % {\u0027resource\u0027: resource,"},{"line_number":50,"context_line":"                                        \u0027tenant_id\u0027: tenant_id}"},{"line_number":51,"context_line":"        elif resource_id is not None:"},{"line_number":52,"context_line":"            msg \u003d _(\"Failed to %(method)s %(resource)s \""},{"line_number":53,"context_line":"                    \"id\u003d%(resource_id)s\") % {\u0027method\u0027: METHODS[method],"},{"line_number":54,"context_line":"                                             \u0027resource\u0027: resource,"}],"source_content_type":"text/x-python","patch_set":9,"id":"AAAAVn%2F%2FpBM%3D","line":51,"in_reply_to":"AAAAVn%2F%2FqAY%3D","updated":"2014-03-04 23:21:29.000000000","message":"Done","commit_id":"550cc1df3990f31f6a2aca0f913e64263c5ba1f8"},{"author":{"_account_id":490,"name":"Sumit Naiksatam","email":"sumitnaiksatam@gmail.com","username":"snaiksat"},"change_message_id":"35ba862dde111cf33576fd9ab0ab0c9ba7958d28","unresolved":false,"context_lines":[{"line_number":89,"context_line":"            \"tenant_id\": tenant_id,"},{"line_number":90,"context_line":"            \"shared\": network[\u0027shared\u0027],"},{"line_number":91,"context_line":"            \"admin_state_up\": network[\u0027admin_state_up\u0027],"},{"line_number":92,"context_line":"            \"router:external\": router_external"},{"line_number":93,"context_line":"        }"},{"line_number":94,"context_line":""},{"line_number":95,"context_line":"        uri \u003d NETWORKS_URI % tenant_id"}],"source_content_type":"text/x-python","patch_set":9,"id":"AAAAVn%2F%2Fp4w%3D","line":92,"updated":"2014-03-04 20:45:33.000000000","message":"why not just:\n\n  \"router:external\": network[\u0027router:external\u0027]\n\nand you can drop L85","commit_id":"550cc1df3990f31f6a2aca0f913e64263c5ba1f8"},{"author":{"_account_id":9722,"name":"Hemanth Ravi","email":"hemanth.ravi@oneconvergence.com","username":"hemanthravi"},"change_message_id":"015ee0cd718908547c7a3c47b7a7577e3ffb011e","unresolved":false,"context_lines":[{"line_number":89,"context_line":"            \"tenant_id\": tenant_id,"},{"line_number":90,"context_line":"            \"shared\": network[\u0027shared\u0027],"},{"line_number":91,"context_line":"            \"admin_state_up\": network[\u0027admin_state_up\u0027],"},{"line_number":92,"context_line":"            \"router:external\": router_external"},{"line_number":93,"context_line":"        }"},{"line_number":94,"context_line":""},{"line_number":95,"context_line":"        uri \u003d NETWORKS_URI % tenant_id"}],"source_content_type":"text/x-python","patch_set":9,"id":"AAAAVn%2F%2FpOs%3D","line":92,"in_reply_to":"AAAAVn%2F%2Fp4w%3D","updated":"2014-03-04 23:21:29.000000000","message":"For non external networks network[\u0027router:external\u0027] is not set to False, but is set to an object not parseable by json","commit_id":"550cc1df3990f31f6a2aca0f913e64263c5ba1f8"},{"author":{"_account_id":490,"name":"Sumit Naiksatam","email":"sumitnaiksatam@gmail.com","username":"snaiksat"},"change_message_id":"35ba862dde111cf33576fd9ab0ab0c9ba7958d28","unresolved":false,"context_lines":[{"line_number":185,"context_line":""},{"line_number":186,"context_line":"    def create_port(self, tenant_id, port):"},{"line_number":187,"context_line":""},{"line_number":188,"context_line":"        port[\u0027tenant_id\u0027] \u003d tenant_id"},{"line_number":189,"context_line":"        network_id \u003d port[\"network_id\"]"},{"line_number":190,"context_line":"        fixed_ips \u003d port.get(\"fixed_ips\")"},{"line_number":191,"context_line":"        ip_address \u003d None"}],"source_content_type":"text/x-python","patch_set":9,"id":"AAAAVn%2F%2Fp2Q%3D","line":188,"updated":"2014-03-04 20:45:33.000000000","message":"not required","commit_id":"550cc1df3990f31f6a2aca0f913e64263c5ba1f8"},{"author":{"_account_id":9722,"name":"Hemanth Ravi","email":"hemanth.ravi@oneconvergence.com","username":"hemanthravi"},"change_message_id":"015ee0cd718908547c7a3c47b7a7577e3ffb011e","unresolved":false,"context_lines":[{"line_number":185,"context_line":""},{"line_number":186,"context_line":"    def create_port(self, tenant_id, port):"},{"line_number":187,"context_line":""},{"line_number":188,"context_line":"        port[\u0027tenant_id\u0027] \u003d tenant_id"},{"line_number":189,"context_line":"        network_id \u003d port[\"network_id\"]"},{"line_number":190,"context_line":"        fixed_ips \u003d port.get(\"fixed_ips\")"},{"line_number":191,"context_line":"        ip_address \u003d None"}],"source_content_type":"text/x-python","patch_set":9,"id":"AAAAVn%2F%2FpBI%3D","line":188,"in_reply_to":"AAAAVn%2F%2Fp2Q%3D","updated":"2014-03-04 23:21:29.000000000","message":"Done","commit_id":"550cc1df3990f31f6a2aca0f913e64263c5ba1f8"}],"neutron/plugins/oneconvergence/lib/plugin_helper.py":[{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"9c9e2fbcb3526f313d0781a012faefffeb0c0882","unresolved":false,"context_lines":[{"line_number":35,"context_line":""},{"line_number":36,"context_line":""},{"line_number":37,"context_line":"class NVSDController(object):"},{"line_number":38,"context_line":"    \"\"\" Encapsulates the NVSD Controller details"},{"line_number":39,"context_line":"    \"\"\""},{"line_number":40,"context_line":"    def __init__(self):"},{"line_number":41,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAUH%2F%2BZDI%3D","line":38,"updated":"2014-01-27 12:52:24.000000000","message":"PEP257 in this file too.","commit_id":"78e0b071223055b0c6392feae6dcd8ed9c8a42f4"},{"author":{"_account_id":9722,"name":"Hemanth Ravi","email":"hemanth.ravi@oneconvergence.com","username":"hemanthravi"},"change_message_id":"ea7bfa31b8dda86fadbdfdf983b08e7a0d84a42b","unresolved":false,"context_lines":[{"line_number":35,"context_line":""},{"line_number":36,"context_line":""},{"line_number":37,"context_line":"class NVSDController(object):"},{"line_number":38,"context_line":"    \"\"\" Encapsulates the NVSD Controller details"},{"line_number":39,"context_line":"    \"\"\""},{"line_number":40,"context_line":"    def __init__(self):"},{"line_number":41,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAUH%2F%2BGTo%3D","line":38,"in_reply_to":"AAAAUH%2F%2BZDI%3D","updated":"2014-02-12 15:41:34.000000000","message":"Done","commit_id":"78e0b071223055b0c6392feae6dcd8ed9c8a42f4"},{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"9c9e2fbcb3526f313d0781a012faefffeb0c0882","unresolved":false,"context_lines":[{"line_number":88,"context_line":"        res \u003d ast.literal_eval(response.data)"},{"line_number":89,"context_line":"        if response.status \u003d\u003d httplib.OK:"},{"line_number":90,"context_line":"            log.emit(\u0027debug\u0027, \u0027 \u0027, \"Login Successful %s  %s\""},{"line_number":91,"context_line":"                     \" \" % (self.api_url, response.status))"},{"line_number":92,"context_line":"            #content is in string format, ast will convert it to dict format"},{"line_number":93,"context_line":"            self.auth_token \u003d res[\"session_uuid\"]"},{"line_number":94,"context_line":"            log.emit(\u0027debug\u0027, \u0027 \u0027, \"AuthToken \u003d %s\" % self.auth_token)"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAUH%2F%2BZBo%3D","line":91,"updated":"2014-01-27 12:52:24.000000000","message":"space string not needed.","commit_id":"78e0b071223055b0c6392feae6dcd8ed9c8a42f4"},{"author":{"_account_id":9722,"name":"Hemanth Ravi","email":"hemanth.ravi@oneconvergence.com","username":"hemanthravi"},"change_message_id":"ea7bfa31b8dda86fadbdfdf983b08e7a0d84a42b","unresolved":false,"context_lines":[{"line_number":88,"context_line":"        res \u003d ast.literal_eval(response.data)"},{"line_number":89,"context_line":"        if response.status \u003d\u003d httplib.OK:"},{"line_number":90,"context_line":"            log.emit(\u0027debug\u0027, \u0027 \u0027, \"Login Successful %s  %s\""},{"line_number":91,"context_line":"                     \" \" % (self.api_url, response.status))"},{"line_number":92,"context_line":"            #content is in string format, ast will convert it to dict format"},{"line_number":93,"context_line":"            self.auth_token \u003d res[\"session_uuid\"]"},{"line_number":94,"context_line":"            log.emit(\u0027debug\u0027, \u0027 \u0027, \"AuthToken \u003d %s\" % self.auth_token)"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAUH%2F%2BGTc%3D","line":91,"in_reply_to":"AAAAUH%2F%2BZBo%3D","updated":"2014-02-12 15:41:34.000000000","message":"Done","commit_id":"78e0b071223055b0c6392feae6dcd8ed9c8a42f4"},{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"9c9e2fbcb3526f313d0781a012faefffeb0c0882","unresolved":false,"context_lines":[{"line_number":190,"context_line":"            log.emit(\u0027error\u0027, \u0027 \u0027, \"%s\" % response.reason)"},{"line_number":191,"context_line":"            self.error_codes[status](self, response.reason)"},{"line_number":192,"context_line":""},{"line_number":193,"context_line":"        elif ((status !\u003d httplib.OK and status !\u003d httplib.CREATED"},{"line_number":194,"context_line":"               and status !\u003d httplib.NO_CONTENT)):"},{"line_number":195,"context_line":"            msg \u003d \"%s to %s, unexpected response code: %d\" % ("},{"line_number":196,"context_line":"                method, url, status)"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAUH%2F%2BZA8%3D","line":193,"updated":"2014-01-27 12:52:24.000000000","message":"elif status not in (httplib.OK, httplib.CREATED, httplib.NO_CONTENT):","commit_id":"78e0b071223055b0c6392feae6dcd8ed9c8a42f4"},{"author":{"_account_id":9722,"name":"Hemanth Ravi","email":"hemanth.ravi@oneconvergence.com","username":"hemanthravi"},"change_message_id":"ea7bfa31b8dda86fadbdfdf983b08e7a0d84a42b","unresolved":false,"context_lines":[{"line_number":190,"context_line":"            log.emit(\u0027error\u0027, \u0027 \u0027, \"%s\" % response.reason)"},{"line_number":191,"context_line":"            self.error_codes[status](self, response.reason)"},{"line_number":192,"context_line":""},{"line_number":193,"context_line":"        elif ((status !\u003d httplib.OK and status !\u003d httplib.CREATED"},{"line_number":194,"context_line":"               and status !\u003d httplib.NO_CONTENT)):"},{"line_number":195,"context_line":"            msg \u003d \"%s to %s, unexpected response code: %d\" % ("},{"line_number":196,"context_line":"                method, url, status)"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAUH%2F%2BGTQ%3D","line":193,"in_reply_to":"AAAAUH%2F%2BZA8%3D","updated":"2014-02-12 15:41:34.000000000","message":"Done","commit_id":"78e0b071223055b0c6392feae6dcd8ed9c8a42f4"},{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"9c9e2fbcb3526f313d0781a012faefffeb0c0882","unresolved":false,"context_lines":[{"line_number":197,"context_line":"            log.emit(\u0027error\u0027, \u0027 \u0027, msg)"},{"line_number":198,"context_line":"            return None"},{"line_number":199,"context_line":""},{"line_number":200,"context_line":"        if (request_ok is False):"},{"line_number":201,"context_line":"            msg \u003d \"Request failed from Controller side with Status\u003d%s\" % status"},{"line_number":202,"context_line":"            log.emit(\u0027error\u0027, \u0027 \u0027, msg)"},{"line_number":203,"context_line":"            raise exception.ServerException()"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAUH%2F%2BZA0%3D","line":200,"updated":"2014-01-27 12:52:24.000000000","message":"parens not needed","commit_id":"78e0b071223055b0c6392feae6dcd8ed9c8a42f4"},{"author":{"_account_id":9722,"name":"Hemanth Ravi","email":"hemanth.ravi@oneconvergence.com","username":"hemanthravi"},"change_message_id":"ea7bfa31b8dda86fadbdfdf983b08e7a0d84a42b","unresolved":false,"context_lines":[{"line_number":197,"context_line":"            log.emit(\u0027error\u0027, \u0027 \u0027, msg)"},{"line_number":198,"context_line":"            return None"},{"line_number":199,"context_line":""},{"line_number":200,"context_line":"        if (request_ok is False):"},{"line_number":201,"context_line":"            msg \u003d \"Request failed from Controller side with Status\u003d%s\" % status"},{"line_number":202,"context_line":"            log.emit(\u0027error\u0027, \u0027 \u0027, msg)"},{"line_number":203,"context_line":"            raise exception.ServerException()"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAUH%2F%2BGTI%3D","line":200,"in_reply_to":"AAAAUH%2F%2BZA0%3D","updated":"2014-02-12 15:41:34.000000000","message":"Done","commit_id":"78e0b071223055b0c6392feae6dcd8ed9c8a42f4"},{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"493d3a15aeab137a4fc0075b4a60f5a1e9c16033","unresolved":false,"context_lines":[{"line_number":37,"context_line":""},{"line_number":38,"context_line":""},{"line_number":39,"context_line":"class NVSDController(object):"},{"line_number":40,"context_line":"    \"\"\"Encapsulates the NVSD Controller details.\"\"\""},{"line_number":41,"context_line":"    def __init__(self):"},{"line_number":42,"context_line":""},{"line_number":43,"context_line":"        self._host \u003d cfg.CONF.nvsd.nvsd_ip"}],"source_content_type":"text/x-python","patch_set":3,"id":"AAAAUH%2F912g%3D","line":40,"updated":"2014-02-03 12:49:18.000000000","message":"PEP257: Make sure all your class docstrings have a blank line before and after (even if one line).","commit_id":"f0083b0672149d77fb4214a8f54422b5dc2981d9"},{"author":{"_account_id":9722,"name":"Hemanth Ravi","email":"hemanth.ravi@oneconvergence.com","username":"hemanthravi"},"change_message_id":"e896851407590beb1ab54b6f05edf003c84c1df7","unresolved":false,"context_lines":[{"line_number":37,"context_line":""},{"line_number":38,"context_line":""},{"line_number":39,"context_line":"class NVSDController(object):"},{"line_number":40,"context_line":"    \"\"\"Encapsulates the NVSD Controller details.\"\"\""},{"line_number":41,"context_line":"    def __init__(self):"},{"line_number":42,"context_line":""},{"line_number":43,"context_line":"        self._host \u003d cfg.CONF.nvsd.nvsd_ip"}],"source_content_type":"text/x-python","patch_set":3,"id":"AAAAUX%2F%2F6oo%3D","line":40,"in_reply_to":"AAAAUH%2F912g%3D","updated":"2014-02-12 15:40:42.000000000","message":"Done","commit_id":"f0083b0672149d77fb4214a8f54422b5dc2981d9"},{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"493d3a15aeab137a4fc0075b4a60f5a1e9c16033","unresolved":false,"context_lines":[{"line_number":40,"context_line":"    \"\"\"Encapsulates the NVSD Controller details.\"\"\""},{"line_number":41,"context_line":"    def __init__(self):"},{"line_number":42,"context_line":""},{"line_number":43,"context_line":"        self._host \u003d cfg.CONF.nvsd.nvsd_ip"},{"line_number":44,"context_line":"        self._port \u003d cfg.CONF.nvsd.nvsd_port"},{"line_number":45,"context_line":"        self._user \u003d cfg.CONF.nvsd.nvsd_user"},{"line_number":46,"context_line":"        self._password \u003d cfg.CONF.nvsd.nvsd_passwd"}],"source_content_type":"text/x-python","patch_set":3,"id":"AAAAUH%2F912I%3D","line":43,"updated":"2014-02-03 12:49:18.000000000","message":"Should you be checking if the configs are missing and handling that case?","commit_id":"f0083b0672149d77fb4214a8f54422b5dc2981d9"},{"author":{"_account_id":9722,"name":"Hemanth Ravi","email":"hemanth.ravi@oneconvergence.com","username":"hemanthravi"},"change_message_id":"e896851407590beb1ab54b6f05edf003c84c1df7","unresolved":false,"context_lines":[{"line_number":40,"context_line":"    \"\"\"Encapsulates the NVSD Controller details.\"\"\""},{"line_number":41,"context_line":"    def __init__(self):"},{"line_number":42,"context_line":""},{"line_number":43,"context_line":"        self._host \u003d cfg.CONF.nvsd.nvsd_ip"},{"line_number":44,"context_line":"        self._port \u003d cfg.CONF.nvsd.nvsd_port"},{"line_number":45,"context_line":"        self._user \u003d cfg.CONF.nvsd.nvsd_user"},{"line_number":46,"context_line":"        self._password \u003d cfg.CONF.nvsd.nvsd_passwd"}],"source_content_type":"text/x-python","patch_set":3,"id":"AAAAUX%2F%2F6oQ%3D","line":43,"in_reply_to":"AAAAUH%2F912I%3D","updated":"2014-02-12 15:40:42.000000000","message":"These configs have a default value assigned in config.py.","commit_id":"f0083b0672149d77fb4214a8f54422b5dc2981d9"},{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"493d3a15aeab137a4fc0075b4a60f5a1e9c16033","unresolved":false,"context_lines":[{"line_number":61,"context_line":"        body \u003d json.dumps({\"user_name\": self._user, \"passwd\": self._password})"},{"line_number":62,"context_line":"        pool \u003d self._pool"},{"line_number":63,"context_line":""},{"line_number":64,"context_line":"        while True:"},{"line_number":65,"context_line":"            try:"},{"line_number":66,"context_line":"                response \u003d pool.urlopen("},{"line_number":67,"context_line":"                    \"POST\", self.api_url +"}],"source_content_type":"text/x-python","patch_set":3,"id":"AAAAUH%2F911U%3D","line":64,"updated":"2014-02-03 12:49:18.000000000","message":"Should there be a limit to the number of login attempts?\nConfig controlled?","commit_id":"f0083b0672149d77fb4214a8f54422b5dc2981d9"},{"author":{"_account_id":9722,"name":"Hemanth Ravi","email":"hemanth.ravi@oneconvergence.com","username":"hemanthravi"},"change_message_id":"e896851407590beb1ab54b6f05edf003c84c1df7","unresolved":false,"context_lines":[{"line_number":61,"context_line":"        body \u003d json.dumps({\"user_name\": self._user, \"passwd\": self._password})"},{"line_number":62,"context_line":"        pool \u003d self._pool"},{"line_number":63,"context_line":""},{"line_number":64,"context_line":"        while True:"},{"line_number":65,"context_line":"            try:"},{"line_number":66,"context_line":"                response \u003d pool.urlopen("},{"line_number":67,"context_line":"                    \"POST\", self.api_url +"}],"source_content_type":"text/x-python","patch_set":3,"id":"AAAAUX%2F%2F6oM%3D","line":64,"in_reply_to":"AAAAUH%2F911U%3D","updated":"2014-02-12 15:40:42.000000000","message":"The plugin is not operational unless it is able to login to NVSDController. Hence the loop until success.","commit_id":"f0083b0672149d77fb4214a8f54422b5dc2981d9"},{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"493d3a15aeab137a4fc0075b4a60f5a1e9c16033","unresolved":false,"context_lines":[{"line_number":77,"context_line":"                              \" with Controller %s\") % self.api_url)"},{"line_number":78,"context_line":"                if response is not None:"},{"line_number":79,"context_line":"                    response.release_conn()"},{"line_number":80,"context_line":"                if response is None:"},{"line_number":81,"context_line":"                    # Timeout."},{"line_number":82,"context_line":"                    msg \u003d _(\"Response is Null, Request timed out while \""},{"line_number":83,"context_line":"                            \"login, retrying after 1 second\")"}],"source_content_type":"text/x-python","patch_set":3,"id":"AAAAUH%2F911o%3D","line":80,"updated":"2014-02-03 12:49:18.000000000","message":"else:","commit_id":"f0083b0672149d77fb4214a8f54422b5dc2981d9"},{"author":{"_account_id":9722,"name":"Hemanth Ravi","email":"hemanth.ravi@oneconvergence.com","username":"hemanthravi"},"change_message_id":"e896851407590beb1ab54b6f05edf003c84c1df7","unresolved":false,"context_lines":[{"line_number":77,"context_line":"                              \" with Controller %s\") % self.api_url)"},{"line_number":78,"context_line":"                if response is not None:"},{"line_number":79,"context_line":"                    response.release_conn()"},{"line_number":80,"context_line":"                if response is None:"},{"line_number":81,"context_line":"                    # Timeout."},{"line_number":82,"context_line":"                    msg \u003d _(\"Response is Null, Request timed out while \""},{"line_number":83,"context_line":"                            \"login, retrying after 1 second\")"}],"source_content_type":"text/x-python","patch_set":3,"id":"AAAAUX%2F%2F6oI%3D","line":80,"in_reply_to":"AAAAUH%2F911o%3D","updated":"2014-02-12 15:40:42.000000000","message":"Done","commit_id":"f0083b0672149d77fb4214a8f54422b5dc2981d9"},{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"493d3a15aeab137a4fc0075b4a60f5a1e9c16033","unresolved":false,"context_lines":[{"line_number":184,"context_line":"        status \u003d response.status"},{"line_number":185,"context_line":"        if status \u003d\u003d httplib.UNAUTHORIZED:"},{"line_number":186,"context_line":"            self.login()"},{"line_number":187,"context_line":"            raise exception.UnAuthorizedException()"},{"line_number":188,"context_line":""},{"line_number":189,"context_line":"        if status in self.error_codes:"},{"line_number":190,"context_line":"            msg \u003d _(\"Request %(method)s %(uri)s body \u003d %(body)s failed with \""}],"source_content_type":"text/x-python","patch_set":3,"id":"AAAAUH%2F910U%3D","line":187,"updated":"2014-02-03 12:49:18.000000000","message":"Am I misunderstanding this or is this going to do a login request if there is an UNAUTH error, and THEN raise an exception?\n\nWhat if login is successful?","commit_id":"f0083b0672149d77fb4214a8f54422b5dc2981d9"},{"author":{"_account_id":9722,"name":"Hemanth Ravi","email":"hemanth.ravi@oneconvergence.com","username":"hemanthravi"},"change_message_id":"e896851407590beb1ab54b6f05edf003c84c1df7","unresolved":false,"context_lines":[{"line_number":184,"context_line":"        status \u003d response.status"},{"line_number":185,"context_line":"        if status \u003d\u003d httplib.UNAUTHORIZED:"},{"line_number":186,"context_line":"            self.login()"},{"line_number":187,"context_line":"            raise exception.UnAuthorizedException()"},{"line_number":188,"context_line":""},{"line_number":189,"context_line":"        if status in self.error_codes:"},{"line_number":190,"context_line":"            msg \u003d _(\"Request %(method)s %(uri)s body \u003d %(body)s failed with \""}],"source_content_type":"text/x-python","patch_set":3,"id":"AAAAUX%2F%2F6n0%3D","line":187,"in_reply_to":"AAAAUH%2F910U%3D","updated":"2014-02-12 15:40:42.000000000","message":"Done","commit_id":"f0083b0672149d77fb4214a8f54422b5dc2981d9"},{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"493d3a15aeab137a4fc0075b4a60f5a1e9c16033","unresolved":false,"context_lines":[{"line_number":214,"context_line":"        response.body \u003d response.data"},{"line_number":215,"context_line":"        return response"},{"line_number":216,"context_line":""},{"line_number":217,"context_line":"    def four_zero_four(self):"},{"line_number":218,"context_line":"        \"\"\"Resource Not Found.\"\"\""},{"line_number":219,"context_line":"        raise exception.NotFoundException()"},{"line_number":220,"context_line":""}],"source_content_type":"text/x-python","patch_set":3,"id":"AAAAUH%2F91zs%3D","line":217,"updated":"2014-02-03 12:49:18.000000000","message":"Why not name the function resource_not_found_error()?\n\nSame on others...","commit_id":"f0083b0672149d77fb4214a8f54422b5dc2981d9"},{"author":{"_account_id":9722,"name":"Hemanth Ravi","email":"hemanth.ravi@oneconvergence.com","username":"hemanthravi"},"change_message_id":"e896851407590beb1ab54b6f05edf003c84c1df7","unresolved":false,"context_lines":[{"line_number":214,"context_line":"        response.body \u003d response.data"},{"line_number":215,"context_line":"        return response"},{"line_number":216,"context_line":""},{"line_number":217,"context_line":"    def four_zero_four(self):"},{"line_number":218,"context_line":"        \"\"\"Resource Not Found.\"\"\""},{"line_number":219,"context_line":"        raise exception.NotFoundException()"},{"line_number":220,"context_line":""}],"source_content_type":"text/x-python","patch_set":3,"id":"AAAAUX%2F%2F6no%3D","line":217,"in_reply_to":"AAAAUH%2F91zs%3D","updated":"2014-02-12 15:40:42.000000000","message":"Leaving the names as they are, since they are internal functions.","commit_id":"f0083b0672149d77fb4214a8f54422b5dc2981d9"},{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"a2c41ed87d9c6b693f6ded3062ba6afe2aeeda76","unresolved":false,"context_lines":[{"line_number":74,"context_line":"                self.log.emit(\u0027error\u0027, \u0027 \u0027, _(\"Login failed: %s\") % e)"},{"line_number":75,"context_line":"                self.log.emit(\u0027error\u0027, \u0027 \u0027, _(\"Unable to establish connection\""},{"line_number":76,"context_line":"                              \" with Controller %s\") % self.api_url)"},{"line_number":77,"context_line":"                msg \u003d _(\"Retrying after 1 second...\")"},{"line_number":78,"context_line":"                self.log.emit(\u0027error\u0027, \u0027 \u0027, msg)"},{"line_number":79,"context_line":"                time.sleep(1)"},{"line_number":80,"context_line":"                continue"}],"source_content_type":"text/x-python","patch_set":4,"id":"AAAAUX%2F%2F2sI%3D","line":77,"updated":"2014-02-10 12:04:40.000000000","message":"Limit to number of login attempts?\nConfig item for limit?","commit_id":"69894c1efec9d2d448401e7c1726704747925f6c"},{"author":{"_account_id":9722,"name":"Hemanth Ravi","email":"hemanth.ravi@oneconvergence.com","username":"hemanthravi"},"change_message_id":"8c5bdf5692be6f96c34514f6d6b63b2abfdbff38","unresolved":false,"context_lines":[{"line_number":74,"context_line":"                self.log.emit(\u0027error\u0027, \u0027 \u0027, _(\"Login failed: %s\") % e)"},{"line_number":75,"context_line":"                self.log.emit(\u0027error\u0027, \u0027 \u0027, _(\"Unable to establish connection\""},{"line_number":76,"context_line":"                              \" with Controller %s\") % self.api_url)"},{"line_number":77,"context_line":"                msg \u003d _(\"Retrying after 1 second...\")"},{"line_number":78,"context_line":"                self.log.emit(\u0027error\u0027, \u0027 \u0027, msg)"},{"line_number":79,"context_line":"                time.sleep(1)"},{"line_number":80,"context_line":"                continue"}],"source_content_type":"text/x-python","patch_set":4,"id":"AAAAUX%2F%2Fe40%3D","line":77,"in_reply_to":"AAAAUX%2F%2F2sI%3D","updated":"2014-02-12 21:35:28.000000000","message":"Done","commit_id":"69894c1efec9d2d448401e7c1726704747925f6c"},{"author":{"_account_id":2592,"name":"Mark McClain","email":"mark@mcclain.xyz","username":"markmcclain"},"change_message_id":"28ff0a08c6daa1b099799374928cd706ca6d22f5","unresolved":false,"context_lines":[{"line_number":17,"context_line":"\"\"\"Library to talk to NVSD controller.\"\"\""},{"line_number":18,"context_line":""},{"line_number":19,"context_line":"import httplib"},{"line_number":20,"context_line":"import json"},{"line_number":21,"context_line":"import requests"},{"line_number":22,"context_line":"import time"},{"line_number":23,"context_line":"import traceback"}],"source_content_type":"text/x-python","patch_set":5,"id":"AAAAUX%2F%2FeaI%3D","line":20,"updated":"2014-02-12 23:06:05.000000000","message":"from neutron.openstack.common import jsonutils as json","commit_id":"eac8d861c015b44832e1ec11f6e1fbccf9bebe2c"},{"author":{"_account_id":9722,"name":"Hemanth Ravi","email":"hemanth.ravi@oneconvergence.com","username":"hemanthravi"},"change_message_id":"8ec8e434ce8b2f00e4d610b2e682123f95c4d337","unresolved":false,"context_lines":[{"line_number":17,"context_line":"\"\"\"Library to talk to NVSD controller.\"\"\""},{"line_number":18,"context_line":""},{"line_number":19,"context_line":"import httplib"},{"line_number":20,"context_line":"import json"},{"line_number":21,"context_line":"import requests"},{"line_number":22,"context_line":"import time"},{"line_number":23,"context_line":"import traceback"}],"source_content_type":"text/x-python","patch_set":5,"id":"AAAAVn%2F%2FnII%3D","line":20,"in_reply_to":"AAAAUX%2F%2FeaI%3D","updated":"2014-03-05 05:05:52.000000000","message":"Done","commit_id":"eac8d861c015b44832e1ec11f6e1fbccf9bebe2c"},{"author":{"_account_id":2592,"name":"Mark McClain","email":"mark@mcclain.xyz","username":"markmcclain"},"change_message_id":"28ff0a08c6daa1b099799374928cd706ca6d22f5","unresolved":false,"context_lines":[{"line_number":89,"context_line":"                time.sleep(1)"},{"line_number":90,"context_line":"                continue"},{"line_number":91,"context_line":""},{"line_number":92,"context_line":"        if response.status_code \u003d\u003d httplib.OK:"},{"line_number":93,"context_line":"            self.log.emit(\u0027debug\u0027, \u0027 \u0027, _(\"Login Successful %(uri)s \""},{"line_number":94,"context_line":"                          \"%(status)s\") % {\u0027uri\u0027: self.api_url,"},{"line_number":95,"context_line":"                                           \u0027status\u0027: response.status_code})"}],"source_content_type":"text/x-python","patch_set":5,"id":"AAAAUX%2F%2FeaQ%3D","line":92,"updated":"2014-02-12 23:06:05.000000000","message":"requests has response code as part of its library.  You should reference those and not httplib.","commit_id":"eac8d861c015b44832e1ec11f6e1fbccf9bebe2c"},{"author":{"_account_id":9722,"name":"Hemanth Ravi","email":"hemanth.ravi@oneconvergence.com","username":"hemanthravi"},"change_message_id":"8ec8e434ce8b2f00e4d610b2e682123f95c4d337","unresolved":false,"context_lines":[{"line_number":89,"context_line":"                time.sleep(1)"},{"line_number":90,"context_line":"                continue"},{"line_number":91,"context_line":""},{"line_number":92,"context_line":"        if response.status_code \u003d\u003d httplib.OK:"},{"line_number":93,"context_line":"            self.log.emit(\u0027debug\u0027, \u0027 \u0027, _(\"Login Successful %(uri)s \""},{"line_number":94,"context_line":"                          \"%(status)s\") % {\u0027uri\u0027: self.api_url,"},{"line_number":95,"context_line":"                                           \u0027status\u0027: response.status_code})"}],"source_content_type":"text/x-python","patch_set":5,"id":"AAAAVn%2F%2FnHs%3D","line":92,"in_reply_to":"AAAAUX%2F%2FeaQ%3D","updated":"2014-03-05 05:05:52.000000000","message":"Done","commit_id":"eac8d861c015b44832e1ec11f6e1fbccf9bebe2c"},{"author":{"_account_id":2592,"name":"Mark McClain","email":"mark@mcclain.xyz","username":"markmcclain"},"change_message_id":"28ff0a08c6daa1b099799374928cd706ca6d22f5","unresolved":false,"context_lines":[{"line_number":108,"context_line":"            self.login()"},{"line_number":109,"context_line":""},{"line_number":110,"context_line":"        headers \u003d {\"Content-Type\": content_type}"},{"line_number":111,"context_line":"        if \"?\" in url:"},{"line_number":112,"context_line":"            uri \u003d url + \"\u0026authToken\u003d\" + self.auth_token"},{"line_number":113,"context_line":"        else:"},{"line_number":114,"context_line":"            uri \u003d url + \"?authToken\u003d\" + self.auth_token"}],"source_content_type":"text/x-python","patch_set":5,"id":"AAAAUX%2F%2FeZc%3D","line":111,"updated":"2014-02-12 23:06:05.000000000","message":"Instead of parsing the url manually, why not use urlparse module in the standard lib.","commit_id":"eac8d861c015b44832e1ec11f6e1fbccf9bebe2c"},{"author":{"_account_id":9722,"name":"Hemanth Ravi","email":"hemanth.ravi@oneconvergence.com","username":"hemanthravi"},"change_message_id":"8ec8e434ce8b2f00e4d610b2e682123f95c4d337","unresolved":false,"context_lines":[{"line_number":108,"context_line":"            self.login()"},{"line_number":109,"context_line":""},{"line_number":110,"context_line":"        headers \u003d {\"Content-Type\": content_type}"},{"line_number":111,"context_line":"        if \"?\" in url:"},{"line_number":112,"context_line":"            uri \u003d url + \"\u0026authToken\u003d\" + self.auth_token"},{"line_number":113,"context_line":"        else:"},{"line_number":114,"context_line":"            uri \u003d url + \"?authToken\u003d\" + self.auth_token"}],"source_content_type":"text/x-python","patch_set":5,"id":"AAAAVn%2F%2FnG8%3D","line":111,"in_reply_to":"AAAAUX%2F%2FeZc%3D","updated":"2014-03-05 05:05:52.000000000","message":"Done","commit_id":"eac8d861c015b44832e1ec11f6e1fbccf9bebe2c"},{"author":{"_account_id":2592,"name":"Mark McClain","email":"mark@mcclain.xyz","username":"markmcclain"},"change_message_id":"28ff0a08c6daa1b099799374928cd706ca6d22f5","unresolved":false,"context_lines":[{"line_number":127,"context_line":"        except httplib.IncompleteRead as e:"},{"line_number":128,"context_line":"            response \u003d e.partial"},{"line_number":129,"context_line":"        except Exception as e:"},{"line_number":130,"context_line":"            self.log.emit(\u0027error\u0027, \u0027 \u0027, _(\"%s\") % (traceback.format_exc()))"},{"line_number":131,"context_line":"            msg \u003d _(\"request: Request failed from Controller side :%s\") % e"},{"line_number":132,"context_line":"            self.log.emit(\u0027error\u0027, \u0027 \u0027, msg)"},{"line_number":133,"context_line":"            if isinstance(e, httplib.BadStatusLine):"}],"source_content_type":"text/x-python","patch_set":5,"id":"AAAAUX%2F%2FeZw%3D","line":130,"updated":"2014-02-12 23:06:05.000000000","message":"LOG.exception() is builtin to the logging module.  You should not need to call traceback directly.","commit_id":"eac8d861c015b44832e1ec11f6e1fbccf9bebe2c"},{"author":{"_account_id":9722,"name":"Hemanth Ravi","email":"hemanth.ravi@oneconvergence.com","username":"hemanthravi"},"change_message_id":"8ec8e434ce8b2f00e4d610b2e682123f95c4d337","unresolved":false,"context_lines":[{"line_number":127,"context_line":"        except httplib.IncompleteRead as e:"},{"line_number":128,"context_line":"            response \u003d e.partial"},{"line_number":129,"context_line":"        except Exception as e:"},{"line_number":130,"context_line":"            self.log.emit(\u0027error\u0027, \u0027 \u0027, _(\"%s\") % (traceback.format_exc()))"},{"line_number":131,"context_line":"            msg \u003d _(\"request: Request failed from Controller side :%s\") % e"},{"line_number":132,"context_line":"            self.log.emit(\u0027error\u0027, \u0027 \u0027, msg)"},{"line_number":133,"context_line":"            if isinstance(e, httplib.BadStatusLine):"}],"source_content_type":"text/x-python","patch_set":5,"id":"AAAAVn%2F%2FnGw%3D","line":130,"in_reply_to":"AAAAUX%2F%2FeZw%3D","updated":"2014-03-05 05:05:52.000000000","message":"Done","commit_id":"eac8d861c015b44832e1ec11f6e1fbccf9bebe2c"},{"author":{"_account_id":2592,"name":"Mark McClain","email":"mark@mcclain.xyz","username":"markmcclain"},"change_message_id":"28ff0a08c6daa1b099799374928cd706ca6d22f5","unresolved":false,"context_lines":[{"line_number":130,"context_line":"            self.log.emit(\u0027error\u0027, \u0027 \u0027, _(\"%s\") % (traceback.format_exc()))"},{"line_number":131,"context_line":"            msg \u003d _(\"request: Request failed from Controller side :%s\") % e"},{"line_number":132,"context_line":"            self.log.emit(\u0027error\u0027, \u0027 \u0027, msg)"},{"line_number":133,"context_line":"            if isinstance(e, httplib.BadStatusLine):"},{"line_number":134,"context_line":"                msg \u003d _(\"request: Invalid server response\")"},{"line_number":135,"context_line":"            elif isinstance(e, httplib.HTTPException):"},{"line_number":136,"context_line":"                msg \u003d _(\"request: HTTP exception\")"}],"source_content_type":"text/x-python","patch_set":5,"id":"AAAAUX%2F%2FeXU%3D","line":133,"updated":"2014-02-12 23:06:05.000000000","message":"Seem like you can just get the name of the exception vs rewrapping.","commit_id":"eac8d861c015b44832e1ec11f6e1fbccf9bebe2c"},{"author":{"_account_id":9722,"name":"Hemanth Ravi","email":"hemanth.ravi@oneconvergence.com","username":"hemanthravi"},"change_message_id":"8ec8e434ce8b2f00e4d610b2e682123f95c4d337","unresolved":false,"context_lines":[{"line_number":130,"context_line":"            self.log.emit(\u0027error\u0027, \u0027 \u0027, _(\"%s\") % (traceback.format_exc()))"},{"line_number":131,"context_line":"            msg \u003d _(\"request: Request failed from Controller side :%s\") % e"},{"line_number":132,"context_line":"            self.log.emit(\u0027error\u0027, \u0027 \u0027, msg)"},{"line_number":133,"context_line":"            if isinstance(e, httplib.BadStatusLine):"},{"line_number":134,"context_line":"                msg \u003d _(\"request: Invalid server response\")"},{"line_number":135,"context_line":"            elif isinstance(e, httplib.HTTPException):"},{"line_number":136,"context_line":"                msg \u003d _(\"request: HTTP exception\")"}],"source_content_type":"text/x-python","patch_set":5,"id":"AAAAVn%2F%2FnGk%3D","line":133,"in_reply_to":"AAAAUX%2F%2FeXU%3D","updated":"2014-03-05 05:05:52.000000000","message":"Done","commit_id":"eac8d861c015b44832e1ec11f6e1fbccf9bebe2c"},{"author":{"_account_id":7962,"name":"Ronak Shah","email":"ronak.malav.shah@gmail.com","username":"ronak"},"change_message_id":"edb347a56f8bc7c2e583a90a4ed01e7a757cdd6e","unresolved":false,"context_lines":[{"line_number":139,"context_line":"                if response.status \u003d\u003d httplib.BAD_REQUEST:"},{"line_number":140,"context_line":"                    msg \u003d _(\"request: bad request exception from Controller\")"},{"line_number":141,"context_line":"            self.log.emit(\u0027error\u0027, \u0027 \u0027, msg)"},{"line_number":142,"context_line":"            request_ok \u003d False"},{"line_number":143,"context_line":""},{"line_number":144,"context_line":"        if response is None:"},{"line_number":145,"context_line":"            # Timeout."}],"source_content_type":"text/x-python","patch_set":5,"id":"AAAAUX%2F%2FUiI%3D","line":142,"updated":"2014-02-14 00:25:19.000000000","message":"This line assignment is not required as its done at the start of this method.","commit_id":"eac8d861c015b44832e1ec11f6e1fbccf9bebe2c"},{"author":{"_account_id":9722,"name":"Hemanth Ravi","email":"hemanth.ravi@oneconvergence.com","username":"hemanthravi"},"change_message_id":"8ec8e434ce8b2f00e4d610b2e682123f95c4d337","unresolved":false,"context_lines":[{"line_number":139,"context_line":"                if response.status \u003d\u003d httplib.BAD_REQUEST:"},{"line_number":140,"context_line":"                    msg \u003d _(\"request: bad request exception from Controller\")"},{"line_number":141,"context_line":"            self.log.emit(\u0027error\u0027, \u0027 \u0027, msg)"},{"line_number":142,"context_line":"            request_ok \u003d False"},{"line_number":143,"context_line":""},{"line_number":144,"context_line":"        if response is None:"},{"line_number":145,"context_line":"            # Timeout."}],"source_content_type":"text/x-python","patch_set":5,"id":"AAAAVn%2F%2FnGU%3D","line":142,"in_reply_to":"AAAAUX%2F%2FUiI%3D","updated":"2014-03-05 05:05:52.000000000","message":"Done","commit_id":"eac8d861c015b44832e1ec11f6e1fbccf9bebe2c"},{"author":{"_account_id":7962,"name":"Ronak Shah","email":"ronak.malav.shah@gmail.com","username":"ronak"},"change_message_id":"edb347a56f8bc7c2e583a90a4ed01e7a757cdd6e","unresolved":false,"context_lines":[{"line_number":162,"context_line":"            self.log.emit(\u0027error\u0027, \u0027 \u0027, msg)"},{"line_number":163,"context_line":"            self.log.emit(\u0027error\u0027, \u0027 \u0027, _(\"%s\") % response.reason)"},{"line_number":164,"context_line":"            self.error_codes[status](self)"},{"line_number":165,"context_line":""},{"line_number":166,"context_line":"        elif status not in (httplib.OK, httplib.CREATED, httplib.NO_CONTENT):"},{"line_number":167,"context_line":"            msg \u003d _(\"%(method)s to %(url)s, unexpected response code: \""},{"line_number":168,"context_line":"                    \"%(status)d\") % {\u0027method\u0027: method, \u0027url\u0027: url,"}],"source_content_type":"text/x-python","patch_set":5,"id":"AAAAUX%2F%2FUjU%3D","line":165,"updated":"2014-02-14 00:25:19.000000000","message":"Do we need this extra line between if and elif?","commit_id":"eac8d861c015b44832e1ec11f6e1fbccf9bebe2c"},{"author":{"_account_id":9722,"name":"Hemanth Ravi","email":"hemanth.ravi@oneconvergence.com","username":"hemanthravi"},"change_message_id":"8ec8e434ce8b2f00e4d610b2e682123f95c4d337","unresolved":false,"context_lines":[{"line_number":162,"context_line":"            self.log.emit(\u0027error\u0027, \u0027 \u0027, msg)"},{"line_number":163,"context_line":"            self.log.emit(\u0027error\u0027, \u0027 \u0027, _(\"%s\") % response.reason)"},{"line_number":164,"context_line":"            self.error_codes[status](self)"},{"line_number":165,"context_line":""},{"line_number":166,"context_line":"        elif status not in (httplib.OK, httplib.CREATED, httplib.NO_CONTENT):"},{"line_number":167,"context_line":"            msg \u003d _(\"%(method)s to %(url)s, unexpected response code: \""},{"line_number":168,"context_line":"                    \"%(status)d\") % {\u0027method\u0027: method, \u0027url\u0027: url,"}],"source_content_type":"text/x-python","patch_set":5,"id":"AAAAVn%2F%2FnGI%3D","line":165,"in_reply_to":"AAAAUX%2F%2FUjU%3D","updated":"2014-03-05 05:05:52.000000000","message":"Done","commit_id":"eac8d861c015b44832e1ec11f6e1fbccf9bebe2c"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"1402f37b9de35f4cea74fffe1a9e910cb28c74fa","unresolved":false,"context_lines":[{"line_number":17,"context_line":"\"\"\"Library to talk to NVSD controller.\"\"\""},{"line_number":18,"context_line":""},{"line_number":19,"context_line":"import httplib"},{"line_number":20,"context_line":"import requests"},{"line_number":21,"context_line":"import time"},{"line_number":22,"context_line":"from urlparse import urljoin"},{"line_number":23,"context_line":""}],"source_content_type":"text/x-python","patch_set":7,"id":"AAAAVn%2F%2F1F0%3D","line":20,"updated":"2014-03-03 22:29:01.000000000","message":"requests is a third-party module. Move it around oslo.config.","commit_id":"7f18d9229aeaa60f30e128ff76df001ba198bc59"},{"author":{"_account_id":9722,"name":"Hemanth Ravi","email":"hemanth.ravi@oneconvergence.com","username":"hemanthravi"},"change_message_id":"aad3d1e2b2de3e1eb27017ded42310d6e56d5c37","unresolved":false,"context_lines":[{"line_number":17,"context_line":"\"\"\"Library to talk to NVSD controller.\"\"\""},{"line_number":18,"context_line":""},{"line_number":19,"context_line":"import httplib"},{"line_number":20,"context_line":"import requests"},{"line_number":21,"context_line":"import time"},{"line_number":22,"context_line":"from urlparse import urljoin"},{"line_number":23,"context_line":""}],"source_content_type":"text/x-python","patch_set":7,"id":"AAAAVn%2F%2FvyQ%3D","line":20,"in_reply_to":"AAAAVn%2F%2F1F0%3D","updated":"2014-03-04 10:35:13.000000000","message":"Done","commit_id":"7f18d9229aeaa60f30e128ff76df001ba198bc59"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"1402f37b9de35f4cea74fffe1a9e910cb28c74fa","unresolved":false,"context_lines":[{"line_number":81,"context_line":"                                             timeout\u003dself._request_timeout)"},{"line_number":82,"context_line":"                break"},{"line_number":83,"context_line":"            except Exception as e:"},{"line_number":84,"context_line":"                LOG.error(_(\"Login Failed: %s\") % str(e))"},{"line_number":85,"context_line":"                LOG.error(_(\"Unable to establish connection\""},{"line_number":86,"context_line":"                            \" with Controller %s\") % self.api_url)"},{"line_number":87,"context_line":"                LOG.error(_(\"Retrying after 1 second...\"))"}],"source_content_type":"text/x-python","patch_set":7,"id":"AAAAVn%2F%2F1DY%3D","line":84,"updated":"2014-03-03 22:29:01.000000000","message":"Please use a comma instead of % if the message is only used for logging.\n\n\"str(e)\" should be \"e\". Otherwise we got unicode error.","commit_id":"7f18d9229aeaa60f30e128ff76df001ba198bc59"},{"author":{"_account_id":9722,"name":"Hemanth Ravi","email":"hemanth.ravi@oneconvergence.com","username":"hemanthravi"},"change_message_id":"aad3d1e2b2de3e1eb27017ded42310d6e56d5c37","unresolved":false,"context_lines":[{"line_number":81,"context_line":"                                             timeout\u003dself._request_timeout)"},{"line_number":82,"context_line":"                break"},{"line_number":83,"context_line":"            except Exception as e:"},{"line_number":84,"context_line":"                LOG.error(_(\"Login Failed: %s\") % str(e))"},{"line_number":85,"context_line":"                LOG.error(_(\"Unable to establish connection\""},{"line_number":86,"context_line":"                            \" with Controller %s\") % self.api_url)"},{"line_number":87,"context_line":"                LOG.error(_(\"Retrying after 1 second...\"))"}],"source_content_type":"text/x-python","patch_set":7,"id":"AAAAVn%2F%2FvyM%3D","line":84,"in_reply_to":"AAAAVn%2F%2F1DY%3D","updated":"2014-03-04 10:35:13.000000000","message":"Done","commit_id":"7f18d9229aeaa60f30e128ff76df001ba198bc59"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"1402f37b9de35f4cea74fffe1a9e910cb28c74fa","unresolved":false,"context_lines":[{"line_number":83,"context_line":"            except Exception as e:"},{"line_number":84,"context_line":"                LOG.error(_(\"Login Failed: %s\") % str(e))"},{"line_number":85,"context_line":"                LOG.error(_(\"Unable to establish connection\""},{"line_number":86,"context_line":"                            \" with Controller %s\") % self.api_url)"},{"line_number":87,"context_line":"                LOG.error(_(\"Retrying after 1 second...\"))"},{"line_number":88,"context_line":"                time.sleep(1)"},{"line_number":89,"context_line":"                continue"}],"source_content_type":"text/x-python","patch_set":7,"id":"AAAAVn%2F%2F1DQ%3D","line":86,"updated":"2014-03-03 22:29:01.000000000","message":"s/%/,/","commit_id":"7f18d9229aeaa60f30e128ff76df001ba198bc59"},{"author":{"_account_id":9722,"name":"Hemanth Ravi","email":"hemanth.ravi@oneconvergence.com","username":"hemanthravi"},"change_message_id":"aad3d1e2b2de3e1eb27017ded42310d6e56d5c37","unresolved":false,"context_lines":[{"line_number":83,"context_line":"            except Exception as e:"},{"line_number":84,"context_line":"                LOG.error(_(\"Login Failed: %s\") % str(e))"},{"line_number":85,"context_line":"                LOG.error(_(\"Unable to establish connection\""},{"line_number":86,"context_line":"                            \" with Controller %s\") % self.api_url)"},{"line_number":87,"context_line":"                LOG.error(_(\"Retrying after 1 second...\"))"},{"line_number":88,"context_line":"                time.sleep(1)"},{"line_number":89,"context_line":"                continue"}],"source_content_type":"text/x-python","patch_set":7,"id":"AAAAVn%2F%2FvyI%3D","line":86,"in_reply_to":"AAAAVn%2F%2F1DQ%3D","updated":"2014-03-04 10:35:13.000000000","message":"Done","commit_id":"7f18d9229aeaa60f30e128ff76df001ba198bc59"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"1402f37b9de35f4cea74fffe1a9e910cb28c74fa","unresolved":false,"context_lines":[{"line_number":86,"context_line":"                            \" with Controller %s\") % self.api_url)"},{"line_number":87,"context_line":"                LOG.error(_(\"Retrying after 1 second...\"))"},{"line_number":88,"context_line":"                time.sleep(1)"},{"line_number":89,"context_line":"                continue"},{"line_number":90,"context_line":""},{"line_number":91,"context_line":"        if response.status_code \u003d\u003d requests.codes.ok:"},{"line_number":92,"context_line":"            LOG.debug(_(\"Login Successful %(uri)s \""}],"source_content_type":"text/x-python","patch_set":7,"id":"AAAAVn%2F%2F1DE%3D","line":89,"updated":"2014-03-03 22:29:01.000000000","message":"continue looks unnecesary.","commit_id":"7f18d9229aeaa60f30e128ff76df001ba198bc59"},{"author":{"_account_id":9722,"name":"Hemanth Ravi","email":"hemanth.ravi@oneconvergence.com","username":"hemanthravi"},"change_message_id":"aad3d1e2b2de3e1eb27017ded42310d6e56d5c37","unresolved":false,"context_lines":[{"line_number":86,"context_line":"                            \" with Controller %s\") % self.api_url)"},{"line_number":87,"context_line":"                LOG.error(_(\"Retrying after 1 second...\"))"},{"line_number":88,"context_line":"                time.sleep(1)"},{"line_number":89,"context_line":"                continue"},{"line_number":90,"context_line":""},{"line_number":91,"context_line":"        if response.status_code \u003d\u003d requests.codes.ok:"},{"line_number":92,"context_line":"            LOG.debug(_(\"Login Successful %(uri)s \""}],"source_content_type":"text/x-python","patch_set":7,"id":"AAAAVn%2F%2FvyE%3D","line":89,"in_reply_to":"AAAAVn%2F%2F1DE%3D","updated":"2014-03-04 10:35:13.000000000","message":"Done","commit_id":"7f18d9229aeaa60f30e128ff76df001ba198bc59"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"1402f37b9de35f4cea74fffe1a9e910cb28c74fa","unresolved":false,"context_lines":[{"line_number":90,"context_line":""},{"line_number":91,"context_line":"        if response.status_code \u003d\u003d requests.codes.ok:"},{"line_number":92,"context_line":"            LOG.debug(_(\"Login Successful %(uri)s \""},{"line_number":93,"context_line":"                        \"%(status)s\") % {\u0027uri\u0027: self.api_url,"},{"line_number":94,"context_line":"                                         \u0027status\u0027: response.status_code})"},{"line_number":95,"context_line":"            self.auth_token \u003d json.loads(response.content)[\"session_uuid\"]"},{"line_number":96,"context_line":"            LOG.debug(_(\"AuthToken \u003d %s\") % self.auth_token)"}],"source_content_type":"text/x-python","patch_set":7,"id":"AAAAVn%2F%2F1C0%3D","line":93,"updated":"2014-03-03 22:29:01.000000000","message":"s/%/,/","commit_id":"7f18d9229aeaa60f30e128ff76df001ba198bc59"},{"author":{"_account_id":9722,"name":"Hemanth Ravi","email":"hemanth.ravi@oneconvergence.com","username":"hemanthravi"},"change_message_id":"aad3d1e2b2de3e1eb27017ded42310d6e56d5c37","unresolved":false,"context_lines":[{"line_number":90,"context_line":""},{"line_number":91,"context_line":"        if response.status_code \u003d\u003d requests.codes.ok:"},{"line_number":92,"context_line":"            LOG.debug(_(\"Login Successful %(uri)s \""},{"line_number":93,"context_line":"                        \"%(status)s\") % {\u0027uri\u0027: self.api_url,"},{"line_number":94,"context_line":"                                         \u0027status\u0027: response.status_code})"},{"line_number":95,"context_line":"            self.auth_token \u003d json.loads(response.content)[\"session_uuid\"]"},{"line_number":96,"context_line":"            LOG.debug(_(\"AuthToken \u003d %s\") % self.auth_token)"}],"source_content_type":"text/x-python","patch_set":7,"id":"AAAAVn%2F%2FvyA%3D","line":93,"in_reply_to":"AAAAVn%2F%2F1C0%3D","updated":"2014-03-04 10:35:13.000000000","message":"Done","commit_id":"7f18d9229aeaa60f30e128ff76df001ba198bc59"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"1402f37b9de35f4cea74fffe1a9e910cb28c74fa","unresolved":false,"context_lines":[{"line_number":93,"context_line":"                        \"%(status)s\") % {\u0027uri\u0027: self.api_url,"},{"line_number":94,"context_line":"                                         \u0027status\u0027: response.status_code})"},{"line_number":95,"context_line":"            self.auth_token \u003d json.loads(response.content)[\"session_uuid\"]"},{"line_number":96,"context_line":"            LOG.debug(_(\"AuthToken \u003d %s\") % self.auth_token)"},{"line_number":97,"context_line":"        else:"},{"line_number":98,"context_line":"            LOG.error(_(\"login failed\"))"},{"line_number":99,"context_line":""}],"source_content_type":"text/x-python","patch_set":7,"id":"AAAAVn%2F%2F1Cw%3D","line":96,"updated":"2014-03-03 22:29:01.000000000","message":"s/%/,/","commit_id":"7f18d9229aeaa60f30e128ff76df001ba198bc59"},{"author":{"_account_id":9722,"name":"Hemanth Ravi","email":"hemanth.ravi@oneconvergence.com","username":"hemanthravi"},"change_message_id":"aad3d1e2b2de3e1eb27017ded42310d6e56d5c37","unresolved":false,"context_lines":[{"line_number":93,"context_line":"                        \"%(status)s\") % {\u0027uri\u0027: self.api_url,"},{"line_number":94,"context_line":"                                         \u0027status\u0027: response.status_code})"},{"line_number":95,"context_line":"            self.auth_token \u003d json.loads(response.content)[\"session_uuid\"]"},{"line_number":96,"context_line":"            LOG.debug(_(\"AuthToken \u003d %s\") % self.auth_token)"},{"line_number":97,"context_line":"        else:"},{"line_number":98,"context_line":"            LOG.error(_(\"login failed\"))"},{"line_number":99,"context_line":""}],"source_content_type":"text/x-python","patch_set":7,"id":"AAAAVn%2F%2Fvx8%3D","line":96,"in_reply_to":"AAAAVn%2F%2F1Cw%3D","updated":"2014-03-04 10:35:13.000000000","message":"Done","commit_id":"7f18d9229aeaa60f30e128ff76df001ba198bc59"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"1402f37b9de35f4cea74fffe1a9e910cb28c74fa","unresolved":false,"context_lines":[{"line_number":122,"context_line":""},{"line_number":123,"context_line":"            msg \u003d _(\"request: %(method)s %(uri)s successful\") % {"},{"line_number":124,"context_line":"                \u0027method\u0027: method, \u0027uri\u0027: self.api_url + uri}"},{"line_number":125,"context_line":"            LOG.debug(msg)"},{"line_number":126,"context_line":"            request_ok \u003d True"},{"line_number":127,"context_line":"        except httplib.IncompleteRead as e:"},{"line_number":128,"context_line":"            response \u003d e.partial"}],"source_content_type":"text/x-python","patch_set":7,"id":"AAAAVn%2F%2F1CE%3D","line":125,"updated":"2014-03-03 22:29:01.000000000","message":"Same comment about a comma vs %. Please fix it throughout the patch.","commit_id":"7f18d9229aeaa60f30e128ff76df001ba198bc59"},{"author":{"_account_id":9722,"name":"Hemanth Ravi","email":"hemanth.ravi@oneconvergence.com","username":"hemanthravi"},"change_message_id":"aad3d1e2b2de3e1eb27017ded42310d6e56d5c37","unresolved":false,"context_lines":[{"line_number":122,"context_line":""},{"line_number":123,"context_line":"            msg \u003d _(\"request: %(method)s %(uri)s successful\") % {"},{"line_number":124,"context_line":"                \u0027method\u0027: method, \u0027uri\u0027: self.api_url + uri}"},{"line_number":125,"context_line":"            LOG.debug(msg)"},{"line_number":126,"context_line":"            request_ok \u003d True"},{"line_number":127,"context_line":"        except httplib.IncompleteRead as e:"},{"line_number":128,"context_line":"            response \u003d e.partial"}],"source_content_type":"text/x-python","patch_set":7,"id":"AAAAVn%2F%2Fvx4%3D","line":125,"in_reply_to":"AAAAVn%2F%2F1CE%3D","updated":"2014-03-04 10:35:13.000000000","message":"Done","commit_id":"7f18d9229aeaa60f30e128ff76df001ba198bc59"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"1402f37b9de35f4cea74fffe1a9e910cb28c74fa","unresolved":false,"context_lines":[{"line_number":129,"context_line":"            request_ok \u003d True"},{"line_number":130,"context_line":"        except Exception as e:"},{"line_number":131,"context_line":"            LOG.error(_(\"request: Request failed from \""},{"line_number":132,"context_line":"                        \"Controller side :%s\") % str(e))"},{"line_number":133,"context_line":""},{"line_number":134,"context_line":"        if response is None:"},{"line_number":135,"context_line":"            # Timeout."}],"source_content_type":"text/x-python","patch_set":7,"id":"AAAAVn%2F%2F1BY%3D","line":132,"updated":"2014-03-03 22:29:01.000000000","message":"str(e) -\u003e e","commit_id":"7f18d9229aeaa60f30e128ff76df001ba198bc59"},{"author":{"_account_id":9722,"name":"Hemanth Ravi","email":"hemanth.ravi@oneconvergence.com","username":"hemanthravi"},"change_message_id":"aad3d1e2b2de3e1eb27017ded42310d6e56d5c37","unresolved":false,"context_lines":[{"line_number":129,"context_line":"            request_ok \u003d True"},{"line_number":130,"context_line":"        except Exception as e:"},{"line_number":131,"context_line":"            LOG.error(_(\"request: Request failed from \""},{"line_number":132,"context_line":"                        \"Controller side :%s\") % str(e))"},{"line_number":133,"context_line":""},{"line_number":134,"context_line":"        if response is None:"},{"line_number":135,"context_line":"            # Timeout."}],"source_content_type":"text/x-python","patch_set":7,"id":"AAAAVn%2F%2Fvxo%3D","line":132,"in_reply_to":"AAAAVn%2F%2F1BY%3D","updated":"2014-03-04 10:35:13.000000000","message":"Done","commit_id":"7f18d9229aeaa60f30e128ff76df001ba198bc59"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"1402f37b9de35f4cea74fffe1a9e910cb28c74fa","unresolved":false,"context_lines":[{"line_number":151,"context_line":"                                            \u0027body\u0027: body, \u0027status\u0027: status}"},{"line_number":152,"context_line":"            LOG.error(msg)"},{"line_number":153,"context_line":"            LOG.error(_(\"%s\") % response.reason)"},{"line_number":154,"context_line":"            self.error_codes[status](self)"},{"line_number":155,"context_line":"        elif status not in (requests.codes.ok, requests.codes.created,"},{"line_number":156,"context_line":"                            requests.codes.no_content):"},{"line_number":157,"context_line":"            msg \u003d _(\"%(method)s to %(url)s, unexpected response code: \""}],"source_content_type":"text/x-python","patch_set":7,"id":"AAAAVn%2F%2F0%2FY%3D","line":154,"updated":"2014-03-03 22:29:01.000000000","message":"Argument \"self\" is not used.\n\nConsidering the comment at the bottom of the file, it can be simplified:\n\n   raise error_codes[status]()","commit_id":"7f18d9229aeaa60f30e128ff76df001ba198bc59"},{"author":{"_account_id":9722,"name":"Hemanth Ravi","email":"hemanth.ravi@oneconvergence.com","username":"hemanthravi"},"change_message_id":"aad3d1e2b2de3e1eb27017ded42310d6e56d5c37","unresolved":false,"context_lines":[{"line_number":151,"context_line":"                                            \u0027body\u0027: body, \u0027status\u0027: status}"},{"line_number":152,"context_line":"            LOG.error(msg)"},{"line_number":153,"context_line":"            LOG.error(_(\"%s\") % response.reason)"},{"line_number":154,"context_line":"            self.error_codes[status](self)"},{"line_number":155,"context_line":"        elif status not in (requests.codes.ok, requests.codes.created,"},{"line_number":156,"context_line":"                            requests.codes.no_content):"},{"line_number":157,"context_line":"            msg \u003d _(\"%(method)s to %(url)s, unexpected response code: \""}],"source_content_type":"text/x-python","patch_set":7,"id":"AAAAVn%2F%2Fvxk%3D","line":154,"in_reply_to":"AAAAVn%2F%2F0%2FY%3D","updated":"2014-03-04 10:35:13.000000000","message":"Done","commit_id":"7f18d9229aeaa60f30e128ff76df001ba198bc59"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"1402f37b9de35f4cea74fffe1a9e910cb28c74fa","unresolved":false,"context_lines":[{"line_number":158,"context_line":"                    \"%(status)d\") % {\u0027method\u0027: method, \u0027url\u0027: url,"},{"line_number":159,"context_line":"                                     \u0027status\u0027: status}"},{"line_number":160,"context_line":"            LOG.error(msg)"},{"line_number":161,"context_line":"            return None"},{"line_number":162,"context_line":""},{"line_number":163,"context_line":"        if request_ok is False:"},{"line_number":164,"context_line":"            msg \u003d _(\"Request failed from Controller side with \""}],"source_content_type":"text/x-python","patch_set":7,"id":"AAAAVn%2F%2F1BI%3D","line":161,"updated":"2014-03-03 22:29:01.000000000","message":"just \"return\"","commit_id":"7f18d9229aeaa60f30e128ff76df001ba198bc59"},{"author":{"_account_id":9722,"name":"Hemanth Ravi","email":"hemanth.ravi@oneconvergence.com","username":"hemanthravi"},"change_message_id":"aad3d1e2b2de3e1eb27017ded42310d6e56d5c37","unresolved":false,"context_lines":[{"line_number":158,"context_line":"                    \"%(status)d\") % {\u0027method\u0027: method, \u0027url\u0027: url,"},{"line_number":159,"context_line":"                                     \u0027status\u0027: status}"},{"line_number":160,"context_line":"            LOG.error(msg)"},{"line_number":161,"context_line":"            return None"},{"line_number":162,"context_line":""},{"line_number":163,"context_line":"        if request_ok is False:"},{"line_number":164,"context_line":"            msg \u003d _(\"Request failed from Controller side with \""}],"source_content_type":"text/x-python","patch_set":7,"id":"AAAAVn%2F%2Fvxg%3D","line":161,"in_reply_to":"AAAAVn%2F%2F1BI%3D","updated":"2014-03-04 10:35:13.000000000","message":"Done","commit_id":"7f18d9229aeaa60f30e128ff76df001ba198bc59"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"1402f37b9de35f4cea74fffe1a9e910cb28c74fa","unresolved":false,"context_lines":[{"line_number":160,"context_line":"            LOG.error(msg)"},{"line_number":161,"context_line":"            return None"},{"line_number":162,"context_line":""},{"line_number":163,"context_line":"        if request_ok is False:"},{"line_number":164,"context_line":"            msg \u003d _(\"Request failed from Controller side with \""},{"line_number":165,"context_line":"                    \"Status\u003d%s\") % status"},{"line_number":166,"context_line":"            LOG.error(msg)"}],"source_content_type":"text/x-python","patch_set":7,"id":"AAAAVn%2F%2F1BA%3D","line":163,"updated":"2014-03-03 22:29:01.000000000","message":"if not request_ok","commit_id":"7f18d9229aeaa60f30e128ff76df001ba198bc59"},{"author":{"_account_id":9722,"name":"Hemanth Ravi","email":"hemanth.ravi@oneconvergence.com","username":"hemanthravi"},"change_message_id":"aad3d1e2b2de3e1eb27017ded42310d6e56d5c37","unresolved":false,"context_lines":[{"line_number":160,"context_line":"            LOG.error(msg)"},{"line_number":161,"context_line":"            return None"},{"line_number":162,"context_line":""},{"line_number":163,"context_line":"        if request_ok is False:"},{"line_number":164,"context_line":"            msg \u003d _(\"Request failed from Controller side with \""},{"line_number":165,"context_line":"                    \"Status\u003d%s\") % status"},{"line_number":166,"context_line":"            LOG.error(msg)"}],"source_content_type":"text/x-python","patch_set":7,"id":"AAAAVn%2F%2FvxU%3D","line":163,"in_reply_to":"AAAAVn%2F%2F1BA%3D","updated":"2014-03-04 10:35:13.000000000","message":"Done","commit_id":"7f18d9229aeaa60f30e128ff76df001ba198bc59"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"1402f37b9de35f4cea74fffe1a9e910cb28c74fa","unresolved":false,"context_lines":[{"line_number":197,"context_line":"        \"\"\"Generic Exception.\"\"\""},{"line_number":198,"context_line":"        raise exception.NVSDAPIException()"},{"line_number":199,"context_line":""},{"line_number":200,"context_line":"    error_codes \u003d {"},{"line_number":201,"context_line":"        404: four_zero_four,"},{"line_number":202,"context_line":"        409: four_zero_nine,"},{"line_number":203,"context_line":"        500: five_zero_zero,"}],"source_content_type":"text/x-python","patch_set":7,"id":"AAAAVn%2F%2F1AM%3D","line":200,"updated":"2014-03-03 22:29:01.000000000","message":"How about:\n\n  error_codes \u003d {\n    404: exception.NotFoundException,\n    409: exception.BadRequestException,\n    ...\n  }","commit_id":"7f18d9229aeaa60f30e128ff76df001ba198bc59"},{"author":{"_account_id":9722,"name":"Hemanth Ravi","email":"hemanth.ravi@oneconvergence.com","username":"hemanthravi"},"change_message_id":"aad3d1e2b2de3e1eb27017ded42310d6e56d5c37","unresolved":false,"context_lines":[{"line_number":197,"context_line":"        \"\"\"Generic Exception.\"\"\""},{"line_number":198,"context_line":"        raise exception.NVSDAPIException()"},{"line_number":199,"context_line":""},{"line_number":200,"context_line":"    error_codes \u003d {"},{"line_number":201,"context_line":"        404: four_zero_four,"},{"line_number":202,"context_line":"        409: four_zero_nine,"},{"line_number":203,"context_line":"        500: five_zero_zero,"}],"source_content_type":"text/x-python","patch_set":7,"id":"AAAAVn%2F%2Fvw8%3D","line":200,"in_reply_to":"AAAAVn%2F%2F1AM%3D","updated":"2014-03-04 10:35:13.000000000","message":"Done","commit_id":"7f18d9229aeaa60f30e128ff76df001ba198bc59"}],"neutron/plugins/oneconvergence/plugin.py":[{"author":{"_account_id":2592,"name":"Mark McClain","email":"mark@mcclain.xyz","username":"markmcclain"},"change_message_id":"8a0063973be0629db20c5e5e7722d47a4d2b2ea7","unresolved":false,"context_lines":[{"line_number":97,"context_line":"                                         module_name\u003d\"NeutronPluginV2\","},{"line_number":98,"context_line":"                                         loglevel\u003dcfg.CONF.nvsd.loglevel)"},{"line_number":99,"context_line":""},{"line_number":100,"context_line":"        db.configure_db()"},{"line_number":101,"context_line":""},{"line_number":102,"context_line":"        self.base_binding_dict \u003d {"},{"line_number":103,"context_line":"            portbindings.VIF_TYPE: portbindings.VIF_TYPE_OVS}"}],"source_content_type":"text/x-python","patch_set":6,"id":"AAAAU3%2F%2F6uY%3D","line":100,"updated":"2014-02-24 03:59:07.000000000","message":"a recent change moved this to db_base_plugin_v2.NeutronDbPluginV2","commit_id":"1ef8c0acf761561d4681f43c7260bcc561406991"},{"author":{"_account_id":9722,"name":"Hemanth Ravi","email":"hemanth.ravi@oneconvergence.com","username":"hemanthravi"},"change_message_id":"64316c6b7b16b91dba7428de01aac13a8236757c","unresolved":false,"context_lines":[{"line_number":97,"context_line":"                                         module_name\u003d\"NeutronPluginV2\","},{"line_number":98,"context_line":"                                         loglevel\u003dcfg.CONF.nvsd.loglevel)"},{"line_number":99,"context_line":""},{"line_number":100,"context_line":"        db.configure_db()"},{"line_number":101,"context_line":""},{"line_number":102,"context_line":"        self.base_binding_dict \u003d {"},{"line_number":103,"context_line":"            portbindings.VIF_TYPE: portbindings.VIF_TYPE_OVS}"}],"source_content_type":"text/x-python","patch_set":6,"id":"AAAAVn%2F%2F03o%3D","line":100,"in_reply_to":"AAAAU3%2F%2F6uY%3D","updated":"2014-03-03 22:36:25.000000000","message":"Done","commit_id":"1ef8c0acf761561d4681f43c7260bcc561406991"},{"author":{"_account_id":2592,"name":"Mark McClain","email":"mark@mcclain.xyz","username":"markmcclain"},"change_message_id":"8a0063973be0629db20c5e5e7722d47a4d2b2ea7","unresolved":false,"context_lines":[{"line_number":151,"context_line":"            #table of neutron db"},{"line_number":152,"context_line":"            self._process_l3_create(context, neutron_net, network[\u0027network\u0027])"},{"line_number":153,"context_line":"        except nexception.NeutronException:"},{"line_number":154,"context_line":"            self.nvsdlib.delete_network(net)"},{"line_number":155,"context_line":"            raise"},{"line_number":156,"context_line":""},{"line_number":157,"context_line":"        return neutron_net"}],"source_content_type":"text/x-python","patch_set":6,"id":"AAAAU3%2F%2F6uM%3D","line":154,"updated":"2014-02-24 03:59:07.000000000","message":"with excutils.save_and_reraise_exception():\n    self.nvsdlib.delete_network(net)","commit_id":"1ef8c0acf761561d4681f43c7260bcc561406991"},{"author":{"_account_id":9722,"name":"Hemanth Ravi","email":"hemanth.ravi@oneconvergence.com","username":"hemanthravi"},"change_message_id":"64316c6b7b16b91dba7428de01aac13a8236757c","unresolved":false,"context_lines":[{"line_number":151,"context_line":"            #table of neutron db"},{"line_number":152,"context_line":"            self._process_l3_create(context, neutron_net, network[\u0027network\u0027])"},{"line_number":153,"context_line":"        except nexception.NeutronException:"},{"line_number":154,"context_line":"            self.nvsdlib.delete_network(net)"},{"line_number":155,"context_line":"            raise"},{"line_number":156,"context_line":""},{"line_number":157,"context_line":"        return neutron_net"}],"source_content_type":"text/x-python","patch_set":6,"id":"AAAAVn%2F%2F03Y%3D","line":154,"in_reply_to":"AAAAU3%2F%2F6uM%3D","updated":"2014-03-03 22:36:25.000000000","message":"Done","commit_id":"1ef8c0acf761561d4681f43c7260bcc561406991"},{"author":{"_account_id":2592,"name":"Mark McClain","email":"mark@mcclain.xyz","username":"markmcclain"},"change_message_id":"8a0063973be0629db20c5e5e7722d47a4d2b2ea7","unresolved":false,"context_lines":[{"line_number":194,"context_line":"            self.nvsdlib.create_subnet(neutron_subnet)"},{"line_number":195,"context_line":"        except nexception.NeutronException:"},{"line_number":196,"context_line":"            #Log the message and delete the subnet from the neutron"},{"line_number":197,"context_line":"            super(OneConvergencePluginV2,"},{"line_number":198,"context_line":"                  self).delete_subnet(context, neutron_subnet[\u0027id\u0027])"},{"line_number":199,"context_line":"            self.log.emit(\u0027debug\u0027, neutron_subnet[\u0027tenant_id\u0027],"},{"line_number":200,"context_line":"                          _(\"Failed to create subnet, \""}],"source_content_type":"text/x-python","patch_set":6,"id":"AAAAU3%2F%2F6uQ%3D","line":197,"updated":"2014-02-24 03:59:07.000000000","message":"with excutils.save_and_reraise_exception()","commit_id":"1ef8c0acf761561d4681f43c7260bcc561406991"},{"author":{"_account_id":9722,"name":"Hemanth Ravi","email":"hemanth.ravi@oneconvergence.com","username":"hemanthravi"},"change_message_id":"64316c6b7b16b91dba7428de01aac13a8236757c","unresolved":false,"context_lines":[{"line_number":194,"context_line":"            self.nvsdlib.create_subnet(neutron_subnet)"},{"line_number":195,"context_line":"        except nexception.NeutronException:"},{"line_number":196,"context_line":"            #Log the message and delete the subnet from the neutron"},{"line_number":197,"context_line":"            super(OneConvergencePluginV2,"},{"line_number":198,"context_line":"                  self).delete_subnet(context, neutron_subnet[\u0027id\u0027])"},{"line_number":199,"context_line":"            self.log.emit(\u0027debug\u0027, neutron_subnet[\u0027tenant_id\u0027],"},{"line_number":200,"context_line":"                          _(\"Failed to create subnet, \""}],"source_content_type":"text/x-python","patch_set":6,"id":"AAAAVn%2F%2F02s%3D","line":197,"in_reply_to":"AAAAU3%2F%2F6uQ%3D","updated":"2014-03-03 22:36:25.000000000","message":"Done","commit_id":"1ef8c0acf761561d4681f43c7260bcc561406991"},{"author":{"_account_id":2592,"name":"Mark McClain","email":"mark@mcclain.xyz","username":"markmcclain"},"change_message_id":"8a0063973be0629db20c5e5e7722d47a4d2b2ea7","unresolved":false,"context_lines":[{"line_number":256,"context_line":"        try:"},{"line_number":257,"context_line":"            self.nvsdlib.create_port(tenant_id, neutron_port)"},{"line_number":258,"context_line":"        except nexception.NeutronException:"},{"line_number":259,"context_line":"            self.log.emit(\u0027error\u0027, tenant_id, _(\"Deleting newly created \""},{"line_number":260,"context_line":"                          \"neutron port %s\") % port_id)"},{"line_number":261,"context_line":"            super(OneConvergencePluginV2, self).delete_port(context, port_id)"},{"line_number":262,"context_line":"            raise"}],"source_content_type":"text/x-python","patch_set":6,"id":"AAAAU3%2F%2F6tw%3D","line":259,"updated":"2014-02-24 03:59:07.000000000","message":"with excutils.save_and_reraise_exception():","commit_id":"1ef8c0acf761561d4681f43c7260bcc561406991"},{"author":{"_account_id":9722,"name":"Hemanth Ravi","email":"hemanth.ravi@oneconvergence.com","username":"hemanthravi"},"change_message_id":"64316c6b7b16b91dba7428de01aac13a8236757c","unresolved":false,"context_lines":[{"line_number":256,"context_line":"        try:"},{"line_number":257,"context_line":"            self.nvsdlib.create_port(tenant_id, neutron_port)"},{"line_number":258,"context_line":"        except nexception.NeutronException:"},{"line_number":259,"context_line":"            self.log.emit(\u0027error\u0027, tenant_id, _(\"Deleting newly created \""},{"line_number":260,"context_line":"                          \"neutron port %s\") % port_id)"},{"line_number":261,"context_line":"            super(OneConvergencePluginV2, self).delete_port(context, port_id)"},{"line_number":262,"context_line":"            raise"}],"source_content_type":"text/x-python","patch_set":6,"id":"AAAAVn%2F%2F02k%3D","line":259,"in_reply_to":"AAAAU3%2F%2F6tw%3D","updated":"2014-03-03 22:36:25.000000000","message":"Done","commit_id":"1ef8c0acf761561d4681f43c7260bcc561406991"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"1402f37b9de35f4cea74fffe1a9e910cb28c74fa","unresolved":false,"context_lines":[{"line_number":273,"context_line":"            else:"},{"line_number":274,"context_line":"                tenant_id \u003d neutron_port[\u0027tenant_id\u0027]"},{"line_number":275,"context_line":""},{"line_number":276,"context_line":"            self.nvsdlib.update_port(tenant_id, neutron_port, port[\u0027port\u0027])"},{"line_number":277,"context_line":""},{"line_number":278,"context_line":"            self._process_portbindings_create_and_update(context,"},{"line_number":279,"context_line":"                                                         port[\u0027port\u0027],"}],"source_content_type":"text/x-python","patch_set":7,"id":"AAAAVn%2F%2F09U%3D","line":276,"updated":"2014-03-03 22:29:01.000000000","message":"Do we need to call this method in a transaction? nvsdlib.update_port communicates with an external controller and this leads to a longer transaction.","commit_id":"7f18d9229aeaa60f30e128ff76df001ba198bc59"},{"author":{"_account_id":9722,"name":"Hemanth Ravi","email":"hemanth.ravi@oneconvergence.com","username":"hemanthravi"},"change_message_id":"aad3d1e2b2de3e1eb27017ded42310d6e56d5c37","unresolved":false,"context_lines":[{"line_number":273,"context_line":"            else:"},{"line_number":274,"context_line":"                tenant_id \u003d neutron_port[\u0027tenant_id\u0027]"},{"line_number":275,"context_line":""},{"line_number":276,"context_line":"            self.nvsdlib.update_port(tenant_id, neutron_port, port[\u0027port\u0027])"},{"line_number":277,"context_line":""},{"line_number":278,"context_line":"            self._process_portbindings_create_and_update(context,"},{"line_number":279,"context_line":"                                                         port[\u0027port\u0027],"}],"source_content_type":"text/x-python","patch_set":7,"id":"AAAAVn%2F%2Fx%2BY%3D","line":276,"in_reply_to":"AAAAVn%2F%2F09U%3D","updated":"2014-03-04 10:35:13.000000000","message":"nvsdlib.update_port is within the transaction by design so that the change is not committed to DB if nvsdlib.update_port fails and raises an exception","commit_id":"7f18d9229aeaa60f30e128ff76df001ba198bc59"},{"author":{"_account_id":490,"name":"Sumit Naiksatam","email":"sumitnaiksatam@gmail.com","username":"snaiksat"},"change_message_id":"35ba862dde111cf33576fd9ab0ab0c9ba7958d28","unresolved":false,"context_lines":[{"line_number":111,"context_line":"    def oneconvergence_init(self):"},{"line_number":112,"context_line":"        \"\"\"Initialize the connections and set the log levels for the plugin.\"\"\""},{"line_number":113,"context_line":""},{"line_number":114,"context_line":"        self.nvsdlib \u003d importutils.import_object(NVSD_LIB)"},{"line_number":115,"context_line":"        self.nvsdlib.set_connection()"},{"line_number":116,"context_line":""},{"line_number":117,"context_line":"    def setup_rpc(self):"}],"source_content_type":"text/x-python","patch_set":9,"id":"AAAAVn%2F%2Fp0E%3D","line":114,"updated":"2014-03-04 20:45:33.000000000","message":"what is the reason for dynamically loading this?","commit_id":"550cc1df3990f31f6a2aca0f913e64263c5ba1f8"},{"author":{"_account_id":9722,"name":"Hemanth Ravi","email":"hemanth.ravi@oneconvergence.com","username":"hemanthravi"},"change_message_id":"015ee0cd718908547c7a3c47b7a7577e3ffb011e","unresolved":false,"context_lines":[{"line_number":111,"context_line":"    def oneconvergence_init(self):"},{"line_number":112,"context_line":"        \"\"\"Initialize the connections and set the log levels for the plugin.\"\"\""},{"line_number":113,"context_line":""},{"line_number":114,"context_line":"        self.nvsdlib \u003d importutils.import_object(NVSD_LIB)"},{"line_number":115,"context_line":"        self.nvsdlib.set_connection()"},{"line_number":116,"context_line":""},{"line_number":117,"context_line":"    def setup_rpc(self):"}],"source_content_type":"text/x-python","patch_set":9,"id":"AAAAVn%2F%2FpA8%3D","line":114,"in_reply_to":"AAAAVn%2F%2Fp0E%3D","updated":"2014-03-04 23:21:29.000000000","message":"Done","commit_id":"550cc1df3990f31f6a2aca0f913e64263c5ba1f8"},{"author":{"_account_id":4395,"name":"Aaron Rosen","email":"aaronorosen@gmail.com","username":"arosen"},"change_message_id":"225d476ae4a05f90acdd5144753b357ac6798fea","unresolved":false,"context_lines":[{"line_number":135,"context_line":""},{"line_number":136,"context_line":"    def create_network(self, context, network):"},{"line_number":137,"context_line":""},{"line_number":138,"context_line":"        net \u003d self.nvsdlib.create_network(network[\u0027network\u0027])"},{"line_number":139,"context_line":""},{"line_number":140,"context_line":"        network[\u0027network\u0027][\u0027id\u0027] \u003d net[\u0027id\u0027]"},{"line_number":141,"context_line":""}],"source_content_type":"text/x-python","patch_set":11,"id":"AAAAVn%2F%2Fl2Q%3D","line":138,"updated":"2014-03-05 06:51:11.000000000","message":"I think you probably want to wrap all these calls in try: except (w/e error\u0027s you raise) LOG.exception(\"error from nsd\") etc.","commit_id":"8a02e8dbeddbe483bc03450b0eb8844848aa471e"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"af47dc6cb9a7ce69054196d7be5112e69c78e49a","unresolved":false,"context_lines":[{"line_number":135,"context_line":""},{"line_number":136,"context_line":"    def create_network(self, context, network):"},{"line_number":137,"context_line":""},{"line_number":138,"context_line":"        net \u003d self.nvsdlib.create_network(network[\u0027network\u0027])"},{"line_number":139,"context_line":""},{"line_number":140,"context_line":"        network[\u0027network\u0027][\u0027id\u0027] \u003d net[\u0027id\u0027]"},{"line_number":141,"context_line":""}],"source_content_type":"text/x-python","patch_set":11,"id":"AAAAVn%2F%2FlmM%3D","line":138,"in_reply_to":"AAAAVn%2F%2Fl2Q%3D","updated":"2014-03-05 07:43:59.000000000","message":"nvsdlib.send_request catches and logs most exception during REST API call. I think it is okay. Only possible exception is from response.json().","commit_id":"8a02e8dbeddbe483bc03450b0eb8844848aa471e"},{"author":{"_account_id":9722,"name":"Hemanth Ravi","email":"hemanth.ravi@oneconvergence.com","username":"hemanthravi"},"change_message_id":"3d62dca87ed376b9979da64a266412e40fa360ff","unresolved":false,"context_lines":[{"line_number":135,"context_line":""},{"line_number":136,"context_line":"    def create_network(self, context, network):"},{"line_number":137,"context_line":""},{"line_number":138,"context_line":"        net \u003d self.nvsdlib.create_network(network[\u0027network\u0027])"},{"line_number":139,"context_line":""},{"line_number":140,"context_line":"        network[\u0027network\u0027][\u0027id\u0027] \u003d net[\u0027id\u0027]"},{"line_number":141,"context_line":""}],"source_content_type":"text/x-python","patch_set":11,"id":"AAAAVn%2F%2FlgQ%3D","line":138,"in_reply_to":"AAAAVn%2F%2FlmM%3D","updated":"2014-03-05 07:49:57.000000000","message":"Yes, they are all logged in nvsdlib.","commit_id":"8a02e8dbeddbe483bc03450b0eb8844848aa471e"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"af47dc6cb9a7ce69054196d7be5112e69c78e49a","unresolved":false,"context_lines":[{"line_number":137,"context_line":""},{"line_number":138,"context_line":"        net \u003d self.nvsdlib.create_network(network[\u0027network\u0027])"},{"line_number":139,"context_line":""},{"line_number":140,"context_line":"        network[\u0027network\u0027][\u0027id\u0027] \u003d net[\u0027id\u0027]"},{"line_number":141,"context_line":""},{"line_number":142,"context_line":"        try:"},{"line_number":143,"context_line":"            neutron_net \u003d super(OneConvergencePluginV2,"}],"source_content_type":"text/x-python","patch_set":11,"id":"AAAAVn%2F%2Fluo%3D","line":140,"updated":"2014-03-05 07:43:59.000000000","message":"This means neutron network_id is determined by the external logic. It works as long as ID is unique in one neutron system and id is not longer than 36 chars, but I wonder it is not a good manner.","commit_id":"8a02e8dbeddbe483bc03450b0eb8844848aa471e"},{"author":{"_account_id":4395,"name":"Aaron Rosen","email":"aaronorosen@gmail.com","username":"arosen"},"change_message_id":"225d476ae4a05f90acdd5144753b357ac6798fea","unresolved":false,"context_lines":[{"line_number":176,"context_line":"            super(OneConvergencePluginV2, self).delete_network(context,"},{"line_number":177,"context_line":"                                                               net_id)"},{"line_number":178,"context_line":""},{"line_number":179,"context_line":"            self.nvsdlib.delete_network(network, subnets)"},{"line_number":180,"context_line":""},{"line_number":181,"context_line":"    def create_subnet(self, context, subnet):"},{"line_number":182,"context_line":""}],"source_content_type":"text/x-python","patch_set":11,"id":"AAAAVn%2F%2Fl4s%3D","line":179,"updated":"2014-03-05 06:51:11.000000000","message":"We should probably update delete_network in the db_base_class to call detete_subnet so you don\u0027t have to do this. No worries about this though.","commit_id":"8a02e8dbeddbe483bc03450b0eb8844848aa471e"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"af47dc6cb9a7ce69054196d7be5112e69c78e49a","unresolved":false,"context_lines":[{"line_number":176,"context_line":"            super(OneConvergencePluginV2, self).delete_network(context,"},{"line_number":177,"context_line":"                                                               net_id)"},{"line_number":178,"context_line":""},{"line_number":179,"context_line":"            self.nvsdlib.delete_network(network, subnets)"},{"line_number":180,"context_line":""},{"line_number":181,"context_line":"    def create_subnet(self, context, subnet):"},{"line_number":182,"context_line":""}],"source_content_type":"text/x-python","patch_set":11,"id":"AAAAVn%2F%2Fllk%3D","line":179,"in_reply_to":"AAAAVn%2F%2Fl4s%3D","updated":"2014-03-05 07:43:59.000000000","message":"@Aaron, Agree. We need to allow plugins to handle delete_subnet.","commit_id":"8a02e8dbeddbe483bc03450b0eb8844848aa471e"},{"author":{"_account_id":4395,"name":"Aaron Rosen","email":"aaronorosen@gmail.com","username":"arosen"},"change_message_id":"225d476ae4a05f90acdd5144753b357ac6798fea","unresolved":false,"context_lines":[{"line_number":189,"context_line":""},{"line_number":190,"context_line":"        try:"},{"line_number":191,"context_line":"            self.nvsdlib.create_subnet(neutron_subnet)"},{"line_number":192,"context_line":"        except nexception.NeutronException:"},{"line_number":193,"context_line":"            with excutils.save_and_reraise_exception():"},{"line_number":194,"context_line":"                #Log the message and delete the subnet from the neutron"},{"line_number":195,"context_line":"                super(OneConvergencePluginV2,"}],"source_content_type":"text/x-python","patch_set":11,"id":"AAAAVn%2F%2Fl1I%3D","line":192,"updated":"2014-03-05 06:51:11.000000000","message":"This looks like it should be : NVSDAPIException no NeutronException","commit_id":"8a02e8dbeddbe483bc03450b0eb8844848aa471e"},{"author":{"_account_id":9722,"name":"Hemanth Ravi","email":"hemanth.ravi@oneconvergence.com","username":"hemanthravi"},"change_message_id":"3d62dca87ed376b9979da64a266412e40fa360ff","unresolved":false,"context_lines":[{"line_number":189,"context_line":""},{"line_number":190,"context_line":"        try:"},{"line_number":191,"context_line":"            self.nvsdlib.create_subnet(neutron_subnet)"},{"line_number":192,"context_line":"        except nexception.NeutronException:"},{"line_number":193,"context_line":"            with excutils.save_and_reraise_exception():"},{"line_number":194,"context_line":"                #Log the message and delete the subnet from the neutron"},{"line_number":195,"context_line":"                super(OneConvergencePluginV2,"}],"source_content_type":"text/x-python","patch_set":11,"id":"AAAAVn%2F%2Flfs%3D","line":192,"in_reply_to":"AAAAVn%2F%2Fl1I%3D","updated":"2014-03-05 07:49:57.000000000","message":"Catching the base exception and re-raising it.","commit_id":"8a02e8dbeddbe483bc03450b0eb8844848aa471e"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"1af5b3ffeb838d084d77e705f40dca35c405eec8","unresolved":false,"context_lines":[{"line_number":189,"context_line":""},{"line_number":190,"context_line":"        try:"},{"line_number":191,"context_line":"            self.nvsdlib.create_subnet(neutron_subnet)"},{"line_number":192,"context_line":"        except nexception.NeutronException:"},{"line_number":193,"context_line":"            with excutils.save_and_reraise_exception():"},{"line_number":194,"context_line":"                #Log the message and delete the subnet from the neutron"},{"line_number":195,"context_line":"                super(OneConvergencePluginV2,"}],"source_content_type":"text/x-python","patch_set":11,"id":"AAAAVn%2F%2FleI%3D","line":192,"in_reply_to":"AAAAVn%2F%2Flfs%3D","updated":"2014-03-05 07:54:58.000000000","message":"Why do you need to catch the base exception? Catching broader exceptions tend to hide errors. Keeping caught exceptions minimum is the best practice we do in neutron codebase.","commit_id":"8a02e8dbeddbe483bc03450b0eb8844848aa471e"},{"author":{"_account_id":4395,"name":"Aaron Rosen","email":"aaronorosen@gmail.com","username":"arosen"},"change_message_id":"225d476ae4a05f90acdd5144753b357ac6798fea","unresolved":false,"context_lines":[{"line_number":250,"context_line":""},{"line_number":251,"context_line":"        try:"},{"line_number":252,"context_line":"            self.nvsdlib.create_port(tenant_id, neutron_port)"},{"line_number":253,"context_line":"        except nexception.NeutronException:"},{"line_number":254,"context_line":"            with excutils.save_and_reraise_exception():"},{"line_number":255,"context_line":"                LOG.error(_(\"Deleting newly created \""},{"line_number":256,"context_line":"                          \"neutron port %s\"), port_id)"}],"source_content_type":"text/x-python","patch_set":11,"id":"AAAAVn%2F%2Fl0w%3D","line":253,"updated":"2014-03-05 06:51:11.000000000","message":"ditto: NVSDAPIException","commit_id":"8a02e8dbeddbe483bc03450b0eb8844848aa471e"},{"author":{"_account_id":9722,"name":"Hemanth Ravi","email":"hemanth.ravi@oneconvergence.com","username":"hemanthravi"},"change_message_id":"3d62dca87ed376b9979da64a266412e40fa360ff","unresolved":false,"context_lines":[{"line_number":250,"context_line":""},{"line_number":251,"context_line":"        try:"},{"line_number":252,"context_line":"            self.nvsdlib.create_port(tenant_id, neutron_port)"},{"line_number":253,"context_line":"        except nexception.NeutronException:"},{"line_number":254,"context_line":"            with excutils.save_and_reraise_exception():"},{"line_number":255,"context_line":"                LOG.error(_(\"Deleting newly created \""},{"line_number":256,"context_line":"                          \"neutron port %s\"), port_id)"}],"source_content_type":"text/x-python","patch_set":11,"id":"AAAAVn%2F%2Flfo%3D","line":253,"in_reply_to":"AAAAVn%2F%2Fl0w%3D","updated":"2014-03-05 07:49:57.000000000","message":"Catching the base exception and re-raising it.","commit_id":"8a02e8dbeddbe483bc03450b0eb8844848aa471e"}],"neutron/tests/unit/oneconvergence/__init__.py":[{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"9c9e2fbcb3526f313d0781a012faefffeb0c0882","unresolved":false,"context_lines":[{"line_number":1,"context_line":"# vim: tabstop\u003d4 shiftwidth\u003d4 softtabstop\u003d4"},{"line_number":2,"context_line":""},{"line_number":3,"context_line":"# Copyright 2014 OneConvergence, Inc. All Rights Reserved."},{"line_number":4,"context_line":"#"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAUH%2F%2BZAY%3D","line":1,"updated":"2014-01-27 12:52:24.000000000","message":"file can be empty","commit_id":"78e0b071223055b0c6392feae6dcd8ed9c8a42f4"},{"author":{"_account_id":9722,"name":"Hemanth Ravi","email":"hemanth.ravi@oneconvergence.com","username":"hemanthravi"},"change_message_id":"ea7bfa31b8dda86fadbdfdf983b08e7a0d84a42b","unresolved":false,"context_lines":[{"line_number":1,"context_line":"# vim: tabstop\u003d4 shiftwidth\u003d4 softtabstop\u003d4"},{"line_number":2,"context_line":""},{"line_number":3,"context_line":"# Copyright 2014 OneConvergence, Inc. All Rights Reserved."},{"line_number":4,"context_line":"#"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAUH%2F%2BGTA%3D","line":1,"in_reply_to":"AAAAUH%2F%2BZAY%3D","updated":"2014-02-12 15:41:34.000000000","message":"Done","commit_id":"78e0b071223055b0c6392feae6dcd8ed9c8a42f4"}],"neutron/tests/unit/oneconvergence/test_nvsd_plugin.py":[{"author":{"_account_id":2592,"name":"Mark McClain","email":"mark@mcclain.xyz","username":"markmcclain"},"change_message_id":"28ff0a08c6daa1b099799374928cd706ca6d22f5","unresolved":false,"context_lines":[{"line_number":38,"context_line":"    _plugin_name \u003d PLUGIN_NAME"},{"line_number":39,"context_line":""},{"line_number":40,"context_line":"    def setUp(self):"},{"line_number":41,"context_line":"        def mocked_oneconvergence_init(self):"},{"line_number":42,"context_line":""},{"line_number":43,"context_line":"            self.nvsdlib \u003d importutils.import_object(DUMMY_NVSD_LIB)"},{"line_number":44,"context_line":"            self.nvsdlib.set_connection()"}],"source_content_type":"text/x-python","patch_set":5,"id":"AAAAUX%2F%2FeWk%3D","line":41,"updated":"2014-02-12 23:06:05.000000000","message":"You should use create a mock vs creating a dummy class.  Using mocks will enable you to validate that parameters passed to nvsdlib are correct.","commit_id":"eac8d861c015b44832e1ec11f6e1fbccf9bebe2c"},{"author":{"_account_id":9722,"name":"Hemanth Ravi","email":"hemanth.ravi@oneconvergence.com","username":"hemanthravi"},"change_message_id":"8ec8e434ce8b2f00e4d610b2e682123f95c4d337","unresolved":false,"context_lines":[{"line_number":38,"context_line":"    _plugin_name \u003d PLUGIN_NAME"},{"line_number":39,"context_line":""},{"line_number":40,"context_line":"    def setUp(self):"},{"line_number":41,"context_line":"        def mocked_oneconvergence_init(self):"},{"line_number":42,"context_line":""},{"line_number":43,"context_line":"            self.nvsdlib \u003d importutils.import_object(DUMMY_NVSD_LIB)"},{"line_number":44,"context_line":"            self.nvsdlib.set_connection()"}],"source_content_type":"text/x-python","patch_set":5,"id":"AAAAVn%2F%2FnFk%3D","line":41,"in_reply_to":"AAAAUX%2F%2FeWk%3D","updated":"2014-03-05 05:05:52.000000000","message":"Done","commit_id":"eac8d861c015b44832e1ec11f6e1fbccf9bebe2c"},{"author":{"_account_id":2592,"name":"Mark McClain","email":"mark@mcclain.xyz","username":"markmcclain"},"change_message_id":"8a0063973be0629db20c5e5e7722d47a4d2b2ea7","unresolved":false,"context_lines":[{"line_number":39,"context_line":"    def setUp(self):"},{"line_number":40,"context_line":"        def mocked_oneconvergence_init(self):"},{"line_number":41,"context_line":""},{"line_number":42,"context_line":"            self.nvsdlib \u003d importutils.import_object(DUMMY_NVSD_LIB)"},{"line_number":43,"context_line":"            self.nvsdlib.set_connection()"},{"line_number":44,"context_line":""},{"line_number":45,"context_line":"        with mock.patch.object(nvsd_plugin.OneConvergencePluginV2,"}],"source_content_type":"text/x-python","patch_set":6,"id":"AAAAU3%2F%2F6tA%3D","line":42,"updated":"2014-02-24 03:59:07.000000000","message":"You should be using a mock instead of implementing you\u0027re own fake.","commit_id":"1ef8c0acf761561d4681f43c7260bcc561406991"},{"author":{"_account_id":9722,"name":"Hemanth Ravi","email":"hemanth.ravi@oneconvergence.com","username":"hemanthravi"},"change_message_id":"64316c6b7b16b91dba7428de01aac13a8236757c","unresolved":false,"context_lines":[{"line_number":39,"context_line":"    def setUp(self):"},{"line_number":40,"context_line":"        def mocked_oneconvergence_init(self):"},{"line_number":41,"context_line":""},{"line_number":42,"context_line":"            self.nvsdlib \u003d importutils.import_object(DUMMY_NVSD_LIB)"},{"line_number":43,"context_line":"            self.nvsdlib.set_connection()"},{"line_number":44,"context_line":""},{"line_number":45,"context_line":"        with mock.patch.object(nvsd_plugin.OneConvergencePluginV2,"}],"source_content_type":"text/x-python","patch_set":6,"id":"AAAAVn%2F%2F01g%3D","line":42,"in_reply_to":"AAAAU3%2F%2F6tA%3D","updated":"2014-03-03 22:36:25.000000000","message":"Done","commit_id":"1ef8c0acf761561d4681f43c7260bcc561406991"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"1402f37b9de35f4cea74fffe1a9e910cb28c74fa","unresolved":false,"context_lines":[{"line_number":16,"context_line":"\"\"\"Test Library for OneConvergencePlugin.\"\"\""},{"line_number":17,"context_line":""},{"line_number":18,"context_line":"import contextlib"},{"line_number":19,"context_line":"import mock"},{"line_number":20,"context_line":"import uuid"},{"line_number":21,"context_line":""},{"line_number":22,"context_line":"from oslo.config import cfg"}],"source_content_type":"text/x-python","patch_set":7,"id":"AAAAVn%2F%2F09M%3D","line":19,"updated":"2014-03-03 22:29:01.000000000","message":"mock is a thirdparty module.","commit_id":"7f18d9229aeaa60f30e128ff76df001ba198bc59"},{"author":{"_account_id":9722,"name":"Hemanth Ravi","email":"hemanth.ravi@oneconvergence.com","username":"hemanthravi"},"change_message_id":"aad3d1e2b2de3e1eb27017ded42310d6e56d5c37","unresolved":false,"context_lines":[{"line_number":16,"context_line":"\"\"\"Test Library for OneConvergencePlugin.\"\"\""},{"line_number":17,"context_line":""},{"line_number":18,"context_line":"import contextlib"},{"line_number":19,"context_line":"import mock"},{"line_number":20,"context_line":"import uuid"},{"line_number":21,"context_line":""},{"line_number":22,"context_line":"from oslo.config import cfg"}],"source_content_type":"text/x-python","patch_set":7,"id":"AAAAVn%2F%2Fvw0%3D","line":19,"in_reply_to":"AAAAVn%2F%2F09M%3D","updated":"2014-03-04 10:35:13.000000000","message":"Done","commit_id":"7f18d9229aeaa60f30e128ff76df001ba198bc59"}],"neutron/tests/unit/oneconvergence/test_nvsdlib.py":[{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"3de24381e18e5722ed6ece21d8b659e855891fda","unresolved":false,"context_lines":[{"line_number":36,"context_line":"        }"},{"line_number":37,"context_line":"        with mock.patch.object(self.nvsdlib, \u0027send_request\u0027,"},{"line_number":38,"context_line":"                               side_effect\u003dself.response.update({id: \"uuid\"})):"},{"line_number":39,"context_line":"            self.nvsdlib.create_network(network_obj)"},{"line_number":40,"context_line":""},{"line_number":41,"context_line":"    def test_update_network(self):"},{"line_number":42,"context_line":"        network \u003d {\u0027id\u0027: \u0027test-network\u0027,"}],"source_content_type":"text/x-python","patch_set":12,"id":"AAAAVn%2F%2Flgs%3D","line":39,"updated":"2014-03-05 07:56:19.000000000","message":"You need to check the expected method is called. The current code checks nothing. We should check a mocked method is called with expected arguments and a return value of a target method.\n\n For example,\n\n  with mock.patch.objec(....) as send_request\u0027\n      ret _ self.nvsdlib.create_network(...)\n  send_request.assert_called_once_with(......)\n  self.assertEqual(expected, ret)\n\nThis applies to all other tests here.\n\nIn addition, it is better to have test cases which covers exceptions.","commit_id":"1980a92a238f843d35dcfaf9921e2b8134b1ae66"},{"author":{"_account_id":9722,"name":"Hemanth Ravi","email":"hemanth.ravi@oneconvergence.com","username":"hemanthravi"},"change_message_id":"6961120e19f5c60aec9e0c53451b7bb672a7ffc6","unresolved":false,"context_lines":[{"line_number":36,"context_line":"        }"},{"line_number":37,"context_line":"        with mock.patch.object(self.nvsdlib, \u0027send_request\u0027,"},{"line_number":38,"context_line":"                               side_effect\u003dself.response.update({id: \"uuid\"})):"},{"line_number":39,"context_line":"            self.nvsdlib.create_network(network_obj)"},{"line_number":40,"context_line":""},{"line_number":41,"context_line":"    def test_update_network(self):"},{"line_number":42,"context_line":"        network \u003d {\u0027id\u0027: \u0027test-network\u0027,"}],"source_content_type":"text/x-python","patch_set":12,"id":"AAAAVn%2F%2Feb4%3D","line":39,"in_reply_to":"AAAAVn%2F%2Flgs%3D","updated":"2014-03-05 21:27:52.000000000","message":"Done","commit_id":"1980a92a238f843d35dcfaf9921e2b8134b1ae66"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"43120a435420a18e94ddbda538fa37a97ba0bff4","unresolved":false,"context_lines":[{"line_number":47,"context_line":"            \"name\": \u0027test-net\u0027,"},{"line_number":48,"context_line":"            \"tenant_id\": TEST_TENANT,"},{"line_number":49,"context_line":"            \"shared\": False,"},{"line_number":50,"context_line":"            \"admin_state_up\": \"UP\","},{"line_number":51,"context_line":"            \"router:external\": False"},{"line_number":52,"context_line":"        }"},{"line_number":53,"context_line":"        resp \u003d mock.Mock()"}],"source_content_type":"text/x-python","patch_set":13,"id":"AAAAVn%2F%2FYxs%3D","line":50,"updated":"2014-03-06 13:02:59.000000000","message":"I wonder admin_state_up is a boolean.","commit_id":"74189228a8f0fdb9384c24e7ea35f75cf2715c41"},{"author":{"_account_id":9722,"name":"Hemanth Ravi","email":"hemanth.ravi@oneconvergence.com","username":"hemanthravi"},"change_message_id":"eda1f7b0d56d9d6c752505718a87142faadd4545","unresolved":false,"context_lines":[{"line_number":47,"context_line":"            \"name\": \u0027test-net\u0027,"},{"line_number":48,"context_line":"            \"tenant_id\": TEST_TENANT,"},{"line_number":49,"context_line":"            \"shared\": False,"},{"line_number":50,"context_line":"            \"admin_state_up\": \"UP\","},{"line_number":51,"context_line":"            \"router:external\": False"},{"line_number":52,"context_line":"        }"},{"line_number":53,"context_line":"        resp \u003d mock.Mock()"}],"source_content_type":"text/x-python","patch_set":13,"id":"AAAAVn%2F%2FXW8%3D","line":50,"in_reply_to":"AAAAVn%2F%2FYxs%3D","updated":"2014-03-06 15:56:15.000000000","message":"Done","commit_id":"74189228a8f0fdb9384c24e7ea35f75cf2715c41"}],"neutron/tests/unit/oneconvergence/test_plugin_helper.py":[{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"3de24381e18e5722ed6ece21d8b659e855891fda","unresolved":false,"context_lines":[{"line_number":13,"context_line":"#    under the License."},{"line_number":14,"context_line":"#"},{"line_number":15,"context_line":"# @author: Kedar Kulkarni, One Convergence, Inc."},{"line_number":16,"context_line":"import json"},{"line_number":17,"context_line":"import mock"},{"line_number":18,"context_line":"import requests"},{"line_number":19,"context_line":""}],"source_content_type":"text/x-python","patch_set":12,"id":"AAAAVn%2F%2FlfE%3D","line":16,"updated":"2014-03-05 07:56:19.000000000","message":"json is a standard module. Need a blank line after here.","commit_id":"1980a92a238f843d35dcfaf9921e2b8134b1ae66"},{"author":{"_account_id":9722,"name":"Hemanth Ravi","email":"hemanth.ravi@oneconvergence.com","username":"hemanthravi"},"change_message_id":"6961120e19f5c60aec9e0c53451b7bb672a7ffc6","unresolved":false,"context_lines":[{"line_number":13,"context_line":"#    under the License."},{"line_number":14,"context_line":"#"},{"line_number":15,"context_line":"# @author: Kedar Kulkarni, One Convergence, Inc."},{"line_number":16,"context_line":"import json"},{"line_number":17,"context_line":"import mock"},{"line_number":18,"context_line":"import requests"},{"line_number":19,"context_line":""}],"source_content_type":"text/x-python","patch_set":12,"id":"AAAAVn%2F%2Febw%3D","line":16,"in_reply_to":"AAAAVn%2F%2FlfE%3D","updated":"2014-03-05 21:27:52.000000000","message":"Done","commit_id":"1980a92a238f843d35dcfaf9921e2b8134b1ae66"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"3de24381e18e5722ed6ece21d8b659e855891fda","unresolved":false,"context_lines":[{"line_number":33,"context_line":"        response.content \u003d json.dumps({\u0027session_uuid\u0027: \u0027new_auth_token\u0027})"},{"line_number":34,"context_line":"        return response"},{"line_number":35,"context_line":""},{"line_number":36,"context_line":"    def test_login(self):"},{"line_number":37,"context_line":"        with mock.patch.object(self.nvsdcontroller, \u0027do_request\u0027,"},{"line_number":38,"context_line":"                               side_effect\u003dself.get_response):"},{"line_number":39,"context_line":"            self.nvsdcontroller.login()"}],"source_content_type":"text/x-python","patch_set":12,"id":"AAAAVn%2F%2Fle0%3D","line":36,"updated":"2014-03-05 07:56:19.000000000","message":"Same as comments in test_nvsdlib.","commit_id":"1980a92a238f843d35dcfaf9921e2b8134b1ae66"},{"author":{"_account_id":9722,"name":"Hemanth Ravi","email":"hemanth.ravi@oneconvergence.com","username":"hemanthravi"},"change_message_id":"6961120e19f5c60aec9e0c53451b7bb672a7ffc6","unresolved":false,"context_lines":[{"line_number":33,"context_line":"        response.content \u003d json.dumps({\u0027session_uuid\u0027: \u0027new_auth_token\u0027})"},{"line_number":34,"context_line":"        return response"},{"line_number":35,"context_line":""},{"line_number":36,"context_line":"    def test_login(self):"},{"line_number":37,"context_line":"        with mock.patch.object(self.nvsdcontroller, \u0027do_request\u0027,"},{"line_number":38,"context_line":"                               side_effect\u003dself.get_response):"},{"line_number":39,"context_line":"            self.nvsdcontroller.login()"}],"source_content_type":"text/x-python","patch_set":12,"id":"AAAAVn%2F%2Febo%3D","line":36,"in_reply_to":"AAAAVn%2F%2Fle0%3D","updated":"2014-03-05 21:27:52.000000000","message":"Done","commit_id":"1980a92a238f843d35dcfaf9921e2b8134b1ae66"}]}
