When extending shares, the Generic share driver will extend
the underlying Cinder volume. It will consider this operation to
have finished once the volume status is "available".
In some cases, the volume status can be reported as active before
actually starting the extend operation. For this reason, attaching
the volume can fail as the volume would be in 'extending' state.
This patch fixes the issue by properly waiting for the volume
extend operation to finish, checking the volume size against the
expected size.
Reviewed: https:/ /review. openstack. org/207394 /git.openstack. org/cgit/ openstack/ manila/ commit/ ?id=3f39e390c4b fde43edf1f2081d f170d090a654c1
Committed: https:/
Submitter: Jenkins
Branch: master
commit 3f39e390c4bfde4 3edf1f2081df170 d090a654c1
Author: Lucian Petrut <email address hidden>
Date: Tue Jul 28 14:59:46 2015 +0300
Fix Generic driver share extend
When extending shares, the Generic share driver will extend
the underlying Cinder volume. It will consider this operation to
have finished once the volume status is "available".
In some cases, the volume status can be reported as active before
actually starting the extend operation. For this reason, attaching
the volume can fail as the volume would be in 'extending' state.
This patch fixes the issue by properly waiting for the volume
extend operation to finish, checking the volume size against the
expected size.
Change-Id: I02e4a42110e323 dc295e20f9f0741 1a13fdcc236
Closes-Bug: #1479697