CrashLoopBackOff statevmware_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
[ncp MainThread E errorCode="NCP00007"] nsx_ujo.common.utils NSX configuration error: Unexpected error from backend manager (['###-#-###-#####.###.###.##:443', '###-#-###-#####.###.###.##:443', '###-#-###-#####.###.###.##:443', '###-#-###-#####.###.###.##:443']) for GET policy/api/v1/search/query?query=resource_type:IpAddressPool AND tags.scope:ncp\/version AND tags.tag:#.#.# AND tags.scope:ncp\/cluster AND tags.tag:domain\-##\:#######\-#####\-####\-####\-############ AND tags.scope:ncp\/external AND tags.tag:true&sort_by=id: Search index is out of sync for 'resource_type:IpAddressPool'. Run the 'start search resync all' CLI command on the NSX appliance to resync. If the issue persists, contact VMware Support. details: INDEXING_FAILURES_EXHAUSTED_RETRIES, params: [IpAddressPool,all]
[ncp MainThread C security="True" errorCode="NCP00250"] nsx_ujo.ncp.main NSX configuration validation failedA 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-ncpkubectl 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.
service-control --restart wcpkubectl 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
CrashLoopBackOff after some minutes, the issue has been resolved.