]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Catch and report errors from copy image to volume.
authorJohn Griffith <john.griffith@solidfire.com>
Mon, 27 May 2013 20:04:56 +0000 (20:04 +0000)
committerAdam Gandelman <adamg@canonical.com>
Wed, 29 May 2013 23:14:48 +0000 (16:14 -0700)
commite7d973c51445fac372d5fe4641517797f0803e4b
tree37366acc07f69f06969d9c092c9e89fd305b4b06
parent440ada164a2dd2e003205c9925ba1d3411d9fb13
Catch and report errors from copy image to volume.

The copy image-to-volume errors weren't being handled
properly and the result was the lvcreate being retried
even though the lvcreate itself succeeded.

The result of this was misleading errors stating that
the volume couldn't be created because it already existed
(which it did, becuase the create itself was succesful).

Fixes bug: 1183283

Change-Id: I23f05fe64475c3efe285e05a258c4625b801375c
(cherry picked from commit b2371aeff9eccbd28952dd0f568da26722dc58f7)
cinder/exception.py
cinder/volume/drivers/xenapi/sm.py
cinder/volume/manager.py