Symptoms:
This cluster is owned by another instance of NSX and can be viewed in read-only mode.
Configuration data that is inaccessible and cannot be retrieved is marked Unknown.
Note: The preceding log excerpts are only examples. Date, time, and environmental variables may vary depending on your environment.
VMware NSX-T Data Center
This issue occurs due to a race condition.
When the last TN (Transport node) is removed from the cluster (that is the last host is unprepared for NSX-T), the ownership should be released automatically.
In certain instances the ownership is not released.
This results in the cluster remaining locked by that NSX-T manager and prevents the cluster from being prepared by the other NSX-T manager.
This is a known issue impacting NSX-T data center.
Workaround:
If the NSX-T manager which originally had ownership of the cluster is still present, proceed with step 1 here.
If the NSX-T manager which originally had ownership of the cluster is no longer present, due to failure or decommission, proceed to step 2.
Step 1
If the previous NSX-T manager is still accessible and not able to release the cluster ownership, make sure there are no TN's in the UI, that is there are no hosts prepared for NSX-T.
a. You can use the following API if the NSX-T Manager UI shows 'Not Configured' for the hosts present in the locked cluster.
b. If any of the TN's are still present and stuck during uninstallation, remove the TN using the following force API:
Repeat step 1.b for any TN not released.
If ownership is still not released, no hosts are prepared and the cluster is locked, proceed to step 2.
Step 2
There are two workarounds here that can be used to release or forcefully acquire ownership of a locked cluster.
a. Forcefully acquire cluster ownership.
Warning: This workaround should only be used if the NSX-T manager is not accessible, crashed or is no longer in use and therefore is not able to release cluster ownership.
b. Clear NSX ownership manually from VC UI:
Warning: This should be done carefully and only if cluster ownership was not removed during TN deletion, and there are no TNs present in the cluster in any NSX manager of Multi NSX setup.
Note: Don't change any other custom attributes.