It is impossible to create a workflow with "version" in the name
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mistral |
Fix Released
|
Medium
|
Dougal Matthews |
Bug Description
There is some bad validation going on that causes an error if your workflow has "version" in the name. Here it an example:
[stack@instack ~]$ cat wf.yaml
---
version: '2.0'
name: testing
workflows:
workflow_
tasks:
action: std.noop
[stack@instack ~]$ mistral workbook-create wf.yaml
ERROR (app) Invalid DSL: {'tasks': {'poll_versions': {'action':
'std.noop'}}} is not one of ['2.0', 2.0]
Failed validating 'enum' in schema[
['patternPr
On instance[
{'tasks': {'poll_versions': {'action': 'std.noop'}}}
description: | updated |
Changed in mistral: | |
milestone: | none → ocata-2 |
It turns out you can create a workflow with "version" in the name, but you can't create a workbook with a workflow with version in the name. So this bug is specific to workbook validation.