Merge "Verify that neither the Swift container or Mistral environment exist"

This commit is contained in:
Jenkins
2016-08-26 02:05:14 +00:00
committed by Gerrit Code Review

View File

@@ -46,6 +46,23 @@ workflows:
- container
- queue_name: tripleo
tasks:
verify_container_doesnt_exist:
action: swift.head_container container=<% $.container %>
on-success: notify_zaqar
on-error: verify_environment_doesnt_exist
publish:
status: FAILED
message: "Unable to create plan. The Swift container already exists"
verify_environment_doesnt_exist:
action: mistral.environments_get name=<% $.container %>
on-success: notify_zaqar
on-error: create_container
publish:
status: FAILED
message: "Unable to create plan. The Mistral environment already exists"
create_container:
action: tripleo.create_container container=<% $.container %>
on-success: upload_to_container