Skip to content

Commit 424d951

Browse files
authored
Merge pull request kubernetes#81373 from gnufied/fix-cinder-online-expansion-error
Fix event when Cinder volume can not be expanded when in-use
2 parents a56e86a + 596d5f7 commit 424d951

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/cloudprovider/providers/openstack/openstack_volumes.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,7 @@ func (os *OpenStack) ExpandVolume(volumeID string, oldSize resource.Quantity, ne
418418
}
419419
if volume.Status != volumeAvailableStatus {
420420
// cinder volume can not be expanded if its status is not available
421-
return oldSize, fmt.Errorf("volume status is not available")
421+
return oldSize, fmt.Errorf("volume in %s status can not be expanded, it must be available and not attached to a node", volume.Status)
422422
}
423423

424424
// Cinder works with gigabytes, convert to GiB with rounding up

0 commit comments

Comments
 (0)