[
https://issues.apache.org/jira/browse/CLOUDSTACK-9100?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15251774#comment-15251774
]
ASF subversion and git services commented on CLOUDSTACK-9100:
-------------------------------------------------------------
Commit 8ae4da89d21633d7a6502601bc0c8533b447d3ff in cloudstack's branch
refs/heads/master from [~koushikd]
[ https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;h=8ae4da8 ]
Merge pull request #1157 from SudharmaJain/cs-9100
CLOUDSTACK-9100: ISO.CREATE/TEMPLATE.CREATE event missing for usage_event 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.

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.
* pr/1157:
CLOUDSTACK-9100: ISO.CREATE/TEMPLATE.CREATE event missing for usage_event by
template sync thread
Signed-off-by: Koushik Das <[email protected]>
> 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
> Assignee: sudharma jain
> Fix For: 4.9.0
>
>
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)