Comment 4 for bug 739433

Revision history for this message
Vish Ishaya (vishvananda) wrote : Re: [Bug 739433] Re: Glance Image Limit is 2^32 on 32bit Systems

This seems like a high priority bug to me. Windows images are almost always going to be larger than 2G, even compressed.
On Mar 21, 2011, at 9:52 AM, Rick Harris wrote:

>> Python converts integers to long integers internally as they get
> bigger.
>
> True, but ultimately the `size` value is persisted as a MySQL `Integer`,
> so, AFAIK we're capped at 2 billion.
>
>> So, are we saying this is, or is not, a bug?
>
> 2 gig seems too low. I'd say we should make it a low priority bug to
> switch to using `sa.BigInteger` as the column type for `size`.
>
> --
> You received this bug notification because you are a member of Glance
> Bug Team, which is subscribed to Glance.
> https://bugs.launchpad.net/bugs/739433
>
> Title:
> Glance Image Limit is 2^32 on 32bit Systems
>
> Status in OpenStack Image Registry and Delivery Service (Glance):
> New
>
> Bug description:
> Glance uses plain integers to record the image size. On 32-bit
> machines, this limits the max image size to approximately 2 gigs. The
> image size may be larger on 64-bit systems.
>
> E.g. in http://bazaar.launchpad.net/~glance-core/glance/cactus-
> trunk/view/head:/glance/registry/db/api.py
>
> def _image_update(context, values, image_id):
> ...
>
> if 'size' in values:
> values['size'] = int(values['size'])