Commit Graph

17 Commits

Author SHA1 Message Date
Zuul 2e2cf63ecb Merge "Rename trove instances.edit to instances.update" 2023-11-11 19:46:21 +00:00
yaoning 3a86bd3d11 fix BaremetalIntrospectionAction loading failed
Change-Id: Ie67f7d6a439bce78782b66356d5f39501c7989c8
Signed-off-by: yaoning <yaoning@unitedstack.com>
2023-08-14 06:02:15 +00:00
yaoning 6482a8683e Rename trove instances.edit to instances.update
In Ifc919667e83573bd6c3b7aff205fe08e82667457,
instances.edit method in troveclient rename to
instances.update

Change-Id: I7bad94f133258a4d2ecff664b9c4f452d3f67b86
Signed-off-by: yaoning <yaoning@unitedstack.com>
2023-08-14 10:47:16 +08:00
Zuul 2e0139b9b2 Merge "Add monitoring server to mistral-extra" 2023-08-08 09:08:26 +00:00
Axel Vanzaghi 9e2ba462fe Fix Nova client version discovery
Signed-off-by: Axel Vanzaghi <axel.vanzaghi@ovhcloud.com>
Change-Id: Ia272d7bfbc69d64e031c8f7268ec69a8ea9baae6
2023-07-07 16:33:40 +02:00
Vasudeo Nimbekar 3385694dd5 Add monitoring server to mistral-extra
This feature will allow user to monitor mistral services and important metrics like operations related to tasks, executions, workflows, etc.
1. Added Monitoring server which can run similar to other mistral components by enabling monitoring and recovery jobs config options.
2. Monitoring plugin can collect metrics from the mistral and publish it in the Prometheus compatible format.
3. By using this monitoring plugin user can attach monitoring tools to the Mistral like Prometheus and Grafana to view metrics in a dashboard.
4. Added recovery jobs to recover from different failing or stucked conditions for eg. removing frozen named locks, refresh state of tasks stucked in waiting state long time, expired sub workflow tasks, stucked workflows, etc.

Implements: blueprint add-mistral-monitoring-plugin

Change-Id: Idbb6de9084504448befb9e346da4f458eb6c5a17
2023-05-26 14:39:34 +05:30
Axel Vanzaghi 44b3e5dff5 Fix test suite bug with barbican client
Barbican python client has implemented new methods in 5.5.0
which requires call to barbican API to create client.
There are no way for now to really get a fake barbican client.
Mocking the method responsible of that call in the tests
so it doesn't need to make the API call.

Change-Id: I6a607c8941bdb219de1cc212403124dea8ccac23
2023-03-20 08:14:32 +00:00
Joel Capitao c721eccd12 Drop bay and baymodel
magnumclient drops support of bay and baymodel in [1], so we
need to remove the bits here as well.

[1] https://review.opendev.org/c/openstack/python-magnumclient/+/803629

Change-Id: I930c998e4034e05d49fbb5843258986f3f816f89
2022-09-26 17:38:50 +02:00
Takashi Kajinami d8a8f99d39 Remove support for unmaintained Glare
Currently tox jobs are broken because python-glareclient can't be
installed with the latest constraints.

The conflict is caused by:
    python-cinderclient 8.3.0 depends on PrettyTable>=0.7.2
    python-glanceclient 3.6.0 depends on PrettyTable>=0.7.1
    python-glareclient 0.5.3 depends on PrettyTable<0.8 and >=0.7.1
    ...
    The user requested (constraint) prettytable===2.5.0

The Glare project has been unmaintained for a while[1]. It does not
support any of the current tested runtime and is considered to be
incompatible with recent OpenStack releases.

Because of these points, this change removes dependency on Glare.
Deprecation step is skipped to unblock CI jobs.

Also, this change removes the broken lower constraints job. It was
removed from Mistral a while ago[2] from the Mistral repo.

[1] https://opendev.org/x/glare
[2] https://review.opendev.org/c/openstack/mistral/+/770525

Change-Id: Ib6c138e3ce72ce775e29db80a076b9ade37ddaa0
2022-03-16 15:05:10 +00:00
Ghanshyam Mann dfc6c56490 Remove retired Qinling support
Qinling project is retiring in Wallaby cycle[1].
This commit removes the usages of Qinling project
before its code is removed.

Needed-By: https://review.opendev.org/c/openstack/qinling/+/764521

[1] http://lists.openstack.org/pipermail/openstack-discuss/2020-November/018638.html

Change-Id: Ic35b8fb37fb1916a6e51c147372a92cdc04281cf
2020-11-29 00:02:44 +00:00
Renat Akhmerov f4272e3e3a Fix serialization of OpenStack actions
* In the recent version 2.3.0 of mistral-lib there has been added
  the new serialization mechanism for actions since the communication
  schema between Mistral engine and Mistral remote executor will soon
  require it (once merged). All classes for OpenStack actions are
  eventually dynamically generated based on the static classes like
  NovaAction, HeatAction etc., so to make the serialization work
  correctly we have to take this into account. The newly added class
  OpenStackActionSerializer takes care of that.

Change-Id: I8d7e2db0b17fb8f055f77363667ca4ab2c501b34
2020-09-09 14:53:03 +07:00
Sean McGinnis e3eef9b56f
Use unittest.mock instead of third party mock
Now that we no longer support py27, we can use the standard library
unittest.mock module instead of the third party mock lib.

Change-Id: I8547aec13aa28fecf75f957e1f2ca7f5c56628ea
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2020-04-18 11:54:32 -05:00
Eyal b615bd4b48 Move preinstalled workflows to mistral-extra
* These workflows are openstack workflow so they should be
  in mistral-extra where all the openstack actions are.

* Use an entry point to get all the paths for the workflows.py,
  This way other projects can have there own pre installed workflows.

Depends-On: https://review.opendev.org/#/c/709963/
Change-Id: I379dc5ca40c2055122508daae7a638c21c840254
2020-02-26 11:02:39 +02:00
Eyal 5a641a9166 Mock Qinling fake client method
* The Qinling client doesn't have an rpm packaging so
running the unit test might fail if not installed.

Change-Id: Id551b07721fa9c1cdeaa60ae717af82a05e2234a
Needed-By: https://review.rdoproject.org/r/#/c/14216/
2020-02-10 13:29:59 +02:00
Eyal b8943be736 Mock Zun fake client method
* The Zun client doesn't have an rpm packaging so
running the unit test might fail if not installed.

* The Designate client was fixed so there is no need to mock it.

* Use Mock Fixture instead of calling directly the mock.patch,object

Change-Id: Id7226c889c18dbe3a38b106b0cdac5e331f54e3a
2020-02-10 10:06:50 +02:00
Eyal bb2af2e2be Move openstack actions to mistral-extra
Implements: blueprint mistral-actions-api-separate-openstack-actions
Change-Id: Iaf1cca7a29df35409fea641fdb60191afb509b5a
2020-01-29 12:27:13 +02:00
Brad P. Crochet 5bee294596 Set up mistral-extra with the ability to run unit tests
Properly sets up the mistral-extra repository with packaging and testing
setup, in order to add gating in CI.

Change-Id: I204745785e63cc8b1ae47da5cc59eda6da18b722
Depends-On: I5e75914e500837babdeb358a76ec7d90c56f61ac
2017-03-03 16:29:49 -05:00