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.
Reviewed: https:/ /review. openstack. org/259937 /git.openstack. org/cgit/ openstack/ cinder/ commit/ ?id=864cd83c5a7 3cc274ba2193cc7 57b38a528b0332
Committed: https:/
Submitter: Jenkins
Branch: master
commit 864cd83c5a73cc2 74ba2193cc757b3 8a528b0332
Author: peter_wang <email address hidden>
Date: Mon Dec 21 05:37:12 2015 -0500
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: Ib47b189a525d8a 9bd9026cc20f625 42aede9c9d4
Closes-bug: 1528087