Support upload Templates where the format is compressed
- 主要言語
- Java
- スター
- 3.1k
- フォーク
- 1.4k
- 平均マージ
- 6日 19時間
- マージ済み PR(30日)
- 32
説明
### 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"
```
コントリビューションガイド
調査の方向性
ローカルのテンプレートアップロードパスと報告されている UploadStatusCheck エラーから着手し、アップロードされたファイルの種類が選択された QCOW2 形式と比較される箇所を追跡します。完了条件は、.qcow2.bz2、.tar.gz、.root.tar.xz を含む、列挙された圧縮形式のローカルアップロードが、ファイル形式の不一致によって失敗しなくなることです。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- java
- 領域
- cloud, infrastructure
- issue の種類
- 機能追加
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 静か
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 45/100