]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Add the ability to update type public status
authorliyingjun <yingjun.li@kylin-cloud.com>
Wed, 29 Jul 2015 01:23:28 +0000 (09:23 +0800)
committerliyingjun <yingjun.li@kylin-cloud.com>
Tue, 18 Aug 2015 01:36:25 +0000 (09:36 +0800)
commitf92d71219e0273e3d4937b1f232c5a24ce0f872e
tree7394e7c598af8e7db07e7327140e80a1a80962ec
parent1bbae62b3da786e5ca9dc4ad1c35b25c8d5593e0
Add the ability to update type public status

Currently, the v2 volume type update api doesn't support updating
volume type's public status. All volume types created are public
by default if not specified. It is not possible to update an existing
volume_type is_public status. It is necessary to add updating public
status for volume type. If a volume type updated from public to
private, the volumes previously created with this type will not be
affected, but the user without access will not be able to create
volume with this type anymore.

APIImpact: Add 'is_public' for v2 type update api.
Implements blueprint: volume-types-public-update

Change-Id: I4a5b2cf8f747c87908a09835a5edb8873c4e946b
cinder/api/contrib/types_manage.py
cinder/api/views/types.py
cinder/db/sqlalchemy/api.py
cinder/tests/unit/api/contrib/test_types_manage.py
cinder/tests/unit/api/v1/test_types.py
cinder/tests/unit/api/v2/test_types.py
cinder/volume/volume_types.py