Service Capabilities fields total_capacity_gb & free_capacity_gb report values which cant be typecasted to float

Bug #1629143 reported by Karthik Prabhu Vinod
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Cinder
Triaged
Wishlist
Unassigned

Bug Description

Currently, some drivers report values of 'unknown' & 'infinite' for fields total_capacity_gb & free_capacity_gb in service capabilities. Although these values currently work, they cant be type casted to Float. This creates problems, whenever we are trying to convert service dicts to oslo versioned objects.

The solution to change all occurrences of 'infinite' & 'unknown' to 'inf' or 'NaN' as these values are floatable by python itself.

Changed in cinder:
assignee: nobody → Karthik Prabhu Vinod (karthik-prabhu-vinod)
Changed in cinder:
status: New → In Progress
Changed in cinder:
importance: Undecided → Wishlist
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on cinder (master)

Change abandoned by Sean McGinnis (<email address hidden>) on branch: master
Review: https://review.openstack.org/374971
Reason: This review is > 4 weeks without comment, and failed Jenkins the last time it was checked. We are abandoning this for now. Feel free to reactivate the review by pressing the restore button and leaving a 'recheck' comment to get fresh test results.

Changed in cinder:
assignee: Karthik Prabhu Vinod (karthik-prabhu-vinod) → Justin A Wilson (justin-wilson)
Revision history for this message
Sean McGinnis (sean-mcginnis) wrote : Bug Assignee Expired

Unassigning due to no activity for > 6 months.

Changed in cinder:
assignee: Justin A Wilson (justin-wilson) → nobody
status: In Progress → Triaged
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on cinder (master)

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

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.