CrashLoopBackOff state.vmware_nsxlib.v3.exceptions.ManagerError: Unexpected error from backend manager (['#.#.#.#:443', '#.#.#.#:443', '#.#.#.#:443', '#.#.#.#:443']) for GET policy/api/v1/search/query?query=resource_type:IpAddressBlock&sort_by=id: Search service is currently unavailable, please restart using 'restart service search' and resync using 'start search resync all' CLI commands on the NSX ApplianceA failure in the NSX Search service can cause the API call performed by the NSX-NCP Pod to the NSX Manager to fail, causing the NSX-NCP Pod to enter a CrashLoopBackOff state.
Follow these steps to restart the NSX Search service and resolve the issue. If this solution doesn't resolve the problem, proceed to Solution 2.
restart service searchstart search resync allkubectl get pods -n vmware-system-nsx | grep nsx-ncp
kubectl delete pod <nsx-ncp pod name> -n vmware-system-nsxkubectl get pods -n vmware-system-nsx | grep nsx-ncpIf the NSX-NCP Pod is now running without errors and doesn't enter CrashLoopBackOff after some minutes, the issue has been resolved. If the problem persists, proceed to Solution 2.
Solution 2: Restart vCenter
kubectl get pods -n vmware-system-nsx | grep nsx-ncp
kubectl delete pod <nsx-ncp pod name> -n vmware-system-nsxkubectl get pods -n vmware-system-nsx | grep nsx-ncp