OpenStack Block Storage (Cinder)
94460b64fb
This patch adds jsonschema validation for below Snapshots API's * POST /v3/{project_id}/snapshots * PUT /v3/{project_id}/snapshots/{snapshot_id} * POST /v2/{project_id}/snapshots * PUT /v2/{project_id}/snapshots/{snapshot_id} Note: For create API 'volume_id' parameter is required, if user passes 'volume_id' as null, the existing behavior is it returns "itemNotFound"(404) error response. If we restrict user to accept volume_id in uuid format only in schema validation then in that case, if user passes 'volume_id' as null it will raise BadRequest(400) which will not match existing behavior and also tempest test case[1] will fail in this case. Also on master if user passes 'metadata' as null then it is accepted. To maintain consistency we are allowing 'volume_id' and 'metadata' to be null in schema. Made changes to unit tests to pass body as keyword argument as wsgi calls action method [2] and passes body as keyword argument. [1] https://github.com/openstack/tempest/blob/master/tempest/api/volume/test_volumes_snapshots_negative.py#L42 [2] https://github.com/openstack/cinder/blob/master/cinder/api/openstack/wsgi.py#L997 Partial-Implements: bp json-schema-validation Change-Id: I9869ea08afe3c8f8f1f63bb2ead7f63388580937 |
||
---|---|---|
api-ref/source | ||
cinder | ||
contrib/block-box | ||
doc | ||
etc/cinder | ||
playbooks/legacy/cinder-tempest-dsvm-lvm-lio | ||
rally-jobs | ||
releasenotes | ||
tools | ||
.coveragerc | ||
.gitignore | ||
.gitreview | ||
.stestr.conf | ||
.zuul.yaml | ||
babel.cfg | ||
bindep.txt | ||
CONTRIBUTING.rst | ||
driver-requirements.txt | ||
HACKING.rst | ||
LICENSE | ||
pylintrc | ||
README.rst | ||
requirements.txt | ||
setup.cfg | ||
setup.py | ||
test-requirements.txt | ||
tox.ini |
Team and repository tags
CINDER
You have come across a storage service for an open cloud computing service. It has identified itself as Cinder. It was abstracted from the Nova project.
- Wiki: https://wiki.openstack.org/Cinder
- Developer docs: https://docs.openstack.org/cinder/latest/
Getting Started
If you'd like to run from the master branch, you can clone the git repo:
For developer information please see HACKING.rst
You can raise bugs here https://bugs.launchpad.net/cinder
Python client
https://git.openstack.org/cgit/openstack/python-cinderclient