Commit Graph

44 Commits

Author SHA1 Message Date
Ghanshyam Mann b0dbd0a929 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: I7a11cbaf5d6df2dcfa043559f1444c909e4f00d3
2024-01-03 21:22:52 -08:00
leiyuehui f194168ced 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: I6c31cc6ab8c58f77216d869dbbcd6c68bec09b7e
2022-06-09 06:44:10 +00:00
Ghanshyam Mann d85abc7589 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: I9149eb5a046127057cc41f44fcd6b6784fcc61a1
2021-12-14 02:37:22 +00:00
Pierre Riteau 77cf9028b4 Change dashes to underscore in setup.cfg
Recent versions of setuptools are warning that usage of dash-separated
keys will not be supported in future versions.

Change-Id: Ie2e4f8b4d593985c128c3ffbbd476bc7b79b5db4
2021-03-11 06:21:13 +01:00
Ghanshyam Mann 3f1c1ed312 [goal] Deprecate the JSON formatted policy file
As per the community goal of migrating the policy file 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 documentation and release notes.

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

Change-Id: I9ca5459a6968d93dee1bf24b3e0012a4cc7020b5
2021-01-28 16:37:30 +01:00
wu.shiming 38189e1670 Remove Babel requirement
Babel is no longer a requirement for OpenStack projects. We can remove
it and save some disk space.

Change-Id: I83a8632b004b6b94d5a99e00f9f4e193081eaba9
2020-10-02 10:29:47 +00:00
Sean McGinnis 2ff1fb58b3
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: I4600211320beeb2b81e620bcce8545cb60b0a3ad
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2020-05-02 07:48:11 -05:00
Andreas Jaeger a98989b2ef Cleanup py27 support
This repo is now testing only with Python 3, so let's make
a few cleanups:
- Remove python 2.7 stanza from setup.py
- Add requires on python >= 3.6 to setup.cfg so that pypi and pip
  know about the requirement
- Remove obsolete sections from setup.cfg
- Update classifiers
- Update requirements, no need for python_version anymore
- Switch to using sphinx-build; fix build warnings
- Cleanup doc/source/conf.py to remove now obsolete content.
- Use newer openstackdocstheme version
- Raise oslo.utils version, 3.36.5 introduced uuidsentinel.

Change-Id: I8c81e0c1944c239e460befbf886993270902ee04
2020-04-13 18:18:44 +02:00
Tetsuro Nakamura 352893e78c [ussuri][goal] Drop python 2.7 support and testing
OpenStack is dropping the py2.7 support in ussuri cycle.

Blazar is ready with python 3 and ok to drop 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 Community-wide goal:
https://governance.openstack.org/tc/goals/selected/ussuri/drop-py27.html

Co-Authored-By: Ghanshyam Mann <gmann@ghanshyammann.com>

Change-Id: I69bd82f8a1156f2f2eb636ea96c439c0645cc102
2019-12-10 10:20:00 +01:00
Corey Bryant b5e445da61 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

Change-Id: I75230c0244dc9f32eacd388c4bcc4d7b27e53f74
Story: #2005924
Task: #34199
2019-07-02 10:30:31 +00:00
Masahito Muroi 59b0968ea1 Expose floatingip APIs and virtual:floatingip resources
Partially Implements: blueprint floatingip-reservation
Change-Id: Idc2571027ebd24ca1af73941203411990172eb45
2019-03-19 09:59:53 +00:00
sunjia 9a70bb2baa Change openstack-dev to openstack-discuss
Mailinglists have been updated. Openstack-discuss replaces openstack-dev.

Change-Id: I9ff02a1120f9a9d300efd3db978b516bc9ba2206
2018-12-03 21:29:48 -05:00
whoami-rajat 604b71520b Add blazar-status upgrade check command framework
This adds basic framework for blazar-status upgrade
check commands. For now it has only "check_placeholder"
check implemented.
Real checks can be added to this tool in the future.

