PowerFlex driver - fix the display of the incorrect volume
size on volume or snapshot creation.
Now the user can see the size that would initially set by
him when user creates volume via powerflex driver.
This is happening because the powerflex storage creates
volumes with a size multiple of 8, but the cinder doesn't
expect the powerflex driver to return a rounded size.
As a result, the user will see not the size that he set
initially when creating the volume, but in the storage
will be volume with the size of multiple 8.
At the end of the create volume process, if the volume
size is not equal to the original size, then extend volume
and PowerFlex driver will not return size multiply of 8.
Reviewed: https:/ /review. opendev. org/c/openstack /cinder/ +/836973 /opendev. org/openstack/ cinder/ commit/ b1b09d408560717 27f43e1b1888124 c79f84019e
Committed: https:/
Submitter: "Zuul (22348)"
Branch: master
commit b1b09d408560717 27f43e1b1888124 c79f84019e
Author: Alexander Malashenko <email address hidden>
Date: Thu Apr 7 05:51:08 2022 -0700
PowerFlex driver - fix the display of the incorrect volume
size on volume or snapshot creation.
Now the user can see the size that would initially set by
him when user creates volume via powerflex driver.
This is happening because the powerflex storage creates
volumes with a size multiple of 8, but the cinder doesn't
expect the powerflex driver to return a rounded size.
As a result, the user will see not the size that he set
initially when creating the volume, but in the storage
will be volume with the size of multiple 8.
At the end of the create volume process, if the volume
size is not equal to the original size, then extend volume
and PowerFlex driver will not return size multiply of 8.
Closes-Bug: #1968164 1a20c26b4435076 187b0e43d40
Change-Id: Ib0334d2e1be80d