From 400c6227b45357c88ee362da123963c0b8175380 Mon Sep 17 00:00:00 2001 From: Shaik Apsar Date: Mon, 11 Jul 2016 10:55:25 -0400 Subject: [PATCH] Fix for YaqlEvaluationException in std.create_instance workflow. Change-Id: Id67f203ccd9d8aa5150a3b481bf042ec29276d55 Closes-Bug:1599122 --- mistral/resources/workflows/create_instance.yaml | 6 +++--- ...e-instance-YaqlEvaluationException-e22afff26a193c4f.yaml | 3 +++ 2 files changed, 6 insertions(+), 3 deletions(-) create mode 100644 releasenotes/notes/workflow-create-instance-YaqlEvaluationException-e22afff26a193c4f.yaml diff --git a/mistral/resources/workflows/create_instance.yaml b/mistral/resources/workflows/create_instance.yaml index ad3f01758..b956f8a82 100644 --- a/mistral/resources/workflows/create_instance.yaml +++ b/mistral/resources/workflows/create_instance.yaml @@ -44,7 +44,7 @@ std.create_instance: security_groups: <% $.security_groups %> nics: <% $.nics %> publish: - vm_id: <% $.create_vm.id %> + vm_id: <% task(create_vm).result.id %> on-success: - search_for_ip @@ -52,7 +52,7 @@ std.create_instance: description: Gets first free ip from Nova floating IPs. action: nova.floating_ips_findall instance_id=null publish: - vm_ip: <% $.search_for_ip[0].ip %> + vm_ip: <% task(search_for_ip).result[0].ip %> on-success: - wait_vm_active @@ -63,7 +63,7 @@ std.create_instance: count: 10 delay: 10 publish: - status: <% $.wait_vm_active.status %> + status: <% task(wait_vm_active).result.status %> on-success: - associate_ip diff --git a/releasenotes/notes/workflow-create-instance-YaqlEvaluationException-e22afff26a193c4f.yaml b/releasenotes/notes/workflow-create-instance-YaqlEvaluationException-e22afff26a193c4f.yaml new file mode 100644 index 000000000..553a73ff6 --- /dev/null +++ b/releasenotes/notes/workflow-create-instance-YaqlEvaluationException-e22afff26a193c4f.yaml @@ -0,0 +1,3 @@ +--- +fixes: + - Fix for YaqlEvaluationException in std.create_instance workflow.