]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Revert state if attachment already exists
authorShyama Venugopal <shyvenug@in.ibm.com>
Thu, 30 Apr 2015 10:22:27 +0000 (12:22 +0200)
committerMike Perez <thingee@gmail.com>
Thu, 30 Apr 2015 19:05:19 +0000 (12:05 -0700)
commita5908fdbcb2b80fdd7cecc04c82abf7c88d1a75e
treebc51873cf931d10152c0d7a7d6a648121d909369
parente384ef032e76308fc92a12aea0fb08494b9382b7
Revert state if attachment already exists

When attach is called twice for the same volume and instance the
attach_volume checks if the attachment already exists and returns.
This leaves the volume in 'Attaching' state. The volume status should
be reset to 'in-use' if we see the attachment already exists.

Change-Id: I2a2d28de59af234300082ab4655b0bc10699d54c
Closes-Bug: #1449980
(cherry picked from commit 709949d904c7f1d0e13b41bf6723d71bcf6b5652)
cinder/tests/test_volume.py
cinder/volume/manager.py