Comment 323 for bug 2059809

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to glance (stable/2023.2)

Reviewed: https://review.opendev.org/c/openstack/glance/+/923267
Committed: https://opendev.org/openstack/glance/commit/733d771a73bffaf1501c7a1d91829646daf1372b
Submitter: "Zuul (22348)"
Branch: stable/2023.2

commit 733d771a73bffaf1501c7a1d91829646daf1372b
Author: Dan Smith <email address hidden>
Date: Tue Apr 16 10:29:10 2024 -0700

    Extend format_inspector for QCOW safety

    This adds two properties to the QcowInspector that makes it able to
    indicate whether the file specifies a backing_file or data_file in the
    header. Both conditions are considered unsafe for our usage. To
    ease checking of this condition, a classmethod is added that takes
    a local filename and digests just enough of the file to assert that
    both conditions are false.

    Change-Id: Iaf86b525397d41bd116999cabe0954a0a7efac65
    Related-Bug: #2059809
    (cherry picked from commit ae536bb394793c9a7a219cb498e03d5c81dbbbb7)
    (cherry picked from commit 2eba54e0821106097dfeceb424e53943fd090483)