Error: "Failed to delete app template with id" when deleting application images from VMware Cloud Director catalog.
search cancel

Error: "Failed to delete app template with id" when deleting application images from VMware Cloud Director catalog.

book

Article ID: 394884

calendar_today

Updated On:

Products

VMware Cloud Director

Issue/Introduction

  • Deleting an application image (appTemplate) from the VMware Cloud Director(VCD) UI fails.
  • The affected appTemplate shows the status as "Not Ready".
  • The stacktrace from the /opt/vmware/vcloud-director/logsvcloud-container-debug.log and the debug details from the UI shows:

    ERROR    | content-library-activity-pool27623 | DeleteAppTemplateActivity      | [Activity Execution] Failed to delete app template with id <template name ############>
    ...
    org.springframework.web.client.HttpClientErrorException$BadRequest: 400 Bad Request: "{"response":{"message":"Failed to fetch subscription details."}}"
            at org.springframework.web.client.HttpClientErrorException.create(HttpClientErrorException.java:101)
            at org.springframework.web.client.DefaultResponseErrorHandler.handleError(DefaultResponseErrorHandler.java:168)
            at org.springframework.web.client.DefaultResponseErrorHandler.handleError(DefaultResponseErrorHandler.java:122)
            at org.springframework.web.client.ResponseErrorHandler.handleError(ResponseErrorHandler.java:63)

  • There are two connections to the same Marketplace repository, 1 with issues showing associated tenants and errors.

Environment

VMware Cloud Director 10.5.1

Cause

The failed appTemplate was never properly created. With issues connecting to the subscribed Marketplace,the sync was never successful.

Resolution

For the failed template:

  • Add a new version of the failed template as per the documentation.
  • Delete the affected appTemplate again.