apache / apache/cloudstack

Support download of template which are registered as Direct Download

Open
#7,703 8 comments 0 reactions 0 assignees View on GitHub
complexity:trivial component:kvm component:templates type:improvement
Dominant language
Java
Stars
3.1k
Forks
1.4k
Avg merge
6d 19h
Merged PRs (30d)
32

Description

##### ISSUE TYPE

* Improvement Request

##### COMPONENT NAME

~~~

Component: template, kvm

~~~

##### CLOUDSTACK VERSION

~~~
4.18

~~~

##### SUMMARY

Support download of template which are registered as Direct Download

Steps to reproduce the issue

1. Register a qcow2 template > select the Direct Download option

2. Launch a vm from the registered template

3. Try to download the template ( images> template> Download template

4. The download of template fails

Screenshot

![Screenshot 2023-06-28 at 4 53 58 PM](https://github.com/apache/cloudstack/assets/1401014/a9eece25-0918-4048-9943-fd3101b9ce1c)

![Screenshot 2023-06-28 at 4 36 44 PM](https://github.com/apache/cloudstack/assets/1401014/665a325c-4a01-4ba3-a24a-39143f683cd8)

Expected behavior
-----------

Currently we are storing the direct downloaded templates in primary storage

Cloudstack supports the download of templates only if they are present in the seconday storage.

There could be use-case scenario if a user wants to download the original template which is registered as direct download

Contributor guide

Open the contributing guide

Research direction

Start by tracing the template download workflow described in the issue and compare how templates in primary storage are handled with templates in secondary storage. Reproduce the failure using a qcow2 template registered with Direct Download, then verify that downloading the original template succeeds without breaking the existing secondary-storage path.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
cloud, infrastructure
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.