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

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

GitHub user koushik-das opened a pull request:

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

    CLOUDSTACK-8655: [Browser Based Upload Volume] Partially uploaded vol…

    …umes are not getting destroyed as part of storage GC
    
    As part of volume sync, that runs during of SSVM start-up, the 
volume_store_ref entry was getting deleted. Volume GC relies on this entry to 
move volume to destroyed state.
    Since the entry was getting deleted, GC thread never moved the volume from 
UploadError/UploadAbandoned to Destroyed. Fix is to not remove the 
volume_store_ref entry as part
    of volume sync and let GC thread handle the clean up.

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

    $ git pull https://github.com/koushik-das/cloudstack CLOUDSTACK-8655

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

    https://github.com/apache/cloudstack/pull/611.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 #611
    
----
commit b3e0099e0a0ea9b22a350320f56a8421823fedc1
Author: Koushik Das <[email protected]>
Date:   2015-07-21T08:58:38Z

    CLOUDSTACK-8655: [Browser Based Upload Volume] Partially uploaded volumes 
are not getting destroyed as part of storage GC
    As part of volume sync, that runs during of SSVM start-up, the 
volume_store_ref entry was getting deleted. Volume GC relies on this entry to 
move volume to destroyed state.
    Since the entry was getting deleted, GC thread never moved the volume from 
UploadError/UploadAbandoned to Destroyed. Fix is to not remove the 
volume_store_ref entry as part
    of volume sync and let GC thread handle the clean up.

----


> [Browser Based Upload Volume] Partially uploaded volumes are not getting 
> destroyed as part of storage GC
> --------------------------------------------------------------------------------------------------------
>
>                 Key: CLOUDSTACK-8655
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-8655
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the 
> default.) 
>          Components: Management Server
>    Affects Versions: 4.6.0
>            Reporter: Koushik Das
>            Assignee: Koushik Das
>             Fix For: 4.6.0
>
>
> Repro steps:
> 1. Initiate getUploadParamsForVolume API and do not or partially upload the 
> volume.
> 2. Destroy SSVM.
> 3. Wait for the volume entry to get into UploadError/UploadAbandoned state in 
> the volumes table in DB.
> 4. Verify that this volume continues to remain in that state and doesn't get 
> GC'ed (displayed as part of listVolume API).
> As part of volume sync, that runs as part of SSVM start-up, the entry in 
> volume_store_ref table was getting deleted. Volume GC relies on this entry to 
> move volume to destroyed state. Since the entry was getting deleted, GC 
> thread never moved the volume from UploadError/UploadAbandoned to Destroyed.
> The fix is to not remove the volume_store_ref entry as part of volume sync 
> and let the storage GC thread handle the clean up.



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

Reply via email to