cloudstack-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CLOUDSTACK-9423) Object storage should get the correct size for compressed templates
Date Mon, 04 Jul 2016 03:36:11 GMT

    [ https://issues.apache.org/jira/browse/CLOUDSTACK-9423?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15360792#comment-15360792
] 

ASF subversion and git services commented on CLOUDSTACK-9423:
-------------------------------------------------------------

Commit 1f9bf93948b37f3132f55ea6ce7041cae57696da in cloudstack's branch refs/heads/master from
[~williamstevens@gmail.com]
[ https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;h=1f9bf93 ]

Merge pull request #1598 from syed/vhd-compressed-size

[CLOUDSTACK-9423] Add ability to get virtual size of compressed VHDsWith 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: template.properties on Swift
```
uniquename=routing-1
filename=routing-1.vhd
size=263417314
virtualsize=2894447637315205059
```
After the fix

```
uniquename=routing-1
filename=routing-1.vhd
size=263417314
virtualsize=3145728000
```

Look at the `virutalsize` in both cases

* pr/1598:
  [CLOUDSTACK-9423] Add ability to get virtual size of compressed VHDs

Signed-off-by: Will Stevens <williamstevens@gmail.com>


> Object storage should get the correct size for compressed templates
> -------------------------------------------------------------------
>
>                 Key: CLOUDSTACK-9423
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-9423
>             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
(v6.3.4#6332)

Mime
View raw message