Incorrectly shown volume size while using PowerFlex cinder driver

Bug #1968164 reported by Alexander Malashenko
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Cinder
Fix Released
Medium
Alexander Malashenko

Bug Description

When using cinder volume caching, if image is smaller than 8G and requested volume size is 16, then cinder creates correct volume on storage but cinder shows 8G for the disk.

Volume caching feature: https://docs.openstack.org/cinder/latest/admin/blockstorage-image-volume-cache.html

The problem in this task is related with PowerFlex Cinder driver. While using cinder volume caching: at first create volume with image size on powerflex storage, after that powerflex send request with 8gb and after we send response extend volume on 16gb. At this point error occurs, the function do not update volume size in cinder in model_update.

The driver should never return size in model_update.

Changed in cinder:
assignee: nobody → Alexander Malashenko (amalashenko)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to cinder (master)

Fix proposed to branch: master
Review: https://review.opendev.org/c/openstack/cinder/+/836973

Changed in cinder:
status: New → In Progress
Changed in cinder:
importance: Undecided → Medium
tags: added: caching powerflex size
description: updated
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to cinder (master)

Reviewed: https://review.opendev.org/c/openstack/cinder/+/836973
Committed: https://opendev.org/openstack/cinder/commit/b1b09d40856071727f43e1b1888124c79f84019e
Submitter: "Zuul (22348)"
Branch: master

commit b1b09d40856071727f43e1b1888124c79f84019e
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
    Change-Id: Ib0334d2e1be80d1a20c26b4435076187b0e43d40

Changed in cinder:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/cinder 21.0.0.0rc1

This issue was fixed in the openstack/cinder 21.0.0.0rc1 release candidate.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.