]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Adds synchronization to attach volume.
authorRohit Karajgi <rohit.karajgi@nttdata.com>
Fri, 28 Dec 2012 12:58:46 +0000 (04:58 -0800)
committerRohit Karajgi <rohit.karajgi@nttdata.com>
Wed, 2 Jan 2013 05:19:04 +0000 (21:19 -0800)
commit2331d3336a6adf4fc13a3b187e91a5d1b1f7c723
tree358bb1c944c9bc40e0976d15098e6ea3b0e72339
parent18269eaad82bae89a21929ece49f145f299e4632
Adds synchronization to attach volume.

This patch adds the following changes:
1. Move db update for volume status during attach to volume.manager
2. Add lock synchronization to volume attach operation
3. Related unit tests

Fixes Bug 1087253
Change-Id: I15242766bf4cfa4da67789c485fdf6886983eb45
cinder/tests/api/contrib/test_admin_actions.py
cinder/tests/test_volume.py
cinder/volume/api.py
cinder/volume/manager.py