Citrix Daas MCS: Unable to update machine catalog while using machine template properties

Citrix Daas MCS: Unable to update machine catalog while using machine template properties

book

Article ID: CTX477428

calendar_today

Updated On:

Description

Unable to update an existing machine catalog, The error may occur when you select "Apply machine template properties to virtual machines"

image.png

"An error occurred while publishing the image. ErrorID : ImagePreparationFinalization ErrorDetails : Terminated Inner Error: A launch template name must be between 3 and 128 characters, and may contain letters, numbers, and the following characters: - ( ) . / _.A launch template name must be between 3 and 128 characters, and may contain letters, numbers, and the following characters: - ( ) . / _. ErrorID : ImagePreparationFinalization"

 

Resolution

Please  remove space from catalog name.

Problem Cause

The issue is the "space" in the catalog name as Launch Template does not allow name with space.

From the Log Line in Cloud Connector Logs:
AwsAdapter.CreateVm: Custom Properties AwsCaptureInstanceProperties,true;AwsOperationalResourcesTagging,true parsed to: UseLaunchTemplates:True, TagOperationalResources:True

This means that the we have AwsCaptureInstnaceProperties as True for this catalog and hence we end up creating LaunchTemplate to capture Tags and IAM role. However it fails because the catalog name is : "Catalog name Apps 123 - xxxxx//xxxxxxxxxxxxxxx"  

MCS (AWSPlugin) creates PrepVM, AMI and Template with the provided catalog name and add some other characters like "Preparation - Catalog-Name-xxxx" for Prep VM, "CatalogName-basedisk.xxxxxx-xxxx-xxxxx" for AMI and LaunchTemplate that are created by MCS.

AWS allows space (" ") in the AMI and VM name but does not allow space in the Launch Template Name.