Commit Graph

17 Commits (2f9215b2535a976e1d1568650aa78be3fe8b5606)

Author SHA1 Message Date
Kevin Carter 624a61f206 Update verbosity so it is consistently set
This change will set the verbosity consistently whenever a playbook is
executed via the client.

All tests have been updated to ensure that the verbosity setting is always
defined when a playbook is executed.

Change-Id: I35b10d48344c8b7f71186bc529a300f75d7b8d63
Signed-off-by: Kevin Carter <>
2020-04-04 03:46:36 +00:00
Zuul 1b38e856e0 Merge "Add new interface to run arbitrary playbooks from a plan" 2020-03-31 04:00:37 +00:00
Rabi Mishra 71ca2d1073 Remove usage of GenerateFencingParametersAction action class
Replace with tripleo-common utils api.

Change-Id: I5fdecc3a9a2bd46f7d8056144c8b1d68f170878d
2020-03-30 15:17:22 +05:30
Rabi Mishra 98258c1a49 Remove usage of GetFlattenedParametersAction action class
Replaces with tripleo-common utils api.

Change-Id: I216b856ec0874045183b86d8a49b5473e35427c6
2020-03-30 15:17:22 +05:30
Kevin Carter 0464bdc17f Add new interface to run arbitrary playbooks from a plan
This change is the first step to providing a path to remove the mistral
"derived_params" workflows. Deployers will now be able to execute playbooks
from within a given plan by passing in the `playbook_parameters` key which
contains a dictionary of playbook file paths, and all options applied to a
given playbook.

Story: 2007419
Task: 39118

Change-Id: I26ea1c01e17513d001e311d68fd239d3ba8c8a0d
Signed-off-by: Kevin Carter <>
2020-03-23 14:55:06 +00:00
Kevin Carter 8416553903 Remove the mistral from the check_deprecated_parameters workflow
This change removes all of mistral from the check_deprecated_parameters
function by calling the required functions directly.

Story: 2007212
Task: 38424

Change-Id: Ib76dac4e0d11c66fe90c30db19788af1cb4694f6
Signed-off-by: Kevin Carter <>
2020-02-28 11:38:51 +01:00
Kevin Carter dbe5169d97 Remove mistral from the generate_fencing_parameters deploy workflow
This change removes all of mistral from the generate_fencing_parameters function
by calling the required functions directly.

Story: 2007212
Task: 38425

Change-Id: Iadcfb34e296144d82fde1d32acfffa1e01c5c997
Signed-off-by: Kevin Carter <>
2020-02-24 13:11:06 -06:00
Natal Ngétal ddb9970aef Add test for the function check_deprecated_parameters.
Add test for the function check_deprecated_parameters in workflows
parameters file. Test the unused_params and invalid_role_specific_params

Change-Id: I052d9958f52479e196d5e5dd4531f3971d7c0eb8
Closes-Bug: #1838923
2019-10-14 11:47:33 +02:00
Dougal Matthews 7f3853abe1 Remove get_overcloud_passwords, a unused function
Change-Id: I81883b8e501481a3ddf372abc547d85215475411
2019-08-22 08:24:31 +00:00
Natal Ngétal a6b920419c Use logger module instead print.
Use logger module instead print when it's necessary like to display a
warning message. Fix also a pep8 error in the workflows base file.

Change-Id: Ie6f06361ed15bab4d24536a9da88e9c92097771e
Closes-Bug: #1713539
2019-08-05 11:51:30 +02:00
apetrich cad7916ce8 Remove execution from workflow message send
Serializing all the execution in a message can make the message too big.
This change was done in tripleo-common. this supports that change
This change still supports the old format and is backwards compatible.

Partial-Bug: #1812172
Change-Id: I40ee028366222f38f5ba1db58d171f98be75d009
2019-01-21 09:26:04 +01:00
James Slagle 339c1f334c Filter messages not from waiting execution
The convention is to use the same queue name ("tripleo") for all
workflows. This can lead to messages showing from other tripleoclient
triggered workflows showing up during message polling if multiple
workflows are running at the same time.

This patch adds a check that will filter out any messages that do not
belong to the execution that is being waited on by comparing the
execution id with the root_execution_id returned in the execution

Depends-On: Icbe80c338d69efc6ce8fceb0f73f833bec588536
Change-Id: Ie6473d6a1044cdf76552d62645b4d63da2df9398
Related-Bug: #1794277
2018-09-28 09:00:37 -04:00
Brad P. Crochet c366263407 Change generate fencing parameters to call workflow
Update the client and tests to call the workflow
tripleo.parameters.v1.generate_fencing_parameters instead of the action
tripleo.parameters.generate_fencing directly.

Change-Id: I9539109db4edd4b5fa2ee365cc8b3055bd2c5df7
Depends-On: I63f3a579af5aa70080f8c9cdd5eb0e8f5b3d17da
Partial-Bug: #1640436
2018-03-26 11:10:10 -04:00
Toure Dunnon 1bd1620ead Tripleoclient unified queue name.
This will allow the cli and tripleo UI to share a common queue,
which will help with scripting the frontend behaviour or track
the progress of the cli from the frontend.

Related-Bug: #1603345

Change-Id: I5849983eee82b5a56cae1bf38a3c2694b6b291db
2017-11-06 13:46:14 -05:00
Saravanan KR 8f1e68d0ab Added a warning log to list the deprecated parameters in the plan
Execute a workflow to get the list of deprecated parameters in
the plan. Add a warning log to the user just before the deployment
to alert the user that a list of parameters are deprecated. And
should be removed soon.

Change-Id: If496795e44c5b36cb58fcc0221d99d94e098415c
2017-07-13 18:38:52 +05:30
Jaganathan Palanisamy 0d3e4eff06 Invokes specified workflows in plan env file
This change is to invoke the workflows specified in
plan enviroment file. Workflows can be specified for
workflow_parameters parameter in plan-environment file.
This change parses the plan-environment file, and
sequentially executes all the workflows specified in
the file.
Implements: blueprint tripleo-derive-parameters

Change-Id: I37993334a45cf5ee713438151dbbde0997bdf723
2017-07-05 03:36:30 -04:00
Dougal Matthews b93b7e9ce1 Support multiple messages from get_passwords
This updates the workflow wrapper to use the multiple message interface.

This patch also adds test coverage for this code. Previously it was
mocked out in all places that touched it.

Change-Id: Ie2619238592563d0ca3442e0f26967b12d9c6eb1
Partial-Bug: #1646887
2017-03-28 16:08:21 +00:00