Removing "policies" keyword from resources
* From standard workflows * From functional test resources Change-Id: I25e0d048222b6b7b1f3ffb3a9cf5029b7e6bcf45
This commit is contained in:
parent
b79f1f277b
commit
f2a1a63ced
@ -7,8 +7,7 @@ wf:
|
|||||||
tasks:
|
tasks:
|
||||||
hello:
|
hello:
|
||||||
action: std.echo output="Hello"
|
action: std.echo output="Hello"
|
||||||
policies:
|
wait-before: 1
|
||||||
wait-before: 1
|
|
||||||
publish:
|
publish:
|
||||||
result: <% $.hello %>
|
result: <% $.hello %>
|
||||||
|
|
||||||
@ -26,4 +25,3 @@ wf1:
|
|||||||
goodbye:
|
goodbye:
|
||||||
action: std.echo output="<% $.farewell %>, <% $.name %>"
|
action: std.echo output="<% $.farewell %>, <% $.name %>"
|
||||||
requires: [addressee]
|
requires: [addressee]
|
||||||
|
|
||||||
|
@ -44,10 +44,9 @@ std.create_instance:
|
|||||||
wait_vm_active:
|
wait_vm_active:
|
||||||
description: Waits till VM is ACTIVE.
|
description: Waits till VM is ACTIVE.
|
||||||
action: nova.servers_find id=<% $.vm_id %> status="ACTIVE"
|
action: nova.servers_find id=<% $.vm_id %> status="ACTIVE"
|
||||||
policies:
|
retry:
|
||||||
retry:
|
count: 10
|
||||||
count: 10
|
delay: 10
|
||||||
delay: 10
|
|
||||||
publish:
|
publish:
|
||||||
status: <% $.wait_vm_active.status %>
|
status: <% $.wait_vm_active.status %>
|
||||||
on-success:
|
on-success:
|
||||||
@ -56,18 +55,16 @@ std.create_instance:
|
|||||||
associate_ip:
|
associate_ip:
|
||||||
description: Associate server with one of floating IPs.
|
description: Associate server with one of floating IPs.
|
||||||
action: nova.servers_add_floating_ip server=<% $.vm_id %> address=<% $.vm_ip %>
|
action: nova.servers_add_floating_ip server=<% $.vm_id %> address=<% $.vm_ip %>
|
||||||
policies:
|
wait-after: 5
|
||||||
wait-after: 5
|
|
||||||
on-success:
|
on-success:
|
||||||
- wait_ssh
|
- wait_ssh
|
||||||
|
|
||||||
wait_ssh:
|
wait_ssh:
|
||||||
description: Wait till operating system on the VM is up (SSH command).
|
description: Wait till operating system on the VM is up (SSH command).
|
||||||
action: std.wait_ssh username=<% $.ssh_username %> password=<% $.ssh_password %> host=<% $.vm_ip %>
|
action: std.wait_ssh username=<% $.ssh_username %> password=<% $.ssh_password %> host=<% $.vm_ip %>
|
||||||
policies:
|
retry:
|
||||||
retry:
|
count: 10
|
||||||
count: 10
|
delay: 10
|
||||||
delay: 10
|
|
||||||
|
|
||||||
delete_vm:
|
delete_vm:
|
||||||
description: Destroy VM.
|
description: Destroy VM.
|
||||||
|
@ -13,8 +13,7 @@ std.delete_instance:
|
|||||||
delete_vm:
|
delete_vm:
|
||||||
description: Destroy VM.
|
description: Destroy VM.
|
||||||
action: nova.servers_delete server=<% $.instance_id %>
|
action: nova.servers_delete server=<% $.instance_id %>
|
||||||
policies:
|
wait-after: 10
|
||||||
wait-after: 10
|
|
||||||
on-success:
|
on-success:
|
||||||
- find_given_vm
|
- find_given_vm
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user