Commit Graph

32 Commits

Author SHA1 Message Date
Ghanshyam Mann 36a6ec8ab7 Update python classifier in setup.cfg
As per the current release tested runtime, we test
till python 3.11 so updating the same in python
classifier in setup.cfg

Change-Id: I4bb6f61e833e1b32252db7dcf6773139746e5335
2024-01-03 20:23:07 -08:00
Stephen Finucane 962cf0abed db: Remove configurable backends
oslo.db has killed the idea of the migration wrappers. This knob is
therefore no longer useful.

Change-Id: Ia61b3291668b17b13d5f674c0dceff29a7b9b4cf
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2023-12-21 11:06:20 +00:00
suzhengwei 23c6c31409 vm moves for host notification
This feature is mainly to persist vm moves information of one host
notification into the database. It also provides a new 'VMove' api,
which could help users to insight the process or result of the host
recovery workflow, such as which vms evacuated succeed or failed, and
which ones are still evacuating.

Implements: BP vm-evacuations-for-host-recovery
Change-Id: I334af06ef526bf11dfe5030e8cba210b98f1ceea
2023-01-28 11:01:24 +00:00
songwenping c3fc0c2f9d Update python testing as per zed cycle testing runtime
In Zed cycle, we have dropped the python 3.6/3.7[1] testing
and its support. Removing the py36 centos8 job as well as
updating the python classifier also to reflect the same.

[1] https://governance.openstack.org/tc/reference/runtimes/zed.html

Change-Id: I16e7f3fa2390e52a541f91b66a327d7829d44773
2022-05-13 15:55:34 +08:00
wu.shiming 7c6380d63e Updating python testing classifier as per Yoga testing runtime
Yoga testing runtime[1] has been updated to add py39
testing as voting. Unit tests update are handled by the
job template change in openstack-zuul-job

- https://review.opendev.org/c/openstack/openstack-zuul-jobs/+/820286

this commit updates the classifier in setup.cfg file.

[1] https://governance.openstack.org/tc/reference/runtimes/yoga.html

Change-Id: I803658741e3bcc8dbc4ec12acdf96b4bb33c8d60
2021-12-21 10:28:47 +08:00
XinxinShen 1f35f8e3ee setup.cfg: Replace dashes with underscores
Setuptools v54.1.0 introduces a warning that the use of dash-separated
options in 'setup.cfg' will not be supported in a future version [1].
Get ahead of the issue by replacing the dashes with underscores. Without
this, we see 'UserWarning' messages like the following on new enough
versions of setuptools:

  UserWarning: Usage of dash-separated 'description-file' will not be
  supported in future versions. Please use the underscore name
  'description_file' instead

[1] https://github.com/pypa/setuptools/commit/a2e9ae4cb

Change-Id: Ia76c436755bec986f3702292c939b3cb6b15e8ed
2021-04-28 10:55:18 +08:00
Ghanshyam Mann 513c29078f [goal] Deprecate the JSON formatted policy file
As per the community goal of migrating the policy file
the format from JSON to YAML[1], we need to do two things:

1. Change the default value of '[oslo_policy] policy_file''
config option from 'policy.json' to 'policy.yaml' with
upgrade checks.

2. Deprecate the JSON formatted policy file on the project side
via warning in doc and releasenotes.

Also replace policy.json to policy.yaml ref from doc and tests.

[1]https://governance.openstack.org/tc/goals/selected/wallaby/migrate-policy-format-from-json-to-yaml.html

Change-Id: Iad942530b5d540af3d3c074e9944687b93bcd7f2
2020-12-23 00:47:36 +00:00
melissaml fce4d80b19 Remove translation sections from setup.cfg
These translation sections are not needed anymore, Babel can
generate translation files without them.

Change-Id: I3055d2d32d67541772c894c05577da2d93d2301f
2020-05-14 19:21:14 +08:00
Sean McGinnis 04fcb44fb8
Add py38 package metadata
Now that we are running the Victoria tests that include a
voting py38, we can now add the Python 3.8 metadata to the
package information to reflect that support.

Change-Id: Ib3e1227983069677b71253521de3c16f88bc68bc
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2020-04-24 08:22:36 -05:00
Ghanshyam Mann d46ea6b110 [ussuri][goal] Drop python 2.7 support and testing
OpenStack is dropping the py2.7 support in ussuri cycle.

Masakari is ready with python 3 and ok to drop the
python 2.7 support.

Complete discussion & schedule can be found in
- http://lists.openstack.org/pipermail/openstack-discuss/2019-October/010142.html
- https://etherpad.openstack.org/p/drop-python2-support

Ussuri Communtiy-wide goal:
https://governance.openstack.org/tc/goals/selected/ussuri/drop-py27.html