Change-Id: I6f40be87eb7e20fb396191e60af023923eb9019a
Story: 2003657
Task: 26121
2018-10-19 16:22:28 +05:30
Hiroaki Kobayashi 99cb6b5199 Register and document policy in code
This patch moves default policy definitions from file-based maintenance
to registering them in code following OpenStack standard[1].

[1] https://governance.openstack.org/tc/goals/queens/policy-in-code.html

Change-Id: I47afa929ebfa30e17c2dbeac31108ecbab67f067
Implements: blueprint policy-in-code
2018-06-11 17:36:13 +09:00
Zuul 6fa51a2ffc Merge "Update the home-page link for setup.cfg" 2018-05-30 06:39:59 +00:00
ZhijunWei 50307050ca Update the home-page link for setup.cfg
Change-Id: Ibe8f383ec4f3724f378c3a01e31f5d2d2a54df61
2018-05-12 17:53:52 +00:00
Masahito Muroi 6482296131 Remove climate namespace
Change-Id: I21089701a46db40ec46444f76d1afef6ae0ffff0
Closes-Bug: #1755325
Depends-On: https://review.openstack.org/#/c/552254
2018-03-14 01:54:22 +00:00
Hiroaki Kobayashi 328a8d902b Add DevStack gate jobs for Python3
Partially implements: blueprint python-3
Depends-On: I70762a2afdcee04d9c9c27b4fd82f180f1256eb3
Depends-On: Iec8bcaeb84fb883bdcac354bf343b538b31d5114
Depends-On: Iac7a61026e83dfa977de7edb2cf141c285603e2b

Change-Id: Ib0ad74311aaee9b5d171ba7b7f31b4ffbfae7655
2018-02-02 11:53:10 +00:00
Masahito Muroi 3019f46c2b Remove commas in setup.cfg package classifiers
This is likely causing an upload to pypi to fail with the following
error:

   Error: 'Development Status :: 3 - Alpha,' is not a valid choice for this field

Change-Id: Ic7f6e082644a6c2ba8820ae6f343640bc8e430c4
2018-01-27 10:17:31 +09:00
Chandan Kumar e4d30aec1c Remove bundled in tree tempest plugin
Also use the newly created blazar-tempest-plugin in Zuul jobs.

Depends-On: I32f2ef3ddbb30da8061ccc035aae0428e6dd5450
Change-Id: Ia03068d8f84d988b470252efe483890f1900f488
2018-01-09 17:01:06 +00:00
Chandan Kumar 1f2e722e04 Refactored blazar tempest plugin
* In order to complete the tempest plugin split goal, we need to
  refactor the blazar tempest plugin so that we can easily consume.

* use six.moves import range instead xrange to avoid flake8 error

Change-Id: I88f2a961d770d6deebd9af567d6407e677c102ae
2017-12-15 15:37:55 +09:00
Masahito Muroi 06424f8e07 Enable uWSGI deployment of the blazar-api service
This patch adds a WSGI entry point to setup.cfg and enables users to
deploy the blazar-api service as a uWSGI service.

If operators want to deploy blazar-api under their own servers that
support WSGI applications, they can get the WSGI app by calling
blazar.api.wsgi_app.init_app().

If you need more details about WSGI itself, please see the following
link: https://www.python.org/dev/peps/pep-3333/

Patially Implements: blueprint deploy-api-in-wsgi
Change-Id: I1fb02c403c6e588e49fa455969895731b88e5dd7
2017-12-13 12:30:17 +00:00
Masahito Muroi fb71db3b92 Enable deployers to specify virtual.instance.plugin in blazar.conf
Partially implements: blueprint new-instance-reservation
Change-Id: I2632f09e9fbbdc7eb9e8e01998fa4043a60b8c9e
2017-08-07 10:55:03 +00:00
Masahito Muroi 31f88379b8 Remove the old instance reservation plugin
The old instance reservation feature is not supported from the
Ocata release of Blazar, since it relies on the v2 API of Nova
with has been removed. Additionally, the Blazar project has
started to implement a new instance reservation feature which
doesn't rely on deprecated Nova APIs.

