Skip to content
This repository was archived by the owner on Mar 22, 2018. It is now read-only.

Commit d6cf8cd

Browse files
author
Kubernetes Submit Queue
authored
Merge pull request #58685 from tsmetana/fix-cinder-resize
Automatic merge from submit-queue (batch tested with PRs 58539, 58685). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>. Openstack: Fill size attribute for the V3 API volumes The getVolume method in OpenStack provider is not filling the Size for the V3 API type volumes. This breaks the PV resizing of Cinder volumes which compares the existing volume size with the new request. This leads to redundant volume resize calls to the cloud provider that end with errors. cc: @gnufied ```release-note NONE ```
2 parents 8c295d2 + 8953ff9 commit d6cf8cd

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

pkg/cloudprovider/providers/openstack/openstack_volumes.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,7 @@ func (volumes *VolumesV3) getVolume(volumeID string) (Volume, error) {
222222
ID: volumeV3.ID,
223223
Name: volumeV3.Name,
224224
Status: volumeV3.Status,
225+
Size: volumeV3.Size,
225226
}
226227

227228
if len(volumeV3.Attachments) > 0 {

0 commit comments

Comments
 (0)