Last active
December 28, 2016 10:19
-
-
Save krsacme/c5be089d6fa216232d49c85082478419 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
version: '2.0' | |
name: tripleo.ovsdpdk.v1 | |
description: TripleO OVS DPDK Workflows to generate enviroment parameters from the introspected data | |
workflows: | |
dpdk_pmd_info: | |
description: With the input of list of DPDK interface, find the optimal parameters for DPDK PMD (pre-condition is introspection completed) | |
input: | |
- nodes | |
- dpdk_interfaces: | |
- pmd_core_count: -1 | |
- host_core_count: -1 | |
tasks: | |
check_introspection_complete: | |
action: tripleo.dpdk.check_introspection_complete | |
on-success: derive_dpdk_environment_params | |
on-error: set_status_failed_no_introspection | |
input: | |
nodes: <% $.nodes %> | |
dpdk_interfaces: <% $.dpdk_interfaces %> | |
pmd_core_count: <% $.pmd_core_count %> | |
host_core_count: <% $.host_core_count %> | |
set_status_failed_no_introspection: | |
on-success: send_message | |
publish: | |
status: FAILED | |
message: <% task(check_introspection_complete).result %> | |
registered_nodes: [] | |
derive_dpdk_environment_params: | |
on-success: send_message | |
on-error: set_status_failed_pmd | |
with-items: node in <% $.nodes %> | |
action: tripleo.dpdk.derive_dpdk_environment_params | |
publish: | |
status: SUCCESS | |
pmd_list: <% task(derive_dpdk_environment_params).result %> | |
set_status_failed_pmd: | |
on-success: send_message | |
publish: | |
status: FAILED | |
message: <% task(derive_dpdk_environment_params).result %> | |
send_message: | |
action: zaqar.queue_post | |
retry: count=5 delay=1 | |
input: | |
queue_name: <% $.queue_name %> | |
messages: | |
body: | |
type: tripleo.ovsdpdk.v1.dpdk_pmd_info | |
payload: | |
status: <% $.get('status', 'SUCCESS') %> | |
execution: <% execution() %> | |
pmd_list: <% $.pmd_list or [] %> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment