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.
Reviewed: https:/ /review. openstack. org/67579 /git.openstack. org/cgit/ openstack/ cinder/ commit/ ?id=51099632dfc 979c57133a69e4c 68cdad3fe47008
Committed: https:/
Submitter: Jenkins
Branch: master
commit 51099632dfc979c 57133a69e4c68cd ad3fe47008
Author: Vishvananda Ishaya <email address hidden>
Date: Fri Jan 17 14:07:43 2014 -0700
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 <email address hidden>
Co-authored-by: John Griffith <email address hidden>
Closes-Bug: 1269964 93a52c1c52d895f b58ef6a29ff
Change-Id: I65e16b24367b40