This commit modifies the reserve_block_device_name method to return the
bdm object, when the corresponding keyword argument is True. This
ensures the correct bdm is destroyed if the attach fails. Currently the
code assumes only one bdm per volume and so retrieving it can cause the
incorrect db entry to be returned.
Reviewed: https:/ /review. openstack. org/110319 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=339a97d0f2d 17f531cfc79e09c d8b8bc75ce6e2a
Committed: https:/
Submitter: Jenkins
Branch: master
commit 339a97d0f2d17f5 31cfc79e09cd8b8 bc75ce6e2a
Author: git-harry <email address hidden>
Date: Mon Aug 4 15:17:29 2014 +0100
Fix creating bdm for failed volume attachment
This commit modifies the reserve_ block_device_ name method to return the
bdm object, when the corresponding keyword argument is True. This
ensures the correct bdm is destroyed if the attach fails. Currently the
code assumes only one bdm per volume and so retrieving it can cause the
incorrect db entry to be returned.
Change-Id: I22a6db76d20443 31d1a846eb4b6d7 338c50270e2
Closes-Bug: #1349888