Depends-On: https://review.opendev.org/#/c/693631/
Change-Id: I144571286343e6be2518e3fe72e33c86a0fd0dfe
2019-11-16 14:24:16 +00:00
Shilpa Devharakar 596b3d142e Reorganize masakari documentation
Updated operator guide documentation for
1. segregated sections appropriately
2. referred masakariclient for CLI section
3. added detailed 'Install and configure for Ubuntu' section
4. added detailed 'Verify operation' section
5. used sphinx-build instead of the pbr sphinx extention for building docs
   as instructed by the PTI[1]
6. cleaned up build_sphinx related entries in setup.cfg

[1]: https://governance.openstack.org/tc/reference/project-testing-interface.html#documentation

Change-Id: Iec93bebdbc7ffe1ccd27bb11f474384ff06a559c
2019-10-11 01:32:08 +00:00
Corey Bryant 85fa0c0058 Add Python 3 Train unit tests
This is a mechanically generated patch to ensure unit testing is in place
for all of the Tested Runtimes for Train.

See the Train python3-updates goal document for details:
https://governance.openstack.org/tc/goals/train/python3-updates.html

Co-Authored-By: gujin <gu.jin@99cloud.net>
Change-Id: Ib98f78131050be2c38a0128d2e2a792639c03c1c
Story: #2005924
Task: #34221
2019-08-26 14:08:28 +05:30
pandatt 4a847033f2 Change openstack-dev to openstack-discuss
Change-Id: If982988f604a876c3145bc91ca0ea56cbd934496
2018-12-04 11:35:40 +08:00
akhiljain23 7700cdd3bf Add framework for masakari-status upgrade check
This commit adds the functionality of masakari-status CLI for performing
upgrade checks as part of the Stein cycle upgrade-checkers goal.
It only includes a sample check which must be replaced by real checks in
future.

Change-Id: I17c79af15eca5f6da7e32dbedbdc392c97114d42
Story: 2003657
Task: 26140
2018-11-08 13:19:06 +00:00
bhagyashris ad3dc737c9 Add hooks for recovery method customization plugins
This change adds hooks for pulling in plugins for
Interoperable recovery method customization taksflow
by configuring the actions in terms of execution order,
extra parameters to execute commands in action.

Implements: blueprint recovery-method-customization

Change-Id: I8150935ce0a4e592bd0f87bb3c7b3e599cefa033
2018-08-02 13:13:00 +05:30
nirajsingh 3104c5f66b Fix masakari installation failure for policy.json
This patch fix the masakari installation failure issue
because of changes made for policy-in-code

Change-Id: Ie6b5ee3cc56a638f1781b7c7c179ab1b18fbdd26
2018-07-31 10:44:54 +00:00
shilpa.devharakar d7592cbe25 Register and Document policy in code
Adds below things for the implementation of framework for registering and
using default policy rules.
* Policy-in-code
  The framework for registering and using default policy rules.
  Rules should be defined and returned from a module in
  masakari/policies/, and then added to the list in masakari/policies/__init__.py.
  A new context.can() method has been added for policy enforcement of
  registered rules. It has the same parameters as the enforce() method
  currently being used.
* Add policy sample generation
  The entry point and config file necessary for using the
  oslo.policy sample generation script. It also adds a tox target to
  simplify the usage of it.
* Add policy documentation and sample file
  Documentation and sample file for default policy in code feature.
* Hacking check for policy registration
  It ensures that policy registration happens in the centralized
  masakari/policies/ directory.
* Hacking check for _ENFORCER.enforce()
  Hacking check in order to ensure that only registered policies
  are used for authorization checks _ENFORCER.authorize should be used rather
  than _ENFORCER.enforce.
* Add entry_point for oslo policy scripts
  There are two helper scripts in oslo.policy to help deployers understand
  their policy configuration better. With the setup.cfg entry these can be
  called directly from oslo.policy.

Changes done here are with the reference of [1] at NOVA side
which is contributed by Andrew Laski and Claudiu Belu

[1] https://review.openstack.org/#/q/topic:bp/policy-in-code+project:openstack/nova+status:merged

Change-Id: If885a66d92c31be440d27d6780635800a0b12e3e
2018-07-27 12:15:14 +05:30
dineshbhor 5bbd78e326 Deploy masakari-api with uwsgi
As per community goal [1], this patch allows deploying
masakari-api with uwsgi.

NOTE:
This patch takes reference from the nova implementation of deploying
nova-api with uwsgi.

[1] https://governance.openstack.org/tc/goals/pike/deploy-api-in-wsgi.html
Change-Id: I469d4b6df49ad3489722feae0b795c20a6a3913b
2018-05-25 00:35:04 -07:00
Jean-Philippe Evrard ea2d8f42a0 Ship files like other openstack projects
For packagers, it's useful to have consistency.
This patch ensures the api-paste is shipped with masakari as
data files, like other projects do: [1], [2], [3].

