"Error connection Fleet management node, try again" while connecting VCF Fleet manager to the VCF Operations
search cancel

"Error connection Fleet management node, try again" while connecting VCF Fleet manager to the VCF Operations

book

Article ID: 402063

calendar_today

Updated On:

Products

VCF Operations

Issue/Introduction

  • The initial attempt to register the VCF Fleet Management appliance failed with "not connected" when following Register the VCF Operations fleet management Appliance with VCF Operations
  • Attempting to connect the appliance again fails with "Error connection Fleet management node, try again" or "Unexpected error occurred during request" 
  • /var/log/vrlcm/vmware_vrlcm.log on VCF Fleet :
    Exception while creating Environment: com.vmware.vrealize.lcm.lcops.common.exception.InvalidEnvironmentException: Deployment or Import Blocked: You’ve reached the limit of allowed instances for VCF Operations (maximum: 1). Please check your inventory and remove any existing deployed, failed or draft instance(s) to proceed with the new deployment or import

Environment

VMware Cloud Foundation Operations 9.0

Cause

Potential reasons for the failure include:

  • Invalid Credentials: The password provided is incorrect or does not meet the length/complexity requirement.
  • Communication Failure: There are network connectivity issues between the services.

Resolution

Note: Before performing the following procedure, ensure that you take snapshots of  VCF Operations nodes and the Fleet Management appliance.

  1. Login into VCF Operations Admin UI , Click on "Disconnect" under the VCF Operations Fleet Management  section.
  2. Open Swagger UI for Fleet Management by navigating to VCF Operations - Developer Center - APIs & SDKs - Fleet Management API
  3. Under Environment Controller , execute 
    GET /lcm/lcops/api/v2/environments

  4. Fetch the Environment ID for VCF Operations and then execute the API for  deleting it from the environment. As deleting VCF Operations from UI is not possible. 
    DELETE /lcm/lcops/api/environments/{environmentId}/delete

    Payload
    {
      "controllerType": "string",
      "deleteFromInventory": true,
      "deleteFromVcenter": false,
      "deleteLbFromSddc": true,
      "deleteWindowsVMs": true
    }
  5. Reconnect Fleet Management Appliance with VCF Operations. 


Note: Do not set the deleteFromVcenter property to true, as this will result in the deletion of component-based appliances from vCenter.

 

 

Additional Information

To authorize to Fleet API, refer : How to Authorize VCF Operations Fleet Management API

To cancel ongoing VCF Operations deployment task in VCF Fleet, refer : Cancel long running Fleet Management Lifecycle requests