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

Summary: Missing "params" attribute for creating a Mistral workflow execution in openstacksdk for python
Product: Red Hat OpenStack Reporter: rohit londhe <rlondhe>
Component: openstack-mistralAssignee: RHOS Maint <rhos-maint>
Status: NEW --- QA Contact: nlevinki <nlevinki>
Severity: medium Docs Contact:
Priority: medium    
Version: 14.0 (Rocky)CC: igortiunov, jjoyce, jschluet, rhos-maint, slinaber, tvignaud
Target Milestone: ---Flags: rlondhe: needinfo? (rhos-maint)
rlondhe: needinfo? (rhos-maint)
rlondhe: needinfo? (rhos-maint)
rlondhe: needinfo? (rhos-maint)
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

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: