You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by ra...@apache.org on 2015/08/19 12:30:29 UTC

[3/3] git commit: updated refs/heads/master to e384f2d

Merge pull request #715 from devdeep/CLOUDSTACK-8687

CLOUDSTACK-8687: Prepare template only on a given storage poolUpdate prepare template api to seed/prepare a template only on a given primary storage. 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. Updated the api to take storage pool id as an optional parameter. If the pool id is provided then the template is prepared only on the given primary storage pool. Also added unit tests to validate the functionality

* pr/715:
  CLOUDSTACK-8687: Unit tests for validating the prepare template functionality. These tests validate that the templates get scheduled for seeding. Additionally, if a template is already seeded, we do not try and seed it again. Tests also validate that templates are seeded to storage pools which are available.
  CLOUDSTACK-8687: Update prepare template api to seed/prepare a template only on a given primary storage. 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. Updated the api to take storage pool id as an optional parameter. If the pool id is provided then the template is prepared only on the given primary storage pool

Signed-off-by: Rajani Karuturi <ra...@gmail.com>


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/e384f2d1
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/e384f2d1
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/e384f2d1

Branch: refs/heads/master
Commit: e384f2d14684970d034f50f30bc7c3994fbfa9c0
Parents: 48bed3f fedef2e
Author: Rajani Karuturi <ra...@gmail.com>
Authored: Wed Aug 19 15:58:40 2015 +0530
Committer: Rajani Karuturi <ra...@gmail.com>
Committed: Wed Aug 19 15:58:42 2015 +0530

----------------------------------------------------------------------
 .../com/cloud/template/TemplateApiService.java  |   2 +-
 .../admin/template/PrepareTemplateCmd.java      |  16 +-
 .../com/cloud/template/TemplateManagerImpl.java |  60 ++-
 .../cloud/template/TemplateManagerImplTest.java | 520 ++++++++++++++++++-
 4 files changed, 570 insertions(+), 28 deletions(-)
----------------------------------------------------------------------