cloudstack-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <>
Subject [jira] [Commented] (CLOUDSTACK-9423) Object storage should get the correct size for compressed templates
Date Thu, 30 Jun 2016 17:54:10 GMT


ASF GitHub Bot commented on CLOUDSTACK-9423:

GitHub user syed reopened a pull request:

    [CLOUDSTACK-9423] Add ability to get virtual size of compressed VHDs

    With object store like Swift as secondary storage, if a compressed VHD is uploaded as
a template, the `VHDProcessor` incorrectly calculates the virutal size leading to the template
being useless. This fix tries to guess the virtual size by partially decompressing it and
falls back to a sensible default which is the size of the file. 
    Before the fix: on Swift
    After the fix
    Look at the `virutalsize` in both cases

You can merge this pull request into a Git repository by running:

    $ git pull vhd-compressed-size

Alternatively you can review and apply these changes as the patch at:

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #1598


> Object storage should get the correct size for compressed templates
> -------------------------------------------------------------------
>                 Key: CLOUDSTACK-9423
>                 URL:
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the default.) 
>            Reporter: syed ahmed
>              Labels: secondary_storage, swift, template
> When uploading templates to an object store like Swift, if the template is compressed,
we get an invalid size (negative). This fix tries to see if the template is compressed, if
so, gets the correct size by partially decompressing the VHD header. 

This message was sent by Atlassian JIRA

View raw message