cloudstack/tools
Nicolas Vazquez e86bb41e0e CLOUDSTACK-10146: Bypass Secondary Storage for KVM templates (#2379)
This feature allows using templates and ISOs avoiding secondary storage as intermediate cache on KVM. The virtual machine deployment process is enhanced to supported bypassed registered templates and ISOs, delegating the work of downloading them to primary storage to the KVM agent instead of the SSVM agent.

Template and ISO registration:
- When hypervisor is KVM, a checkbox is displayed with 'Direct Download' label.
- API methods registerTemplate and registerISO are both extended with this new parameter directdownload.
- On template or ISO registration, no download job is sent to SSVM agent, CloudStack would only persist an entry on template_store_ref indicating that template or ISO has been marked as 'Direct Download' (bypassing Secondary Storage). These entries are persisted as:
template_id = Template or ISO id on vm_template table
store_id NULL
download_state = BYPASSED
state = Ready
(Note: these entries allow users to deploy virtual machine from registered templates or ISOs)
- An URL validation command is sent to a random KVM host to check if template/ISO location can be reached. Metalink are also supported by this feature. In case of a metalink, it is fetched and URL check is performed on each of its URLs.
- Checksum should be provided as indicated on #2246: {ALGORITHM}CHKSUMHASH
- After template or ISO is registered, it would be displayed in the UI

Virtual machine deployment:
When a 'Direct Download' template is selected for deployment, CloudStack would delegate template downloading to destination storage pool via destination host by a new pluggable download manager.
Download manager would handle template downloading depending on URL protocol. In case of HTTP, request headers can be set by the user via vm_template_details. Those details should be persisted as:
Key: HTTP_HEADER
Value: HEADERNAME:HEADERVALUE

In case of HTTPS, a new API method is added uploadTemplateDirectDownloadCertificate to allow user importing a client certificate into all KVM hosts' keystore before deployment.
After template or ISO is downloaded to primary storage, usual entry would be persisted on template_spool_ref indicating the mapping between template/ISO and storage pool.
2018-01-09 12:22:18 +05:30
..
apidoc CLOUDSTACK-10024: Network migration support 2017-12-21 11:25:17 +01:00
appliance CLOUDSTACK-10146: Bypass Secondary Storage for KVM templates (#2379) 2018-01-09 12:22:18 +05:30
bugs-wiki fixing license headers in marvin 2012-07-04 18:45:08 -04:00
build Merge branch '4.9' into 4.10 2017-09-11 12:41:14 +05:30
checkstyle Updating pom.xml version numbers for release 4.9.4.0-SNAPSHOT 2017-09-07 20:21:43 +05:30
cli README: Repo has moved (#2235) 2017-08-10 13:54:26 +02:00
devcloud-kvm Updating pom.xml version numbers for release 4.9.4.0-SNAPSHOT 2017-09-07 20:21:43 +05:30
devcloud4 Updating pom.xml version numbers for release 4.9.4.0-SNAPSHOT 2017-09-07 20:21:43 +05:30
docker docker: increased jetty timeout (#2245) 2017-08-28 13:31:46 +02:00
eclipse CLOUDSTACK-9859: Retirement of midonet plugin (final removal) (#2285) 2017-10-10 10:08:23 +05:30
git Show actual diff in commits after merge 2015-12-12 11:22:32 +01:00
jira jira-changes.py: generate content for CHANGES.md from jira filter 2014-11-30 21:16:59 -05:00
logo README: happy holidays! 2015-12-23 13:27:40 +05:30
marvin CLOUDSTACK-10146: Bypass Secondary Storage for KVM templates (#2379) 2018-01-09 12:22:18 +05:30
ngui CLOUDSTACK-9048: Fix typo for public network description 2015-11-09 11:18:44 -06:00
transifex CLOUDSTACK-9621: Improve conversion Transifex's JSON format to CloudStack JS 2016-11-27 11:02:26 +00:00
travis CLOUDSTACK-10013: SystemVM codebase refactorings and improvements 2017-12-23 09:22:44 +05:30
utils/database_comparision_during_upgrade database_comparision_during_upgrade: add missing license header 2015-04-27 11:55:41 +02:00
whisker CLOUDSTACK-10013: Fixes based on code review and test failures 2017-12-23 17:51:42 +05:30
wix-cloudstack-maven-plugin Updating pom.xml version numbers for release 4.9.4.0-SNAPSHOT 2017-09-07 20:21:43 +05:30
pom.xml Updating pom.xml version numbers for release 4.9.4.0-SNAPSHOT 2017-09-07 20:21:43 +05:30