You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cloudstack.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2015/08/03 17:12:04 UTC

[jira] [Commented] (CLOUDSTACK-8703) Cloudstack tries to re-download templates on S3 while they are already their.

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

ASF GitHub Bot commented on CLOUDSTACK-8703:
--------------------------------------------

GitHub user borisroman opened a pull request:

    https://github.com/apache/cloudstack/pull/651

    CLOUDSTACK-8703: Fixed issue when listing directory on S3.

    It would only return objectSummaries when the anwser from the S3 System was truncated.

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

    $ git pull https://github.com/borisroman/cloudstack CLOUDSTACK-8703

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

    https://github.com/apache/cloudstack/pull/651.patch

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

    This closes #651
    
----
commit 5f87e9c917faa3f7d1d8b8d3f73f569e83d7bc2d
Author: Boris Schrijver <bo...@pcextreme.nl>
Date:   2015-08-03T15:10:05Z

    CLOUDSTACK-8703: Fixed issue when listing directory on S3, it would only return objectSummaries when the anwser from the S3 System was truncated.

----


> Cloudstack tries to re-download templates on S3 while they are already their.
> -----------------------------------------------------------------------------
>
>                 Key: CLOUDSTACK-8703
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-8703
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the default.) 
>          Components: Secondary Storage
>    Affects Versions: 4.5.2
>            Reporter: Boris Schrijver
>            Assignee: Boris Schrijver
>             Fix For: 4.6.0, 4.5.2
>
>
> When the management server restarts, reason doesn't matter, it will try to list all of the available templates on the secondary storage. To redownload them when they are missing. On S3, S3Utils listDirectory() will not return these because of a bug introduced in the following commit: debcbcc1454789936407583fe0aba8e158b16cad. So the management server will redownload them all. The listDirectory() method in S3Utils.java will only return objects when the anwser it receives from the S3 system is truncated. So listing smaller then the pagination limit will always return 0 obejcts.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)