"You must delete this Organization's Application Port Profiles before you can delete the organization." when deleting an organization in VMware Cloud Director.
search cancel

"You must delete this Organization's Application Port Profiles before you can delete the organization." when deleting an organization in VMware Cloud Director.

book

Article ID: 312277

calendar_today

Updated On:

Products

VMware Cloud Director

Issue/Introduction

Symptoms:
  • Deleting an organization in VMware Cloud Director UI fails with:

com.vmware.vcloud.api.presentation.service.InvalidStateException: You must delete this Organization's Application Port Profiles before you can delete the organization.

  • Edge gateways which were part of the organization were deleted before the associated application port profiles were deleted.


Environment

VMware Cloud Director 10.x

Cause

This is a known issue affecting VMware Cloud Director 10.4.x and 10.5.x versions.

The issue occurs due to the presence of application port profiles which were not deleted before the edge in the organization was deleted.

Resolution

VMware Engineering is aware of this issue, it is currently under investigation.
Please subscribe to this KB to get notified on changes and updates.

Workaround:

If you use Cloud Director 10.3 and later versions, the stale application port profiles and this organization containing stale application port profiles can be deleted via API.

1. Delete an organization with "force" option:

DELETE https://<VCD-ENDPOINT>/api/admin/org/<ORG-UUID>?force=true

2. Synchronize application port profiles:

POST https://<VCD-ENDPOINT>/cloudapi/1.0.0/applicationPortProfiles/sync


If utilization of the API is not possible then please open a support request with VMware Technical Support for assistance.