apache / apache/cloudstack

Support upload Templates where the format is compressed

未關閉
#13,175 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
component:templates type:improvement
主要語言
Java
星號
3.1k
分支
1.4k
平均合併
6 天 19 小時
30 天內合併 PR
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

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。