INDETERMINATE Cluster failover status
search cancel

INDETERMINATE Cluster failover status

book

Article ID: 379537

calendar_today

Updated On:

Products

VMware Cloud Director VMware Telco Cloud Infrastructure

Issue/Introduction

  • After upgrading VMware Cloud director (VCD) the cluster failover status is marked as INDETERMINATE
  • One/two Cloud Cell(s) node(s) exhibiting a failover status that does not match the other node(s).

Environment

VMware Cloud Director 10.x

Cause

INDETERMINATE status occurs when a Cloud Cell node is configured with a different failover status (manual or automatic).

Resolution

To align the failover status of the affected node with the rest of the cluster, use the following API calls:

  1. Create a new session to get the authorization token:

    POST https://{api_host}/api/1.0.0/sessions

    For additional information visit Post Sessions

  2. Check the postgres HA state of all nodes in the cluster using the following API and the token generated from step 1:

    GET https://{api_host}/api/1.0.0/nodes

    For additional information visit Get Nodes

  3. If the failover mode is not the same across the nodes in the cluster, proceed with the step 4 to change the failover status for the affected node.
  4. Change the failover mode on the node:

    POST https://{FQDN or IP of the node}/api/1.0.0/nodes/failover/{desired-mode}

    or using the command: 

    curl -X POST -H "Accept: application/json" -H "Authorization: Basic [[basicHash]]" -H "Accept: application/json" "https://vcd-appliance-ip:5480/api/1.0.0/nodes/failover/{desired-mode}"

    Valid values are:

    automatic
    manual

    For additional information visit Post Set Failover Mode

  5. Verify the status change by re-checking the cluster status as per step 2

Additional Information

View Your VMware Cloud Director Appliance Cluster Health and Failover Mode

VMware Cloud Director Appliance API - Failovermode

You can also use the curl command instead of an API client:

    1. Obtain Bearer TOKEN
      curl -k -u root -X POST "https://<VCD-NODE-FQDN-OR-IP>:5480/api/1.0.0/sessions"
    2. Change Failover Mode Note: (This will update the failover mode for all cells)
      curl -k -i -X POST -H "Accept: application/json" -H "Authorization: Bearer <YOUR-AUTH-TOKEN>" "https://<VCD-NODE-FQDN-OR-IP>:5480/api/1.0.0/nodes/failover/{desired-mode}"

      Note: replace {desired-mode} with "automatic" or "manual"