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
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
Recent versions of setuptools are warning that usage of dash-separated
keys will not be supported in future versions.
Change-Id: Ie2e4f8b4d593985c128c3ffbbd476bc7b79b5db4
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
Babel is no longer a requirement for OpenStack projects. We can remove
it and save some disk space.
Change-Id: I83a8632b004b6b94d5a99e00f9f4e193081eaba9
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>
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
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
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
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
Also use the newly created blazar-tempest-plugin in Zuul jobs.
Depends-On: I32f2ef3ddbb30da8061ccc035aae0428e6dd5450
Change-Id: Ia03068d8f84d988b470252efe483890f1900f488
* 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
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
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
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
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
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
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
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
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
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
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
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
'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
Implement RPC service to work with plugins and DB.
Base plugin class added.
Implements: blueprint lease-manager
Change-Id: Icbed7fabef6c0673c62f67017e5e9cd8d257b5ee