Error if deploy_image is not found.

A meaningful error message should be provided and users notified if
we are missing the deploy_image when a user attempts to deploy.

Change-Id: I9d3e7b2524b729db7c0e28e21dec88c018d7f6a5
Closes-Bug: 1478722
This commit is contained in:
Julia Kreger 2015-07-28 15:48:27 -04:00
parent 97e211b597
commit 269607957f

View File

@ -32,6 +32,9 @@
local_action: stat path={{deploy_image}}
register: test_deploy_image
when: instance_info is not defined
- name: "Error if deploy_image is not present, and instance_info is not defined"
fail: msg="The user defined deploy_image, which is the image to be written to the remote node(s) upon deployment, was not found. Cannot proceed."
when: test_deploy_image.stat.exists | bool == false and instance_info is not defined
- name: "Deploy to Hardware - Bifrost Default"
os_ironic_node:
auth_type: None