hashicorp / hashicorp/packer-plugin-cloudstack

CloudStack Builder limits template name to 32 characters

未关闭
#44 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Go
星标
5
派生
17
PR 合并指标
30 天内没有已合并 PR

描述

When I use packer to create a template, I get the following error if the name exceeds 32 characters:

`==> cloudstack.template: Error creating the new template XXXX XXXXXXX XXXXXXXX XXXXX XXXXX: CloudStack API error 431 (CSExceptionErrorCode: 4350): Template name cannot be null and should be less than 32 characters`

Method “public VMTemplateVO createPrivateTemplateRecord” appears to have the check:

`
String name = cmd.getTemplateName();
if ((name == null) || (name.length() > 32)) {
throw new InvalidParameterValueException("Template name cannot be null and should be less than 32 characters");
}
`

This restriction does not occur in the CloudStack UI. The size of the name column in the database is 255 chars.
``

贡献指南

打开贡献指南

调研方向

Start by tracing the CloudStack template-creation path in the plugin and compare its behavior with the reported createPrivateTemplateRecord check. The issue names no repository files or tests; determine which side owns the 32-character restriction and document or test the expected handling of longer template names.

由索引模型根据 Issue 内容生成。

评估

技术栈
go
领域
cloud
Issue 类型
缺陷
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。