vCloud Director – Unable to Remove vCenter Endpoint

This is a quickie, but I’m hoping this will help others if they run into this. I received some odd behavior when attempting to remove a vCenter endpoint. Basically, vCloud Director was stating to unprepare the hosts, but vCD is … Continue reading

The post vCloud Director – Unable to Remove vCenter Endpoint appeared first on Clouds, etc..

Spread the love

This is a quickie, but I’m hoping this will help others if they run into this. I received some odd behavior when attempting to remove a vCenter endpoint. Basically, vCloud Director was stating to unprepare the hosts, but vCD is not utilizing host agents anymore nor does the hosts page show the hosts. I found a workaround for this.

I’ve been testing the vCD 9.5 release and was cleaning up a previous vCD install to migrate to a net new environment. Therefore, I was removing a vCenter endpoint and received some strange behavior.

Once I cleaned up all ancillary objects (oVDC, pVDC, etc), I attempted to detach the vCenter –

Well, it errors out. Says I need to unprepare the hosts…

But I do not have any hosts available –

Odd! So, it turns out this process is attempting to delete the automatically created VXLAN network pool and fails (as intended). Here’s the workaround – the managed_server table is really not utilized since we’ve been moving away from host agents.

To resolve this issue, I had to truncate the managed_server table.

Here’s what I did in my lab to fix this:

**BACKUP YOUR DATABASE BEFORE DOING THIS – I did this in a lab and have not seen if this impacts multiple endpoints**

  1. Backup your database.
  2. Log into your DB using your favorite client – I have a Oracle DB so using sqlplus –
  3. We are going to truncate the managed_server table. For me, I had to type “TRUNCATE TABLE managed_server;”
  4. Alright, ready to test removing the vCenter endpoint – 
  5. Working….
  6. Voila! 

I did bring this up to our Engineering team and hoping this will be rectified in future versions. Cheers!

-Daniel

Facebook Comments

More Stuff

My five favorite things about VMware vCloud Director 9.5! The VMware Cloud Provider Software Business Unit has released the next iteration of vCloud Director – version 9.5. We’ve been holding to a six month c...
Introduction to Automating Your vSphere Upgrade When it comes to upgrading your vSphere environment you have two options when upgrading to vSphere 6.5 or vSphere 6.7. The installer provides two meth...
What does End of General Support mean? On September 19th, vSphere 5.5 exited its general support phase and moved into something called “Technical Guidance”. In response to this, many have a...
Join us at Tech Field Day 18 On February 7th VMware subject matter experts will join the Tech Field Day team at Tech Field Day 18 in Austin, TX! The brain child of GestaltIT, Tech...
Spread the love

Posted by News Monkey