[
https://issues.apache.org/jira/browse/CLOUDSTACK-7754?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14178793#comment-14178793
]
Nitin Mehta commented on CLOUDSTACK-7754:
-----------------------------------------
Issue - Templates source_template_id is null when it is created from Snapshot
with its corresponding volume removed.
Fix - When looking for the source template search for the volume including
removed. Also clean up the code since it had boilerplate code and was updating
db after creating the snapshot record instead of doing it in one go.
QA notes -
Repro steps -
Steps:
i) Create instance A
ii) Take snapshot A from instance A
iii) Create template 1 from snapshot A
iv) Delete instance A and make sure the vm and its volume are expunged.
v) Create template 2 from snapshot A
Test result:
The issue occurred to template 2 which was created after instance A was deleted.
After the fix you should see the source_Template_id set in the vm_template
table for this use case. For sanity reasons make sure source_Template_id is
never null
> 'vm_template.source_template_id' of Template created from Snapshot was NULL
> ----------------------------------------------------------------------------
>
> Key: CLOUDSTACK-7754
> URL: https://issues.apache.org/jira/browse/CLOUDSTACK-7754
> Project: CloudStack
> Issue Type: Bug
> Security Level: Public(Anyone can view this level - this is the
> default.)
> Components: Template
> Affects Versions: 4.5.0
> Reporter: Nitin Mehta
> Assignee: Nitin Mehta
> Priority: Critical
> Fix For: 4.5.0
>
>
> Here is the procedure to reproduce the issue. This is consistent on my
> environment.
> Steps:
> i) Create instance A
> ii) Take snapshot A from instance A
> iii) Create template 1 from snapshot A
> iv) Delete instance A
> v) Create template 2 from snapshot A
> Test result:
> The issue occurred to template 2 which was created after instance A was
> deleted.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)