From ebf8368501500767fd4e6e13602bb88950a4484b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Herv=C3=A9=20Beraud?= Date: Mon, 24 Feb 2020 20:15:48 +0100 Subject: 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 --- .../image-utils-handle-scientific-notation-6f65d46e9c8c8f8c.yaml | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 releasenotes/notes/image-utils-handle-scientific-notation-6f65d46e9c8c8f8c.yaml (limited to 'releasenotes') diff --git a/releasenotes/notes/image-utils-handle-scientific-notation-6f65d46e9c8c8f8c.yaml b/releasenotes/notes/image-utils-handle-scientific-notation-6f65d46e9c8c8f8c.yaml new file mode 100644 index 0000000..9577fd8 --- /dev/null +++ b/releasenotes/notes/image-utils-handle-scientific-notation-6f65d46e9c8c8f8c.yaml @@ -0,0 +1,5 @@ +--- +fixes: + - | + qemu 4.1.0 output shifts to scientific notation at 1000mb, + breaking oslo.utils. ``QemuImgInfo`` is now fixed to support this notation. -- cgit v1.2.1