Reviewed: https://review.opendev.org/709588 Committed: https://git.openstack.org/cgit/openstack/oslo.utils/commit/?id=ebf8368501500767fd4e6e13602bb88950a4484b Submitter: Zuul Branch: master
commit ebf8368501500767fd4e6e13602bb88950a4484b Author: Hervé Beraud <email address hidden> Date: Mon Feb 24 20:15:48 2020 +0100
Fix regex to correctly recognize scientific notation with QemuImgInfo
qemu 4.1.0 output shifts to scientific notation at 1000mb, breaking oslo.utils.
Problem here is that the qemu-img output shifts to scientific notation:
999 => 999 MiB 1000 => 1e+03 MiB
The regex in python-oslo-utils does not cover this.
This issue is likely regexp parsing "disk size: 1e+03 MiB" value.
These changes fix that.
Change-Id: I4c016865890135023ceb497de18d75ccebd5961a Closes-Bug: 1864529
Reviewed: https:/ /review. opendev. org/709588 /git.openstack. org/cgit/ openstack/ oslo.utils/ commit/ ?id=ebf83685015 00767fd4e6e1360 2bb88950a4484b
Committed: https:/
Submitter: Zuul
Branch: master
commit ebf836850150076 7fd4e6e13602bb8 8950a4484b
Author: Hervé Beraud <email address hidden>
Date: Mon Feb 24 20:15:48 2020 +0100
Fix regex to correctly recognize scientific notation with QemuImgInfo
qemu 4.1.0 output shifts to scientific notation at 1000mb, breaking
oslo.utils.
Problem here is that the qemu-img output shifts to scientific notation:
999 => 999 MiB
1000 => 1e+03 MiB
The regex in python-oslo-utils does not cover this.
This issue is likely regexp parsing "disk size: 1e+03 MiB" value.
These changes fix that.
Change-Id: I4c016865890135 023ceb497de18d7 5ccebd5961a
Closes-Bug: 1864529