VMware Cloud Community
TheITHollow
Enthusiast
Enthusiast

Orphaned vCenter in PSC

I'm wondering if anyone has run into this scenario.

A PSC (PSC1) was deployed and a vCenter (vCenter1) was connected to it but had issues and got deleted etc.

A new vCenter was stood up and also named vCenter1 and was connected to PSC1

Upon logging into the web client, there is a warning message stating "Could not connect to one or more vCenter Server Systems: https://vCenter1.domain.local/sdk"

Now, there are documented measures to remove a vCenter from a PSC, Using the cmsso command to unregister vCenter Server from Single Sign-On (2106736) | VMware KB

but those instructions seem to conclude that you can use the vCenter server name as the ID:

cmsso-util unregister --hostId host_Id --node-pnid vCenter_Server_System_Name --username administrator@your_domain_name --passwd vCenter_Single_Sign_On_password

Question being this, if I were to run this with vCenter1 as the vCenter_Server_System_Name won't it remove both the orphaned vCenter as well as the existing working vCenter?

Does anyone have a better way to remove just the orphaned vCenter?

http://www.theithollow.com
Reply
0 Kudos
8 Replies
virtualg_uk
Leadership
Leadership

Are you saying that you have two VCs with the same name registered to the same PSC? I didn't know this was possible.

Could you check what VCs are registered with the PSC, one might be known under the IP rather then FQDN / hostname, making them unique so you could use that corresponding name to remove it.


Graham | User Moderator | https://virtualg.uk
Reply
0 Kudos
TheITHollow
Enthusiast
Enthusiast

I would love to check that but can't seem to find the documentation to list all vCenters connected to the PSC.

Can the cmsso-util find these entries?

http://www.theithollow.com
Reply
0 Kudos
TheITHollow
Enthusiast
Enthusiast

I missed William's posts. Thanks, that was helpful, but as I suspected, there are two entries with a serviceattribute of the exact same vCenter. Spelling is identical including the case.

http://www.theithollow.com
Reply
0 Kudos
virtualg_uk
Leadership
Leadership

Probably best to log a case with VMware, or reach out to william on twitter? @lamw


Graham | User Moderator | https://virtualg.uk
Reply
0 Kudos
Wanly
VMware Employee
VMware Employee

It is possible that two vCenters with same name can be registered in one PSC. But only one can work and web client report that can not connect to one vcenter(the same name).

You can find the services by using lstool in psc.

"%VMWARE_PYTHON_BIN%" "%VMWARE_CIS_HOME%\VMware Identity Services\lstool\scripts\lstool.py" list --url http://localhost:7080/lookupservice/sdk

This is an example for Windows PSC.

We are facing the same situation.

I don't know if the --hostId host_id can help. Every vCenter has unique Node ID (I think it should be host Id in the parameter).

Reply
0 Kudos
networks2264
Contributor
Contributor

Did you ever figure out how to remove the orphaned vCenter server? I'm in a similar situation, but only the functional server is shown when using the python script against the lookup service. I've also tried deregistering the functional one, but that only removes the functional one and does not remove the orphaned one. Thanks for the input!

Reply
0 Kudos