]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Fix free_capacity reporting in SolidFire driver
authorjohn-griffith <john.griffith@solidfire.com>
Tue, 25 Feb 2014 06:02:11 +0000 (23:02 -0700)
committerjohn-griffith <john.griffith@solidfire.com>
Tue, 25 Feb 2014 15:17:44 +0000 (08:17 -0700)
commitcfac9c7945f3cd5d39b7f6bd8950427a144b889d
treed8bc2dad1776a84cf781d4bc8a623984ce1a8b65
parent27627631d4a0a477570b6f8b1bf17cd772208d72
Fix free_capacity reporting in SolidFire driver

The SolidFire driver reports capacity info in bytes, the
capabilities update reports available_GB.  Sadly we neglected
to convert the bytes to gigibytes here which made for a VERY
large backend and caused things like capacity filtering to not
work correctly.

This patch just adds conversion to GiB when reporting capabilities.

Change-Id: I62c6ad2edd8c2ced344df766c198504894f4902b
Closes-Bug: 1284452
cinder/volume/drivers/solidfire.py