OpenStack Block Storage (Cinder)
Go to file
wangxiyuan 6c01699023 Don't use None value for sql query.
Cinder now will raise 500 error if users list resources with
"--sort_key=name" and "--marker=resource_id"(the marker resource's
name should be None here).

This patch add sql "case" sentence to avoid use None value direcetly.

Most of the code is copied from glance[1]

Oslo.db now have the same paginate_query function and the problem
has been solved in a recent patch[2] as well. But it still has some
bugs: with the oslo.db' code,  when the maker resource is not None,
the return value doesn't contain resouces which names are None.

So it's not the time to use oslo.db here. Just fix this bug in Cinder
first.

[1]:
I2187c41a3fab8b5813ba3a5e0f3249ee5dd981ed
Ib3b5f3f57be3683ba274f0122e6314978a79e75f

[2]:
Iea2cd0bb2556b0b15a0baaa76ef522a3097f9928

Co-authored-by: Stuart McLaren<stuart.mclaren@hpe.com>
Closes-bug: #1657331
Change-Id: Ia1052be567de63083cc6c28a2e5b38a7b8470615
2017-02-04 09:31:27 +08:00
api-ref/source Merge "Adds API documentation for update snapshot status" 2017-01-31 16:19:25 +00:00
cinder Don't use None value for sql query. 2017-02-04 09:31:27 +08:00
doc Merge "Add command information to cinder-manage.rst" 2017-02-02 14:43:07 +00:00
etc/cinder Add create volume from image policy 2017-01-30 12:56:26 +01:00
rally-jobs Disable Rally backup-related scenarios 2016-02-15 20:44:52 +02:00
releasenotes Merge "Hitachi VSP: Specify compute nodes and copy ports" 2017-02-03 18:08:23 +00:00
tools Merge "Gate migration tests: Add Cinder tempest hook" 2017-01-24 16:04:23 +00:00
.coveragerc Update .coveragerc after the removal of openstack directory 2016-10-17 19:09:37 +05:30
.gitignore Add driver list to doc build 2016-07-26 11:09:05 -05:00
.gitreview Initial fork out of Nova. 2012-05-03 10:48:26 -07:00
.testr.conf Move integrated tests to 'functional' directory 2016-02-09 23:28:27 +02:00
babel.cfg Initial fork out of Nova. 2012-05-03 10:48:26 -07:00
CONTRIBUTING.rst Update CONTRIBUTING.md to CONTRIBUTING.rst 2015-11-10 23:10:38 +08:00
HACKING.rst Hacking: Remove N333 oslo namespace import check 2016-12-12 10:08:31 -05: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 Show team and repo badges on README 2016-11-25 13:39:11 +01:00
requirements.txt Updated from global requirements 2017-01-28 03:38:48 +00:00
setup.cfg Removing cinder-all binary 2016-10-02 15:46:57 -07:00
setup.py Updated from global requirements 2015-09-18 16:37:17 +00:00
test-requirements.txt Add psycopg2 and PyMySQL to test-requirements 2016-12-26 17:50:55 +02:00
tox.ini Enable DeprecationWarning in test environments 2017-01-05 12:22:22 +00: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 http://bugs.launchpad.net/cinder

Python client

https://git.openstack.org/cgit/openstack/python-cinderclient