]> review.fuel-infra Code Review - openstack-build/heat-build.git/commit
Handle errors in Volume creation
authorZane Bitter <zbitter@redhat.com>
Thu, 16 May 2013 11:18:19 +0000 (13:18 +0200)
committerZane Bitter <zbitter@redhat.com>
Thu, 16 May 2013 11:18:19 +0000 (13:18 +0200)
commit114372ca3d584a32bd46b9328dc7033211591457
tree8ec3b3f5357dd8a95f5ba0a7282019fcb1b3851d
parenteddcf4c6e982335d8acb8f3b408b2bb841890af8
Handle errors in Volume creation

Set the resource_id as soon as it is know, since we need to be able to
delete the volume later, even if it is in an error state. Avoid attempting
to perform a snapshot if the volume was never created successfully.

Change-Id: I33dd842d3d249bafe1037c1b97abf1979f605712
heat/engine/resources/volume.py
heat/tests/test_volume.py