This is how it looks:
2016-02-02 14:03:07.812 18301 ERROR ironic.drivers.modules.agent_base_vendor [-] Asynchronous exception for node 5acd6516-5d7b-47e8-8fd6-467fe40d2026: Node failed to get image for deploy. exception: Failed to deploy instance: Failed to start the iSCSI target to deploy the node 5acd6516-5d7b-47e8-8fd6-467fe40d2026. Error: {u'message': u'[Errno 2] No such file or directory', u'code': 500, u'type': u'OSError', u'details': u''}
2016-02-02 14:03:07.812 18301 ERROR ironic.drivers.modules.agent_base_vendor Traceback (most recent call last):
2016-02-02 14:03:07.812 18301 ERROR ironic.drivers.modules.agent_base_vendor File "/usr/lib/python2.7/site-packages/ironic/drivers/modules/agent_base_vendor.py", line 345, in heartbeat
2016-02-02 14:03:07.812 18301 ERROR ironic.drivers.modules.agent_base_vendor self.continue_deploy(task, **kwargs)
2016-02-02 14:03:07.812 18301 ERROR ironic.drivers.modules.agent_base_vendor File "/usr/lib/python2.7/site-packages/ironic/conductor/task_manager.py", line 134, in wrapper
2016-02-02 14:03:07.812 18301 ERROR ironic.drivers.modules.agent_base_vendor return f(*args, **kwargs)
2016-02-02 14:03:07.812 18301 ERROR ironic.drivers.modules.agent_base_vendor File "/usr/lib/python2.7/site-packages/ironic/drivers/modules/iscsi_deploy.py", line 873, in continue_deploy
2016-02-02 14:03:07.812 18301 ERROR ironic.drivers.modules.agent_base_vendor uuid_dict_returned = do_agent_iscsi_deploy(task, self._client)
2016-02-02 14:03:07.812 18301 ERROR ironic.drivers.modules.agent_base_vendor File "/usr/lib/python2.7/site-packages/ironic/drivers/modules/iscsi_deploy.py", line 443, in do_agent_iscsi_deploy
2016-02-02 14:03:07.812 18301 ERROR ironic.drivers.modules.agent_base_vendor raise exception.InstanceDeployFailure(reason=msg)
2016-02-02 14:03:07.812 18301 ERROR ironic.drivers.modules.agent_base_vendor InstanceDeployFailure: Failed to deploy instance: Failed to start the iSCSI target to deploy the node 5acd6516-5d7b-47e8-8fd6-467fe40d2026. Error: {u'message': u'[Errno 2] No such file or directory', u'code': 500, u'type': u'OSError', u'details': u''}
We should detect this situation and return a better error instead.
Fix proposed to branch: master /review. openstack. org/282984
Review: https:/