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/12/03 12:49:11 UTC

[jira] [Commented] (CLOUDSTACK-9100) ISO.CREATE/TEMPLATE.CREATE event missing for usage_event by template sync thread

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

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

GitHub user SudharmaJain opened a pull request:

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

    CLOUDSTACK-9100: ISO.CREATE/TEMPLATE.CREATE event missing for usage_e…

    …vent by template sync thread
    
    If there is a Management server restart while template is in downloading or installing state. Template Sync does not push event into usage_event table. 
    
    I have verified the fix manually. Here is a snapshot.
    ![image](https://cloud.githubusercontent.com/assets/12229259/11559714/0989748c-99e1-11e5-88e0-48b4dbec0224.png)
    
     I have registered 4 templates. template id 207 and 208(ISO.CREATE event is missing) before applying the fix. and template id 209 and 210 after applying the fix.
    
    Repro Steps (3 cases)
    ==========
    Case - 1 (private template)
    -------------
    1. register a private template/iso.
    2. restart management server when template is in downloading state.
    3. After management server restart, template_store_ref entry is removed if  download was not yet completed.
    4. on next management server restart, if download would have completed, template_store_ref entry will get populated, but TEMPLATE.CREATE event is missing in usage_event.
    
    Case - 2 (Public template)
    --------------------------------
    1.  register public template.
    2. restart management server when in downloading state.
    3. after restart template download reinitiates.
    4. template goes to ready state, but there is no usage event.
    
    case -3 (public/private template)
    --------------------------------- 
    1. register a template 
    2. restart management server when template is in installing state.
    3. after restart template goes to ready, but there is no usage event.
    


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

    $ git pull https://github.com/SudharmaJain/cloudstack cs-9100

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

    https://github.com/apache/cloudstack/pull/1157.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 #1157
    
----
commit 912735a03086056e8e1e0d049492ead1bc0dfd3d
Author: SudharmaJain <su...@citrix.com>
Date:   2015-12-03T08:41:14Z

    CLOUDSTACK-9100: ISO.CREATE/TEMPLATE.CREATE event missing for usage_event by template sync thread

----


> ISO.CREATE/TEMPLATE.CREATE event missing for usage_event by template sync thread
> --------------------------------------------------------------------------------
>
>                 Key: CLOUDSTACK-9100
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-9100
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the default.) 
>            Reporter: sudharma jain
>




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