This patch removes the old instance reservation plugin. If a
deployer specifies 'basic.vm.plugin' in the plugins config
parameter, the blazar-manager service will fail to start.

Partially implements: blueprint new-instance-reservation

Change-Id: If5b0efb4910b05cc3c2881bb705953528895f277
2017-06-27 17:32:24 +00:00
Masahito Muroi 68d769bf71 Migrate climate namespace to blazar
Although the Climate project was renamed to Blazar in 2014, the code has
still been using the climate namespace.

This patch moves all code to the blazar directory and allows users and
operators to use the 'blazar' command namespace. The 'climate' namespace
remains O release to allow users of Blazar time to move their own
code to the blazar namespace, but will be removed in P release
development cycle.

Change-Id: Icbe6fab1051aae4ac819982a1fa4f323cb0bf2d0
Partial-Bug: #1662734
2017-03-02 09:36:14 +00:00
Hiroaki Kobayashi 65c7de0aba Use oslo-config-generator
This commit replaces the old configuration file generator from the
openstack.common.config module by oslo-config-generator [1]. It also
deletes files under tools/config which are now unused. New files are
added for the generator:

  - climate/opts.py is for collecting climate options
  - etc/climate/climate-config-generator.conf contains generator configs
  - etc/climate/README-climate.conf.txt describes how to generate a
    sample configuration file

In addition, a testenv:genconfig section is added to tox.ini and
settings for the oslo.config.opts entry point are added in setup.cfg.

[1] http://docs.openstack.org/developer/oslo.config/generator.html

Change-Id: Ifd352dee176310fd667d1523a85afd3ddf9ab5da
Closes-Bug: #1658908
2017-02-07 08:53:12 +00:00
Pablo Andres Fuente 991e951c77 Added blazar as an alias package
Added blazar as an alias package of climate package. With this alias is
possible to rename imports in small patches that address only one or few
submodules. This will help the review process.
Modifications in setup.cfg:
    * Renamed some entries from climate to blazar
    * Added alias for console scripts

Change-Id: Idbca4873466a39e2077c91c09ef1f985cfed7654
Partial-Bug: #1311761
2014-06-30 18:07:55 +00:00
Sylvain Bauza 23e327f79c Add extensions for API v2 controllers
Controllers (and API endpoints) should be able to be selected using
configuration flags, as we do for plugins

TODO:
 - Extra Hooks to be configured using stevedore

Implements blueprint: pecan-wsme
Implements blueprint: api-extensions

Change-Id: I12f1bc1accbc870aacb0d1e08c9e0d08223c4b18
2014-05-30 11:19:19 +02:00
Pablo Andres Fuente ce13bf6c5d Support for DB migrations using Alembic
Added support for DB migration using Alembic.
Modified devstack/lib/climate to sync the database during the
configuration of Climate.

Added the actual state of the sqlalchemy models in a migration script.
This will be the first version, and will be used by devstack and the
migration tests.

Added a new console_script to the setup.cfg: climate-db-manage. This is
the CLI is used as a wrapper of the alembic functionality.

Added alembic>=0.4.1 as dependecy.

Added some README with documentation about the DB migrations.

Change-Id: I390ccfac1e436db0b04339e60f9f6795b22b8f7e
Implements: blueprint schema-data-migration-with-alembic
2014-03-25 11:11:22 -03:00
Sylvain Bauza fee60f1898 Remove old Scheduler RPC Service
Historically, there was a RPC service for scheduling. The code is
currently dead, so I'm removing it until we create a fresh new
Scheduler service with necessary code.

