Commit Graph

32 Commits

Author SHA1 Message Date
Eyal 8bdf341af7 Remove OpenStack actions from mistral
Depends-on: https://review.opendev.org/#/c/703296/
Depends-On: https://review.opendev.org/#/c/704280/
Change-Id: Id62fdabe7699e7c3b2977166e253cfc77779e467
2020-02-26 10:12:01 +02:00
Eyal eaf0916e31 Fix fake clients in actions
* Use inspector_url when creating a fake client for ironic inspector client
* Add a session and a url for designate fake client

Change-Id: I9cc78df13d0f0715538bbdb76c8ccad273bd2033
2020-01-27 17:35:06 +02:00
Renat Akhmerov efc4cf078e Use v2 designate client instead of v1
* Module designateclient.v1 doesn't exist anymore after
  python-designateclient 3.0.0 is out. The new client
  requires a keystone session so all other parameters
  were dropped. Since this service now requires a
  a session the generator test now mocks the method
  _get_fake_client() for this action.
* Minor style changes.

Change-Id: Ida722828e3f1481e08f52257405ddfa2175733fa
2019-09-18 14:42:56 +07:00
Thomas Herve ec3d14112c Fix senlin fake client creation
The new openstacksdk mechanism forces a keystone request to find info
about endpoints. We don't need this for fake client, so skip the
__init__ of the class.

Change-Id: I5b0d89ac57c14f982a6afa638f088d365e0e4ab8
2018-11-06 11:52:32 +01:00
Renat Akhmerov c39842b849 Fix usage of cachetools in lookup_utils
* In the latest version of cachetools lib (3.0.0) the previously
  deprecated argument "missing" of cache classes has been removed.
* Disabled test_generator failing due to the changes in the
  senlin client until it's fixed by https://review.openstack.org/614211

Change-Id: Iac42f592834734a6fddb743e947860b3bb7e1aba
2018-11-06 15:36:43 +07:00
Jose Castro Leon a2756a34c2 Support Manila actions in Mistral
Adds manila actions into the available list of actions for mistral

Change-Id: Ic0a3c24f72d91a8a87ffcf81db763058bcbf8566
Closes-Bug: #1783291
2018-07-24 15:11:08 +02:00
Lingxian Kong 4fe4198ac8 Support Qinling actions in Mistral
An example can be found in the task description.

Remove the cap on networkx library according to:
13644d63c6 (diff-d7d5c6fa7118ea10d88f3afeaef4da77)

Depends-On: https://review.openstack.org/#/c/567971/
Change-Id: I168a32b8c73b4b30224ce8f27bcde9cfa2b8d2ad
Story: 2002014
Task: 19654
2018-05-16 21:27:42 +12:00
pengdake 11896ba733 Support actions for zun
Add ZunAction for zun. Zun is an OpenStack Container service. It aims to
provide an API service for running application containers without the
need to manage servers or clusters.

Change-Id: Ibbe4777528b5af6fdb3a6c2ed3345f8f9c804bef
Signed-off-by: pengdake <19921207pq@gmail.com>
2018-04-27 09:52:19 +08:00
pengdake 92b6016e3d Fix error about SenlinAction
The senlin action is not found after populating database.

Closes-Bug: 1756252

Change-Id: I7a80c8d8325d3c4446e6a0082a354552bc1adfa7
2018-04-25 19:25:05 +08:00
Jaewook Oh f25fb43177 Added Vitrage actions into Mistral
Implements: blueprint mistral-vitrage-actions

Change-Id: I11068c1f1a0d7ee6973e7c736ba92c475f7d0902
2018-04-24 22:41:04 +09:00
Dougal Matthews 1a65bc447e Add Swift Service OpenStack Actions
Implements: blueprint mistral-support-swift-service-methods
Change-Id: I41649d15c57e16bffcf7870a52bc01177aae7cc8
2018-04-10 09:27:19 +01:00
Pradeep Kilambi 16de7e004f Remove ceilometer actions from mistral
ceilometer api and client have been deprecated for over
two releases and now removed completely. Lets drop these
actions and update the requirements.

