Merge pull request #81373 from gnufied/fix-cinder-online-expansion-error

Fix event when Cinder volume can not be expanded when in-use
This commit is contained in:
Kubernetes Prow Robot 2019-08-15 19:16:48 -07:00 committed by GitHub
commit 424d951af7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -418,7 +418,7 @@ func (os *OpenStack) ExpandVolume(volumeID string, oldSize resource.Quantity, ne
}
if volume.Status != volumeAvailableStatus {
// cinder volume can not be expanded if its status is not available
return oldSize, fmt.Errorf("volume status is not available")
return oldSize, fmt.Errorf("volume in %s status can not be expanded, it must be available and not attached to a node", volume.Status)
}
// Cinder works with gigabytes, convert to GiB with rounding up