]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Fix up calculating space info for mirrored volumes
authorVishvananda Ishaya <vishvananda@gmail.com>
Fri, 17 Jan 2014 21:07:43 +0000 (14:07 -0700)
committerjohn-griffith <john.griffith@solidfire.com>
Mon, 20 Jan 2014 18:04:18 +0000 (11:04 -0700)
commit51099632dfc979c57133a69e4c68cdad3fe47008
tree57b9e7bf7adc43e14736773d3405ea855f3042ac
parent9c1ad54e7815d50d9561d88337724ad2042c92a2
Fix up calculating space info for mirrored volumes

The status reporting in the lvm driver for cinder volume incorrectly
reports free capacity. This is due to a couple of issues:
  a) the number of mirrors isn't taken into account
  b) there are some pathological cases where a
     simple division by total mirrors isn't sufficient
     because all mirrors must be on separate physical volumes.

Co-authored-by: Vishvananda Ishaya <vishvananda@gmail.com>
Co-authored-by: John Griffith <john.griffith@solidfire.com>
Closes-Bug: 1269964
Change-Id: I65e16b24367b4093a52c1c52d895fb58ef6a29ff
cinder/brick/local_dev/lvm.py
cinder/tests/brick/test_brick_lvm.py
cinder/tests/test_volume.py
cinder/volume/drivers/lvm.py