commit 2c84413c74e6481abe4af716ea12d8c75b405c25
Author: John Griffith <email address hidden>
Date: Wed Jan 23 04:15:40 2013 +0000
Get updated vol status in volume.api.reserve.
A race condtion was discovered where a nova volume attach
could easily be performed twice for the same volume. Although
the cinder attach update would fail, this occured after the BDM
updates were made and in essence the attach to the compute instance
had already been issued.
This change simply forces a get from the DB of the volume-ref in the
reserve call and checks if an attach is already in progress.
Reviewed: https:/ /review. openstack. org/20301 github. com/openstack/ cinder/ commit/ 2c84413c74e6481 abe4af716ea12d8 c75b405c25
Committed: http://
Submitter: Jenkins
Branch: master
commit 2c84413c74e6481 abe4af716ea12d8 c75b405c25
Author: John Griffith <email address hidden>
Date: Wed Jan 23 04:15:40 2013 +0000
Get updated vol status in volume.api.reserve.
A race condtion was discovered where a nova volume attach
could easily be performed twice for the same volume. Although
the cinder attach update would fail, this occured after the BDM
updates were made and in essence the attach to the compute instance
had already been issued.
This change simply forces a get from the DB of the volume-ref in the
reserve call and checks if an attach is already in progress.
Fixes bug: 1096983
Change-Id: Ie0e4156d691ee9 2b6981078ef0ba6 2f8c4cdf0c8