Auto-Recovery Fails to Redeploy 3rd VCF Automation Node After Single Node Loss
search cancel

Auto-Recovery Fails to Redeploy 3rd VCF Automation Node After Single Node Loss

book

Article ID: 463416

calendar_today

Updated On:

Products

VCF Automation

Issue/Introduction

  • Checking the vCenter hosting the VCFA nodes, only 2 nodes are available.
  • Running command kubectl get nodes on one of the VCFA nodes only return 2 nodes.
  • Running command kubectl get machines -A shows one of the machine is stuck in provisioning state for days.

    NAMESPACE       NAME                       CLUSTER       NODENAME       PROVIDERID                               PHASE         AGE   VERSION
    vmsp-platform   vcf-runtime-node-####     vcf-auto      vcf-node-01    vsphere://####-####-####-####-####...    Running       45d   v1.34.2
    vmsp-platform   vcf-runtime-node-####     vcf-auto      vcf-node-02    vsphere://#######-####-####-####-...    Running       45d   v1.34.2
    vmsp-platform   vcf-runtime-node-####     vcf-auto      <none>         <none>                                   Provisioning  3d   v1.35.6
  • Running command kubectl describe machine vcf-runtime-#### -n vmsp-platform for the machine stuck in provisioning state shows that it failed due to: '/datacenter/network/network-name' not found.

Environment

VCF Automation 9.0.1

Cause

The upgrade fails because the vSphere network configured in the vmsp-platform Provider Definition (PD) does not exist or has been renamed in vCenter. As a result, the OVA import fails with the error “network not found”.

Resolution

Step 1: Verify Network Location

  1. Log in to the vCenter Server and ensure that the datastore and network assigned to the VCF Automation components are located at the root of the Datacenter or within the exact path specified in the Provider Definition.
  2. If objects were moved into folders, move them back to the root or update the PD path in Step 4.

Step 2: Launch Debug Pod

  1. Start a temporary debugging session in the vmsp-platform namespace:
    kubectl run -n vmsp-platform --restart=Never --rm -i --tty debug --image=registry.vmsp-platform.svc.cluster.local:5000/images/debug:v1.0.7 --command -- bash

Note: This command launches a temporary debugging pod with an interactive shell for network verification or connectivity testing.

Step 3: Authenticate and Verify Objects

  1. Set the environment variables. Use single quotes for the password to handle special characters.
    export GOVC_URL='<vCenter-FQDN>' export GOVC_USERNAME='[email protected]' export GOVC_PASSWORD='####' export GOVC_INSECURE=1
  2. List available network objects. If using a machine certificate from an external authority, include the -k parameter: 
    govc find -k -type n .
  3. Compare the output to the paths configured in the system.

NOTE: if any folder paths are missing from the configuration.

Step 4: Update Provider Definition (If paths changed)
If the paths discovered in Step 3 differ from the current configuration, update the vmsp-platform Provider Definition:

  1. Run the command below: 
    kubectl edit pd -n vmsp-platform vmsp-platform
  2. Locate the following
     spec: values: provider: vsphere.
  3. Update the network fields with the correct paths.

Step 5: Monitor the status of PD

  1. Monitor the PD status until it shows:
    Successful: kubectl get pd -n vmsp-platform vmsp-platform
  2. Check the node status it should now show 3 nodes:
    kubectl get nodes