cloudstack-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From SudharmaJain <...@git.apache.org>
Subject [GitHub] cloudstack pull request: CLOUDSTACK-9100: ISO.CREATE/TEMPLATE.CREA...
Date Thu, 03 Dec 2015 11:48:28 GMT
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 <sudharma.jain@citrix.com>
Date:   2015-12-03T08:41:14Z

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

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message