NetApp E-Series Drivers reporting incorrect provisioned_capacity_gb

Bug #1718739 reported by Goutham Pacha Ravi
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Cinder
Fix Released
Undecided
Adriano

Bug Description

This bug was split from https://bugs.launchpad.net/cinder/+bug/1714209 to show separation of drivers belonging to NetApp.

The NetApp E-Series driver is incorrectly reporting "provisioned_capacity_gb", probably because provisioned capacity means something different on the NetApp E-Series storage arrays.

Reported values are always actual physical used size [1], which is not correct as it should contain the maximum size that all volumes present in the backend could reach [2], total virtual size if you will.

Due to this over provisioning doesn't work as expected. A clear example is if you use thin provisioning with a 1.0 max_over_provisioning ratio, as you'll still be doing over provisioning.

[1] https://github.com/openstack/cinder/blob/55e29347221f1c3c1fca26ab0144ecc1f54b87b6/cinder/volume/drivers/netapp/eseries/library.py#L1466
[2] https://review.openstack.org/#/c/490116/2/specs/queens/provisioning-improvements.rst@103

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to cinder (master)

Fix proposed to branch: master
Review: https://review.openstack.org/518406

Changed in cinder:
assignee: nobody → Adriano (rosso-af)
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to cinder (master)

Reviewed: https://review.openstack.org/518406
Committed: https://git.openstack.org/cgit/openstack/cinder/commit/?id=f905253b9443db1870c3d2b7b70e032bb089efa0
Submitter: Zuul
Branch: master

commit f905253b9443db1870c3d2b7b70e032bb089efa0
Author: Adriano Rosso <email address hidden>
Date: Fri Sep 29 10:29:48 2017 -0300

    NetApp E-series: Fix provisioned_capacity_gb

    Currently, NetApp E-series drivers (iSCSI and FC) are incorrectly
    reporting the total physical used size as the provisioned_capacity_gb.
    This patch fixes the calculation of this attribute by summing the
    user-visible capacity of all the volumes present in the backend and
    reporting the result as the provisioning_capacity_gb.

    Change-Id: I1471ecfffe340dafb1c95bac5eaff79cde650955
    Closes-Bug: #1718739

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

This issue was fixed in the openstack/cinder 12.0.0.0b2 development milestone.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to cinder (stable/pike)

Fix proposed to branch: stable/pike
Review: https://review.openstack.org/528783

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to cinder (stable/pike)

Reviewed: https://review.openstack.org/528783
Committed: https://git.openstack.org/cgit/openstack/cinder/commit/?id=e2b755590a952dbdd490d0d02f53cf6852463cce
Submitter: Zuul
Branch: stable/pike

commit e2b755590a952dbdd490d0d02f53cf6852463cce
Author: Adriano Rosso <email address hidden>
Date: Fri Sep 29 10:29:48 2017 -0300

    NetApp E-series: Fix provisioned_capacity_gb

    Currently, NetApp E-series drivers (iSCSI and FC) are incorrectly
    reporting the total physical used size as the provisioned_capacity_gb.
    This patch fixes the calculation of this attribute by summing the
    user-visible capacity of all the volumes present in the backend and
    reporting the result as the provisioning_capacity_gb.

    (cherry picked from commit f905253b9443db1870c3d2b7b70e032bb089efa0)
    Change-Id: I1471ecfffe340dafb1c95bac5eaff79cde650955
    Closes-Bug: #1718739

tags: added: in-stable-pike
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/cinder 11.1.1

This issue was fixed in the openstack/cinder 11.1.1 release.

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.