77c1a2b683
If hypervisor_properties or resource_properties are set to empty strings by the API client, they are persisted as empty strings in the database. However, in convert_requirements(), the code assumes they are JSON strings and tries to parse them, which raises a MalformedRequirements exception. This can be triggered by an operator when updating an extra capability on a node that is reserved with resource_properties set to an empty string, as is_updatable_extra_capability() calls convert_requirements(). Blazar would return a 400 Client Error to them. Ideally, only valid JSON should be persisted to the database. However, this will require an Alembic migration to change existing empty strings to empty JSON arrays. In the meantime, this simpler patch can be backported to stable branches. Change-Id: Ic6d18418a2515cd37bbeed25ee3ab8c360624ca3 Closes-Bug: #1792245 |
||
---|---|---|
api-ref/source | ||
blazar | ||
devstack | ||
doc | ||
etc/blazar | ||
playbooks/legacy | ||
releasenotes | ||
tools | ||
.gitignore | ||
.gitreview | ||
.testr.conf | ||
.zuul.yaml | ||
HACKING.rst | ||
LICENSE | ||
MANIFEST.in | ||
README.rst | ||
babel.cfg | ||
lower-constraints.txt | ||
pylintrc | ||
requirements.txt | ||
setup.cfg | ||
setup.py | ||
test-requirements.txt | ||
tox.ini |
README.rst
Team and repository tags
Blazar
Blazar is a resource reservation service for OpenStack. Blazar enables users to reserve a specific type/amount of resources for a specific time period and it leases these resources to users based on their reservations.
The following two resource types are currently supported:
- Compute host: reserve and lease with a unit of a whole host
- Instance: reserve and lease with a unit of a flavor
Please see the following resources to learn more.
API
See Blazar API reference.
Operators
To learn how to deploy and configure Blazar, see the installation guide and the configuration reference.
Developers
To learn how to contribute to Blazar, see the contributor guide.
Other Resources
- Source code:
- Blueprints/Bugs: https://launchpad.net/blazar
- Documentation: https://docs.openstack.org/blazar/latest/
- Release notes: https://docs.openstack.org/releasenotes/blazar/