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 摘要。