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

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

Github user devdeep commented on the pull request:

    https://github.com/apache/cloudstack/pull/635#issuecomment-128292255
  
    @DaanHoogland When prepareTemplate is called, it either falls into 
prepareTemplateInOneStoragePool if one primary has to be seeded with the 
template; or prepareTemplateInAllAllStoragePool for seeding templates in all 
primary pools available. prepareTemplateInAllStoragePool also calls 
prepareTemplateInOneStoragePool for seeding the template. 
prepareTemplateInOneStoragePool schedules the template to seeded on a given 
primary storage. The actual work of seeding the template is done by 
prepareTemplateForCreate. Their were   no unit tests for this routine. I have 
written unit tests for the same. It was more meaningful to write tests for this 
routine, as it is here, where the actual work happens. prepareTemplate and 
prepareTemplateInOneStoragePool just schedule a thread/executor to seed the 
primary pools


> Update prepare template api to seed/prepare a template only on a give primary 
> storage
> -------------------------------------------------------------------------------------
>
>                 Key: CLOUDSTACK-8687
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-8687
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the 
> default.) 
>            Reporter: Devdeep Singh
>            Assignee: Devdeep Singh
>   Original Estimate: 2h
>  Remaining Estimate: 2h
>
> Currently, the prepare template api will seed/prepare a given template on all 
> the primary storage pools in a zone. If however, a user wishes to prepare a 
> template only a particular storage pool, it isn't possible.
> The prepare template api should be updated to allow seedng/preparing a 
> template only on a given primary storage pool.



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

Reply via email to