Change-Id: Ica2b835a885b9b4705996f91080afc12587bd314
2018-01-11 14:28:16 -05:00
Mike Fedosin fec851381d Add Glare action pack
This patch adds Glare action pack into Mistral.

Change-Id: Icf4ce5a37f555d01cf9c0b865a6816e3f6801f3a
Implements-blueprint: glare-action-pack
2017-07-31 15:08:22 +00:00
Lingxian Kong 8b6147d076 Add "action_region" param for OpenStack actions
A new config item 'modules-support-region' is introduced to be used by
cloud operators, mistral will decide if add 'action_region' param to
openstack service action inputs according to that config.

Fixed an action definition for tempest tests.

TODO: Add release note.

Implements: blueprint mistral-multi-region-support

Change-Id: I0b582e9f81ab72cd05f4fae592c568f38dec6e00
2017-05-16 14:06:56 +12:00
Dougal Matthews f72c4621b4 Don't create actions when inspection fails
At the moment, if the inspection of an action fails we set the arg_list to
None. This will create a broken action in many cases.

This change means that we skip actions, only if the inspect fails and an
exception is raised.

Change-Id: I826e24b5bebfc67b0c0101528fd44074dcd3cead
2017-04-04 11:06:46 +00:00
Dougal Matthews 4d1770004a Every unit test creates and registers every OpenStack action
That means around 1300 database inserts (or, attempted inserts, some seem to
fail) before every test. This is very slow. Only one of the tests
actually verifies the OpenStack actions are registered.

Recently I5ab01395c507fc857dca7cf08ab344a07def0dcf gave us a way to set
a different mapping file in the config. This change makes every test use
the much smaller test mapping file, rather than the default file.

Given that one test is checking specific actions being registered, these
were added to the test file to make that test pass. Once the OpenStack actions
are moved to mistral-extra this will improve again. The tempest tests
verify the actions load and tests a number of the OpenStack actions directly,
so our coverage of them isn't reduced.

From a brief test on my laptop, this reduces the unit test run time by
between 60 and 90 seconds.

Related-Bug: #1669511
Change-Id: Icc4ec5ef7d93d5ebb64f21c62d0bf7fc91e2f084
2017-03-03 11:52:20 +00:00
Istvan Imre 91237c2baa External OpenStack action mapping file support
Release note and command line parameter added.
From now it is optional to list openstack modules in mapping file which
you would not include into supported action set.

Change-Id: I5ab01395c507fc857dca7cf08ab344a07def0dcf
2017-03-03 08:00:30 +00:00
Emilien Macchi cc87dd7e2b Revert "External OpenStack action mapping file support"
Mistral API in WSGI is currently broken, see:
https://bugs.launchpad.net/mistral/+bug/1663368

This reverts commit a5fd5d452a.

Change-Id: I890a4be46b350d1adc53cb9ae15e2a7fdcad3e3f
Related-Bug: #1663368
2017-02-09 20:14:58 +00:00
Istvan Imre a5fd5d452a External OpenStack action mapping file support
Release note and command line parameter added.
Additionally from now on user don't need list all the
openstack modules in mapping file.

Change-Id: Ibdd2e2e471ecf23016b44f742166f6b22f1649b0
2017-02-08 08:21:38 +01:00
fengchaoyang 6d9b53ef3d Added gnocchi action pack
This patch adds gnocchi action pack into mistral.

Change-Id: I1438b554356ad8ea6b86744eea1402e1f5526739
Depends-On: I99915d9ad5d1ccfa7ff326adab89937cf64a07ce
Implements: blueprint mistral-gnocchi-actions
2017-01-03 12:27:38 +08:00
Pradeep Kilambi 44768730a7 Add aodh actions to mistral
Depends-on: I52df197c0e22f0814f7339601a7291fc057463f8

Implements: blueprint aodh-action-pack

