Comment 15 for bug 900959

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to glance (master)

Reviewed: https://review.openstack.org/3147
Committed: http://github.com/openstack/glance/commit/3956c546fb725a13784f6e1441a74be1680abd9d
Submitter: Jenkins
Branch: master

commit 3956c546fb725a13784f6e1441a74be1680abd9d
Author: Eoghan Glynn <email address hidden>
Date: Tue Jan 17 23:21:15 2012 +0000

    Set size metadata correctly for remote images.

    Previously the size metadata was always zero'd for remote images,
    which was misleading and led to issues like:

      Bug 900959

    We now query the remote store (HTTP, S3 or Swift) with the
    equivalent of a HTTP HEAD in order to determine the correct
    image size without downloading.

    Where the size is available, the metadata is set appropriately.
    Otherwise it falls back to zero as before.

    Change-Id: I3093eba1b2fa023348558c45febee39e68e1a08f