netapp image cache cleaning start thresholds does not work

Bug #1623739 reported by Yukihiro KAWADA
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Cinder
Fix Released
Undecided
Yukihiro KAWADA

Bug Description

netapp image cache cleaning start thresholds does not work.

Image cache cleaning start thresholds can set
self.configuration.thres_avl_size_perc_start.
This default value is 20(%).
But this value is not used at all.

avl_percent = int((total_avl / total_size) * 100)
Because this avl_percent is always zero.
And cleaning process will start every time without
waiting for the remaining 20% capacity.

Correct code is:
avl_percent = int((float(total_avl) / total_size) * 100) # Y.Kawada

Changed in cinder:
assignee: nobody → Yukihiro KAWADA (warp-kawada)
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/370524

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

Reviewed: https://review.openstack.org/370524
Committed: https://git.openstack.org/cgit/openstack/cinder/commit/?id=da7a668137f6b955d69e87aa6e8b1cde50855fc8
Submitter: Jenkins
Branch: master

commit da7a668137f6b955d69e87aa6e8b1cde50855fc8
Author: Yukihiro KAWADA <email address hidden>
Date: Thu Sep 15 12:25:54 2016 +0900

    netapp image cache cleaning start thresholds does not work

    Fix avl_percent value.

    Change-Id: Ie886124e626e4883b81d5a1ba203621f104e5ef7
    Closes-Bug: #1623739

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

This issue was fixed in the openstack/cinder 11.0.0.0b1 development milestone.

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.