Convert available and minimum disk sizes to bytes.
Previously the check-requirements role would assume GB as the unit
of space when gathering disk sizes from ansible_devices. With
drives larger than 1 TB ansible_devices reports the size as a
float. This converts all disk sizes to bytes for consistency within
the comparisons regardless of the size of the disk.
Change-Id: I07b81a8a35197f73cd338fa02cb7b112df15a012
Closes-Bug: 1536726
(cherry picked from commit 85aad72a910538732cd668676e1d4c88e814ba22)
Reviewed: https:/ /review. openstack. org/272647 /git.openstack. org/cgit/ openstack/ openstack- ansible/ commit/ ?id=aac713dcb00 a3e1e4c153b4e3c 68faf3d544c6c1
Committed: https:/
Submitter: Jenkins
Branch: liberty
commit aac713dcb00a3e1 e4c153b4e3c68fa f3d544c6c1
Author: d34dh0r53 <email address hidden>
Date: Thu Jan 21 15:44:01 2016 -0600
Convert available and minimum disk sizes to bytes.
Previously the check-requirements role would assume GB as the unit
of space when gathering disk sizes from ansible_devices. With
drives larger than 1 TB ansible_devices reports the size as a
float. This converts all disk sizes to bytes for consistency within
the comparisons regardless of the size of the disk.
Change-Id: I07b81a8a35197f 73cd338fa02cb7b 112df15a012 32cd668676e1d4c 88e814ba22)
Closes-Bug: 1536726
(cherry picked from commit 85aad72a9105387