)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":23883,"name":"Joanna Taryma","email":"joanna.taryma@intel.com","username":"jtaryma"},"change_message_id":"7acc77b182bcdef4d8297443f494fec59b551de0","unresolved":false,"context_lines":[{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Fix wrong exception message when deploy failed"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Currently, if conductor gets an exception while trying to deploy the node,"},{"line_number":10,"context_line":"we will get an exception message like:"},{"line_number":11,"context_line":""},{"line_number":12,"context_line":"Asynchronous exception for node $UUID: Node failed to get image for"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":4,"id":"1a6eadb0_dcef1d1c","line":9,"updated":"2016-12-15 12:57:03.000000000","message":"nit: line too long","commit_id":"e3988f2cebb181d111dff7f48192bfc0bb2e1cb6"},{"author":{"_account_id":10453,"name":"octopuszhang","email":"zhangyf@rc.inesa.com","username":"1"},"change_message_id":"204cbf3bbb2ec4e3039135e83f7edc260bf96c88","unresolved":false,"context_lines":[{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Fix wrong exception message when deploy failed"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Currently, if conductor gets an exception while trying to deploy the node,"},{"line_number":10,"context_line":"we will get an exception message like:"},{"line_number":11,"context_line":""},{"line_number":12,"context_line":"Asynchronous exception for node $UUID: Node failed to get image for"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":4,"id":"1a6eadb0_bfefae1c","line":9,"in_reply_to":"1a6eadb0_dcef1d1c","updated":"2016-12-15 14:35:46.000000000","message":"Done","commit_id":"e3988f2cebb181d111dff7f48192bfc0bb2e1cb6"}],"ironic/drivers/modules/agent_base_vendor.py":[{"author":{"_account_id":6773,"name":"Lucas Alvares Gomes","email":"lucasagomes@gmail.com","username":"lucasagomes"},"change_message_id":"6e1ebb19c96aa6a2436c856e66639767b5290e51","unresolved":false,"context_lines":[{"line_number":475,"context_line":"                return"},{"line_number":476,"context_line":"            elif (node.provision_state \u003d\u003d states.DEPLOYWAIT and"},{"line_number":477,"context_line":"                  not self.deploy_has_started(task)):"},{"line_number":478,"context_line":"                msg \u003d _(\u0027Node failed to deploy.\u0027)"},{"line_number":479,"context_line":"                self.continue_deploy(task)"},{"line_number":480,"context_line":"            elif (node.provision_state \u003d\u003d states.DEPLOYWAIT and"},{"line_number":481,"context_line":"                  self.deploy_is_done(task)):"}],"source_content_type":"text/x-python","patch_set":5,"id":"1a6eadb0_5aef88e8","line":478,"updated":"2016-12-15 14:53:02.000000000","message":"I think the \"get image for\" was probably based on the iSCSI methodology behavior where DEPLOYWAIT basically means the node is downloading/booting the ramdisk [1]. With the Agent methodology, partitioning and writing the image also happens while the node is in DEPLOYWAIT.\n\nBasically DEPLOYWAIT means \"the ramdisk is either booting or doing some work\" (where DEPLOYING means the ironic-conductor is doing some work).\n\nThat said, I think it would be good if this failure message reflected a little bit more what DEPLOYWAIT means instead of the flat \"failed to deploy\". May I suggest:\n\n\"Node failed to deploy while waiting for the ramdisk to boot or complete a task\"\n\nWDYT ?\n\n[1] It\u0027s not 100% true for nodes doing local boot because DEPLOYWAIT is also the status used when the bootloader is being installed onto the disk, even for the iSCSI methodology.","commit_id":"12a2e195775c1cef405a9ad01762ca8193ee3306"},{"author":{"_account_id":10453,"name":"octopuszhang","email":"zhangyf@rc.inesa.com","username":"1"},"change_message_id":"d46fbca66410c287dea750545c8b69cb53781c4e","unresolved":false,"context_lines":[{"line_number":475,"context_line":"                return"},{"line_number":476,"context_line":"            elif (node.provision_state \u003d\u003d states.DEPLOYWAIT and"},{"line_number":477,"context_line":"                  not self.deploy_has_started(task)):"},{"line_number":478,"context_line":"                msg \u003d _(\u0027Node failed to deploy.\u0027)"},{"line_number":479,"context_line":"                self.continue_deploy(task)"},{"line_number":480,"context_line":"            elif (node.provision_state \u003d\u003d states.DEPLOYWAIT and"},{"line_number":481,"context_line":"                  self.deploy_is_done(task)):"}],"source_content_type":"text/x-python","patch_set":5,"id":"1a6eadb0_95ef3386","line":478,"in_reply_to":"1a6eadb0_5aef88e8","updated":"2016-12-15 15:17:01.000000000","message":"I agree that the message should be more clear. But I think that this msg may also be thrown out when node is in deploying state. Please correct me if i\u0027m wrong.","commit_id":"12a2e195775c1cef405a9ad01762ca8193ee3306"},{"author":{"_account_id":6773,"name":"Lucas Alvares Gomes","email":"lucasagomes@gmail.com","username":"lucasagomes"},"change_message_id":"8096d1098d5d3c58385b6b16fed431671374d860","unresolved":false,"context_lines":[{"line_number":475,"context_line":"                return"},{"line_number":476,"context_line":"            elif (node.provision_state \u003d\u003d states.DEPLOYWAIT and"},{"line_number":477,"context_line":"                  not self.deploy_has_started(task)):"},{"line_number":478,"context_line":"                msg \u003d _(\u0027Node failed to deploy.\u0027)"},{"line_number":479,"context_line":"                self.continue_deploy(task)"},{"line_number":480,"context_line":"            elif (node.provision_state \u003d\u003d states.DEPLOYWAIT and"},{"line_number":481,"context_line":"                  self.deploy_is_done(task)):"}],"source_content_type":"text/x-python","patch_set":5,"id":"da4df55a_8a177650","line":478,"in_reply_to":"1a6eadb0_95ef3386","updated":"2016-12-22 16:01:44.000000000","message":"The check on L476 look for DEPLOYWAIT, so, I think we can safely assume it\u0027s in WAIT state.","commit_id":"12a2e195775c1cef405a9ad01762ca8193ee3306"},{"author":{"_account_id":10453,"name":"octopuszhang","email":"zhangyf@rc.inesa.com","username":"1"},"change_message_id":"52e910acd51b5000d1c59980ed91652d6b0a4f88","unresolved":false,"context_lines":[{"line_number":475,"context_line":"                return"},{"line_number":476,"context_line":"            elif (node.provision_state \u003d\u003d states.DEPLOYWAIT and"},{"line_number":477,"context_line":"                  not self.deploy_has_started(task)):"},{"line_number":478,"context_line":"                msg \u003d _(\u0027Node failed to deploy.\u0027)"},{"line_number":479,"context_line":"                self.continue_deploy(task)"},{"line_number":480,"context_line":"            elif (node.provision_state \u003d\u003d states.DEPLOYWAIT and"},{"line_number":481,"context_line":"                  self.deploy_is_done(task)):"}],"source_content_type":"text/x-python","patch_set":5,"id":"da4df55a_9d4a4bc4","line":478,"in_reply_to":"da4df55a_8a177650","updated":"2016-12-23 04:14:13.000000000","message":"In L479, continue_delploy, the conductor runs \"task.process_event(\u0027resume\u0027)\" firstly, the node will be set to deploying state . and if some exceptions raise below that, the exception message in L478 will be used. So I think that this message will be used most probably when the node is in deploying state, or sometimes in wait-callback state if event processes failed.\n\nhttps://github.com/openstack/ironic/blob/master/ironic/drivers/modules/iscsi_deploy.py#L397","commit_id":"12a2e195775c1cef405a9ad01762ca8193ee3306"},{"author":{"_account_id":6773,"name":"Lucas Alvares Gomes","email":"lucasagomes@gmail.com","username":"lucasagomes"},"change_message_id":"8fd3a5e8f753151ccfc365b26cae0500d7a3121e","unresolved":false,"context_lines":[{"line_number":475,"context_line":"                return"},{"line_number":476,"context_line":"            elif (node.provision_state \u003d\u003d states.DEPLOYWAIT and"},{"line_number":477,"context_line":"                  not self.deploy_has_started(task)):"},{"line_number":478,"context_line":"                msg \u003d _(\u0027Node failed to deploy.\u0027)"},{"line_number":479,"context_line":"                self.continue_deploy(task)"},{"line_number":480,"context_line":"            elif (node.provision_state \u003d\u003d states.DEPLOYWAIT and"},{"line_number":481,"context_line":"                  self.deploy_is_done(task)):"}],"source_content_type":"text/x-python","patch_set":5,"id":"da4df55a_2f7d8a1c","line":478,"in_reply_to":"da4df55a_9d4a4bc4","updated":"2016-12-23 16:28:25.000000000","message":"I see, thanks for pointing it out. Yeah, it makes sense.","commit_id":"12a2e195775c1cef405a9ad01762ca8193ee3306"}]}
