Revert "PowerFlex driver - fix the display of the incorrect volume"
This reverts commitb1b09d4085. Reason for revert: Introducing regression, Any volume extension operation fails. This revert is legit for Zed, and doesn't introduce any other regression Change-Id: I0e72f3b74209120fd82ae55c5951fe5e878c124f (cherry picked from commit13c2cec675)
This commit is contained in:
@@ -630,15 +630,18 @@ class PowerFlexDriver(driver.VolumeDriver):
|
||||
volume.size,
|
||||
provisioning,
|
||||
compression)
|
||||
real_size = int(flex_utils.round_to_num_gran(volume.size))
|
||||
model_updates = {
|
||||
"provider_id": provider_id,
|
||||
"size": real_size,
|
||||
"replication_status": fields.ReplicationStatus.DISABLED,
|
||||
}
|
||||
LOG.info("Successfully created volume %(vol_id)s. "
|
||||
"PowerFlex volume name: %(vol_name)s, "
|
||||
"Volume size: %(size)s. PowerFlex volume name: %(vol_name)s, "
|
||||
"id: %(provider_id)s.",
|
||||
{
|
||||
"vol_id": volume.id,
|
||||
"size": real_size,
|
||||
"vol_name": flex_utils.id_to_base64(volume.id),
|
||||
"provider_id": provider_id,
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user