Fixing 'publish' clauses in example workflows

* Made changes in 'publish' clauses according to a new 'publish'
  semantics implemented in https://review.openstack.org/#/c/149623/

Change-Id: I3df5d78da723e1df64f64b4d0d3a1a807137042c
This commit is contained in:
Renat Akhmerov 2015-01-26 17:35:49 +06:00
parent bdbe716c54
commit 8361f2b724
9 changed files with 22 additions and 22 deletions

View File

@ -60,8 +60,8 @@ workflows:
ssh_username: $.ssh_username
ssh_password: $.ssh_password
publish:
vm_id: $.id
vm_ip: $.ip
vm_id: $.create_vm.id
vm_ip: $.create_vm.ip
on-success:
- run_server
@ -79,7 +79,7 @@ workflows:
count: 10
delay: 1
publish:
result: $.summ_result
result: $.calc_summ.summ_result
on-complete:
- send_result_email

View File

@ -26,7 +26,7 @@ create_vm_with_volume:
ssh_username: $.ssh_username
ssh_password: $.ssh_password
publish:
vm_id: $.id
vm_id: $.create_vm.id
on-complete:
- attach_volume
@ -34,7 +34,7 @@ create_vm_with_volume:
description: Creates a volume of 2GB size with a given name.
action: cinder.volumes_create size=2 display_name={$.volume_name}
publish:
volume_id: $.id
volume_id: $.create_volume.id
on-complete:
- attach_volume

View File

@ -16,11 +16,11 @@ workflows:
get_image_id:
action: glance.images_list
publish:
image_id: $[0].id
image_id: $.get_image_id[0].id
on-success:
- get_image_name
get_image_name:
action: glance.images_get image_id={$.image_id}
publish:
image_name: $.name
image_name: $.get_image_name.name

View File

@ -16,11 +16,11 @@ workflows:
get_project_id:
action: keystone.projects_list
publish:
project_id: $[0].id
project_id: $.get_project_id[0].id
on-success:
- get_project_name
get_project_name:
action: keystone.projects_get project={$.project_id}
publish:
project_name: $.name
project_name: $.get_project_name.name

View File

@ -17,7 +17,7 @@ workflows:
create_server:
action: nova.servers_create name={$.vm_name} image={$.image_ref} flavor={$.flavor_ref}
publish:
vm_id: $.id
vm_id: $.create_server.id
on-success:
- check_server_exists

View File

@ -35,7 +35,7 @@ workflows:
ssh_username: $.ssh_username
ssh_password: $.ssh_password
publish:
vm_ip: $.ip
vm_ip: $.create_vm.ip
on-success:
- register_in_zabbix

View File

@ -33,7 +33,7 @@ workflows:
get_conf_id_url:
action: vyatta_auth host={$.vyatta_host} username={$.vyatta_username} password={$.vyatta_password}
publish:
conf_url: $.conf_url
conf_url: $.get_conf_id_url.conf_url
on-success:
- create_accept_rule

View File

@ -61,7 +61,7 @@ workflows:
get_zabbix_auth:
action: zabbix_auth host={$.zabbix_host} username={$.zabbix_username} password={$.zabbix_password}
publish:
zabbix_auth: $.auth
zabbix_auth: $.get_zabbix_auth.auth
on-success:
- zabbix_host_group_create
@ -71,7 +71,7 @@ workflows:
params:
- name: Mistral demo group
publish:
hostgroup_id: $.result.result.groupids[0]
hostgroup_id: $.zabbix_host_group_create.result.result.groupids[0]
on-success:
- zabbix_host_create
@ -86,7 +86,7 @@ workflows:
groups:
- groupid: $.hostgroup_id
publish:
host_id: $.result.result.hostids[0]
host_id: $.zabbix_host_create.result.result.hostids[0]
on-success:
- zabbix_item_create
@ -100,4 +100,4 @@ workflows:
key_: 'icmpping'
hostid: $.host_id
publish:
item_id: $.result.result.itemids[0]
item_id: $.zabbix_item_create.result.result.itemids[0]

View File

@ -49,15 +49,15 @@ workflows:
get_vm_count:
action: nova.servers_list
publish:
vm_count: $.length()
active_vm_count: $[$.status = 'ACTIVE'].length()
vm_count: $.get_vm_count.length()
active_vm_count: $.get_vm_count[$.status = 'ACTIVE'].length()
on-complete:
- get_net_count
get_net_count:
action: neutron.list_networks
publish:
net_count: $.length()
net_count: $.get_net_count.length()
on-complete:
- send_stat
@ -93,15 +93,15 @@ workflows:
get_vm_count:
action: nova.servers_list
publish:
vm_count: $.length()
active_vm_count: $[$.status = 'ACTIVE'].length()
vm_count: $.get_vm_count.length()
active_vm_count: $.get_vm_count[$.status = 'ACTIVE'].length()
on-complete:
- send_stat
get_net_count:
action: neutron.list_networks
publish:
net_count: $.length()
net_count: $.get_net_count.length()
on-complete:
- send_stat