mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-22 19:31:44 +00:00
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:
commit
424d951af7
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user