Skip to main content
AHV discovery not running or showing old discovery time

AHV discovery not running or showing old discovery time

Updated over 2 months ago

Problem description

When initiating a discovery under All Virtual Machines, it either results in an internal error or displays a backdated time.

Cause

This issue can occur if the Nutanix Prism manages a mixed hypervisor cluster (ESXi + AHV) and is unable to retrieve the network list from one of the ESXi clusters.

Steps to find out the network error:

  • Login to any one of the AHV backup proxies and run the below commands in sequence :
    command 1:

    echo -n "<username>:<password>" | base64

    note: username and password should be of the Prism Central

    Copy the output of command 1 and use this as a token in command 2

    // -n: This option is used to suppress the newline character

    command 2:

    curl -k -X GET --header 'Accept: application/json' -H 'Authorization: Basic <token>' 'https://<PRSIM_IP/FQDN>:9440/PrismGateway/services/rest/v2.0/clusters/'

    The above commands will return all the cluster details in JSON format. Please check the output and look for the particular cluster entity. Copy the UUID value, which will be required to fetch networks.

    // -k: This option tells curl to ignore SSL certificate validation. It allows the request to proceed even if the SSL certificate is self-signed, expired, or otherwise untrusted.

    // -X: This option specifies the HTTP method to use for the request (e.g., GET, POST, PUT, DELETE). For example, -X GET sets the request method to GET.

    // -H: This option is used to add a custom header to the request.

    command 3:

    curl -k -X GET --header 'Accept: application/json' -H 'Authorization: Basic <token>' 'https://<PRSIM_IP/FQDN>:9440/PrismGateway/services/rest/v2.0/networks?proxyClusterUuid=<clusteruuid>'

    Note: The same token should be used, update cluster UUID

  • You will receive error post the third command:
    ​{"message":"Error occurred while getting network list","detailed_message":"Error occurred while getting network list","error_code":{"code":1202,"help_url":"http://my.nutanix.com"}}

Solution

Did this answer your question?