How to delete empty deployments in vRealize Automation 7.x
search cancel

How to delete empty deployments in vRealize Automation 7.x

book

Article ID: 326138

calendar_today

Updated On:

Products

VMware Aria Suite

Issue/Introduction

This article provides steps about how to delete empty deployment shells.


Symptoms:
  • Several empty deployment items fails to destroy due to various software component errors.
  • There are no software component or virtual machine items associated with those deployments, and the software components that are throwing the errors do exist.


Environment

VMware vRealize Automation 7.0.x
VMware vRealize Automation 7.1.x
VMware vRealize Automation 7.2.x
VMware vRealize Automation 7.3.x

Cause

This issue occurs when empty deployment shells remain without any virtual machines associated to them.

Resolution

This issue is resolved in vRealize Automation 7.4 and later.
 


    Workaround:
    To workaround the issue:
     
    Notes:
    • Take a backup or snapshot of vRealize Automation node.
    • The deployment must not have any components, otherwise they will be left orphaned.
     
    1. Download the 2148996_delete-deployment.zip file attached to this Knowledge base article.
    2. Extract the file to get delete-deployment.sh script file.
    3. Copy the script to vRealize Automation appliance and make it executable.

      Note: The script assumes that PGPASSWORD is set in the environment and it asks for the password. To get the postgres password, see How to obtain the postgres vcac user password in VMware vRealize Automation 7.x (2144071)
    4. Run the script by running the command:

      ./delete-deployment.sh "name of deployment shell"


      For example:

      ./delete-deployment.sh "Markham Windows 7 Pro, 64bit80273"


    Attachments

    2148996_delete-deployment.zip get_app