OpenStack Block Storage (Cinder)
Go to file
Neha Alhat 94460b64fb V2/V3 jsonschema validation: snapshots
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
2018-01-02 09:22:20 +05:30
api-ref/source Merge "Add instructions for the Error response codes" 2017-12-29 11:05:04 +00:00
cinder V2/V3 jsonschema validation: snapshots 2018-01-02 09:22:20 +05:30
contrib/block-box Bump up the API microversion in cinder.rc 2017-12-22 06:18:09 -08:00
doc Merge "Reintroduce the StorPool driver" 2017-12-28 21:09:14 +00:00
etc/cinder Add cg policies and clean up old policy handling 2017-12-04 10:07:54 +08:00
playbooks/legacy/cinder-tempest-dsvm-lvm-lio Test os-brick master in LIO gate job 2017-11-16 11:23:54 -05:00
rally-jobs Switch Rally Task To format V2 2017-10-13 08:37:57 +00:00
releasenotes Merge "NEC driver: add automatic configuration of SAN access control." 2017-12-29 00:21:52 +00:00
tools Add policy documentation and sample file 2017-10-20 10:47:34 +08:00
.coveragerc Update .coveragerc after the removal of openstack directory 2016-10-17 19:09:37 +05:30
.gitignore Add doc/source/_static/cinder.policy.yaml.sample to .gitignore 2017-11-15 16:46:57 +09:00
.gitreview Initial fork out of Nova. 2012-05-03 10:48:26 -07:00
.stestr.conf Add .stestr.conf configuration 2017-10-10 00:46:42 +00:00
.zuul.yaml Move legacy-cinder-tox-* jobs in-tree 2017-11-27 09:57:06 -06:00
babel.cfg Initial fork out of Nova. 2012-05-03 10:48:26 -07:00
bindep.txt Add thin provisioning package to install guide 2017-12-15 13:08:15 -06:00
CONTRIBUTING.rst Optimize the link address 2017-04-08 15:03:44 +08:00
driver-requirements.txt Adds DataCore Volume Drivers 2017-11-23 10:11:34 +03:00
HACKING.rst Fix wrong links in Cinder 2017-09-07 11:55:44 +08:00
LICENSE Initial fork out of Nova. 2012-05-03 10:48:26 -07:00
pylintrc Use six to fix imports on Python 3 2015-06-11 17:19:19 +02:00
README.rst Update Documentation link 2017-07-13 12:12:20 +00:00
requirements.txt Updated from global requirements 2017-12-24 00:51:41 +00:00
setup.cfg Add cg policies and clean up old policy handling 2017-12-04 10:07:54 +08:00
setup.py Updated from global requirements 2017-03-02 23:53:29 +00:00
test-requirements.txt Follow the new PTI for document build 2017-12-20 18:24:11 -08:00
tox.ini Follow the new PTI for document build 2017-12-20 18:24:11 -08:00

Team and repository tags

image

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.

Getting Started

If you'd like to run from the master branch, you can clone the git repo:

git clone https://git.openstack.org/openstack/cinder.git

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