)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":26507,"name":"Michel Peterson","email":"michel@redhat.com","username":"mpeterson"},"change_message_id":"19c65ab3538e957f1f597354b6a8f3dfac77d48b","unresolved":false,"context_lines":[{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Ceilometer meters for ODL should use project id of admin"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"OpenDayliht v2 driver should set project_id as the uuid of the"},{"line_number":10,"context_line":"tenant owning the port for port meters and admin tenant id for switch,"},{"line_number":11,"context_line":"switch.port and table meters. The admin tenant id should be fetched from"},{"line_number":12,"context_line":"keystone."}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"5f7c97a3_b52420c5","line":9,"range":{"start_line":9,"start_character":8,"end_line":9,"end_character":11},"updated":"2018-07-22 07:11:02.000000000","message":"nit","commit_id":"366c39149e68a81e056a49abb0e383a3d2148993"},{"author":{"_account_id":25171,"name":"Deepthi V V","email":"deepthi.v.v@ericsson.com","username":"deepthivv88"},"change_message_id":"2cffe5f98ae999fc2b7440fb4c5d1ae8154d655b","unresolved":false,"context_lines":[{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Ceilometer meters for ODL should use project id of admin"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"OpenDayliht v2 driver should set project_id as the uuid of the"},{"line_number":10,"context_line":"tenant owning the port for port meters and admin tenant id for switch,"},{"line_number":11,"context_line":"switch.port and table meters. The admin tenant id should be fetched from"},{"line_number":12,"context_line":"keystone."}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"5f7c97a3_f2b90616","line":9,"range":{"start_line":9,"start_character":8,"end_line":9,"end_character":11},"in_reply_to":"5f7c97a3_b52420c5","updated":"2018-07-25 06:30:44.000000000","message":"Done","commit_id":"366c39149e68a81e056a49abb0e383a3d2148993"}],"networking_odl/ceilometer/network/statistics/opendaylight_v2/driver.py":[{"author":{"_account_id":26507,"name":"Michel Peterson","email":"michel@redhat.com","username":"mpeterson"},"change_message_id":"19c65ab3538e957f1f597354b6a8f3dfac77d48b","unresolved":false,"context_lines":[{"line_number":114,"context_line":"            odl_params[\u0027password\u0027] \u003d params[\u0027password\u0027][0]"},{"line_number":115,"context_line":"        cs \u003d client.Client(self.conf, endpoint, odl_params)"},{"line_number":116,"context_line":""},{"line_number":117,"context_line":"        try:"},{"line_number":118,"context_line":"            ks_client \u003d keystone_client.get_client(self.conf)"},{"line_number":119,"context_line":"            project \u003d ks_client.projects.find(name\u003d\u0027admin\u0027)"},{"line_number":120,"context_line":"            if project:"}],"source_content_type":"text/x-python","patch_set":1,"id":"5f7c97a3_9527a4c9","line":117,"updated":"2018-07-22 07:11:02.000000000","message":"This is a bit too big a try/except for my liking. Put the minimum amount of code inside it.","commit_id":"366c39149e68a81e056a49abb0e383a3d2148993"},{"author":{"_account_id":26507,"name":"Michel Peterson","email":"michel@redhat.com","username":"mpeterson"},"change_message_id":"735127588f84251845adfe54ffb0809650eddee7","unresolved":false,"context_lines":[{"line_number":114,"context_line":"            odl_params[\u0027password\u0027] \u003d params[\u0027password\u0027][0]"},{"line_number":115,"context_line":"        cs \u003d client.Client(self.conf, endpoint, odl_params)"},{"line_number":116,"context_line":""},{"line_number":117,"context_line":"        try:"},{"line_number":118,"context_line":"            ks_client \u003d keystone_client.get_client(self.conf)"},{"line_number":119,"context_line":"            project \u003d ks_client.projects.find(name\u003d\u0027admin\u0027)"},{"line_number":120,"context_line":"            if project:"}],"source_content_type":"text/x-python","patch_set":1,"id":"5f7c97a3_a1f5c753","line":117,"in_reply_to":"5f7c97a3_12b5a219","updated":"2018-08-02 10:54:28.000000000","message":"I don\u0027t see how this situation was improved, the try/except block is still 10 lines long. Usually this can be reduced to 1 line of code, unless it actually makes sense to be that big. If there is a good justification for it then I\u0027m ok, but please explain.","commit_id":"366c39149e68a81e056a49abb0e383a3d2148993"},{"author":{"_account_id":25171,"name":"Deepthi V V","email":"deepthi.v.v@ericsson.com","username":"deepthivv88"},"change_message_id":"2cffe5f98ae999fc2b7440fb4c5d1ae8154d655b","unresolved":false,"context_lines":[{"line_number":114,"context_line":"            odl_params[\u0027password\u0027] \u003d params[\u0027password\u0027][0]"},{"line_number":115,"context_line":"        cs \u003d client.Client(self.conf, endpoint, odl_params)"},{"line_number":116,"context_line":""},{"line_number":117,"context_line":"        try:"},{"line_number":118,"context_line":"            ks_client \u003d keystone_client.get_client(self.conf)"},{"line_number":119,"context_line":"            project \u003d ks_client.projects.find(name\u003d\u0027admin\u0027)"},{"line_number":120,"context_line":"            if project:"}],"source_content_type":"text/x-python","patch_set":1,"id":"5f7c97a3_12b5a219","line":117,"in_reply_to":"5f7c97a3_9527a4c9","updated":"2018-07-25 06:30:44.000000000","message":"Done","commit_id":"366c39149e68a81e056a49abb0e383a3d2148993"},{"author":{"_account_id":25171,"name":"Deepthi V V","email":"deepthi.v.v@ericsson.com","username":"deepthivv88"},"change_message_id":"06b6bc920c14ef39a27cb049d8f6b883789164af","unresolved":false,"context_lines":[{"line_number":114,"context_line":"            odl_params[\u0027password\u0027] \u003d params[\u0027password\u0027][0]"},{"line_number":115,"context_line":"        cs \u003d client.Client(self.conf, endpoint, odl_params)"},{"line_number":116,"context_line":""},{"line_number":117,"context_line":"        try:"},{"line_number":118,"context_line":"            ks_client \u003d keystone_client.get_client(self.conf)"},{"line_number":119,"context_line":"            project \u003d ks_client.projects.find(name\u003d\u0027admin\u0027)"},{"line_number":120,"context_line":"            if project:"}],"source_content_type":"text/x-python","patch_set":1,"id":"3f79a3b5_fb17d1ec","line":117,"in_reply_to":"5f7c97a3_a1f5c753","updated":"2018-08-06 09:43:53.000000000","message":"The meters supported by ODL driver for ceilometer requires admin tenant id. We cannot provide samples to ceilometer without proper owenrship/project_id assigned to them. I have separated out the calls to keystone [to fetch admin tenant id] and to ODL [to fetch the samples] into different try catch blocks so as to provide accurate information on failure.\n\nPlease refer to latest patchset.\nI didn\u0027t quite get how we can reduce it to 1 line of code.","commit_id":"366c39149e68a81e056a49abb0e383a3d2148993"},{"author":{"_account_id":17120,"name":"Manjeet Singh Bhatia","email":"manjeet.s.bhatia@intel.com","username":"manjeets"},"change_message_id":"3e31190042dc4cba9f45838e3ee150644516683d","unresolved":false,"context_lines":[{"line_number":130,"context_line":"            else:"},{"line_number":131,"context_line":"                LOG.error(\u0027Admin tenant information unavailable.\u0027)"},{"line_number":132,"context_line":"        except client.OpenDaylightRESTAPIFailed:"},{"line_number":133,"context_line":"            LOG.exception(\u0027Exception from ODL: \u0027)"},{"line_number":134,"context_line":"        except Exception:"},{"line_number":135,"context_line":"            LOG.exception(\u0027Request failed in ceilometer ODL driver\u0027)"},{"line_number":136,"context_line":""}],"source_content_type":"text/x-python","patch_set":3,"id":"5f7c97a3_3f0c19ea","line":133,"range":{"start_line":133,"start_character":27,"end_line":133,"end_character":47},"updated":"2018-07-25 15:47:54.000000000","message":"make message more explanatory,\n1. \u0027OpenDaylight Rest api returns exception\u0027\n\nor \n\n2. \u0027OpenDaylight Neutron NB Rest api is not reachable\u0027","commit_id":"b3b0aab0853e67d4638d94b5950a92f6e0ae1846"}],"networking_odl/tests/unit/ceilometer/network/statistics/opendaylight_v2/test_driver.py":[{"author":{"_account_id":26507,"name":"Michel Peterson","email":"michel@redhat.com","username":"mpeterson"},"change_message_id":"19c65ab3538e957f1f597354b6a8f3dfac77d48b","unresolved":false,"context_lines":[{"line_number":54,"context_line":"        self.driver \u003d driver.OpenDaylightDriver(conf)"},{"line_number":55,"context_line":"        ks_client \u003d mock.Mock(auth_token\u003d\u0027fake_token\u0027)"},{"line_number":56,"context_line":"        ks_client.projects.find.return_value \u003d mock.Mock(name\u003d\u0027admin\u0027, id\u003dADMIN_ID)"},{"line_number":57,"context_line":"        self.useFixture(fixtures.MockPatch("},{"line_number":58,"context_line":"            \u0027ceilometer.keystone_client.get_client\u0027,"},{"line_number":59,"context_line":"            return_value\u003dks_client))"},{"line_number":60,"context_line":"        self.ks_client \u003d ks_client"}],"source_content_type":"text/x-python","patch_set":1,"id":"5f7c97a3_582141a1","line":57,"updated":"2018-07-22 07:11:02.000000000","message":"Why use the fixture instead of mock.patch or mock.patch.object?","commit_id":"366c39149e68a81e056a49abb0e383a3d2148993"},{"author":{"_account_id":25171,"name":"Deepthi V V","email":"deepthi.v.v@ericsson.com","username":"deepthivv88"},"change_message_id":"2cffe5f98ae999fc2b7440fb4c5d1ae8154d655b","unresolved":false,"context_lines":[{"line_number":54,"context_line":"        self.driver \u003d driver.OpenDaylightDriver(conf)"},{"line_number":55,"context_line":"        ks_client \u003d mock.Mock(auth_token\u003d\u0027fake_token\u0027)"},{"line_number":56,"context_line":"        ks_client.projects.find.return_value \u003d mock.Mock(name\u003d\u0027admin\u0027, id\u003dADMIN_ID)"},{"line_number":57,"context_line":"        self.useFixture(fixtures.MockPatch("},{"line_number":58,"context_line":"            \u0027ceilometer.keystone_client.get_client\u0027,"},{"line_number":59,"context_line":"            return_value\u003dks_client))"},{"line_number":60,"context_line":"        self.ks_client \u003d ks_client"}],"source_content_type":"text/x-python","patch_set":1,"id":"5f7c97a3_d2340aae","line":57,"in_reply_to":"5f7c97a3_582141a1","updated":"2018-07-25 06:30:44.000000000","message":"Done","commit_id":"366c39149e68a81e056a49abb0e383a3d2148993"}]}