In this patch, I also added the policy.json file, because
the policy is not yet in code.

Configuration files are not to be shipped with this manner,
as they are generated.

[1]: https://github.com/openstack/cinder/blob/master/setup.cfg#L28
[2]: https://github.com/openstack/glance/blob/master/setup.cfg#L20
[3]: https://github.com/openstack/nova/blob/master/setup.cfg#L26

Change-Id: I67aaca1da57909746766dc495b2009fb60feffd0
2018-04-05 14:17:47 +00:00
shangxiaobj f43de14376 Improve the home-page url in setup.cfg
Replace the home-page of masakari with the full url in setup.cfg.

Change-Id: I195951761931d2c4e1a6cd7ea9742ea4b11a1c6a
2017-12-26 07:12:07 +00:00
Vu Cong Tuan b26ba43f72 Remove support for py34
The gating on python 3.4 is restricted to <= Mitaka. This is due to
the change from Ubuntu Trusty to Xenial, where only python3.5 is
available. There is no need to continue to keep these settings.

Change-Id: Ieecf7342152cc813ec3585a3b1873ac0dc13d804
2017-07-11 15:33:14 +07:00
Van Hung Pham 7edf071253 Optimize the link address
Update link address to ensure safety and preciseness

Change-Id: Iae7efd7e026dfe0b167154ca38cf9cc1e0b84cc0
2017-06-08 18:37:08 +07:00
dineshbhor c3a58e4988 Add TaskFlowDriver support to process notifications
Added base NotificationDriver and TaskFlowDriver which will implement
NotificationDriver for procesing the notification workflows such as
host-failure, instance-failure and process-failure.

Change-Id: I2d12681bd26b5b1fb2535732d9f3c08ec2409d7a
2016-11-04 15:28:06 +05:30
Abhishek Kekane d8040e7ccc Add masakari-engine support
Added masakari-engine service using oslo_service framework. Added
MasakariManager class which will handle RPC calls related to
notifications.

Change-Id: Ifd704cf452ceb4ece2867ca8fba3f94fbb94aa42
2016-10-05 14:53:26 +05:30
dineshbhor 44f7699e48 Add notifications controller for masakari
This patch will add following notification apis:

1] GET /v1/notifications
2] GET /v1/notifications/<notification_uuid>
3] POST /v1/notifications

Change-Id: Id2d2b8ba5c372b21a5b0df4f1e4db9054e55831f
2016-10-04 11:37:27 +05:30
dineshbhor 2e267e6604 Added host controller for masakari
Host controller will allow user to do CRUD operations on hosts.
Added authorize policy for host controller methods as these are
going to be called by admin only.

Change-Id: I9871d4163d13bddfa49e6ee5f532de641711c30e
2016-09-23 13:56:19 +05:30
dineshbhor d906541e21 Added failover segments controller for masakari
This patch will allow masakari operators to hit following apis:

1] GET /v1/segments
2] GET /v1/segments/<segment_uuid>
3] POST /v1/segments
4] PUT /v1/segments/<segment_uuid>
5] DELETE /v1/segments/<segment_uuid>

Change-Id: I63b48bfa70db7bfacec1c8431fe48feb7aa4c7ef
2016-09-23 13:54:44 +05:30
avnish 630b009384 py33 is no longer supported by Infra's CI
Python 3.3 support would be dropped by
Infra team from mitaka,CI would no longer be testing it,
so projects should drop it also.

Change-Id: I4fc9589b181a8dc2f5879573e39ca7fee6083452
Closes-Bug: #1526170
2016-09-22 09:38:38 +05:30
dineshbhor 27977c10ee Make use of oslo-config-generator
oslo_config provide a utility for generating sample config files,
which provide more detail about opts, like Minimum/Maximum value
and Allowed values.

After this patch, new config options of masakari code should register
with masakari/conf/opts.py.

Change-Id: I8f2f7e87268498ebee7ca164db1c98ef43c279b0
2016-08-11 12:45:26 +05:30
dineshbhor 96d285195d Add db sync support for masakari
Added migration scripts for failover segment and host.
User will be able to sync the database with masakari-manage
command.

Change-Id: Ic37e681c6cb1ca6a341a77b738abb0a43a2910c4
2016-08-05 11:49:20 +05:30
Abhishek Kekane d4f055262e Add support for wsgi framework
Added wsgi framework support to create masakari-api
service using oslo_service framework. Similar to core
openstack projects, config items will be kept at centralized
location.

Refer README.rst to cofigure and run masakari-api service.

Change-Id: Idb0120b8cf3b10642c51b286d82cd0944cad5ca3
2016-07-12 13:10:10 +05:30
sampathP b59503d7aa Initial Cookiecutter Commit.
Change-Id: I42dea4c1d43a041cfd948703355ce7456c8850e1
2016-06-28 13:28:27 +09:00