]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Remove name_id when creating volume with cache enabled
authorpeter_wang <peter.wang13@emc.com>
Mon, 21 Dec 2015 10:37:12 +0000 (05:37 -0500)
committerpeter_wang <peter.wang13@emc.com>
Wed, 23 Dec 2015 07:12:55 +0000 (02:12 -0500)
commit864cd83c5a73cc274ba2193cc757b38a528b0332
tree7c28e4031a27322e69cd38fd24666094bd6b0686
parent1e88151ee7332b90211d9587c948cbae36db472a
Remove name_id when creating volume with cache enabled

When image_volume_cache_enabled = True, Cinder will create
a cached image volume. But when creating this image volume,
the name_id is set to id of newly created volume, which causes
the image volume is unable to be created in the underlying storage
system.

This fix will remove the name_id so that volume.name can refer to
correct LUN on storage system

Also, a minor fix: passing volume.id to delete_volume since
it only accept volume id.

Change-Id: Ib47b189a525d8a9bd9026cc20f62542aede9c9d4
Closes-bug: 1528087
cinder/volume/manager.py