Unable to delete a VM snapshot because the option is greyed out
search cancel

Unable to delete a VM snapshot because the option is greyed out

book

Article ID: 425290

calendar_today

Updated On:

Products

VMware Cloud Director

Issue/Introduction

  • The snapshot delete option is grayed out on the VM in VCD either on the VM Actions menu or from the VM by selecting the Snapshot tab.
  • The snapshot has no name or date.
  • No snapshot on the VM are present in vCenter.

Environment

VMware Cloud Director 10.6.x

Cause

A stale entry for a deleted temporary VM snapshot is present in the VMware Cloud Director database. This issue usually happens when using backup solutions (i.e. Veeam) for taking and deleting VM snapshots.

Resolution

Try deleting the VM snapshot via API

  1. Delete the VM snapshot using API explorer 

    "DELETE https://{api_host}/cloudapi/1.0.0/vm/{vmUrn}/snapshots/{snapshotId}"

    a. From API Explorer:



    b. The vmUrn value to be entered can be found in the Cloud Director Tenant UI > Virtual Machine > VM Name

    https://cloud.example.com/tenant/Org-NAME/vdcs/########-####-####-########a47e/vapp/vapp-########-####-####-########a0e8/vcd-vapp-vms/vm-########-####-####-########75a5/snapshots

    c. The vmUrn value must be entered as "urn:vcloud:vm:ID" where the ID value to be entered is the one from the step 3b.
    Below an example based on the example reported on step 3b:

    urn:vcloud:vm:########-####-####-########75a5

    d. The snapshotId value to be entered can be found running the API

    GET https://{api_host}/cloudapi/1.0.0/vm/{vmUrn}/snapshots

    From API Explorer:




If it is not possible to delete the VM snapshot via API, the workaround for this issue requires modification of the Cloud Director database.

For assistance, contact Broadcom Support and note this Article ID (425290) in the problem description. For more information, see Creating and managing Broadcom support cases

Additional Information

For additional information visit the Remove Vm Snapshot on the Broadcom Developer Portal.