)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":10207,"name":"Manas Mandlekar","email":"manas.mandlekar@in.ibm.com","username":"manasmandlekar"},"change_message_id":"35fae59dde218c3836549d1e426060a5ba903a1d","unresolved":false,"context_lines":[{"line_number":4,"context_line":"Commit:     Tyler Blakeslee \u003ctblakes@us.ibm.com\u003e"},{"line_number":5,"context_line":"CommitDate: 2016-08-03 17:37:07 -0500"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"WIP"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Change-Id: I56bae7e545f56d1fdf455309d11f24b61b0a9a1c"},{"line_number":10,"context_line":"Closes-Bug: #1596797"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":3,"id":"bacf61ea_d88abd63","line":7,"updated":"2016-08-04 12:49:07.000000000","message":"Please add more info on what the fix is doing.","commit_id":"4c1267598d376f1f78bdbbf9048a2de447b97f80"},{"author":{"_account_id":8190,"name":"Drew Thorstensen (thorst)","email":"thorst@us.ibm.com","username":"thorst"},"change_message_id":"4fc7cb07dde135fa0426575f1584f6c1642d86f8","unresolved":false,"context_lines":[{"line_number":4,"context_line":"Commit:     Tyler Blakeslee \u003ctblakes@us.ibm.com\u003e"},{"line_number":5,"context_line":"CommitDate: 2016-08-04 07:43:07 -0500"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"WIP"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Change-Id: I56bae7e545f56d1fdf455309d11f24b61b0a9a1c"},{"line_number":10,"context_line":"Closes-Bug: #1596797"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":4,"id":"bacf61ea_786ab1ee","line":7,"range":{"start_line":7,"start_character":0,"end_line":7,"end_character":3},"updated":"2016-08-04 13:00:48.000000000","message":"Others have said it, but yeah, you need a proper git commit message.\n\nThat means a title (like 50 characters) then a block of text indicating what the fix is and why.\n\nGuidelines on this are documented here:  https://wiki.openstack.org/wiki/GitCommitMessages","commit_id":"768d16b46bc976d931b2391f7c05fcd456b18533"},{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"69b908e8dbb3a191bc6fbb4af9943b7fab28369d","unresolved":false,"context_lines":[{"line_number":11,"context_line":"was handled elsewhere on a failed build. On rebuilds however,"},{"line_number":12,"context_line":"this cleanup code was not being run because new builds and"},{"line_number":13,"context_line":"rebuilds follow different flows. This was causing future"},{"line_number":14,"context_line":"rebuilds to fails, because it appeared that the LPAR was already"},{"line_number":15,"context_line":"on the destination host. The added revert method checks to"},{"line_number":16,"context_line":"confirm that the failed build was a rebuild, and if it was,"},{"line_number":17,"context_line":"it removes deletes the LPAR off the destination host."}],"source_content_type":"text/x-gerrit-commit-message","patch_set":8,"id":"9ad45d7e_b471f2e2","line":14,"range":{"start_line":14,"start_character":12,"end_line":14,"end_character":17},"updated":"2016-08-09 20:10:48.000000000","message":"fail","commit_id":"b230a2be3250c8ec9a4a379fe1c593ac4305700b"},{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"69b908e8dbb3a191bc6fbb4af9943b7fab28369d","unresolved":false,"context_lines":[{"line_number":14,"context_line":"rebuilds to fails, because it appeared that the LPAR was already"},{"line_number":15,"context_line":"on the destination host. The added revert method checks to"},{"line_number":16,"context_line":"confirm that the failed build was a rebuild, and if it was,"},{"line_number":17,"context_line":"it removes deletes the LPAR off the destination host."},{"line_number":18,"context_line":""},{"line_number":19,"context_line":"Change-Id: I56bae7e545f56d1fdf455309d11f24b61b0a9a1c"},{"line_number":20,"context_line":"Closes-Bug: #1596797"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":8,"id":"9ad45d7e_347ea2ae","line":17,"range":{"start_line":17,"start_character":3,"end_line":17,"end_character":18},"updated":"2016-08-09 20:10:48.000000000","message":"one or the other.","commit_id":"b230a2be3250c8ec9a4a379fe1c593ac4305700b"}],"nova_powervm/tests/virt/powervm/tasks/test_vm.py":[{"author":{"_account_id":8190,"name":"Drew Thorstensen (thorst)","email":"thorst@us.ibm.com","username":"thorst"},"change_message_id":"4fc7cb07dde135fa0426575f1584f6c1642d86f8","unresolved":false,"context_lines":[{"line_number":52,"context_line":"        crt \u003d tf_vm.Create(self.apt, \u0027host_wrapper\u0027, self.instance,"},{"line_number":53,"context_line":"                           \u0027flavor\u0027, \u0027stg_ftsk\u0027, nvram_mgr\u003dnvram_mgr)"},{"line_number":54,"context_line":"        crt.instance.task_state \u003d \u0027not_rebuild_spawning\u0027"},{"line_number":55,"context_line":"        crt.revert(None, None)"},{"line_number":56,"context_line":"        mock_vm_dlt.assert_not_called()"},{"line_number":57,"context_line":"        crt.instance.task_state \u003d \u0027rebuild_spawning\u0027"},{"line_number":58,"context_line":"        crt.revert(None, None)"}],"source_content_type":"text/x-python","patch_set":4,"id":"bacf61ea_7b546bfd","line":55,"range":{"start_line":55,"start_character":0,"end_line":55,"end_character":30},"updated":"2016-08-04 13:00:48.000000000","message":"I think you should instead call the execute, raise an exception and then make sure that your dlt_lpar was called.\n\nThat shows that raising an exception will properly flow into your revert.","commit_id":"768d16b46bc976d931b2391f7c05fcd456b18533"},{"author":{"_account_id":13557,"name":"Matt Rabe","email":"mdrabe@us.ibm.com","username":"mdrabe"},"change_message_id":"9e8e68f555130df759c0b67ff82b279b1b65dc39","unresolved":false,"context_lines":[{"line_number":57,"context_line":"        mock_crt_lpar.side_effect \u003d Exception()"},{"line_number":58,"context_line":"        crt \u003d tf_vm.Create(self.apt, \u0027host_wrapper\u0027, self.instance,"},{"line_number":59,"context_line":"                           \u0027flavor\u0027, \u0027stg_ftsk\u0027, None)"},{"line_number":60,"context_line":""},{"line_number":61,"context_line":"        crt.instance.task_state \u003d \u0027not_rebuild_spawning\u0027"},{"line_number":62,"context_line":"        flow_test \u003d tf_lf.Flow(\"test_revert\")"},{"line_number":63,"context_line":"        flow_test.add(crt)"}],"source_content_type":"text/x-python","patch_set":5,"id":"bacf61ea_1fe55437","line":60,"updated":"2016-08-04 15:03:57.000000000","message":"When we run multiple invocations and assertions in the same test case it\u0027s helpful to add a brief comment explaining what this invocation is testing. Would be nice here to have a short 1 line comment explaining what this invocation is testing.","commit_id":"7433863b808abd873cecb288c97ac34e5d3836ff"},{"author":{"_account_id":13557,"name":"Matt Rabe","email":"mdrabe@us.ibm.com","username":"mdrabe"},"change_message_id":"9e8e68f555130df759c0b67ff82b279b1b65dc39","unresolved":false,"context_lines":[{"line_number":61,"context_line":"        crt.instance.task_state \u003d \u0027not_rebuild_spawning\u0027"},{"line_number":62,"context_line":"        flow_test \u003d tf_lf.Flow(\"test_revert\")"},{"line_number":63,"context_line":"        flow_test.add(crt)"},{"line_number":64,"context_line":"        try:"},{"line_number":65,"context_line":"            tf_eng.run(flow_test)"},{"line_number":66,"context_line":"        except Exception:"},{"line_number":67,"context_line":"            pass"},{"line_number":68,"context_line":"        mock_vm_dlt.assert_not_called()"},{"line_number":69,"context_line":""},{"line_number":70,"context_line":"        crt.instance.task_state \u003d \u0027rebuild_spawning\u0027"}],"source_content_type":"text/x-python","patch_set":5,"id":"bacf61ea_7fa7300b","line":67,"range":{"start_line":64,"start_character":8,"end_line":67,"end_character":16},"updated":"2016-08-04 15:03:57.000000000","message":"Let\u0027s use self.assertRaises here instead, it\u0027s a little bit more powerful with the added assertion. Unless the exception isn\u0027t bubbled back up through the TF engine, then the try except isn\u0027t needed and the mock_vm_dlt.assert_not_called() is enough.","commit_id":"7433863b808abd873cecb288c97ac34e5d3836ff"},{"author":{"_account_id":13557,"name":"Matt Rabe","email":"mdrabe@us.ibm.com","username":"mdrabe"},"change_message_id":"9e8e68f555130df759c0b67ff82b279b1b65dc39","unresolved":false,"context_lines":[{"line_number":66,"context_line":"        except Exception:"},{"line_number":67,"context_line":"            pass"},{"line_number":68,"context_line":"        mock_vm_dlt.assert_not_called()"},{"line_number":69,"context_line":""},{"line_number":70,"context_line":"        crt.instance.task_state \u003d \u0027rebuild_spawning\u0027"},{"line_number":71,"context_line":"        flow_test \u003d tf_lf.Flow(\"test_revert\")"},{"line_number":72,"context_line":"        flow_test.add(crt)"}],"source_content_type":"text/x-python","patch_set":5,"id":"bacf61ea_3f32d8a7","line":69,"updated":"2016-08-04 15:03:57.000000000","message":"Ditto here about the comment for this invocation.","commit_id":"7433863b808abd873cecb288c97ac34e5d3836ff"},{"author":{"_account_id":13557,"name":"Matt Rabe","email":"mdrabe@us.ibm.com","username":"mdrabe"},"change_message_id":"9e8e68f555130df759c0b67ff82b279b1b65dc39","unresolved":false,"context_lines":[{"line_number":70,"context_line":"        crt.instance.task_state \u003d \u0027rebuild_spawning\u0027"},{"line_number":71,"context_line":"        flow_test \u003d tf_lf.Flow(\"test_revert\")"},{"line_number":72,"context_line":"        flow_test.add(crt)"},{"line_number":73,"context_line":"        try:"},{"line_number":74,"context_line":"            tf_eng.run(flow_test)"},{"line_number":75,"context_line":"        except Exception:"},{"line_number":76,"context_line":"            pass"},{"line_number":77,"context_line":"        mock_vm_dlt.assert_called()"},{"line_number":78,"context_line":""},{"line_number":79,"context_line":"    @mock.patch(\u0027nova_powervm.virt.powervm.vm.update\u0027)"}],"source_content_type":"text/x-python","patch_set":5,"id":"bacf61ea_3fe3f8da","line":76,"range":{"start_line":73,"start_character":8,"end_line":76,"end_character":16},"updated":"2016-08-04 15:03:57.000000000","message":"Ditto here with the self.assertRaises","commit_id":"7433863b808abd873cecb288c97ac34e5d3836ff"}],"nova_powervm/virt/powervm/tasks/vm.py":[{"author":{"_account_id":10207,"name":"Manas Mandlekar","email":"manas.mandlekar@in.ibm.com","username":"manasmandlekar"},"change_message_id":"35fae59dde218c3836549d1e426060a5ba903a1d","unresolved":false,"context_lines":[{"line_number":101,"context_line":""},{"line_number":102,"context_line":"    def revert_impl(self, result, flow_failures, **kwargs):"},{"line_number":103,"context_line":"        if self.instance.task_state \u003d\u003d \u0027rebuild_spawning\u0027:"},{"line_number":104,"context_line":"            LOG.error(_LE(\u0027Rebuild of instance % s failed. \u0027"},{"line_number":105,"context_line":"                      \u0027Deleting instance from destination.\u0027),"},{"line_number":106,"context_line":"                      self.instance.name)"},{"line_number":107,"context_line":"            vm.dlt_lpar(self.adapter, vm.get_pvm_uuid(self.instance))"}],"source_content_type":"text/x-python","patch_set":3,"id":"bacf61ea_d8e11d2c","line":104,"updated":"2016-08-04 12:49:07.000000000","message":"This should probably info as the error has happened somewhere else and should have been logged there.","commit_id":"4c1267598d376f1f78bdbbf9048a2de447b97f80"},{"author":{"_account_id":8190,"name":"Drew Thorstensen (thorst)","email":"thorst@us.ibm.com","username":"thorst"},"change_message_id":"4fc7cb07dde135fa0426575f1584f6c1642d86f8","unresolved":false,"context_lines":[{"line_number":99,"context_line":"                                             lpars_exist\u003dTrue)"},{"line_number":100,"context_line":"        return wrap"},{"line_number":101,"context_line":""},{"line_number":102,"context_line":"    def revert_impl(self, result, flow_failures, **kwargs):"},{"line_number":103,"context_line":"        if self.instance.task_state \u003d\u003d \u0027rebuild_spawning\u0027:"},{"line_number":104,"context_line":"            LOG.info(_LE(\u0027Rebuild of instance % s failed. \u0027"},{"line_number":105,"context_line":"                      \u0027Deleting instance from destination.\u0027),"},{"line_number":106,"context_line":"                      self.instance.name)"},{"line_number":107,"context_line":"            vm.dlt_lpar(self.adapter, vm.get_pvm_uuid(self.instance))"},{"line_number":108,"context_line":""},{"line_number":109,"context_line":""},{"line_number":110,"context_line":"class Resize(pvm_task.PowerVMTask):"}],"source_content_type":"text/x-python","patch_set":4,"id":"bacf61ea_9b115f55","line":107,"range":{"start_line":102,"start_character":0,"end_line":107,"end_character":69},"updated":"2016-08-04 13:00:48.000000000","message":"So we have been round and round with Matt Rabe on this a few times.  He did NOT like this approach.  He indicated that it was more likely an issue in the overall manager class for Nova.  But a recreate with libvirt would be admittedly more difficult.\n\nIs he bought in on this approach?","commit_id":"768d16b46bc976d931b2391f7c05fcd456b18533"},{"author":{"_account_id":13557,"name":"Matt Rabe","email":"mdrabe@us.ibm.com","username":"mdrabe"},"change_message_id":"1feabd574ab91ec3195e3ce3056cd8b8862c1cdb","unresolved":false,"context_lines":[{"line_number":99,"context_line":"                                             lpars_exist\u003dTrue)"},{"line_number":100,"context_line":"        return wrap"},{"line_number":101,"context_line":""},{"line_number":102,"context_line":"    def revert_impl(self, result, flow_failures, **kwargs):"},{"line_number":103,"context_line":"        if self.instance.task_state \u003d\u003d \u0027rebuild_spawning\u0027:"},{"line_number":104,"context_line":"            LOG.info(_LE(\u0027Rebuild of instance % s failed. \u0027"},{"line_number":105,"context_line":"                      \u0027Deleting instance from destination.\u0027),"},{"line_number":106,"context_line":"                      self.instance.name)"},{"line_number":107,"context_line":"            vm.dlt_lpar(self.adapter, vm.get_pvm_uuid(self.instance))"},{"line_number":108,"context_line":""},{"line_number":109,"context_line":""},{"line_number":110,"context_line":"class Resize(pvm_task.PowerVMTask):"}],"source_content_type":"text/x-python","patch_set":4,"id":"bacf61ea_9e1e6d0a","line":107,"range":{"start_line":102,"start_character":0,"end_line":107,"end_character":69},"in_reply_to":"bacf61ea_9b115f55","updated":"2016-08-04 13:21:43.000000000","message":"Yes I\u0027m bought on this approach. The manager doesn\u0027t do any cleanup for rebuild failure. Then we just realized, oh why not just check for the \u0027rebuild_spawning\u0027 task state in the revert task.","commit_id":"768d16b46bc976d931b2391f7c05fcd456b18533"},{"author":{"_account_id":13557,"name":"Matt Rabe","email":"mdrabe@us.ibm.com","username":"mdrabe"},"change_message_id":"9e8e68f555130df759c0b67ff82b279b1b65dc39","unresolved":false,"context_lines":[{"line_number":58,"context_line":"                 nvram_mgr\u003dNone):"},{"line_number":59,"context_line":"        \"\"\"Creates the Task for creating a VM."},{"line_number":60,"context_line":""},{"line_number":61,"context_line":"        The revert method is not implemented because the compute manager"},{"line_number":62,"context_line":"        calls the driver destroy operation for spawn errors.  By not deleting"},{"line_number":63,"context_line":"        the lpar, it\u0027s a cleaner flow through the destroy operation and"},{"line_number":64,"context_line":"        accomplishes the same result."},{"line_number":65,"context_line":""},{"line_number":66,"context_line":"        Any stale storage associated with the new VM\u0027s (possibly recycled) ID"},{"line_number":67,"context_line":"        will be cleaned up.  The cleanup work will be delegated to the FeedTask"}],"source_content_type":"text/x-python","patch_set":5,"id":"bacf61ea_cdf95982","line":64,"range":{"start_line":61,"start_character":8,"end_line":64,"end_character":37},"updated":"2016-08-04 15:03:57.000000000","message":"We\u0027re gonna want to change this bit obviously. Let\u0027s put some detail here about why we\u0027re now implementing revert_impl.","commit_id":"7433863b808abd873cecb288c97ac34e5d3836ff"},{"author":{"_account_id":13557,"name":"Matt Rabe","email":"mdrabe@us.ibm.com","username":"mdrabe"},"change_message_id":"9e8e68f555130df759c0b67ff82b279b1b65dc39","unresolved":false,"context_lines":[{"line_number":99,"context_line":"                                             lpars_exist\u003dTrue)"},{"line_number":100,"context_line":"        return wrap"},{"line_number":101,"context_line":""},{"line_number":102,"context_line":"    def revert_impl(self, result, flow_failures, **kwargs):"},{"line_number":103,"context_line":"        if self.instance.task_state \u003d\u003d \u0027rebuild_spawning\u0027:"},{"line_number":104,"context_line":"            LOG.info(_LE(\u0027Rebuild of instance % s failed. \u0027"},{"line_number":105,"context_line":"                     \u0027Deleting instance from destination.\u0027),"}],"source_content_type":"text/x-python","patch_set":5,"id":"bacf61ea_4d4ba987","line":102,"updated":"2016-08-04 15:03:57.000000000","message":"Let\u0027s add a brief comment under here explaining that we only want to clean up failed rebuilds because the manager handles cleaning up failed builds.","commit_id":"7433863b808abd873cecb288c97ac34e5d3836ff"},{"author":{"_account_id":13557,"name":"Matt Rabe","email":"mdrabe@us.ibm.com","username":"mdrabe"},"change_message_id":"9e8e68f555130df759c0b67ff82b279b1b65dc39","unresolved":false,"context_lines":[{"line_number":100,"context_line":"        return wrap"},{"line_number":101,"context_line":""},{"line_number":102,"context_line":"    def revert_impl(self, result, flow_failures, **kwargs):"},{"line_number":103,"context_line":"        if self.instance.task_state \u003d\u003d \u0027rebuild_spawning\u0027:"},{"line_number":104,"context_line":"            LOG.info(_LE(\u0027Rebuild of instance % s failed. \u0027"},{"line_number":105,"context_line":"                     \u0027Deleting instance from destination.\u0027),"},{"line_number":106,"context_line":"                     self.instance.name)"}],"source_content_type":"text/x-python","patch_set":5,"id":"bacf61ea_bf11a854","line":103,"range":{"start_line":103,"start_character":39,"end_line":103,"end_character":57},"updated":"2016-08-04 15:03:57.000000000","message":"Let\u0027s use the constant here instead, REBUILD_SPAWNING, from nova/compute/task_states.py","commit_id":"7433863b808abd873cecb288c97ac34e5d3836ff"},{"author":{"_account_id":13557,"name":"Matt Rabe","email":"mdrabe@us.ibm.com","username":"mdrabe"},"change_message_id":"9e8e68f555130df759c0b67ff82b279b1b65dc39","unresolved":false,"context_lines":[{"line_number":101,"context_line":""},{"line_number":102,"context_line":"    def revert_impl(self, result, flow_failures, **kwargs):"},{"line_number":103,"context_line":"        if self.instance.task_state \u003d\u003d \u0027rebuild_spawning\u0027:"},{"line_number":104,"context_line":"            LOG.info(_LE(\u0027Rebuild of instance % s failed. \u0027"},{"line_number":105,"context_line":"                     \u0027Deleting instance from destination.\u0027),"},{"line_number":106,"context_line":"                     self.instance.name)"},{"line_number":107,"context_line":"            vm.dlt_lpar(self.adapter, vm.get_pvm_uuid(self.instance))"}],"source_content_type":"text/x-python","patch_set":5,"id":"bacf61ea_4d61e938","line":104,"range":{"start_line":104,"start_character":46,"end_line":104,"end_character":49},"updated":"2016-08-04 15:03:57.000000000","message":"Is this still a format string substitution?","commit_id":"7433863b808abd873cecb288c97ac34e5d3836ff"},{"author":{"_account_id":13557,"name":"Matt Rabe","email":"mdrabe@us.ibm.com","username":"mdrabe"},"change_message_id":"9e8e68f555130df759c0b67ff82b279b1b65dc39","unresolved":false,"context_lines":[{"line_number":101,"context_line":""},{"line_number":102,"context_line":"    def revert_impl(self, result, flow_failures, **kwargs):"},{"line_number":103,"context_line":"        if self.instance.task_state \u003d\u003d \u0027rebuild_spawning\u0027:"},{"line_number":104,"context_line":"            LOG.info(_LE(\u0027Rebuild of instance % s failed. \u0027"},{"line_number":105,"context_line":"                     \u0027Deleting instance from destination.\u0027),"},{"line_number":106,"context_line":"                     self.instance.name)"},{"line_number":107,"context_line":"            vm.dlt_lpar(self.adapter, vm.get_pvm_uuid(self.instance))"}],"source_content_type":"text/x-python","patch_set":5,"id":"bacf61ea_ed437dad","line":104,"range":{"start_line":104,"start_character":22,"end_line":104,"end_character":24},"updated":"2016-08-04 15:03:57.000000000","message":"This should be LI to go with LOG.info","commit_id":"7433863b808abd873cecb288c97ac34e5d3836ff"},{"author":{"_account_id":13557,"name":"Matt Rabe","email":"mdrabe@us.ibm.com","username":"mdrabe"},"change_message_id":"9e8e68f555130df759c0b67ff82b279b1b65dc39","unresolved":false,"context_lines":[{"line_number":103,"context_line":"        if self.instance.task_state \u003d\u003d \u0027rebuild_spawning\u0027:"},{"line_number":104,"context_line":"            LOG.info(_LE(\u0027Rebuild of instance % s failed. \u0027"},{"line_number":105,"context_line":"                     \u0027Deleting instance from destination.\u0027),"},{"line_number":106,"context_line":"                     self.instance.name)"},{"line_number":107,"context_line":"            vm.dlt_lpar(self.adapter, vm.get_pvm_uuid(self.instance))"},{"line_number":108,"context_line":""},{"line_number":109,"context_line":""}],"source_content_type":"text/x-python","patch_set":5,"id":"bacf61ea_4d9609f1","line":106,"range":{"start_line":106,"start_character":39,"end_line":106,"end_character":40},"updated":"2016-08-04 15:03:57.000000000","message":"Wouldn\u0027t hurt to pass the instance kwarg here. instance\u003dself.instance like the other LOGs do, although not necessary.","commit_id":"7433863b808abd873cecb288c97ac34e5d3836ff"},{"author":{"_account_id":13557,"name":"Matt Rabe","email":"mdrabe@us.ibm.com","username":"mdrabe"},"change_message_id":"5d421ce9a876d13fcb20fbae9fbcbbd066d7501d","unresolved":false,"context_lines":[{"line_number":60,"context_line":"                 nvram_mgr\u003dNone):"},{"line_number":61,"context_line":"        \"\"\"Creates the Task for creating a VM."},{"line_number":62,"context_line":""},{"line_number":63,"context_line":"        The revert method is only implemented for failures during rebuild."},{"line_number":64,"context_line":"        Since the rebuild and build methods have different flows, it is"},{"line_number":65,"context_line":"        necessary to clean up the destination LPAR on fails during rebuild."},{"line_number":66,"context_line":""}],"source_content_type":"text/x-python","patch_set":6,"id":"bacf61ea_7bcb79a4","line":63,"range":{"start_line":63,"start_character":8,"end_line":63,"end_character":74},"updated":"2016-08-05 20:11:05.000000000","message":"_Technically_ it\u0027s always implemented, it only ever does anything for failed rebuilds.","commit_id":"e91120165e73c6cfd70036daf1efbfffc62b4078"},{"author":{"_account_id":13557,"name":"Matt Rabe","email":"mdrabe@us.ibm.com","username":"mdrabe"},"change_message_id":"5d421ce9a876d13fcb20fbae9fbcbbd066d7501d","unresolved":false,"context_lines":[{"line_number":110,"context_line":"        # for a failed build is handled in the manager."},{"line_number":111,"context_line":""},{"line_number":112,"context_line":"        if self.instance.task_state \u003d\u003d task_states.REBUILD_SPAWNING:"},{"line_number":113,"context_line":"            LOG.info(_LE(\u0027Rebuild of instance % s failed. \u0027"},{"line_number":114,"context_line":"                     \u0027Deleting instance from destination.\u0027),"},{"line_number":115,"context_line":"                     self.instance.name, instance\u003dself.instance)"},{"line_number":116,"context_line":"            vm.dlt_lpar(self.adapter, vm.get_pvm_uuid(self.instance))"}],"source_content_type":"text/x-python","patch_set":6,"id":"bacf61ea_5b0795c9","line":113,"range":{"start_line":113,"start_character":46,"end_line":113,"end_character":49},"updated":"2016-08-05 20:11:05.000000000","message":"s/% s/%s","commit_id":"e91120165e73c6cfd70036daf1efbfffc62b4078"},{"author":{"_account_id":13557,"name":"Matt Rabe","email":"mdrabe@us.ibm.com","username":"mdrabe"},"change_message_id":"5d421ce9a876d13fcb20fbae9fbcbbd066d7501d","unresolved":false,"context_lines":[{"line_number":110,"context_line":"        # for a failed build is handled in the manager."},{"line_number":111,"context_line":""},{"line_number":112,"context_line":"        if self.instance.task_state \u003d\u003d task_states.REBUILD_SPAWNING:"},{"line_number":113,"context_line":"            LOG.info(_LE(\u0027Rebuild of instance % s failed. \u0027"},{"line_number":114,"context_line":"                     \u0027Deleting instance from destination.\u0027),"},{"line_number":115,"context_line":"                     self.instance.name, instance\u003dself.instance)"},{"line_number":116,"context_line":"            vm.dlt_lpar(self.adapter, vm.get_pvm_uuid(self.instance))"}],"source_content_type":"text/x-python","patch_set":6,"id":"bacf61ea_7b59b9fc","line":113,"range":{"start_line":113,"start_character":22,"end_line":113,"end_character":24},"updated":"2016-08-05 20:11:05.000000000","message":"s/_LE/_LI","commit_id":"e91120165e73c6cfd70036daf1efbfffc62b4078"},{"author":{"_account_id":13557,"name":"Matt Rabe","email":"mdrabe@us.ibm.com","username":"mdrabe"},"change_message_id":"4595192df625033c53cd37201e5535d3615210f9","unresolved":false,"context_lines":[{"line_number":60,"context_line":"                 nvram_mgr\u003dNone, slot_mgr\u003dNone):"},{"line_number":61,"context_line":"        \"\"\"Creates the Task for creating a VM."},{"line_number":62,"context_line":""},{"line_number":63,"context_line":"        The revert method is only called for failures during rebuild."},{"line_number":64,"context_line":"        Since the rebuild and build methods have different flows, it is"},{"line_number":65,"context_line":"        necessary to clean up the destination LPAR on fails during rebuild."},{"line_number":66,"context_line":""}],"source_content_type":"text/x-python","patch_set":7,"id":"9ad45d7e_3b697dbf","line":63,"range":{"start_line":63,"start_character":8,"end_line":63,"end_character":68},"updated":"2016-08-09 15:37:02.000000000","message":"Say \"The revert method only needs to do something for failed rebuilds.\"","commit_id":"6baac1df235f85db14b0b84ecb7e4dbcaf09c9cc"}]}
