tripleo-common/workbooks/parameters.yaml
Dmitry Tantsur 812d7e6cbb Fix handling hardware types and drivers when generating fencing parameters
First, it still supports the pxe_ssh driver which was removed long ago.
Second, it expects driver names to contain _, which is not true even
for some classic drivers, and is never true for hardware types.
Finally, it supports the deprecated pxe_ilo and pxe_drac, but not
the newer ilo and idrac.

Also removes the leftover code handling pxe_ssh from nodes.py.

Closes-Bug: #1770700
Change-Id: Iecb9ed779f311a9cf17006902732fe63bfb0713a
2018-05-28 09:05:27 +00:00

62 lines
1.7 KiB
YAML

---
version: '2.0'
name: tripleo.parameters.v1
description: TripleO Parameter-related Workflows
workflows:
generate_fencing_parameters:
description: >
This workflow will generate fencing parameters from the given inputs for
a deployment.
input:
- nodes_json
# TODO(dtantsur): remove in Stein (after it is no longer used)
- os_auth
- fence_action
- delay
- ipmi_level
- ipmi_cipher
- ipmi_lanplus
- queue_name: tripleo
tags:
- tripleo-common-managed
output:
fencing_parameters: <% $.get('fencing_parameters', {}) %>
tasks:
generate_fencing_params:
action: tripleo.parameters.generate_fencing
input:
nodes_json: <% $.nodes_json %>
fence_action: <% $.fence_action %>
delay: <% $.delay %>
ipmi_level: <% $.ipmi_level %>
ipmi_cipher: <% $.ipmi_cipher %>
ipmi_lanplus: <% $.ipmi_lanplus %>
on-complete: notify_zaqar
publish:
fencing_parameters: <% task().result %>
status: SUCCESS
message: 'Fencing parameters successfully generated'
publish-on-error:
status: FAILED
message: <% task().result %>
notify_zaqar:
action: zaqar.queue_post
input:
queue_name: <% $.queue_name %>
messages:
body:
type: tripleo.parameters.v1.generate_fencing_parameters
payload:
status: <% $.status %>
message: <% $.get('message', '') %>
execution: <% execution() %>
fencing_parameters: <% $.get('fencing_parameters', {}) %>
on-success:
- fail: <% $.get('status') = "FAILED" %>