Support upload Templates where the format is compressed
- Dominant language
- Java
- Stars
- 3.1k
- Forks
- 1.4k
- Avg merge
- 6d 19h
- Merged PRs (30d)
- 32
Description
### The required feature described as a wish
As a User/Admin/Operator I would like to upload a compressed template from local
Currently Cloudstack supports the registration of template whose format is also compressed
resolute-server-cloudimg-amd64.img
resolute-server-cloudimg-amd64.qcow2
resolute-server-cloudimg-amd64.qcow2.bz2
resolute-server-cloudimg-amd64.xz
When a admin user tries to upload a template from local whose format is .qcow2.bz2 it fails
resolute-server-cloudimg-amd64.qcow2.bz2
resolute-server-cloudimg-amd64.tar.gz
resolute-server-cloudimg-amd64-root.tar.xz
Error is thrown
```
2026-05-18 07:35:41,469 ERROR [c.c.s.I.UploadStatusCheck] (Upload-Monitor-1:[ctx-abbe0176]) (logid:f692675e) Template Template {"format":"QCOW2","id":214,"name":"testcom","uniqueName":"214-2-f74f8eac-5a21-3a6e-aaf1-9c68a5e976da","uuid":"5c9ff495-1f54-47d7-a8ef-c74c751c0ab8"} failed to upload. Error details: File type mismatch between uploaded file and selected format. Selected file format: QCOW2. Received: bzip2 compressed data, block size = 900k"
```
Contributor guide
Research direction
Start from the local template upload path and the reported UploadStatusCheck error, then trace where the uploaded file type is compared with the selected QCOW2 format. Done means local uploads of the listed compressed formats, including .qcow2.bz2, .tar.gz, and .root.tar.xz, no longer fail with a file type mismatch.
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
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100