]> 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)
committerShyama Venugopal <shyvenug@in.ibm.com>
Thu, 30 Apr 2015 11:04:21 +0000 (13:04 +0200)
commit709949d904c7f1d0e13b41bf6723d71bcf6b5652
tree87a53d2561209dd8c9e39ef9d7bca7f5d30b1b03
parent5df1f2190434af6ab1e09d922dca961ca4f09c23
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
cinder/tests/unit/test_volume.py
cinder/volume/manager.py