Error: Image with the input desired state already exists in the Image Library with the name 'autogen-software-spec-1' during cluster creation in VCF 9
search cancel

Error: Image with the input desired state already exists in the Image Library with the name 'autogen-software-spec-1' during cluster creation in VCF 9

book

Article ID: 443400

calendar_today

Updated On:

Products

VMware SDDC Manager / VCF Installer VMware Cloud Foundation

Issue/Introduction

  • SDDC Manager fails on task, "Import vSphere Lifecycle Manager Image from Desired Software Specification"
  • Error in /var/log/vmware/vcf/domainmanager/domainmanager.log in SDDC Manager
    DEBUG [vcf_dm,69ea3......................] [c.v.v.c.c.f.a.i.ImportPersonalityJsonAction,dm-exec-8]  Draft image name Optional[ESXI-803-24784735-standard-Dell]
    
    ERROR [vcf_dm,69ea3......................] [c.v.v.c.c.f.a.i.ImportPersonalityJsonAction,dm-exec-8]  Validation failed with error: {"id":"com.vmware.vcIntegrity.lifecycle.ImageLibrary.Spec.Duplicate","defaultMessage":"Image with the input desired state already exists in the Image Library with the name \u0027autogen-software-spec-1

Environment

VMware Cloud Foundation

Cause

This issue occurs when SDDC Manager attempts to create or import a cluster image (e.g., ESXI-803-24784735-standard-Dell), but an image with the exact same desired state configurations (software specification/personality) already exists in the vCenter Image Library under a different, automatically generated name (e.g., autogen-software-spec-1).

Because the duplicate desired state is already mapped to the automated name, the validation check fails, causing the task to fail.

Resolution

 Manually rename the existing image in the Image Library to match the expected name identified in the SDDC Manager's domainmanager.log.

  1. Review the domainmanager.log to find the draft image name the system is expecting.(In the example log above, the expected name is ESXI-803-24784735-standard-Dell).

    /var/log/vmware/vcf/domainmanager/domainmanager.log

     

    DEBUG [vcf_dm,69ea3......................] [c.v.v.c.c.f.a.i.ImportPersonalityJsonAction,dm-exec-8]  Draft image name Optional[ESXI-803-24784735-standard-Dell]
    
    ERROR [vcf_dm,69ea3......................] [c.v.v.c.c.f.a.i.ImportPersonalityJsonAction,dm-exec-8]  Validation failed with error: {"id":"com.vmware.vcIntegrity.lifecycle.ImageLibrary.Spec.Duplicate","defaultMessage":"Image with the input desired state already exists in the Image Library with the name \u0027autogen-software-spec-1

     

  2. Navigate to the vSphere Client Image Library and locate the image generating the conflict (e.g., autogen-software-spec-1).

  3. Manually rename the conflicting image from its auto-generated name to the exact expected name found in Step 1. (e.g.,ESXI-803-24784735-standard-Dell)