Commit Graph

26 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 <kecarter@redhat.com>
2020-04-04 03:46:36 +00:00
Kevin Carter 026e98012a Remove mistral when running the provide workflows
This change removes all of mistral from the provide workflows
by calling the new provide playbook.

Story: 2007212
Task: 38443
Task: 38446

Depends-On: Ic1cf39a29826b3828967e23a056884d867431062
Change-Id: If0184d3db5e49f6c3d302674ce7587ba27050a91
Signed-off-by: Kevin Carter <kecarter@redhat.com>
2020-03-16 03:11:03 +00:00
Kevin Carter 7e677b0c35 Remove the mistral from the clean_.*_nodes workflow
This change removes all of mistral from the clean_nodes and clean_manageable_nodes
workflows by calling the new cleaning playbook.

Story: 2007212
Task: 38451
Task: 38452

Depends-On: I0e3f50ff2bdc16b6a148977b39a12023d5b30b3e
Change-Id: I0b1981a82b1ae5d2b52a74250b623218a0cb6c0d
Signed-off-by: Kevin Carter <kecarter@redhat.com>
2020-03-13 11:07:53 +00:00
Dougal Matthews bb639bc65c Remove mistral from the introspection workflows
This change removes all of mistral from the introspection workflows
by calling the new introspection playbook.

Story: 2007212
Task: 38444
Task: 38445

Depends-On: I7ba8a31b71ed5bc9bdd944769ea472b537c83a98
Change-Id: I48bedfe9a705f5ff8e0eed1f852b77938d53c763
Signed-off-by: Kevin Carter <kecarter@redhat.com>
2020-03-13 11:07:53 +00:00
Kevin Carter af719b795b Remove mistral from the configure workflows
This change removes all of mistral from the configure functions
by calling the required functions directly.

Story: 2007212
Task: 38447
Task: 38448

Change-Id: I65eac9f813330d066f8ca6cbaae6c972d43d0246
Signed-off-by: Kevin Carter <kecarter@redhat.com>
2020-03-13 11:07:53 +00:00
Kevin Carter ad9c7a7504
Remove mistral when running the register_or_update workflow
This change removes all of mistral from the register_or_update workflow
by calling the required functions directly.

Story: 2007212
Task: 38442

Closes-Bug: #1866637
Change-Id: Ie85adc64cd4fcec469d6979a424d8f01b00f34f2
Signed-off-by: Kevin Carter <kecarter@redhat.com>
2020-03-09 19:48:56 -05:00
Steve Baker 3e03e3b78c Add --concurrency argument to introspect commands
The default concurrency of 20 may be too high for small underclouds
(especially CI environments), so this change adds a --concurrency
argument so callers can control the maximum number of nodes
to introspect concurrently.

Depends-On: https://review.opendev.org/#/c/672389/
Change-Id: I9faee9ab133e34466a79aa1176a16106bda1f15d
Closes-Bug: #1836976
2019-07-24 21:10:58 +00: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
payload.

Depends-On: Icbe80c338d69efc6ce8fceb0f73f833bec588536
Change-Id: Ie6473d6a1044cdf76552d62645b4d63da2df9398
Related-Bug: #1794277
2018-09-28 09:00:37 -04:00
Dmitry Tantsur 373a4b6b2e Add 'overcloud node clean' command to run metadata cleaning on nodes
This is a manual replacement for the disabled automated cleaning.

Depends-On: I909aad89bb18bb416e9749395970617d45b247ee
Change-Id: I8e7f9b1122ff697adb4538233242c7b48420b17b
2018-04-27 15:41:14 +02: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
Dougal Matthews 67b4beb66c Support multiple messages from configure_manageable_nodes
This updates the workflow wrapper to use the multiple message interface.

Change-Id: I208b14fef721d0fcdb2e340cb5237d590e832a98
Partial-Bug: #1646887
2017-03-30 09:11:00 +01:00
Dougal Matthews 6d39eb5e94 Support multiple messages from configure workflow
This updates the workflow wrapper to use the multiple message interface.

Change-Id: I4b807b0e8d13f75193e33cffab77e4df74e05b5b
Partial-Bug: #1646887
2017-03-30 09:11:00 +01:00
Dougal Matthews 165c0a0c04 Support multiple messages from provide_manageable_nodes
This updates the workflow wrapper to use the multiple message interface.

