Bug 1399419 - Unified "workflow execution show output" and "workflow execution show input" commands report an error
Summary: Unified "workflow execution show output" and "workflow execution show input" ...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: python-mistralclient
Version: 10.0 (Newton)
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: ---
Assignee: RHOS Maint
QA Contact: nlevinki
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-11-29 03:14 UTC by Dan Macpherson
Modified: 2018-09-17 13:06 UTC (History)
8 users (show)

Fixed In Version: python-mistralclient-2.1.2-1.el7ost
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-09-17 13:06:30 UTC
Target Upstream Version:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
OpenStack gerrit 404087 0 None stable/newton: MERGED python-mistralclient: Remove clashes of openstackclient command in mistral (I41a08e1e57d43684713e57b29c98696b9c3ab7b1) 2018-09-17 12:42:31 UTC

Description Dan Macpherson 2016-11-29 03:14:27 UTC
I can run "openstack workflow execution show" with no problems.

-----
[stack@osp10 ~]$ openstack workflow execution show 933de0ad-ab59-4e40-9810-e5e792722ae3
+-------------------+--------------------------------------+
| Field             | Value                                |
+-------------------+--------------------------------------+
| ID                | 933de0ad-ab59-4e40-9810-e5e792722ae3 |
| Workflow ID       | 9926a3d8-7238-43d8-8bbf-9b327d9e605a |
| Workflow name     | tripleo.deployment.v1.deploy_plan    |
| Description       |                                      |
| Task Execution ID | <none>                               |
| State             | SUCCESS                              |
| State info        | None                                 |
| Created at        | 2016-11-28 07:24:15                  |
| Updated at        | 2016-11-28 07:24:55                  |
+-------------------+--------------------------------------+
-----

But if I try to use "show output" or "show input", I get an error for "openstack workflow execution show"

-----
[stack@osp10 ~]$ openstack workflow execution show input 933de0ad-ab59-4e40-9810-e5e792722ae3
usage: openstack workflow execution show [-h]
                                         [-f {json,shell,table,value,yaml}]
                                         [-c COLUMN] [--max-width <integer>]
                                         [--noindent] [--prefix PREFIX]
                                         execution
openstack workflow execution show: error: unrecognized arguments: 933de0ad-ab59-4e40-9810-e5e792722ae3
[stack@osp10 ~]$ openstack workflow execution show output 933de0ad-ab59-4e40-9810-e5e792722ae3
usage: openstack workflow execution show [-h]
                                         [-f {json,shell,table,value,yaml}]
                                         [-c COLUMN] [--max-width <integer>]
                                         [--noindent] [--prefix PREFIX]
                                         execution
openstack workflow execution show: error: unrecognized arguments: 933de0ad-ab59-4e40-9810-e5e792722ae3
-----

Version: python-mistralclient-2.1.1-1.el7ost.noarch

Comment 1 Dan Macpherson 2016-11-29 03:16:18 UTC
The standard mistral commands work fine though:

-----
[stack@osp10 ~]$ mistral execution-get-input 933de0ad-ab59-4e40-9810-e5e792722ae3
{
    "queue_name": "02ea7ab2-1a37-4809-b5a9-325eaf96aca9", 
    "container": "overcloud", 
    "timeout": 75
}
[stack@osp10 ~]$ mistral execution-get-output 933de0ad-ab59-4e40-9810-e5e792722ae3
{
    "__task_execution": {
        "id": "61ef2663-d4ef-4265-ba0e-127ff5552218", 
        "name": "send_message"
    }
}
-----

It just seems to be the osc versions that aren't working for me.

Comment 2 Dan Macpherson 2016-11-29 04:03:52 UTC
Also "openstack workflow show definiton" doesn't seem to work:

-----
[stack@osp10 ~]$ openstack workflow show definiton tripleo.plan_management.v1.update_deployment_plan
usage: openstack workflow show [-h] [-f {json,shell,table,value,yaml}]
                               [-c COLUMN] [--max-width <integer>]
                               [--noindent] [--prefix PREFIX]
                               workflow
openstack workflow show: error: unrecognized arguments: tripleo.plan_management.v1.update_deployment_plan
[stack@osp10 ~]$ mistral workflow-get-definition tripleo.plan_management.v1.update_deployment_plan
update_deployment_plan:
  input:
    - container
    - queue_name: tripleo
  tasks:
    update_plan:
      action: tripleo.plan.update container=<% $.container %>
      on-success: ensure_passwords_exist
      on-error: update_plan_set_status_failed
... etc ...
-----

Comment 3 Dan Macpherson 2016-11-29 04:20:36 UTC
Also "openstack action execution show output" and "openstack action execution show input" do not work.

Comment 4 Dougal Matthews 2016-11-29 08:52:01 UTC
This was resolved upstream but wasn't backported to Newton. I think it just missed the deadline and I didn't notice. I have opened a backport for the but.

The issue is that some of the commands overlapped - so it looks like "definition" is an argument for "openstack workflow show". This was resolved by reversing the order of a number of commands, so it is now: openstack workflow definition show

9 commands were impacted by this change, which can be seen in the backport:  https://review.openstack.org/#/c/404087/1/setup.cfg


Note You need to log in before you can comment on or make changes to this bug.