]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Implements new 'bootable' option for manage existing volume.
authorGeraint North <geraint.north@uk.ibm.com>
Mon, 21 Jul 2014 20:14:45 +0000 (21:14 +0100)
committerGeraint North <geraint.north@uk.ibm.com>
Wed, 23 Jul 2014 22:07:01 +0000 (23:07 +0100)
commit65c10a3329dbf09b0c533a49157242f1a521f691
tree28d5e9295df85ea66f1159123a9901fdd6a08397
parent7975b465d05dba38e8c4f9753f15cea6ed057a86
Implements new 'bootable' option for manage existing volume.

A 'bootable' option (defaults to False) can be passed as part of
the HTTP POST request to manage an existing volume.  This is
passed into the database when the volume is created.

Also changes all drivers to use the more agnostic keys
'source-name' or 'source-id' when specifying
which existing volume to manage.  This change is to support the
cinderclient change in https://review.openstack.org/#/c/76216/
to make it easier for CLI users to manage existing volumes
without having to know the implementation-specifics of the driver.

Change-Id: I58eaa75181fd0b606628584308fd83bdeaa8b64f
Implements: blueprint add-export-import-volumes
cinder/api/contrib/volume_manage.py
cinder/tests/test_hp3par.py
cinder/tests/test_ibm_xiv_ds8k.py
cinder/tests/test_rbd.py
cinder/tests/test_storwize_svc.py
cinder/tests/test_volume.py
cinder/volume/api.py
cinder/volume/drivers/ibm/storwize_svc/__init__.py
cinder/volume/drivers/lvm.py
cinder/volume/drivers/rbd.py
cinder/volume/drivers/san/hp/hp_3par_common.py