# HG changeset patch # User Matt Keenan # Date 1456766430 0 # Node ID 7758049098f4a611ce978efa11cbee35f4080f37 # Parent 85bd4f23ede145a8faac4677ad4191e3e3541e26 22819808 target_provision_state should not be set to AVAILABLE diff -r 85bd4f23ede1 -r 7758049098f4 components/openstack/ironic/files/drivers/modules/solaris_ipmitool.py --- a/components/openstack/ironic/files/drivers/modules/solaris_ipmitool.py Fri Feb 26 11:02:09 2016 -0800 +++ b/components/openstack/ironic/files/drivers/modules/solaris_ipmitool.py Mon Feb 29 17:20:30 2016 +0000 @@ -443,7 +443,7 @@ cpu_arch, _err = _exec_ipmitool(driver_info, ipmi_cmd_args) except Exception as err: LOG.error(_LE("Failed to get node architecture from IPMI : %s" % - (err))) + (err))) raise exception.IPMIFailure(cmd=err) propdict = {'cpu_arch': cpu_arch} @@ -499,8 +499,10 @@ # Update node with done/fail state if task.node: task.node.provision_state = states.DEPLOYFAIL - task.node.last_error = "Failed to find node." - task.node.target_provision_state = states.AVAILABLE + task.node.last_error = "Failed to find node whilst " + \ + "transitioning to '%s' state." % \ + (task.node.target_provision_state) + task.node.target_provision_state = states.NOSTATE task.node.save() raise loopingcall.LoopingCallDone() except Exception as err: @@ -512,9 +514,11 @@ if deploy_thread.state in [states.DEPLOYING, states.DEPLOYWAIT]: # Update node with done/fail state if task.node: - task.node.last_error = "Failed to find node." + task.node.last_error = "Failed to find node whilst " + \ + "transitioning to '%s' state." % \ + (task.node.target_provision_state) task.node.provision_state = states.DEPLOYFAIL - task.node.target_provision_state = states.AVAILABLE + task.node.target_provision_state = states.NOSTATE task.node.save() raise loopingcall.LoopingCallDone() @@ -539,7 +543,7 @@ cur_node.provision_state = deploy_thread.state else: cur_node.provision_state = deploy_thread.state - cur_node.target_provision_state = states.AVAILABLE + cur_node.target_provision_state = states.NOSTATE cur_node.save() # Raise LoopincCallDone to terminate deployment checking.