Comment 6 for bug 1864529

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to oslo.utils (stable/train)

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)