You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[cinder-csi-plugin] Wait for volume availability before attach
ControllerPublishVolume now waits for the volume to reach 'available'
or 'in-use' status before calling the Cinder attachment API.
Previously, if the CO called ControllerPublishVolume immediately after
CreateVolume, the volume could still be in 'creating' state on the
backend (especially for NetApp-backed volumes). This caused Cinder to
reject the attachment with a 409 Conflict ('status must be available or
downloading to reserve, but the current status is creating'), forcing
the CO to retry blindly.
The new behavior uses a context-aware poll (WaitVolumeTargetStatusWithContext)
that respects the gRPC request deadline. The volume status is checked
every 3 seconds until it reaches a target state, enters an error state,
or the context expires. This eliminates unnecessary 409 errors against
Cinder and reduces time-to-attach for volumes still being provisioned.
Production data from eu-de-2 showed ~78% of attachment_create calls
arrived while volumes were still in 'creating' state, with a median
creation time of 12s and a max of 132s.
Signed-off-by: Walter Boring <waboring@hemna.com>
0 commit comments