Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.
Bug 1691291 - Missing "params" attribute for creating a Mistral workflow execution in openstacksdk for python [NEEDINFO]
Summary: Missing "params" attribute for creating a Mistral workflow execution in opens...
Keywords:
Status: NEW
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-mistral
Version: 14.0 (Rocky)
Hardware: Unspecified
OS: Linux
medium
medium
Target Milestone: ---
: ---
Assignee: RHOS Maint
QA Contact: nlevinki
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-03-21 11:03 UTC by rohit londhe
Modified: 2019-04-05 02:39 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Target Upstream Version:
rlondhe: needinfo? (rhos-maint)
rlondhe: needinfo? (rhos-maint)
rlondhe: needinfo? (rhos-maint)
rlondhe: needinfo? (rhos-maint)


Attachments (Terms of Use)

Description rohit londhe 2019-03-21 11:03:36 UTC
Description of problem:

Proposal to add "params" attribute in Mistral workflow execution.

The v2 API of Mistral service have "params" attribute for creating workflow execution [1]. This attribute is a json object for workflow type-specific parameters. 

For example, the "env" (environment) dict can be used for installation specific parameters (dev/staging/etc..). Which we are using to split such environments but having the same logic in workflows definitions.

Currently, the openstacksdk have lost the "params" attribute [2] for some reason but it can easily be inserted in Execution class definition for example as follows:

~~~~~~~~~~~~~~~~~~~~~~~~
42a43,44
>     #: A JSON structure defining workflow type specific parameters.
>     params = resource.Body("params")
~~~~~~~~~~~~~~~~~~~~~~~~

[1] https://docs.openstack.org/mistral/latest/api/v2.html#executions
[2] https://github.com/openstack/openstacksdk/blob/master/openstack/workflow/v2/execution.py#L43

Version-Release number of selected component (if applicable):


RHSOP13 packages.

python2-mistralclient-3.3.0-1.el7ost.noarch
openstack-mistral-api-6.0.5-1.el7ost.noarch
python2-mistral-lib-0.4.0-1.el7ost.noarch
puppet-mistral-12.4.0-1.el7ost.noarch
python-mistral-6.0.5-1.el7ost.noarch
openstack-mistral-engine-6.0.5-1.el7ost.noarch
openstack-mistral-executor-6.0.5-1.el7ost.noarch
openstack-mistral-common-6.0.5-1.el7ost.noarch


How reproducible:
NA

Steps to Reproduce:
NA

Actual results:

"params" attribute in Mistral workflow execution is not present

Expected results:

We can have "params" attribute in Mistral workflow execution.

Additional info:


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