Change-Id: If0d5a0dfc0c2fcb475d8d89d66ed247d2dba253e
2014-02-11 11:03:09 +01:00
Dina Belova 205ec34772 Fix setup.cfg
Change-Id: I65b921f135a1db7790ad6303e7665310f34c1a6b
2014-02-04 22:12:51 +04:00
Nikolaj Starodubtsev 0177cd8841 Implement basic plugin for VM management
This commit implements basic VM management plugin for Climate.
As decided we use nova shelved instances to support our reservation
model. The only one thing we do for "on_start" lease action -
'unshelve' instance. As decided we support configurable opts for
"on_end" lease action, by default it set to snapshot and delete VM.

Implements bp:basic-vm-plugin

Change-Id: Ia34e16c636d1fa8d200873334f55b9868866f97f
2014-01-29 21:59:32 +04:00
François Rossigneux 50322e2f9f Physical host reservation plugin
Implements bp:host-manager

Change-Id: I782513c579f3825448bf1de5261e943e1653d521
2014-01-23 18:32:16 +01:00
Sylvain Bauza 16d5f67ba7 Fix service user creating objects
Service user used by Climate should not create objects such as
host aggregates. Consequently, until we migrate the code by using
trusts, we need to use a dedicated user for operations

Change-Id: I35878e178dea7eb10a52ad2419e191d8d683b35c
Closes-bug: #1270765
2014-01-20 14:46:04 +00:00
Jenkins d70eb25e02 Merge "Implement primary support for i18n messages shown to user" 2013-12-20 10:18:25 +00:00
sbauza 984a43683e Add Host Reservation Admin Manager
API extensions are provided using a RPC dispatcher
We need to explicitly mention plugin:method when calling.
If not, it will stick to core methods for ManagerService.

Implements bp:host-provisioning-api

Change-Id: Ice5a07eef54664651c22b6b1185be38062c7296e
2013-12-16 17:13:38 +01:00
Dina Belova 38685d2b49 Implement primary support for i18n messages shown to user
Implements: blueprint i18n-messages

Change-Id: I8b8a5be0b81c6c6b03f32a34302990fc1b8da702
2013-12-05 18:38:03 +04:00
Sergey Lukjanov c718f6dafb Revert "Support building wheels (PEP-427)"
'universal=True' means app supports py2 and py3 which isn't supported by
climate at least due to the eventlet dependency, so, my bad, it should
be reverted atm. W/o 'universal=True' wheel bdist still could be built.

This reverts commit 415a66430b

Change-Id: I074b33f1a1df87c3f3cc58b5734b6f20e364de5b
2013-11-22 15:35:42 +00:00
Sergey Lukjanov 415a66430b Support building wheels (PEP-427)
With that, "python setup.py bdist_wheel" could be used for building and uploading wheels to PyPI.

Change-Id: I64a0c379afd524185497526eae31ccf72cf97c61
2013-11-19 13:14:59 +04:00
Dina Belova f50a50b3fe Implement Manager service.
Implement RPC service to work with plugins and DB.
Base plugin class added.

Implements: blueprint lease-manager
Change-Id: Icbed7fabef6c0673c62f67017e5e9cd8d257b5ee
2013-11-14 17:50:11 +01:00
Dina Belova 7b6cd50ecd Implement REST API.
Change-Id: I7b63c692f153d766ddd3ab261bdc0c1715934c0b
2013-10-22 16:11:06 +04:00
Dina Belova 213e7bf0cc Rename climate.cmd.climate_* to climate.cmd.*
Also add __init__ to climate.cmd to let console_scripts work

Change-Id: I2f83738c7e73ef08b5f7e9a67ebf2c4d18409c6c
2013-10-21 21:03:37 +04:00
Dina Belova 75fd0fdd56 Add basic documentation possibility.
Change-Id: Iad96149b10cd5b72fe73dca0b120a0f666cc5565
2013-10-14 16:55:29 +02:00
Dina Belova 3e610f498d Migrate to pbr
Change-Id: I733ae148c300165a35c7bba5cc3c331dc96d3df2
2013-08-19 20:55:41 +04:00