SolidFire Driver: Volume manage should get ceiling of volume size

Bug #1586306 reported by Yafei Yu
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Cinder
Fix Released
Undecided
Yafei Yu

Bug Description

The function manage_existing_object_get_size returns the floor of volume size in solidfire driver.But in the driver API: "When calculating the size, round up to the next GB." See https://github.com/openstack/cinder/blob/master/cinder/volume/driver.py#L1814. So it should return the ceiling of volume size, not the floor.

Yafei Yu (yu-yafei)
Changed in cinder:
assignee: nobody → yuyafei (yu-yafei)
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/323191

Changed in cinder:
status: New → In Progress
Yafei Yu (yu-yafei)
description: updated
Revision history for this message
John Griffith (john-griffith) wrote :

Thanks for looking at this, but actually that's not quite accurate. SolidFire minimum size if 1G and volumes are sized in 1G increments. Also, for things like manage because we use 1G increments and Cinder uses/requires 1G increments there should be no floor or ceiling conversions necessary.

Changed in cinder:
status: In Progress → Invalid
Changed in cinder:
status: Invalid → In Progress
Revision history for this message
Yafei Yu (yu-yafei) wrote :

Hi, John
In the driver API: "When calculating the size, round up to the next GB." See https://github.com/openstack/cinder/blob/master/cinder/volume/driver.py#L1814. So I think the solidfire driver should be consistent with the driver API.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on cinder (master)

Change abandoned by yuyafei (<email address hidden>) on branch: master
Review: https://review.openstack.org/323191

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/326776

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

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

commit f14aace2c21d6605e12150c54cdb1fd714c112ad
Author: yuyafei <email address hidden>
Date: Wed Jun 8 09:36:49 2016 +0800

    SolidFire driver should return ceiling of volume size

    The function manage_existing_get_size returns the floor of volume size
    in solidfire driver. But in the driver API:"When calculating the size,
    round up to the next GB." The solidFire driver should be consistent
    with the driver API. This patch fixes it by returning the ceiling of
    volume size.

    Change-Id: Icc4f893b9e18dc525b85b45f3307663b6d8884ed
    Closes-Bug: #1586306

Changed in cinder:
status: In Progress → Fix Released
Revision history for this message
Doug Hellmann (doug-hellmann) wrote : Fix included in openstack/cinder 9.0.0.0b2

This issue was fixed in the openstack/cinder 9.0.0.0b2 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.