Change-Id: I30d0a2e87ec97a49d81ada4f2ee34c7934935ab3
2016-12-22 11:12:22 +00:00
Sharat Sharma 84f3c1fb9d Added senlin action pack
This patch adds senlin action pack into mistral

Change-Id: Ic822bfd3f43e6f6e834dd26bb87387d1eef93a89
Implements-Blueprint: senlin-action-pack
2016-11-14 09:21:09 +00:00
Shaik Apsar 7e9c04ebb9 Add tacker actions in mistral
Change-Id: Ie5f445fae4aee7bb01a71b3959c0ff2610c52f1f
Implements: blueprint tacker-api-actions
2016-07-02 06:16:54 -04:00
hardik fcd48626a4 Updated mapping.json file
unit tests has been modified for murano
and magnum actions.

Change-Id: Ic72c29038a1d7c750d72354c3fef6f51c8a3d91b
2016-06-28 11:09:31 +05:30
Venkata Mahesh Jonnalagadda d2af0dfd70 mistral actions for designate v1 api's not working
Corrected the actions, json, import calls for designate v1 api's

Change-Id: Ifc464a7dc047a54b9c6743e1419463c59f446cec
Closes-Bug: #1587457
2016-06-06 07:41:31 -04:00
ravikiran 42ca859c27 Add Designate apis as mistral actions
Implement designate actions in Mistral, useful for automating the designate tasks

Change-Id: Id6f9d1c7a29530068be453a7c8c1fc607af23e91
Implements: blueprint designate-api-actions
2016-05-16 02:54:41 -04:00
Daryl Mowrer 812f1803a6 Add Mistral action pack
This patch adds support for calling Mistral v2 APIs as actions in
Mistral.

There will be at least two more patch sets for this blueprint to
fully support these changes.

Change-Id: I0226482ddee1573232663e124837deb8a1985df8
Implements: blueprint mistral-mistral-actions
2016-02-19 07:42:47 -06:00
Limor 6a0557f570 Add actions to expose OpenStack Barbican APIs
Add Barbican actions to Mistral

Change-Id: I5b8edf6d435e2e79b5ab4663df8fe72d09e1d346
Implements: blueprint support-barbican-actions
2016-02-09 08:50:55 +00:00
Thomas Herve f4b17331e4 Implement basic Zaqar queue operations
Add actions to post, pop and get messages from a Zaqar queue. As the
Zaqar client is built differently from other OpenStack modules, the
usual generator logic doesn't apply, we need to re-implement them
directly in the action

blueprint mistral-zaqar-integration

Change-Id: Ib9cc39a0053ad7c117e2fba4b3b64a216190567f
2016-02-03 09:10:18 +01:00
Dan Prince 3815c9ee35 Add support for OpenStack Swift actions
This patch adds support for all supported Swift v1 API
actions via Mistral.

Some updates are required to swiftclient before
can fully support it in tools/get_action_list.py.

Implements: blueprint swift-actions

Change-Id: Ie5de12a5eb921595be67b06fa68b29aee877ac6b
2016-01-11 08:29:48 -05:00
Dan Prince 652a748fce Add support for OpenStack Ironic Inspector actions
This patch adds support for all supported Ironic Inspector v1 API
actions via Mistral.

Some updates are required to python-ironic-inspector-client before
can fully support it in tools/get_action_list.py.

Implements: blueprint ironic-inspector-actions

Change-Id: I28c85a0354dd1880eed36bc4cee5a8051ac9d57b
Depends-On: 61f8de56a77187b87c3ae75c637a3aa9045f0beb
2015-12-10 19:39:59 -05:00
Lingxian Kong bf7728743c Refactor action generator
When contributor wants to support new OpenStack service actions in
Mistral, there is no need to add different ActionGenerator classes
respectively and its corresponding unit tests.

Change-Id: Ifd49087c84164ecebfa095a9c6c85c089d807a8c
2015-12-09 23:03:33 +08:00