Skip to content

CloudStack Builder limits template name to 32 characters #44

@hc7244

Description

@hc7244

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.
``

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions