cloudstack/server/src
Marcus Sorensen ccc49875dd CLOUDSTACK-2104: add state change in createVolume back to Allocated if
anything fails

Changes:
createVolume changes the volume state from 'Allocated' to 'Creating',
but has no code to change it back to 'Allocated' if anything goes wrong,
despite there already being a path from 'Creating' to 'Allocated' for
volumes, via the OperationFailed event. Adding this in fixes the issue
and avoids leaving disks in an unusable state.

Testing:
Tested in devcloud-kvm, volume that was larger than primary storage
failed to attack, and went back to 'Allocated' from 'Creating' upon the
failure. I was then able to retry, and delete the disk.
2013-04-19 14:20:57 +01:00
..
com/cloud CLOUDSTACK-2104: add state change in createVolume back to Allocated if 2013-04-19 14:20:57 +01:00
org/apache/cloudstack/region CLOUDSTACK-1636: Removed the concept of owner region. Removed region_id from user/account and domain tables. Removed forwarding of api calls to owner region. Removed api_key and secret_key from region table. Included related DB upgrade changes. 2013-03-14 21:22:48 -04:00