NSX, Palo Alto & Cisco

Failed to remove Org VCD

Since last year I have been busy with VMware Cloud Director (VCD) and the new versions show great collaborations with VMware NSX, more about that in future blogs. But I think I may have discovered a bug in this new version, so let’s get into it!

VMware Cloud Director

This is my first blog about VMware Cloud Director. A VCD introduction blog was my first intention to write, until I discovered this bug and wanted to share it right away. Basic knowledge of VCD is required for this blog.

Some background

On November 30th, version 10.5.1 of VCD was released (VMware Cloud Director 10.5.1 is now GA) and I wasted no time upgrading my LAB VCD to this new version. Since I only use my VCD in test situations, without a real Org VDC, the easiest way was to just scrap the old VM and deploy a new one. That’s exactly what I did.

All worked well and I started to play around with the “NSX Tenancy” setting. This setting provides the translation from VCD organizations into VMware NSX Projects, allowing to easily separate tenants into their own ‘project’ space. The project limits the scope of items shown and allows for a more cloud provider-like setup. A dedicated ‘Short log identifier’ is also set for all syslog messages from the named organization. This allows you to split it into a dedicated syslog collector for that tenant/project.

The error

Since I’m only using this VCD for testing, I wanted to reproduce what I just built and try it again. My experience is if something works straight out of the box, it either works very well or it works by chance and often breaks the second time 😁. So I tried to delete the Org VDC I created. VCD was able to remove most network components, but not the Virtual Datacenter.

Operation: Deleted Virtual Datacenter 020_Rattmann(0d790692-d362-42db-8223-f005a717df53) Type: vdc Status: Failed Organization: System Service Namespace: com.vmware.vcloud Details: [ 7faf1e0f-775f-4576-bd0b-a878b49c7c90 ] Internal Server Error – Bad Request: The object path=[/orgs/default/projects/06035aea-d0e9-4f1c-b5aa-ec8df0ada9c3] cannot be deleted as either it has children or it is being referenced by other objects path=[/orgs/default/projects/06035aea-d0e9-4f1c-b5aa-ec8df0ada9c3/infra/domains/default/gateway-policies/79790f77-e28c-4305-8746-f366b29465e6], error code 500030 Debug Information: com.vmware.vcloud.api.presentation.service.InternalServerErrorException: Internal Server Error at com.vmware.vcloud.api.presentation.service.impl.VdcServiceAdapterImpl.waitForFuture(VdcServiceAdapterImpl.java:2621)