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 Appliance
A 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 search
start search resync all
kubectl get pods -n vmware-system-nsx | grep nsx-ncp
kubectl delete pod <nsx-ncp pod name> -n vmware-system-nsx
kubectl get pods -n vmware-system-nsx | grep nsx-ncp
If 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-nsx
kubectl get pods -n vmware-system-nsx | grep nsx-ncp