Reviewed: https://review.opendev.org/710016 Committed: https://git.openstack.org/cgit/openstack/oslo.utils/commit/?id=85cd57d1c5b7f1e046f831b9b1caa341b688cfb4 Submitter: Zuul Branch: stable/train
commit 85cd57d1c5b7f1e046f831b9b1caa341b688cfb4 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 (cherry picked from commit ebf8368501500767fd4e6e13602bb88950a4484b)
Reviewed: https:/ /review. opendev. org/710016 /git.openstack. org/cgit/ openstack/ oslo.utils/ commit/ ?id=85cd57d1c5b 7f1e046f831b9b1 caa341b688cfb4
Committed: https:/
Submitter: Zuul
Branch: stable/train
commit 85cd57d1c5b7f1e 046f831b9b1caa3 41b688cfb4
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 7fd4e6e13602bb8 8950a4484b)
Closes-Bug: 1864529
(cherry picked from commit ebf836850150076