Change-Id: I05f303649664b19ff932b6928b93a64c7636db71
Partial-Bug: #1646887
2017-03-30 09:11:00 +01:00
Dougal Matthews 363ff16900 Support multiple messages from introspect manageable
This updates the workflow wrapper to use the multiple message interface.

Change-Id: If29cb791acb5a01629bf2a97767fbcb2299b154c
Partial-Bug: #1646887
2017-03-30 09:11:00 +01:00
Dougal Matthews f71fc36a3c Support multiple messages from introspect workflow
This updates the workflow wrapper to use the multiple message interface.

Change-Id: I065652693a1c15e8cad9a06f715a0d5306ff828f
Partial-Bug: #1646887
2017-03-29 08:26:22 +01:00
Dougal Matthews 17f20bdaa6 Support multiple messages from provide workflow
This updates the workflow wrapper to use the multiple message interface.

Change-Id: I8ec4c3db9a2bd84d8cb577febef177cf6b663a86
Partial-Bug: #1646887
2017-03-29 08:26:22 +01:00
Dougal Matthews 3b9c2a454b Support multiple messages from register_or_update
This updates the workflow wrapper to use the multiple message interface.

Change-Id: Ib99f4871ded5a531f9408e72813977eaf2dbd272
Partial-Bug: #1646887
2017-03-16 10:20:29 +00:00
Brad P. Crochet 553e46e76a Add support for calling validations from introspection
The 'bulk introspection start' and 'overcloud node introspect' commands
can now enable the usage of the additional validations that are called
via workflows.
Commands now accept a '--run-validations' switch.

Change-Id: Ifcb30b9ceb15d82fffcda24cb98f2d03f4ded354
Partial-Bug: #1638697
Depends-On: I439361ae20c4e302b83870cdc06a5baa90ea683c
2017-01-26 15:55:39 -05:00
Jenkins 93ce4b6309 Merge "Add missing unit tests for the 'configure' workflows" 2016-09-22 06:35:58 +00:00
Julie Pichon 0573b605a2 Provide more information when 'node provide' fails
Because 'provide' calls to other workflows, the error message that
surfaces back can be quite difficult to parse. This attempts to make
the message more readable.

Change-Id: Iae3f29e5da25177fdee45752410f92b064c874c3
Depends-On: I8da43e4ff76488fc5cdb7bd2efa0cf9c39e7bb5e
Closes-Bug: #1620949
2016-09-19 09:37:31 +00:00
Dougal Matthews 133e8cf91a Migrate to using osc-lib
This new library provides the common logic used by openstack
clients. Replacing the imports from openstackclient and cliff.

Depends-On-External: https://review.rdoproject.org/r/#/c/2088/
Depends-On: I095209c241876c6ab48595962e07144fc5cc34a6
Closes-Bug: #1620964
Change-Id: I103a13ff6c0af94b82f5e48652380adfbf331d34
2016-09-13 22:35:01 +00:00
Julie Pichon ffeb2b1ef0 Add missing unit tests for the 'configure' workflows
Every other workflow in that file has unit tests except for these
two. Also, include another introspection test to add coverage for the
status/error logic.

Change-Id: I686096aa41ca544abfe0e2913a84d34e9acd4f73
2016-09-13 11:50:28 +01:00
Julie Pichon 6108b3be7d Add 'openstack overcloud node introspect' command
Change-Id: I1c58d9c825543cf402ff417d1fd05e89759e3ecd
Partial-Bug: #1595205
2016-07-11 08:50:02 +01:00
Dougal Matthews f1398ac51b Use Mistral for baremetal introspection
Updates the baremetal introspection workflows to use Mistral
instead of python.

Change-Id: I0dd051bb6585421455d88b63adff5c9249aae2c5
2016-07-08 15:43:20 +01:00
Dan Prince 9244349742 Use Mistral for baremetal registration
Updates the baremetal registration workflows to use Mistral
instead of python.

Co-Authored-By: Dougal Matthews <dougal@redhat.com>
Co-Authored-By: Ryan Brady <rbrady@redhat.com>

Change-Id: Ide8b7753829170f503ef962b4ad4fde388cbb0ba
Depends-On: Ifc6bdd273a8e129ea7c4269d00add64e72cd371b
Depends-On: I910f50a377bcbc2c23b527953e9df7eee9c938a4
2016-07-08 15:43:18 +01:00