)]}'
{"nova_powervm/tests/virt/powervm/test_vm.py":[{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"6bd0b10fc98bcc01f85d412e766e3c8e336ed143","unresolved":false,"context_lines":[{"line_number":373,"context_line":"        self.apt.reset_mock()"},{"line_number":374,"context_line":"        mock_vterm.reset_mock()"},{"line_number":375,"context_line":"        resp.reset_mock()"},{"line_number":376,"context_line":"        self.apt.delete.side_effect \u003d None"},{"line_number":377,"context_line":""},{"line_number":378,"context_line":"        resp.status \u003d 404"},{"line_number":379,"context_line":"        self.apt.delete.side_effect \u003d pvm_exc.HttpError(resp\u003dresp)"}],"source_content_type":"text/x-python","patch_set":2,"id":"9a30ddce_53184c75","line":376,"updated":"2017-03-10 17:06:22.000000000","message":"Redundant","commit_id":"df5e0f30a1af1318236ab6b9edf6433e045d7c2a"},{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"6bd0b10fc98bcc01f85d412e766e3c8e336ed143","unresolved":false,"context_lines":[{"line_number":385,"context_line":"        self.apt.reset_mock()"},{"line_number":386,"context_line":"        mock_vterm.reset_mock()"},{"line_number":387,"context_line":"        resp.reset_mock()"},{"line_number":388,"context_line":"        self.apt.delete.side_effect \u003d None"},{"line_number":389,"context_line":""},{"line_number":390,"context_line":"        resp.status \u003d 111"},{"line_number":391,"context_line":"        self.apt.delete.side_effect \u003d pvm_exc.HttpError(resp\u003dresp)"}],"source_content_type":"text/x-python","patch_set":2,"id":"9a30ddce_13125457","line":388,"updated":"2017-03-10 17:06:22.000000000","message":"Redundant","commit_id":"df5e0f30a1af1318236ab6b9edf6433e045d7c2a"},{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"6bd0b10fc98bcc01f85d412e766e3c8e336ed143","unresolved":false,"context_lines":[{"line_number":392,"context_line":"        self.assertRaises(pvm_exc.HttpError, vm.dlt_lpar, self.apt, \u002711111\u0027)"},{"line_number":393,"context_line":"        self.assertEqual(1, mock_vterm.call_count)"},{"line_number":394,"context_line":"        self.assertEqual(1, self.apt.delete.call_count)"},{"line_number":395,"context_line":""},{"line_number":396,"context_line":"    @mock.patch(\u0027nova_powervm.virt.powervm.vm.VMBuilder._add_IBMi_attrs\u0027)"},{"line_number":397,"context_line":"    @mock.patch(\u0027pypowervm.utils.lpar_builder.DefaultStandardize\u0027)"},{"line_number":398,"context_line":"    @mock.patch(\u0027pypowervm.utils.lpar_builder.LPARBuilder.build\u0027)"}],"source_content_type":"text/x-python","patch_set":2,"id":"9a30ddce_334bd85a","line":395,"updated":"2017-03-10 17:06:22.000000000","message":"Should have a test (or two) where mock_vterm is the thing that raises.","commit_id":"df5e0f30a1af1318236ab6b9edf6433e045d7c2a"}],"nova_powervm/virt/powervm/driver.py":[{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"6bd0b10fc98bcc01f85d412e766e3c8e336ed143","unresolved":false,"context_lines":[{"line_number":673,"context_line":"        try:"},{"line_number":674,"context_line":"            pvm_inst_uuid \u003d vm.get_pvm_uuid(instance)"},{"line_number":675,"context_line":"            _setup_flow_and_run()"},{"line_number":676,"context_line":"        except exception.InstanceNotFound:"},{"line_number":677,"context_line":"            LOG.warning(_LW(\u0027VM was not found during destroy operation.\u0027),"},{"line_number":678,"context_line":"                        instance\u003dinstance)"},{"line_number":679,"context_line":"            return"},{"line_number":680,"context_line":"        except Exception as e:"},{"line_number":681,"context_line":"                LOG.exception(e)"},{"line_number":682,"context_line":"                # Convert to a Nova exception"}],"source_content_type":"text/x-python","patch_set":2,"id":"9a30ddce_b3a42808","line":679,"range":{"start_line":676,"start_character":0,"end_line":679,"end_character":18},"updated":"2017-03-10 17:06:22.000000000","message":"Almost wonder whether dlt_lpar should raise InstanceNotFound in the 404 case.  Thoughts thorst?","commit_id":"df5e0f30a1af1318236ab6b9edf6433e045d7c2a"}],"nova_powervm/virt/powervm/vm.py":[{"author":{"_account_id":8190,"name":"Drew Thorstensen (thorst)","email":"thorst@us.ibm.com","username":"thorst"},"change_message_id":"871c6cd70183a7b12c33cef15fcf41d6098a9333","unresolved":false,"context_lines":[{"line_number":627,"context_line":"    return _rename(entry)"},{"line_number":628,"context_line":""},{"line_number":629,"context_line":""},{"line_number":630,"context_line":"def dlt_lpar(adapter, lpar_uuid):"},{"line_number":631,"context_line":"    \"\"\"Delete an LPAR"},{"line_number":632,"context_line":""},{"line_number":633,"context_line":"    :param adapter: The adapter for the pypowervm API"}],"source_content_type":"text/x-python","patch_set":1,"id":"9a30ddce_932d69aa","line":630,"range":{"start_line":630,"start_character":0,"end_line":630,"end_character":33},"updated":"2017-03-10 15:51:22.000000000","message":"2 cents...since we have warning and info messages..it\u0027d sure be nice to pass in the instance here.  Debugging is so much easier when all of them have the instance\u003dinstance thing.","commit_id":"70a9bacf0043d152036458f474f8c71a3cc1da3e"},{"author":{"_account_id":8190,"name":"Drew Thorstensen (thorst)","email":"thorst@us.ibm.com","username":"thorst"},"change_message_id":"871c6cd70183a7b12c33cef15fcf41d6098a9333","unresolved":false,"context_lines":[{"line_number":633,"context_line":"    :param adapter: The adapter for the pypowervm API"},{"line_number":634,"context_line":"    :param lpar_uuid: The lpar to delete"},{"line_number":635,"context_line":"    \"\"\""},{"line_number":636,"context_line":"    # Ensure any vterms are closed.  Will no-op otherwise."},{"line_number":637,"context_line":"    try:"},{"line_number":638,"context_line":"        vterm.close_vterm(adapter, lpar_uuid)"},{"line_number":639,"context_line":"    except pvm_exc.HttpError as e:"},{"line_number":640,"context_line":"        if e.response and e.response.status \u003d\u003d 404:"},{"line_number":641,"context_line":"            LOG.warning(_LW(\u0027Received 404 response status closing vterm for\u0027"},{"line_number":642,"context_line":"                        \u0027LPARID: %s\u0027), lpar_uuid)"},{"line_number":643,"context_line":"        else:"},{"line_number":644,"context_line":"            LOG.error(_LE(\u0027Error closing vterm for LPARID: %s\u0027), lpar_uuid)"},{"line_number":645,"context_line":"            raise"},{"line_number":646,"context_line":""},{"line_number":647,"context_line":"    # Attempt to delete the VM."},{"line_number":648,"context_line":"    try:"}],"source_content_type":"text/x-python","patch_set":1,"id":"9a30ddce_f33785fc","line":645,"range":{"start_line":636,"start_character":0,"end_line":645,"end_character":17},"updated":"2017-03-10 15:51:22.000000000","message":"As we discussed in IRC...\n\nChecking the 404 seems fair.  But I think that this should be a singular try/except block that includes the delete of the lpar itself.","commit_id":"70a9bacf0043d152036458f474f8c71a3cc1da3e"}]}
