Bug 1041743 - [RFE][glance]: Split image's size into 2 separate attributes
Summary: [RFE][glance]: Split image's size into 2 separate attributes
Keywords:
Status: CLOSED DUPLICATE of bug 1048174
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-glance
Version: unspecified
Hardware: Unspecified
OS: Unspecified
high
medium
Target Milestone: Upstream M3
: 5.0 (RHEL 7)
Assignee: RHOS Maint
QA Contact: nlevinki
URL: https://blueprints.launchpad.net/glan...
Whiteboard: upstream_milestone_icehouse-3 upstrea...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-12-12 19:08 UTC by RHOS Integration
Modified: 2016-04-26 18:12 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Enhancement
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-03-04 13:30:46 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description RHOS Integration 2013-12-12 19:08:13 UTC
Cloned from launchpad blueprint https://blueprints.launchpad.net/glance/+spec/split-image-size.

Description:

Currently, Glance's image have a size attribute which is being misunderstood and overloaded.

Image's size can refer to either the file size or the actual image size, which in cases like qcow2 may not be the same. This blueprint proposes splitting current size attribute in 2 separate attributes: image_size and file_size. The former refers at the real size of the image and the later at the actual size of the uploaded file. In most of the cases both fields will hold the same value, however, the number of cases where they may differ is as well big.

This blueprint considers both fields important for an image but not exactly required for it to exist. The image_size will allow users to know what is the actual size of the image and how much space the need to reserve in order to use it - cinder blocks allocation, for example. The file_size instead is necessary to support quotas, CLI progress bars, rate-limits, meetering and others.

It is possible to argue the need of this blueprint by saying that the actual image size could be part of the image properties / metadata. However, it is important to remember that image_size is a first citizen attribute in most of the external tools. Also, an attribute will ease the consumption of its value from Nova, Cinder and other tools relying on it.

Specification URL (additional information):

None

Comment 4 Flavio Percoco 2014-03-04 13:30:46 UTC

*** This bug has been marked as a duplicate of bug 1048174 ***


Note You need to log in before you can comment on or make changes to this bug.