]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Volume type access extension
authorMathieu Gagné <mgagne@iweb.com>
Thu, 26 Jun 2014 00:22:12 +0000 (20:22 -0400)
committerMathieu Gagné <mgagne@iweb.com>
Mon, 1 Dec 2014 23:46:31 +0000 (18:46 -0500)
commit6c0f50b1ec933a61b84d806e748afd9cb74e5cd7
tree9f8dbe44c25e88e01d46afd7faabb071dabc8bac
parent7e3ddf8d0d2759126cac9a8b089fbc43c3857aaa
Volume type access extension

This extension adds the ability to manage volume type access:
* Volume types are public by default
* Private volume types can be created by setting
  the is_public boolean field to False at creation time.
* Access to a private volume type can be controlled
  by adding or removing a project from it.
* Private volume types without projects are only visible
  by users with the admin role/context.

Implementation details and unit tests were mostly adapted
from Nova flavor access extension.

DocImpact: New volume type access extension
Implements: blueprint private-volume-types
Change-Id: I8faf1d8097bf8412d4e169ec3503821351795561
23 files changed:
cinder/api/contrib/types_manage.py
cinder/api/contrib/volume_type_access.py [new file with mode: 0644]
cinder/api/extensions.py
cinder/api/v1/types.py
cinder/api/v2/router.py
cinder/api/v2/types.py
cinder/db/api.py
cinder/db/sqlalchemy/api.py
cinder/db/sqlalchemy/migrate_repo/versions/032_add_volume_type_projects.py [new file with mode: 0644]
cinder/db/sqlalchemy/migrate_repo/versions/032_sqlite_downgrade.sql [new file with mode: 0644]
cinder/db/sqlalchemy/models.py
cinder/exception.py
cinder/tests/api/contrib/test_types_extra_specs.py
cinder/tests/api/contrib/test_types_manage.py
cinder/tests/api/contrib/test_volume_type_access.py [new file with mode: 0644]
cinder/tests/api/v1/test_types.py
cinder/tests/api/v2/test_types.py
cinder/tests/policy.json
cinder/tests/test_migrations.py
cinder/tests/test_volume_types.py
cinder/utils.py
cinder/volume/volume_types.py
etc/cinder/policy.json