]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Update attach status when instance id invalid.
authorJohn Griffith <john.griffith@solidfire.com>
Tue, 18 Jun 2013 22:49:13 +0000 (16:49 -0600)
committerJohn Griffith <john.griffith@solidfire.com>
Tue, 18 Jun 2013 22:51:30 +0000 (16:51 -0600)
commit4aaa3b64a3ca3050ebed3d748d46facafc09413b
tree5719f976998b82804e8be600688d65715b74f6a6
parent317220858ef219e84109692b6a94fedbd2758a0b
Update attach status when instance id invalid.

In cinder.manager do_attach we have a check to make sure the
supplied instance id is a valid UUID which is great, but if it's
not we just raise and dump out, leaving the volume in an attaching
state.

We should update the status to error_attaching in this case and then
raise/return.

Fixes bug: 1192370

Change-Id: Ia759ea7a387544913953ca84e9ed927480c4edfd
cinder/volume/manager.py