The create-transport-nodes action fails during NSX-T deployment

Symptom

NSX-T was in the state TRANSPORT_NODES_CREATE_FAILED.

Cause

This happens when the vCloud autodeploy command is trying to send an API POST request to NSX-T server to create a transport node while the host is still being prepared.

Action
  1. Check the CLI log (vmware-cli-<date>.log) available in /var/nps/logs/vmware folder in the NPS VM.
    Following is an example of the error displayed:

    If the status displayed is Error, then proceed to the next step.

  2. To disable SELinux, run the following command:
    setenforce 0
  3. To restart Kubernetes Services, run the following command:
    systemctl restart kubelet
  4. To check the status of Kubernetes Service, run the following command:
    systemctl status kubelet

    The Kubernetes Service must be in Running state.

  5. To recheck the status of all Kubernetes pods, run the following command:
    kubectl get pods --all-namespaces

  6. Once the Kubernetes is in Running state, enable SELinux using the following command:
    setenforce 1