using mistral new RPMs
I am able to create the same workflow multiple time without supplying namespace,
on top of that once we have multiple workflows under default namespace in list, I am able to both execute and delete workflow by name.
this is an example of creating same workflow 3 times:
-bash-4.2# mistral workflow-create sanity_workflow.yaml
/usr/lib/python2.7/site-packages/requests/packages/urllib3/connectionpool.py:838: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/security.html
InsecureRequestWarning)
+--------------------------------------+------------------------+------------+--------+-------+---------------------+------------+
| ID | Name | Project ID | Tags | Input | Created at | Updated at |
+--------------------------------------+------------------------+------------+--------+-------+---------------------+------------+
| 58005745-e82a-42d2-84e1-0e0ce64d9329 | test_mistral_sanity_wf | None | <none> | | 2017-09-27 09:22:51 | None |
+--------------------------------------+------------------------+------------+--------+-------+---------------------+------------+
-bash-4.2# mistral workflow-create sanity_workflow.yaml
/usr/lib/python2.7/site-packages/requests/packages/urllib3/connectionpool.py:838: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/security.html
InsecureRequestWarning)
+--------------------------------------+------------------------+------------+--------+-------+---------------------+------------+
| ID | Name | Project ID | Tags | Input | Created at | Updated at |
+--------------------------------------+------------------------+------------+--------+-------+---------------------+------------+
| 0120d06e-813f-4c43-ab22-429257779673 | test_mistral_sanity_wf | None | <none> | | 2017-09-27 09:23:04 | None |
+--------------------------------------+------------------------+------------+--------+-------+---------------------+------------+
-bash-4.2# mistral workflow-create sanity_workflow.yaml
/usr/lib/python2.7/site-packages/requests/packages/urllib3/connectionpool.py:838: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/security.html
InsecureRequestWarning)
+--------------------------------------+------------------------+------------+--------+-------+---------------------+------------+
| ID | Name | Project ID | Tags | Input | Created at | Updated at |
+--------------------------------------+------------------------+------------+--------+-------+---------------------+------------+
| c43fcbeb-4a9a-48c3-b828-615c6283203d | test_mistral_sanity_wf | None | <none> | | 2017-09-27 09:23:07 | None |
+--------------------------------------+------------------------+------------+--------+-------+---------------------+------------+
-bash-4.2# mistral workflow-list
/usr/lib/python2.7/site-packages/requests/packages/urllib3/connectionpool.py:838: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/security.html
InsecureRequestWarning)
+--------------------------------------+------------------------+-------------------+--------+------------------------------+---------------------+------------+
| ID | Name | Project ID | Tags | Input | Created at | Updated at |
+--------------------------------------+------------------------+-------------------+--------+------------------------------+---------------------+------------+
| 72f0a374-c0ef-4da9-8b7f-41559a60f5ae | std.delete_instance | <default-project> | <none> | instance_id | 2017-09-26 06:20:59 | None |
| b0745125-7a53-4657-91f9-bb19e3e3ea30 | std.create_instance | <default-project> | <none> | name, image_id, flavor_id... | 2017-09-26 06:20:59 | None |
| 58005745-e82a-42d2-84e1-0e0ce64d9329 | test_mistral_sanity_wf | None | <none> | | 2017-09-27 09:22:51 | None |
| 0120d06e-813f-4c43-ab22-429257779673 | test_mistral_sanity_wf | None | <none> | | 2017-09-27 09:23:04 | None |
| c43fcbeb-4a9a-48c3-b828-615c6283203d | test_mistral_sanity_wf | None | <none> | | 2017-09-27 09:23:07 | None |
+--------------------------------------+------------------------+-------------------+--------+------------------------------+---------------------+------------+
I was unable to reproduce this bug.
(undercloud) [stack@ 493-heap- -undercloud ~]$ cat wf.yaml
---
version: '2.0'
thing: 493-heap- -undercloud ~]$ mistral workflow-create wf.yaml ------- ------- ------- ------- ----+-- -----+- ------- ------- ------- ------- -----+- ------- +------ -+----- ------- ------- --+---- ------- -+ ------- ------- ------- ------- ----+-- -----+- ------- ------- ------- ------- -----+- ------- +------ -+----- ------- ------- --+---- ------- -+ d42d-4cd1- be76-5708770640 b2 | thing | a03a8bb14ae548f 08558e15d158ffe f4 | <none> | | 2017-10-11 08:57:19 | None | ------- ------- ------- ------- ----+-- -----+- ------- ------- ------- ------- -----+- ------- +------ -+----- ------- ------- --+---- ------- -+ 493-heap- -undercloud ~]$ mistral workflow-create wf.yaml
tasks:
noop:
action: std.noop
(undercloud) [stack@
+------
| ID | Name | Project ID | Tags | Input | Created at | Updated at |
+------
| 2679845f-
+------
(undercloud) [stack@
ERROR (app) Duplicate entry for WorkflowDefinition: ['name']