OpenStack Block Storage (Cinder)
Go to file
pooja jadhav afa410bcf6 V3 jsonschema validation: Volume metadata
This patch adds jsonschema validation for below metadata API's
* POST /v3/{project_id}/volumes/{volume_id}/metadata
* PUT  /v3/{project_id}/volumes/{volume_id}/metadata
* PUT  /v3/{project_id}/volumes/{volume_id}/metadata/{key}

The reason behind applying schema for v2(update and update_all) is
that in "/cinder/tests/unit/api/v2/test_volume_metadata.py" module
from this patch, V2's unit test cases are inherited for V3 and now
we are applying schema validation for V3 because of that V2's unit
test cases responses are modified.  If we remove schema validation
from V2 then we will need to add separate unit test cases for V3.

Made changes to unit tests to pass body as keyword argument as wsgi
calls action method [1] and passes body as keyword argument.

[1] https://github.com/openstack/cinder/blob/master/cinder/api/openstack/wsgi.py#L997
Partial-Implements: bp json-schema-validation

Change-Id: I2226c8533cbd1ddd274d8dd0b2d77708463896f4
2017-12-08 12:40:01 +05:30
api-ref/source Merge "Remove v1 API reference" 2017-12-07 11:00:30 +00:00
cinder V3 jsonschema validation: Volume metadata 2017-12-08 12:40:01 +05:30
contrib/block-box Update BlockBox 2017-10-04 13:59:01 -06:00
doc Merge "Update the documentation links" 2017-12-07 06:45:32 +00:00
etc/cinder Merge "NetApp cDot: Fix manage volumes" 2017-11-17 08:09:17 +00: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 "VMAX driver - Deprecate backend xml configuration" 2017-12-05 04:09:40 +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
CONTRIBUTING.rst Optimize the link address 2017-04-08 15:03:44 +08: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
README.rst Update Documentation link 2017-07-13 12:12:20 +00:00
babel.cfg Initial fork out of Nova. 2012-05-03 10:48:26 -07:00
bindep.txt Update bindep.txt for doc builds 2017-11-21 21:06:13 +01:00
driver-requirements.txt Adds DataCore Volume Drivers 2017-11-23 10:11:34 +03:00
pylintrc Use six to fix imports on Python 3 2015-06-11 17:19:19 +02:00
requirements.txt Updated from global requirements 2017-12-05 02:58:54 +00:00
setup.cfg [policy in code] Add support for attachment resource 2017-09-26 03:19:20 +00:00
setup.py Updated from global requirements 2017-03-02 23:53:29 +00:00
test-requirements.txt Updated from global requirements 2017-12-05 02:58:54 +00:00
tox.ini Merge "Remove doc/build before running docs job" 2017-10-27 00:19:44 +00:00

README.rst

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